Bug 968709 - Fix intermittent failures. a=test-only
authorJamin Liu <jaliu@mozilla.com>
Wed, 18 Jun 2014 17:13:42 -0400
changeset 208186 bc0b13fce4edf5bbcda0028ecbdc51b7c6105915
parent 208185 63a5404ebb74d7b539c9622c46fab09fb740b150
child 208187 4341773656794db3ad1c774e87029a362f145fa4
push id494
push userraliiev@mozilla.com
push dateMon, 25 Aug 2014 18:42:16 +0000
treeherdermozilla-release@a3cc3e46b571 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstest-only
bugs968709
milestone32.0a2
Bug 968709 - Fix intermittent failures. a=test-only
dom/bluetooth/tests/marionette/test_navigate_to_default_url.py
--- a/dom/bluetooth/tests/marionette/test_navigate_to_default_url.py
+++ b/dom/bluetooth/tests/marionette/test_navigate_to_default_url.py
@@ -1,12 +1,18 @@
 # This Source Code Form is subject to the terms of the Mozilla Public
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 from marionette_test import MarionetteTestCase
 
 class testNavigateToDefault(MarionetteTestCase):
+    def setUp(self):
+        MarionetteTestCase.setUp(self)
+        # Sets an appropriate timeout for this test.
+        # P.S. The timeout of next test wouldn't be affected by this statement.
+        self.marionette.timeouts(self.marionette.TIMEOUT_PAGE, 90000)
+
     def test_navigate_to_default_url(self):
         try:
             self.marionette.navigate("app://system.gaiamobile.org/index.html")
         except:
-            self.assertTrue(Flase, "Can not navigate to system app.")
+            self.assertTrue(False, "Can not navigate to system app.")