Bug 1328298 - Navigating to malformed URL returns error; r?automatedtester
This is due to a recent spec change.
MozReview-Commit-ID: 2AUbmjGmcnA
--- a/testing/web-platform/meta/webdriver/navigation.py.ini
+++ b/testing/web-platform/meta/webdriver/navigation.py.ini
@@ -3,18 +3,15 @@
disabled:
if (os == "linux") and (bits == 64) and debug: https://bugzilla.mozilla.org/show_bug.cgi?id=1318724
[navigation.py::test_get_current_url_no_browsing_context]
expected: ERROR
[navigation.py::test_get_current_url_alert_prompt]
expected: FAIL
- [navigation.py::test_get_current_url_malformed_url]
- expected: FAIL
-
[navigation.py::test_get_current_url_nested_browsing_contexts]
expected: FAIL
[navigation.py::test_get_current_url_matches_location]
expected:
if debug: FAIL
--- a/testing/web-platform/tests/webdriver/navigation.py
+++ b/testing/web-platform/tests/webdriver/navigation.py
@@ -78,18 +78,18 @@ def test_get_current_url_file_protocol(s
# TODO(ato): Test for http:// and https:// protocols.
# We need to expose a fixture for accessing
# documents served by wptserve in order to test this.
def test_get_current_url_malformed_url(session):
- session.url = "foo"
- assert session.url
+ with pytest.raises(webdriver.InvalidArgumentException):
+ session.url = "foo"
def test_get_current_url_after_modified_location(session):
session.execute_script("window.location.href = 'about:blank'")
assert session.url == "about:blank"
def test_get_current_url_nested_browsing_context(session):