blob: c41ab72bd8c645b12525f2fe9391a0baab0ae228 (
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 touchmove event listener on root</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.documentElement,
eventName: 'touchmove',
passive: false,
expectCancelable: true,
});
</script>
|