blob: 25d6a1ec4ce255d4bc37e13a5c48595013a12c5b [file] [log] [blame]
<!doctype html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
promise_test(async t => {
appHistory.onnavigate = e => e.preventDefault();
await promise_rejects_dom(t, 'AbortError', appHistory.navigate("#"));
}, "navigate() promise rejects when the navigation is aborted");
</script>