org.apache.cordova.test.util.Purity Java Examples

The following examples show how to use org.apache.cordova.test.util.Purity. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: IFrameTest.java    From cordova-amazon-fireos with Apache License 2.0 5 votes vote down vote up
protected void setUp() throws Exception {
  super.setUp();
  mInstr = this.getInstrumentation();
  testActivity = this.getActivity();
  containerView = (FrameLayout) testActivity.findViewById(android.R.id.content);
  innerContainer = (LinearLayout) containerView.getChildAt(0);
  testView = (CordovaWebView) innerContainer.getChildAt(0);
  touch = new TouchUtils();
  touchTool = new Purity(testActivity, getInstrumentation());
}
 
Example #2
Source File: IFrameTest.java    From cordova-android-chromeview with Apache License 2.0 5 votes vote down vote up
protected void setUp() throws Exception {
  super.setUp();
  mInstr = this.getInstrumentation();
  testActivity = this.getActivity();
  containerView = (FrameLayout) testActivity.findViewById(android.R.id.content);
  innerContainer = (LinearLayout) containerView.getChildAt(0);
  testView = (CordovaWebView) innerContainer.getChildAt(0);
  touch = new TouchUtils();
  touchTool = new Purity(testActivity, getInstrumentation());
}
 
Example #3
Source File: JQMTabTest.java    From cordova-android-chromeview with Apache License 2.0 5 votes vote down vote up
protected void setUp() throws Exception {
    super.setUp();
    mInstr = this.getInstrumentation();
    testActivity = this.getActivity();
    containerView = (FrameLayout) testActivity.findViewById(android.R.id.content);
    innerContainer = (LinearLayout) containerView.getChildAt(0);
    testView = (CordovaWebView) innerContainer.getChildAt(0);
    touchTool = new Purity(testActivity, getInstrumentation());
}
 
Example #4
Source File: IFrameTest.java    From crosswalk-cordova-android with Apache License 2.0 5 votes vote down vote up
protected void setUp() throws Exception {
  super.setUp();
  mInstr = this.getInstrumentation();
  testActivity = this.getActivity();
  containerView = (FrameLayout) testActivity.findViewById(android.R.id.content);
  innerContainer = (LinearLayout) containerView.getChildAt(0);
  testView = (CordovaWebView) innerContainer.getChildAt(0);
  touch = new TouchUtils();
  touchTool = new Purity(testActivity, getInstrumentation());
}