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

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

Issue 2430923005: MediaValuesInitialViewport passed to MediaQueryEvaluator as bool. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaValuesInitialViewport.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/tests/WebFrameTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
index da892f9cf4fb0e3017ee2170a17456c567be7e4f..3787fb643e0c5e3b8677c1250ee7f3d8058ade91 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -2711,6 +2711,14 @@ TEST_P(ParameterizedWebFrameTest, AtViewportInsideAtMediaInitialViewport) {
->frameView()
->layoutSize()
.width());
+
+ webViewHelper.resize(WebSize(1200, 480));
+
+ EXPECT_EQ(1200, webViewHelper.webView()
+ ->mainFrameImpl()
+ ->frameView()
+ ->layoutSize()
+ .width());
}
TEST_P(ParameterizedWebFrameTest, AtViewportAffectingAtMediaRecalcCount) {
« no previous file with comments | « third_party/WebKit/Source/core/css/MediaValuesInitialViewport.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698