mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Fix Android tests for touch events
Summary: Updates Android tests to pass the tests [failing on CircleCI](https://app.circleci.com/pipelines/github/facebook/react-native/8047/workflows/50c356d0-f9a4-4909-b4e7-cad3b4bb6c57/jobs/188224/steps). Changelog: [Internal] Reviewed By: mdvacca Differential Revision: D26368501 fbshipit-source-id: 61d4fdbc22cec2e397e365e415a08dbbc01cef09
This commit is contained in:
committed by
Facebook GitHub Bot
parent
a8b5b63d4e
commit
5ca832b4aa
@@ -111,6 +111,7 @@ public class RootViewTest {
|
||||
|
||||
ReactRootView rootView = new ReactRootView(mReactContext);
|
||||
rootView.setId(rootViewId);
|
||||
rootView.setRootViewTag(rootViewId);
|
||||
rootView.startReactApplication(instanceManager, "");
|
||||
rootView.simulateAttachForTesting();
|
||||
|
||||
@@ -149,7 +150,9 @@ public class RootViewTest {
|
||||
"timestamp",
|
||||
(double) ts,
|
||||
"identifier",
|
||||
0.));
|
||||
0.,
|
||||
"targetSurface",
|
||||
rootViewId));
|
||||
|
||||
// Test ACTION_UP event
|
||||
reset(eventEmitterModuleMock, eventDispatcher);
|
||||
@@ -185,7 +188,9 @@ public class RootViewTest {
|
||||
"timestamp",
|
||||
(double) ts,
|
||||
"identifier",
|
||||
0.));
|
||||
0.,
|
||||
"targetSurface",
|
||||
rootViewId));
|
||||
|
||||
// Test other action
|
||||
reset(eventDispatcher);
|
||||
|
||||
Reference in New Issue
Block a user