Summary

Harness status: OK

Found 1 tests

Details

ResultTest NameMessage
Passnavigate() with an invalid URL inside onbeforeunload throws "SyntaxError", not "InvalidStateError"
Asserts run
Pass
assert_equals(object "[object Object]", object "[object Object]", "result object must be from the right realm")
    at window.assertReturnValue ( /navigation-api/navigation-methods/return-value/resources/helpers.js:2:3)
Pass
assert_array_equals(["committed", "finished"], ["committed", "finished"])
    at window.assertReturnValue ( /navigation-api/navigation-methods/return-value/resources/helpers.js:3:3)
Pass
assert_true(true)
    at window.assertReturnValue ( /navigation-api/navigation-methods/return-value/resources/helpers.js:4:3)
Pass
assert_true(true)
    at window.assertReturnValue ( /navigation-api/navigation-methods/return-value/resources/helpers.js:5:3)
Pass
assert_not_equals(object "[object Promise]", object "[object Promise]")
    at window.assertReturnValue ( /navigation-api/navigation-methods/return-value/resources/helpers.js:6:3)
Pass
assert_not_equals(object "[object Promise]", undefined)
    at Test.<anonymous> ( /navigation-api/navigation-methods/return-value/navigate-rejection-order-invalidurl-beforeunload.html:26:3)
Pass
assert_equals(object "SyntaxError: Invalid URL 'https://example.com%00mozilla.org/'.", object "SyntaxError: Invalid URL 'https://example.com%00mozilla.org/'.", "committed and finished must reject with the same value")
    at window.assertBothRejectDOM ( /navigation-api/navigation-methods/return-value/resources/helpers.js:125:3)
Pass
assert_throws_dom("SyntaxError", function "function DOMException() { [native code] }", function "() => { throw committedReason; }")
    at window.assertBothRejectDOM ( /navigation-api/navigation-methods/return-value/resources/helpers.js:126:3)
Pass
assert_equals(1, 1)
    at Test.<anonymous> ( /navigation-api/navigation-methods/return-value/navigate-rejection-order-invalidurl-beforeunload.html:29:3)