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

Unified Diff: Source/web/tests/WebFrameTest.cpp

Issue 23742003: Use css-device-adapt constraining for legacy viewport tags. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 3 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
« Source/core/dom/ViewportArguments.cpp ('K') | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/tests/WebFrameTest.cpp
diff --git a/Source/web/tests/WebFrameTest.cpp b/Source/web/tests/WebFrameTest.cpp
index 0aff89cd3852d81b7ee3cc3806ee06ecfc121a19..9fa23c70903da1d26cd6a75c838f6b50db0bb7d4 100644
--- a/Source/web/tests/WebFrameTest.cpp
+++ b/Source/web/tests/WebFrameTest.cpp
@@ -371,7 +371,8 @@ TEST_F(WebFrameTest, ChangeInFixedLayoutTriggersTextAutosizingRecalculate)
EXPECT_TRUE(multiplierSetAtLeastOnce);
WebCore::ViewportArguments arguments = document->viewportArguments();
- arguments.width += 10;
+ // Choose a width that's not going match the viewport width of the loaded document.
+ arguments.minWidth = arguments.maxWidth = 100;
webViewImpl()->updatePageDefinedPageScaleConstraints(arguments);
bool multiplierCheckedAtLeastOnce = false;
« Source/core/dom/ViewportArguments.cpp ('K') | « Source/web/WebViewImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698