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