summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/navigation-api/navigate-event/defaultPrevented-window-stop-after-dispatch.html
blob: da5de10ddd8ba5753265f7a2b2448915e31cd257 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<!doctype html>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script>
async_test(t => {
  window.onload = t.step_func_done(() => {
    let navigateEvent;
    navigation.onnavigate = e => navigateEvent = e;
    navigation.navigate("?1");
    assert_false(navigateEvent.defaultPrevented);

    window.stop();
    assert_false(navigateEvent.defaultPrevented);
  });
}, "window.stop() doesn't affect navigateEvent.defaultPrevented after dispatch");
</script>