Starting to move the history into the CordovaWebView, and getting the WebDriver working again

This commit is contained in:
Joe Bowser
2012-04-23 16:32:59 -07:00
parent 483bb53d9c
commit 99b3693f40
7 changed files with 90 additions and 41 deletions
@@ -14,7 +14,7 @@ public class PhoneGapSplash extends Activity {
setContentView(R.layout.main);
phoneGap = (CordovaWebView) findViewById(R.id.phoneGapView);
//phoneGap.loadUrl("file:///android_asset/index.html", 5000);
phoneGap.loadUrl("file:///android_asset/index.html", 5000);
}
public void onDestroy()
@@ -34,6 +34,8 @@ public class WebDriverTest extends ActivityInstrumentationTestCase2<CordovaDrive
viewHandler = new CordovaWebViewClient(testActivity);
testDriver = new AndroidWebDriver(testActivity, viewFactory, viewHandler, appCode);
testView = (CordovaWebView) testDriver.getWebView();
viewHandler.setWebView(testView);
appCode.setWebView(testView);
}
public void testPreconditions(){