Index: third_party/WebKit/Source/web/tests/TopControlsTest.cpp |
diff --git a/third_party/WebKit/Source/web/tests/TopControlsTest.cpp b/third_party/WebKit/Source/web/tests/TopControlsTest.cpp |
index 5ed7c95296884dff751058108392aaca81f6ffd0..c7b5ff4ed60b7644a4e46b7ac87e943b91966c67 100644 |
--- a/third_party/WebKit/Source/web/tests/TopControlsTest.cpp |
+++ b/third_party/WebKit/Source/web/tests/TopControlsTest.cpp |
@@ -72,6 +72,8 @@ public: |
WebViewImpl* initialize(const std::string& pageName = "large-div.html") |
{ |
+ RuntimeEnabledFeatures::setInertTopControlsEnabled(true); |
+ |
// Load a page with large body and set viewport size to 400x400 to ensure |
// main frame is scrollable. |
m_helper.initializeAndLoad(m_baseURL + pageName, true, 0, 0, &configureSettings); |