Skip to content
This repository has been archived by the owner on Feb 25, 2025. It is now read-only.

Commit

Permalink
Fix pointer_binding test for new anchor point in the DOM.
Browse files Browse the repository at this point in the history
  • Loading branch information
ditman committed Dec 2, 2022
1 parent 2a55add commit bd133fa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/web_ui/test/engine/pointer_binding_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,8 @@ void testMain() {
expect(event.buttons, equals(1));
expect(event.client.x, equals(100));
expect(event.client.y, equals(101));
expect(event.offset.x, equals(100));
expect(event.offset.y, equals(101));

event = expectCorrectType(
context.mouseDown(clientX: 110, clientY: 111, button: 2, buttons: 2));
Expand Down Expand Up @@ -2249,7 +2251,7 @@ void testMain() {
packets.clear();

// Move outside the glasspane.
domWindow.dispatchEvent(context.primaryMove(
glassPane.dispatchEvent(context.primaryMove(
clientX: 900.0,
clientY: 1900.0,
));
Expand Down Expand Up @@ -3107,6 +3109,7 @@ class _MouseEventContext extends _BasicEventContext
final List<dynamic> eventArgs = <dynamic>[
type,
<String, dynamic>{
'bubbles': true,
'buttons': buttons,
'button': button,
'clientX': clientX,
Expand Down

0 comments on commit bd133fa

Please sign in to comment.