diff options
Diffstat (limited to 'testing/web-platform/tests/navigation-api/updateCurrentEntry-method/no-args.html')
-rw-r--r-- | testing/web-platform/tests/navigation-api/updateCurrentEntry-method/no-args.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/testing/web-platform/tests/navigation-api/updateCurrentEntry-method/no-args.html b/testing/web-platform/tests/navigation-api/updateCurrentEntry-method/no-args.html new file mode 100644 index 0000000000..3fd011e3d3 --- /dev/null +++ b/testing/web-platform/tests/navigation-api/updateCurrentEntry-method/no-args.html @@ -0,0 +1,15 @@ +<!doctype html> +<script src="/resources/testharness.js"></script> +<script src="/resources/testharnessreport.js"></script> + +<script> +test(() => { + assert_throws_js(TypeError, () => { + navigation.updateCurrentEntry(); + }, "no args"); + + assert_throws_js(TypeError, () => { + navigation.updateCurrentEntry({}); + }, "empty dictionary"); +}, "updateCurrentEntry() must throw if state is not given"); +</script> |