blob: 747044b60f7baac2d792cbafeec02a18e1d80780 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
<!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 => {
navigation.onnavigate = e => e.preventDefault();
await assertBothRejectDOM(t, navigation.reload(), "AbortError");
}, "reload() when the onnavigate handler calls preventDefault()");
</script>
|