diff options
Diffstat (limited to 'testing/web-platform/tests/navigation-api/navigation-methods/return-value/navigate-file-url.html')
-rw-r--r-- | testing/web-platform/tests/navigation-api/navigation-methods/return-value/navigate-file-url.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testing/web-platform/tests/navigation-api/navigation-methods/return-value/navigate-file-url.html b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/navigate-file-url.html new file mode 100644 index 0000000000..138f6ffc12 --- /dev/null +++ b/testing/web-platform/tests/navigation-api/navigation-methods/return-value/navigate-file-url.html @@ -0,0 +1,10 @@ +<!doctype html> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> +<script src="resources/helpers.js"></script> + +<script> +promise_test(async t => { + await assertBothRejectDOM(t, navigation.navigate("file://"), "AbortError"); +}, "navigate() to a file: URL"); +</script> |