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

Unified Diff: third_party/WebKit/LayoutTests/fast/scrolling/hide-scrollbars.html

Issue 2339873002: Replace hide-scrollbars flag with a web setting. (Closed)
Patch Set: replace viewport test b/c overlay bars are hidden in layout tests. Created 4 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
Index: third_party/WebKit/LayoutTests/fast/scrolling/hide-scrollbars.html
diff --git a/third_party/WebKit/LayoutTests/fast/scrolling/hide-scrollbars.html b/third_party/WebKit/LayoutTests/fast/scrolling/hide-scrollbars.html
index afdbac3a47832dafb0cd73a43e7c212f079443d2..e848af3aaee55083c18db981341cc4f26f85ad33 100644
--- a/third_party/WebKit/LayoutTests/fast/scrolling/hide-scrollbars.html
+++ b/third_party/WebKit/LayoutTests/fast/scrolling/hide-scrollbars.html
@@ -20,16 +20,13 @@ html, body {
<script>
if (window.internals) {
testRunner.dumpAsTextWithPixelResults();
- internals.settings.setOverlayScrollbarsEnabled(true);
- internals.settings.setMockScrollbarsEnabled(true);
- internals.runtimeFlags.hideScrollbarsEnabled = true;
+ internals.settings.setHideScrollbars(true);
}
</script>
</head>
<body>
<p>You should see 4 green boxes that do not show scrollbars.
-The first two boxes would show overlay scrollbars if they weren't
-hidden (second one with a scrollbar on the left).</p>
+They would show scrollbars if they weren't hidden (2nd and 4th with scrollbars on the left).</p>
<div class="container"><div class="box"></div></div>
<div dir="rtl" class="container"><div class="box"></div></div>

Powered by Google App Engine
This is Rietveld 408576698