Index: third_party/WebKit/LayoutTests/fast/repaint/destroy-overlay-scrollbar.html |
diff --git a/third_party/WebKit/LayoutTests/fast/repaint/destroy-scrollbar.html b/third_party/WebKit/LayoutTests/fast/repaint/destroy-overlay-scrollbar.html |
similarity index 62% |
copy from third_party/WebKit/LayoutTests/fast/repaint/destroy-scrollbar.html |
copy to third_party/WebKit/LayoutTests/fast/repaint/destroy-overlay-scrollbar.html |
index c930527a1384f9a1a863640f16abb32fbc7ec5e6..64dce5c58fa47cb63e59c1775a1ebe2323c0f07a 100644 |
--- a/third_party/WebKit/LayoutTests/fast/repaint/destroy-scrollbar.html |
+++ b/third_party/WebKit/LayoutTests/fast/repaint/destroy-overlay-scrollbar.html |
@@ -1,12 +1,16 @@ |
<!DOCTYPE html> |
<script src="resources/text-based-repaint.js"></script> |
<script> |
+if (window.internals) { |
+ internals.settings.setOverlayScrollbarsEnabled(true); |
+ internals.settings.setMockScrollbarsEnabled(true); |
+} |
function repaintTest() { |
document.getElementById('content').style.height = '100px'; |
} |
onload = runRepaintTest; |
</script> |
-Tests invalidation when a scrollbar is destroyed. Passes if there is no scrollbar. |
+Tests invalidation when an overlay scrollbar is destroyed. Passes if there is no scrollbar. |
<div style="position: absolute; top: 100px; left: 0; width: 200px; height: 200px; overflow: auto"> |
<div id="content" style="width: 100px; height: 400px"></div> |
</div> |