summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/dom/events/non-cancelable-when-passive/non-passive-touchstart-event-listener-on-body.html
blob: f6e6ecb06d9c557a55a2ee026adf050cac189fea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<!DOCTYPE html>
<title>non-passive touchstart event listener on body</title>
<link rel="help" href="https://w3c.github.io/touch-events/#cancelability">
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-actions.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script src="resources/wait-for.js"></script>
<script src="resources/touching.js"></script>
<style>
#touchDiv {
  width: 100px;
  height: 100px;
}
</style>
<div id="touchDiv"></div>
<script>
  document.body.onload = () => runTest({
    target: document.body,
    eventName: 'touchstart',
    passive: false,
    expectCancelable: true,
  });
</script>