Bug 1302707 - Unignore test that expects timeout error; r?automatedtester draft
authorAndreas Tolfsen <ato@mozilla.com>
Mon, 26 Sep 2016 18:15:03 +0100
changeset 418528 cf77a6fe9b6a54b429677fa99239d0239369af16
parent 418527 6c2cfb4d71561373360d01cab85f909ecbc1534f
child 418529 a54a21f67a62fc5f279d88ade4207982047f1de0
push id30699
push userbmo:ato@mozilla.com
push dateWed, 28 Sep 2016 16:44:24 +0000
reviewersautomatedtester
bugs1302707
milestone52.0a1
Bug 1302707 - Unignore test that expects timeout error; r?automatedtester MozReview-Commit-ID: 6QK1bcFhTHB
testing/marionette/harness/marionette/tests/unit/test_navigation.py
--- a/testing/marionette/harness/marionette/tests/unit/test_navigation.py
+++ b/testing/marionette/harness/marionette/tests/unit/test_navigation.py
@@ -1,14 +1,13 @@
 # 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/.
 
 import time
-import unittest
 import urllib
 
 from marionette import MarionetteTestCase
 from marionette_driver.errors import MarionetteException, TimeoutException
 from marionette_driver import By, Wait
 
 
 def inline(doc):
@@ -118,17 +117,16 @@ class TestNavigate(MarionetteTestCase):
         self.assertEqual(self.marionette.get_url(), "about:blocked")
 
     def test_find_element_state_complete(self):
         self.marionette.navigate(self.test_doc)
         state = self.marionette.execute_script("return window.document.readyState")
         self.assertEqual("complete", state)
         self.assertTrue(self.marionette.find_element(By.ID, "mozLink"))
 
-    @unittest.skip("Bug 1302707 - No timeout exception raised.")
     def test_should_throw_a_timeoutexception_when_loading_page(self):
         try:
             self.marionette.set_page_load_timeout(0)
             self.marionette.navigate(self.test_doc)
             self.assertTrue(self.marionette.find_element(By.ID, "mozLink"))
             self.fail("Should have thrown a MarionetteException")
         except TimeoutException as e:
             self.assertTrue("Error loading page, timed out" in str(e))