diff options
Diffstat (limited to 'testing/web-platform/tests/navigation-api/navigation-history-entry/resources/post-entries-length-to-top.html')
-rw-r--r-- | testing/web-platform/tests/navigation-api/navigation-history-entry/resources/post-entries-length-to-top.html | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/testing/web-platform/tests/navigation-api/navigation-history-entry/resources/post-entries-length-to-top.html b/testing/web-platform/tests/navigation-api/navigation-history-entry/resources/post-entries-length-to-top.html new file mode 100644 index 0000000000..c8fe005d8e --- /dev/null +++ b/testing/web-platform/tests/navigation-api/navigation-history-entry/resources/post-entries-length-to-top.html @@ -0,0 +1,7 @@ +<!doctype html> +<script src="/resources/testharness.js"></script> +<script> +// Wait for after the load event so that the navigation doesn't get converted +// into a replace navigation. +window.onload = () => step_timeout(() => top.postMessage(navigation.entries().length, "*"), 0); +</script> |