From 6442543933505092bd198686723f479a6a7a0ba1 Mon Sep 17 00:00:00 2001 From: Vincent Riemer Date: Tue, 16 Aug 2022 12:02:19 -0700 Subject: [PATCH] Fix nohover pointerevent attributes test MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- .../PointerEventAttributesNoHoverPointers.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/rn-tester/js/examples/Experimental/W3CPointerEventPlatformTests/PointerEventAttributesNoHoverPointers.js b/packages/rn-tester/js/examples/Experimental/W3CPointerEventPlatformTests/PointerEventAttributesNoHoverPointers.js index dccd815c6e56b3..ccacb0f9468005 100644 --- a/packages/rn-tester/js/examples/Experimental/W3CPointerEventPlatformTests/PointerEventAttributesNoHoverPointers.js +++ b/packages/rn-tester/js/examples/Experimental/W3CPointerEventPlatformTests/PointerEventAttributesNoHoverPointers.js @@ -24,7 +24,6 @@ import {check_PointerEvent, useTestEventHandler} from './PointerEventSupport'; const eventList = [ 'pointerOver', 'pointerEnter', - 'pointerMove', 'pointerDown', 'pointerUp', 'pointerOut', @@ -151,7 +150,7 @@ function PointerEventAttributesNoHoverPointersTestCase( eventType, {x: pageX, y: pageY, width, height}, '', - 'mouse', + 'touch', ); if ( Object.keys(detected_eventTypesRef.current).length === @@ -176,7 +175,7 @@ function PointerEventAttributesNoHoverPointersTestCase( eventType, {x: pageX, y: pageY, width, height}, 'Inner frame ', - 'mouse', + 'touch', ); if ( Object.keys(detected_eventTypesRef.current).length ===