diff options
Diffstat (limited to 'testing/web-platform/tests/navigation-api/currententrychange-event/navigation-navigate-replace-cross-doc.html')
-rw-r--r-- | testing/web-platform/tests/navigation-api/currententrychange-event/navigation-navigate-replace-cross-doc.html | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/web-platform/tests/navigation-api/currententrychange-event/navigation-navigate-replace-cross-doc.html b/testing/web-platform/tests/navigation-api/currententrychange-event/navigation-navigate-replace-cross-doc.html new file mode 100644 index 0000000000..ab762c04bc --- /dev/null +++ b/testing/web-platform/tests/navigation-api/currententrychange-event/navigation-navigate-replace-cross-doc.html @@ -0,0 +1,12 @@ +<!doctype html> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<iframe id="i" src="/common/blank.html"></iframe> +<script> +promise_test(async t => { + await new Promise(resolve => window.onload = resolve); + i.contentWindow.navigation.oncurrententrychange = t.unreached_func("currententrychange should not fire for cross-document navigations"); + i.contentWindow.navigation.navigate("/common/blank.html?1", { history: "replace" }); + await new Promise(resolve => i.onload = resolve); +}, "currententrychange does not fire for cross-document navigation.navigate() with replace"); +</script> |