Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1266)

Unified Diff: android_webview/javatests/src/org/chromium/android_webview/test/SaveRestoreStateTest.java

Issue 11428070: Some required fixes for HTMLViewer rotate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Call onResume in onAttachedToWindow, instead of LoadIfNecessary directly. Created 8 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: android_webview/javatests/src/org/chromium/android_webview/test/SaveRestoreStateTest.java
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/SaveRestoreStateTest.java b/android_webview/javatests/src/org/chromium/android_webview/test/SaveRestoreStateTest.java
index 3ce87330ec067cf7fc3c9ffb12182b60594e9528..74aa08e9d27db0a4818334dd5c9cc739af436062 100644
--- a/android_webview/javatests/src/org/chromium/android_webview/test/SaveRestoreStateTest.java
+++ b/android_webview/javatests/src/org/chromium/android_webview/test/SaveRestoreStateTest.java
@@ -148,6 +148,19 @@ public class SaveRestoreStateTest extends AndroidWebViewTestBase {
@SmallTest
@Feature({"AndroidWebView"})
+ public void testSaveRestoreStateWithUpdatedTitle() throws Throwable {
+ setServerResponseAndLoad(mVars, 1);
+ final TestVars restoredVars = saveAndRestoreStateOnUiThread(mVars);
+ assertTrue(pollOnUiThread(new Callable<Boolean>() {
+ @Override
+ public Boolean call() throws Exception {
+ return TITLES[0].equals(restoredVars.contentsClient.getUpdatedTitle());
+ }
+ }));
+ }
+
+ @SmallTest
+ @Feature({"AndroidWebView"})
public void testSaveRestoreStateWithHistoryItemList() throws Throwable {
setServerResponseAndLoad(mVars, NUM_NAVIGATIONS);
TestVars restoredVars = saveAndRestoreStateOnUiThread(mVars);

Powered by Google App Engine
This is Rietveld 408576698