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