blob: 82f10006832e16522844cdb7fa0bcf2e6a3a8578 [file] [log] [blame]
<!doctype html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
promise_test(async t => {
appHistory.oncurrentchange = t.unreached_func("currentchange should not fire");
appHistory.onnavigate = e => e.preventDefault();
await promise_rejects_dom(t, "AbortError", appHistory.navigate("#foo").committed);
}, "AppHistoryCurrentChangeEvent does not fire when onnavigate preventDefault() is called");
</script>