mirror of
https://github.com/apache/cordova-android.git
synced 2026-04-23 00:00:09 +08:00
Merge branch 'master' into 4.0.x (unit test tweaks)
Conflicts: framework/src/org/apache/cordova/CordovaWebView.java
This commit is contained in:
+2
-2
@@ -1,9 +1,9 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="src" path="gen"/>
|
||||
<classpathentry kind="con" path="com.android.ide.eclipse.adt.ANDROID_FRAMEWORK"/>
|
||||
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.LIBRARIES"/>
|
||||
<classpathentry exported="true" kind="con" path="com.android.ide.eclipse.adt.DEPENDENCIES"/>
|
||||
<classpathentry kind="src" path="src"/>
|
||||
<classpathentry kind="src" path="gen"/>
|
||||
<classpathentry kind="output" path="bin/classes"/>
|
||||
</classpath>
|
||||
|
||||
@@ -76,7 +76,7 @@ public class BackButtonMultiPageTest extends ActivityInstrumentationTestCase2<ba
|
||||
public void run()
|
||||
{
|
||||
String url = testView.getUrl();
|
||||
assertTrue(url.endsWith("sample2.html"));
|
||||
assertEquals("file:///android_asset/www/backbuttonmultipage/sample2.html", url);
|
||||
testView.sendJavascript("window.location = 'sample3.html';"); }
|
||||
});
|
||||
|
||||
@@ -85,8 +85,10 @@ public class BackButtonMultiPageTest extends ActivityInstrumentationTestCase2<ba
|
||||
public void run()
|
||||
{
|
||||
String url = testView.getUrl();
|
||||
assertTrue(url.endsWith("sample3.html"));
|
||||
testView.backHistory();
|
||||
assertEquals("file:///android_asset/www/backbuttonmultipage/sample3.html", url);
|
||||
testView.printBackForwardList();
|
||||
assertTrue(testView.backHistory());
|
||||
testView.printBackForwardList();
|
||||
}
|
||||
});
|
||||
sleep();
|
||||
@@ -94,8 +96,8 @@ public class BackButtonMultiPageTest extends ActivityInstrumentationTestCase2<ba
|
||||
public void run()
|
||||
{
|
||||
String url = testView.getUrl();
|
||||
assertTrue(url.endsWith("sample2.html"));
|
||||
testView.backHistory();
|
||||
assertEquals("file:///android_asset/www/backbuttonmultipage/sample2.html", url);
|
||||
assertTrue(testView.backHistory());
|
||||
}
|
||||
});
|
||||
sleep();
|
||||
@@ -103,7 +105,7 @@ public class BackButtonMultiPageTest extends ActivityInstrumentationTestCase2<ba
|
||||
public void run()
|
||||
{
|
||||
String url = testView.getUrl();
|
||||
assertTrue(url.endsWith("index.html"));
|
||||
assertEquals("file:///android_asset/www/backbuttonmultipage/index.html", url);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -63,7 +63,7 @@ public class ErrorUrlTest extends ActivityInstrumentationTestCase2<errorurl> {
|
||||
String good_url = "file:///android_asset/www/htmlnotfound/error.html";
|
||||
String url = testView.getUrl();
|
||||
assertNotNull(url);
|
||||
assertTrue(url.equals(good_url));
|
||||
assertEquals(good_url, url);
|
||||
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user