29 lines
907 B
HTML
29 lines
907 B
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
</head>
|
|
<body>
|
|
<script src="../../resources/testharness.js"></script>
|
|
<script src="../../resources/testharnessreport.js"></script>
|
|
<script src="../utils.js"></script>
|
|
<script>
|
|
'use strict';
|
|
|
|
target_test((target, test) => {
|
|
const eventTracker = new EventTracker(target, ["pointerdown", "pointerup", "dblclick"]);
|
|
ui.doubleTap({ x: 50, y: 50 }).then(() => {
|
|
eventTracker.assertMatchesEvents([
|
|
{ type: "pointerdown" },
|
|
{ type: "pointerup" },
|
|
{ type: "pointerdown" },
|
|
{ type: "pointerup" },
|
|
{ type: "dblclick" }
|
|
]);
|
|
test.done();
|
|
});
|
|
}, "Verifies that two pairs of pointerup and pointerdown events are dispatched in an element with a dblclick event handler.");
|
|
</script>
|
|
</body>
|
|
</html> |