Pass | can't bypass required members by omitting the dictionary entirely | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "() => { new NavigateEvent("navigate"); }")
at Test.<anonymous> ( /navigation-api/navigate-event/event-constructor.html:6:3) |
|
Pass | destination is required | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "() => { new NavigateEvent("navigate", { navigationType: "push", canIntercept: false, userInitiated: false, hashChange: false, signal: (new AbortController()).signal, formData: null, downloadRequest: null, info: null, sourceElement: null }); }")
at Test.<anonymous> ( /navigation-api/navigate-event/event-constructor.html:12:3) |
|
Pass | signal is required | Asserts runPass | assert_throws_js(function "function TypeError() { [native code] }", function "() => { new NavigateEvent("navigate", { navigationType: "push", destination: e.destination, canIntercept: false, userInitiated: false, hashChange: false, formData: null, downloadRequest: null, info: null, sourceElement: null }); }")
at Test.<anonymous> ( /navigation-api/navigate-event/event-constructor.html:30:5) |
|
Fail | all properties are reflected back | assert_equals: expected (object) Element node <a></a> but got (undefined) undefined at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/navigation-api/navigate-event/event-constructor.html:81:5)
at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25)
at Navigation.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2717:32)
at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/navigation-api/navigate-event/event-constructor.html:83:11)
at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25) Asserts runPass | assert_equals("replace", "replace")
at Test.<anonymous> ( /navigation-api/navigate-event/event-constructor.html:71:5) | Pass | assert_equals(object "[object NavigationDestination]", object "[object NavigationDestination]")
at Test.<anonymous> ( /navigation-api/navigate-event/event-constructor.html:72:5) | Pass | assert_equals(true, true)
at Test.<anonymous> ( /navigation-api/navigate-event/event-constructor.html:73:5) | Pass | assert_equals(true, true)
at Test.<anonymous> ( /navigation-api/navigate-event/event-constructor.html:74:5) | Pass | assert_equals(true, true)
at Test.<anonymous> ( /navigation-api/navigate-event/event-constructor.html:75:5) | Pass | assert_equals(object "[object AbortSignal]", object "[object AbortSignal]")
at Test.<anonymous> ( /navigation-api/navigate-event/event-constructor.html:76:5) | Pass | assert_equals(object "[object FormData]", object "[object FormData]")
at Test.<anonymous> ( /navigation-api/navigate-event/event-constructor.html:77:5) | Pass | assert_equals("abc", "abc")
at Test.<anonymous> ( /navigation-api/navigate-event/event-constructor.html:78:5) | Pass | assert_equals(object "[object Object]", object "[object Object]")
at Test.<anonymous> ( /navigation-api/navigate-event/event-constructor.html:79:5) | Pass | assert_equals(true, true)
at Test.<anonymous> ( /navigation-api/navigate-event/event-constructor.html:80:5) | Fail | assert_equals(undefined, Element node <a></a>)
at Test.<anonymous> ( /navigation-api/navigate-event/event-constructor.html:81:5) |
|
Fail | defaults are as expected | assert_equals: expected (object) null but got (undefined) undefined at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/navigation-api/navigate-event/event-constructor.html:101:5)
at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25)
at Navigation.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2717:32)
at Test.<anonymous> (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/navigation-api/navigate-event/event-constructor.html:103:11)
at Test.step (https://xn--n8j6ds53lwwkrqhv28a.wpt.live/resources/testharness.js:2642:25) Asserts runPass | assert_equals("push", "push")
at Test.<anonymous> ( /navigation-api/navigate-event/event-constructor.html:94:5) | Pass | assert_equals(false, false)
at Test.<anonymous> ( /navigation-api/navigate-event/event-constructor.html:95:5) | Pass | assert_equals(false, false)
at Test.<anonymous> ( /navigation-api/navigate-event/event-constructor.html:96:5) | Pass | assert_equals(false, false)
at Test.<anonymous> ( /navigation-api/navigate-event/event-constructor.html:97:5) | Pass | assert_equals(null, null)
at Test.<anonymous> ( /navigation-api/navigate-event/event-constructor.html:98:5) | Pass | assert_equals(null, null)
at Test.<anonymous> ( /navigation-api/navigate-event/event-constructor.html:99:5) | Pass | assert_equals(undefined, undefined)
at Test.<anonymous> ( /navigation-api/navigate-event/event-constructor.html:100:5) | Fail | assert_equals(undefined, null)
at Test.<anonymous> ( /navigation-api/navigate-event/event-constructor.html:101:5) |
|
Pass | hasUAVisualTransition is default false | Asserts runPass | assert_false(false)
at Test.<anonymous> ( /navigation-api/navigate-event/event-constructor.html:113:5) |
|