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
This commit is contained in:
Родитель
4dce39d2c4
Коммит
6442543933
|
@ -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 ===
|
||||
|
|
Загрузка…
Ссылка в новой задаче