Bug 1316622 - Move mozapps Marionette tests to new timeouts API; r?whimboo draft
authorAndreas Tolfsen <ato@mozilla.com>
Thu, 10 Nov 2016 21:05:05 +0000
changeset 441082 95ca45b7e797a1e8eb72cf7ce2454206ea412686
parent 441081 6850fe22770a119a3957c2ed304c67ac2f33b219
child 441083 5aba31593e19055da6c0842a9739e65385c1eda7
push id36352
push userbmo:ato@mozilla.com
push dateFri, 18 Nov 2016 10:46:54 +0000
reviewerswhimboo
bugs1316622
milestone53.0a1
Bug 1316622 - Move mozapps Marionette tests to new timeouts API; r?whimboo MozReview-Commit-ID: FmwBTsTP7UP
toolkit/mozapps/update/tests/marionette/update_test_ota_simple.py
toolkit/mozapps/update/tests/marionette/update_test_status.py
--- a/toolkit/mozapps/update/tests/marionette/update_test_ota_simple.py
+++ b/toolkit/mozapps/update/tests/marionette/update_test_ota_simple.py
@@ -8,13 +8,13 @@ class UpdateTestOTASimple(B2GUpdateTestC
         prefs = {
             "b2g.update.apply-idle-timeout": 0
         }
         mar_path = os.path.join(update_test_dir, "unit", "data", "simple.mar")
         self.stage_update(complete_mar=mar_path, prefs=prefs)
         B2GUpdateTestCase.setUp(self)
 
     def test_ota_simple(self):
-        self.marionette.set_script_timeout(60 * 1000 * 5)
+        self.marionette.timeout.script = 60 * 5
 
         ota_simple_js = os.path.join(os.path.dirname(__file__),
                                      "update_test_ota_simple.js")
         self.execute_update_test(ota_simple_js, apply=OTA)
--- a/toolkit/mozapps/update/tests/marionette/update_test_status.py
+++ b/toolkit/mozapps/update/tests/marionette/update_test_status.py
@@ -17,13 +17,13 @@ class UpdateTestStatus(B2GUpdateTestCase
         self.runner.adb.push(bad_xml, self.B2G_UPDATES + "/bad.xml")
         self.runner.adb.shell("mkdir " + self.B2G_UPDATES + "/cgi-bin")
         self.runner.adb.push(err_cgi, self.B2G_UPDATES + "/cgi-bin/err.cgi")
         self.runner.adb.shell("chmod 755 " + self.B2G_UPDATES + "/cgi-bin/err.cgi")
 
         B2GUpdateTestCase.setUp(self)
 
     def test_status(self):
-        self.marionette.set_script_timeout(30 * 1000)
+        self.marionette.timeout.script = 30
         status_js = os.path.join(os.path.dirname(__file__),
                                  "update_test_status.js")
         self.execute_update_test(status_js)