blob: d55e1f7ae8993a8d4dedc10f1ad904852c4b6f33 [file] [log] [blame]
<!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>