Chromium Code Reviews| Index: Source/web/tests/WebViewTest.cpp |
| diff --git a/Source/web/tests/WebViewTest.cpp b/Source/web/tests/WebViewTest.cpp |
| index 6b78e957be83451e0436d406b9e88ac0067071eb..dbd193aec2fe1a3bfbc90179490d28f5deb47de6 100644 |
| --- a/Source/web/tests/WebViewTest.cpp |
| +++ b/Source/web/tests/WebViewTest.cpp |
| @@ -2349,6 +2349,12 @@ TEST_F(WebViewTest, PreferredSize) |
| EXPECT_EQ(200, size.width); |
| EXPECT_EQ(200, size.height); |
| + // Verify that both width and height are rounded |
| + webView->setZoomLevel(WebView::zoomFactorToZoomLevel(0.9995)); |
|
leviw_travelin_and_unemployed
2015/05/20 22:05:06
Can we get some more test cases? 1.0005 maybe?
|
| + size = webView->contentsPreferredMinimumSize(); |
| + EXPECT_EQ(100, size.width); |
| + EXPECT_EQ(100, size.height); |
| + |
| url = m_baseURL + "specify_size.html?1.5px:1.5px"; |
| URLTestHelpers::registerMockedURLLoad(toKURL(url), "specify_size.html"); |
| webView = m_webViewHelper.initializeAndLoad(url, true); |