From 0bbfe79623c97d349586266885b5af58137d771f Mon Sep 17 00:00:00 2001 From: Emil Sjolander Date: Thu, 26 May 2016 06:57:35 -0700 Subject: [PATCH] Set a size of the root view before running test Reviewed By: astreet Differential Revision: D3352500 fbshipit-source-id: e6bb81601448a08fa216865b5b92f8739646fc05 --- .../java/com/facebook/react/views/textinput/TextInputTest.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ReactAndroid/src/test/java/com/facebook/react/views/textinput/TextInputTest.java b/ReactAndroid/src/test/java/com/facebook/react/views/textinput/TextInputTest.java index cd5243bef..97fb0c3f5 100644 --- a/ReactAndroid/src/test/java/com/facebook/react/views/textinput/TextInputTest.java +++ b/ReactAndroid/src/test/java/com/facebook/react/views/textinput/TextInputTest.java @@ -90,6 +90,7 @@ public class TextInputTest { UIManagerModule uiManager = getUIManagerModule(); ReactRootView rootView = new ReactRootView(RuntimeEnvironment.application); + rootView.setLayoutParams(new ReactRootView.LayoutParams(100, 100)); int rootTag = uiManager.addMeasuredRootView(rootView); int textInputTag = rootTag + 1; final String hintStr = "placeholder text"; @@ -123,6 +124,7 @@ public class TextInputTest { UIManagerModule uiManager = getUIManagerModule(); ReactRootView rootView = new ReactRootView(RuntimeEnvironment.application); + rootView.setLayoutParams(new ReactRootView.LayoutParams(100, 100)); int rootTag = uiManager.addMeasuredRootView(rootView); int textInputTag = rootTag + 1; final String hintStr = "placeholder text";