Source code
Revision control
Copy as Markdown
Other Tools
Test Info: Warnings
- This test has a WPT meta file that expects 1 subtest issues.
- This WPT test may be referenced by the following Test IDs:
- /navigation-api/navigate-event/navigate-history-traversal-during-onnavigate-should-reject.html - WPT Dashboard Interop Dashboard
<!doctype html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src=/resources/testdriver.js></script>
<script src=/resources/testdriver-vendor.js></script>
<script>
promise_test(async t => {
let w = window.open("/common/blank.html");
await new Promise(resolve => w.onload = resolve);
await test_driver.bless("navigate", async function() {
w.navigation.navigate("resources/navigate-during-onnavigate-should-reject-helper.html");
});
await new Promise(resolve => onmessage = resolve);
w.postMessage("start", "*");
await new Promise(resolve => onmessage = resolve);
w.close();
}, "Test that await navigation.back().finished during onnavigate should reject");
</script>