From af4282940436e81095804dc1729784d2413461aa Mon Sep 17 00:00:00 2001 From: "Andrew Chen (Eng)" Date: Tue, 20 Mar 2018 00:58:18 -0700 Subject: [PATCH] Fix TextRenderingTestCase Reviewed By: mdvacca Differential Revision: D7330681 fbshipit-source-id: 5dd2a60382d01fb841f16851a9b2027e2b08e748 --- .../com/facebook/react/testing/ReactInstrumentationTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactInstrumentationTest.java b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactInstrumentationTest.java index 849254353..754439515 100644 --- a/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactInstrumentationTest.java +++ b/ReactAndroid/src/androidTest/java/com/facebook/react/testing/ReactInstrumentationTest.java @@ -11,6 +11,7 @@ import android.content.Intent; import android.test.ActivityInstrumentationTestCase2; import android.view.View; import android.view.ViewGroup; +import com.facebook.react.bridge.JavaScriptModule; import com.facebook.react.bridge.ReactContext; import com.facebook.react.testing.fabric.FabricTestModule; import com.facebook.react.testing.idledetection.IdleWaiter; @@ -107,6 +108,10 @@ public abstract class ReactInstrumentationTest extends return false; } + protected T getJSModule(Class jsInterface) { + return getReactContext().getJSModule(jsInterface); + } + /** * Override this method to provide extra native modules to be loaded before the app starts */