blob: 35cea7de4f268ba6d82923b33186f73f86fc547f (
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<!DOCTYPE HTML>
<html>
<!--
https://bugzilla.mozilla.org/show_bug.cgi?id=1714934
-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Test for Bug 1714934</title>
<script src="/tests/SimpleTest/paint_listener.js"></script>
<script src="/tests/SimpleTest/EventUtils.js"></script>
<script type="application/javascript" src="apz_test_native_event_utils.js"></script>
<script type="application/javascript" src="apz_test_utils.js"></script>
<style>
iframe {
margin-top: 1000px;
}
</style>
</head>
<body>
<script type="application/javascript">
async function test() {
let mousedownPromise = new Promise(resolve => {
document.addEventListener("mousedown", e => {
is(e.buttons, 1, "Mousedown event reports 1 button pressed")
resolve();
}, { once: true })
});
await synthesizeNativeTap(window, 100, 100);
await mousedownPromise;
}
waitUntilApzStable()
.then(test)
.then(subtestDone, subtestFailed);
</script>
</body>
</html>
|