summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/navigation-api/navigation-methods/return-value/traverseTo-invalid-key.html
blob: 42be40bfa7679b44b1af1fb935f1925e79942ae3 (plain)
1
2
3
4
5
6
7
8
9
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.traverseTo("not a real key"), "InvalidStateError");
}, "traverseTo() with invalid key");
</script>