summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/dom/events/non-cancelable-when-passive/non-passive-touchstart-event-listener-on-div.html
blob: 2e7c6e6b3b6992c0f1f85c94df9afe092a316277 (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 div</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.getElementById('touchDiv'),
    eventName: 'touchstart',
    passive: false,
    expectCancelable: true,
  });
</script>