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

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

Issue 2257743002: Restore user state on ReloadwithoutSubResourceCacheRevalidation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing Torne's comments at #37 Created 4 years, 4 months 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/AwSettingsTest.java
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java b/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java
index ed6ca7182f7d40d918fb2ac9c65a145a6b3c0eae..162ef9ed28cd6d79de57f44fcc1deda538f42e8e 100644
--- a/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java
+++ b/android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java
@@ -1350,15 +1350,20 @@ public class AwSettingsTest extends AwTestBase {
}
private String getData() {
+ // Add a sequence number as a comment to ensure WebView does not do
+ // something special for the same page load, for instance, restoring
+ // user state like a scroll position.
return "<html><head>"
+ (mWithViewPortTag ? "<meta name='viewport' content='width=3000' />" : "")
- + "</head>"
- + "<body></body></html>";
+ + "</head><body><!-- "
+ + mDataSequence++
+ + " --></body></html>";
}
private final boolean mWithViewPortTag;
private boolean mExpectScaleChange;
private int mOnScaleChangedCallCount;
+ private int mDataSequence;
}
class AwSettingsForceZeroLayoutHeightTestHelper extends AwSettingsTestHelper<Boolean> {
@@ -2653,6 +2658,7 @@ public class AwSettingsTest extends AwTestBase {
views.getContainer1(), views.getClient1()));
}
+ // TODO(crbug.com/642636): This test does not work on Android M and laters.
Takashi Toyoshima 2016/09/05 12:53:58 I'd remove this TODO in the next patch set because
@SmallTest
@Feature({"AndroidWebView", "Preferences"})
public void testLoadWithOverviewModeWithTwoViews() throws Throwable {
@@ -2664,6 +2670,7 @@ public class AwSettingsTest extends AwTestBase {
views.getContainer1(), views.getClient1(), false));
}
+ // TODO(crbug.com/642636): This test does not work on Android M and laters.
@SmallTest
@Feature({"AndroidWebView", "Preferences"})
public void testLoadWithOverviewModeViewportTagWithTwoViews() throws Throwable {
« no previous file with comments | « no previous file | content/child/runtime_features.cc » ('j') | third_party/WebKit/Source/platform/RuntimeEnabledFeatures.in » ('J')

Powered by Google App Engine
This is Rietveld 408576698