コード例 #1
0
 def test_check_desktop_exec_webbrowser_missing_exec(self):
     '''Test check_desktop_exec_webbrowser - missing exec'''
     c = ClickReviewDesktop(self.test_name)
     self.set_test_desktop(self.default_appname, "Exec", None)
     c.check_desktop_exec_webbrowser()
     r = c.click_report
     expected_counts = {'info': 0, 'warn': 0, 'error': 1}
     self.check_results(r, expected_counts)
コード例 #2
0
 def test_check_desktop_exec_webbrowser_missing_webapp(self):
     '''Test check_desktop_exec_webbrowser - missing --webapp'''
     c = ClickReviewDesktop(self.test_name)
     ex = "webbrowser-app --enable-back-forward " + \
          "--webappUrlPatterns=https?://mobile.twitter.com/* " + \
          "http://mobile.twitter.com"
     c = ClickReviewDesktop(self.test_name)
     self.set_test_desktop(self.default_appname, "Exec", ex)
     c.check_desktop_exec_webbrowser()
     r = c.click_report
     expected_counts = {'info': None, 'warn': 0, 'error': 1}
     self.check_results(r, expected_counts)
コード例 #3
0
 def test_check_desktop_exec_webbrowser_non1310(self):
     '''Test check_desktop_exec_webbrowser without 13.10'''
     self.set_test_manifest("framework", "not-ubuntu-sdk-13.10")
     c = ClickReviewDesktop(self.test_name)
     ex = "webbrowser-app --webapp --enable-back-forward " + \
          "--webappUrlPatterns=https?://mobile.twitter.com/* " + \
          "http://mobile.twitter.com"
     c = ClickReviewDesktop(self.test_name)
     self.set_test_desktop(self.default_appname, "Exec", ex)
     c.check_desktop_exec_webbrowser()
     r = c.click_report
     expected_counts = {'info': 1, 'warn': 0, 'error': 1}
     self.check_results(r, expected_counts)