Skip to content

Commit 6442543

Browse files
vincentriemerfacebook-github-bot
authored andcommitted
Fix nohover pointerevent attributes test
Summary: Changelog: [RNTester][Internal] nohover pointerevent attributes platform test fixes In implementing full support of nohover pointerevents I discovered a couple issues with my initial port of the web platform test — specifically I forgot to update the calls to `checkPointerEventAttributes` to be "touch" instead of "mouse" and I had forgotten to remove the `pointerMove` event from the expected pointer event order. Reviewed By: lunaleaps Differential Revision: D38718994 fbshipit-source-id: d189a4b5cf3042c9f493ac876062f4f60219ae2b
1 parent 4dce39d commit 6442543

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/rn-tester/js/examples/Experimental/W3CPointerEventPlatformTests/PointerEventAttributesNoHoverPointers.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import {check_PointerEvent, useTestEventHandler} from './PointerEventSupport';
2424
const eventList = [
2525
'pointerOver',
2626
'pointerEnter',
27-
'pointerMove',
2827
'pointerDown',
2928
'pointerUp',
3029
'pointerOut',
@@ -151,7 +150,7 @@ function PointerEventAttributesNoHoverPointersTestCase(
151150
eventType,
152151
{x: pageX, y: pageY, width, height},
153152
'',
154-
'mouse',
153+
'touch',
155154
);
156155
if (
157156
Object.keys(detected_eventTypesRef.current).length ===
@@ -176,7 +175,7 @@ function PointerEventAttributesNoHoverPointersTestCase(
176175
eventType,
177176
{x: pageX, y: pageY, width, height},
178177
'Inner frame ',
179-
'mouse',
178+
'touch',
180179
);
181180
if (
182181
Object.keys(detected_eventTypesRef.current).length ===

0 commit comments

Comments
 (0)