Set a size of the root view before running test

Reviewed By: astreet

Differential Revision: D3352500

fbshipit-source-id: e6bb81601448a08fa216865b5b92f8739646fc05
This commit is contained in:
Emil Sjolander 2016-05-26 06:57:35 -07:00 committed by Facebook Github Bot 7
parent 45636ed7f4
commit 0bbfe79623
1 changed files with 2 additions and 0 deletions

View File

@ -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";