Bug 1302707 - Unignore test that expects timeout error; r?automatedtester
MozReview-Commit-ID: 6QK1bcFhTHB
--- 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))