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

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

Issue 190723007: Fix tests to be compatible with Android scale initialization. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove substantive change, change only tests Created 6 years, 7 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 | « Source/web/tests/TouchActionTest.cpp ('k') | Source/web/tests/WebViewTest.cpp » ('j') | 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 4d4473ef76772ec5ff154a112d44b6b8664c9adf..aea50cc6e42b7ef5c439679e625a94f4f36614c0 100644
--- a/Source/web/tests/WebFrameTest.cpp
+++ b/Source/web/tests/WebFrameTest.cpp
@@ -1591,20 +1591,6 @@ TEST_F(WebFrameTest, setPageScaleFactorWithOverlayScrollbarsDoesNotLayout)
}
-TEST_F(WebFrameTest, setPageScaleFactorBeforeFrameHasView)
-{
- registerMockedHttpURLLoad("fixed_layout.html");
-
- float pageScaleFactor = 3;
- FrameTestHelpers::WebViewHelper webViewHelper;
- webViewHelper.initializeAndLoad("about:html", true, 0, 0);
- webViewHelper.webView()->setPageScaleFactor(pageScaleFactor);
-
- FrameTestHelpers::loadFrame(webViewHelper.webView()->mainFrame(), m_baseURL + "fixed_layout.html");
- WebCore::FrameView* view = webViewHelper.webViewImpl()->mainFrameImpl()->frameView();
- EXPECT_EQ(pageScaleFactor, view->visibleContentScaleFactor());
-}
-
TEST_F(WebFrameTest, pageScaleFactorWrittenToHistoryItem)
{
UseMockScrollbarSettings mockScrollbarSettings;
@@ -2176,6 +2162,7 @@ TEST_F(WebFrameTest, updateOverlayScrollbarLayers)
FrameTestHelpers::WebViewHelper webViewHelper;
webViewHelper.initialize(true, 0, fakeCompositingWebViewClient.get(), &configueCompositingWebView);
+ webViewHelper.webView()->setPageScaleFactorLimits(1, 1);
webViewHelper.webView()->resize(WebSize(viewWidth, viewHeight));
FrameTestHelpers::loadFrame(webViewHelper.webView()->mainFrame(), m_baseURL + "large-div.html");
« no previous file with comments | « Source/web/tests/TouchActionTest.cpp ('k') | Source/web/tests/WebViewTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698