blob: 6c3221c429abfe8e1fb0418cd7e7bef95cbffc36 [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) => {
target.style.touchAction = "none";
const eventTracker = new EventTracker(target, ["pointerleave"]);
const one = ui.finger();
ui.sequence([
one.begin({ x: 10, y: 10 }),
one.end(),
]).then(() => {
eventTracker.assertMatchesEvents([
{ id: 1, type: "pointerleave", x: 10, y: 10 }
]);
test.done();
});
}, "Listening to a pointerleave event alone dispatches the event.");
</script>
</body>
</html>