mirror of
https://github.com/apache/cordova-android.git
synced 2026-05-30 00:00:04 +08:00
Starting to move the history into the CordovaWebView, and getting the WebDriver working again
This commit is contained in:
@@ -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(){
|
||||
|
||||
Reference in New Issue
Block a user