Chromium Code Reviews| Index: third_party/WebKit/LayoutTests/fast/block/float/float-change-composited-scrolling.html |
| diff --git a/third_party/WebKit/LayoutTests/fast/block/float/float-change-composited-scrolling.html b/third_party/WebKit/LayoutTests/fast/block/float/float-change-composited-scrolling.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..894818e31ba3c1bbfe2539e23b46d5bf492172b6 |
| --- /dev/null |
| +++ b/third_party/WebKit/LayoutTests/fast/block/float/float-change-composited-scrolling.html |
| @@ -0,0 +1,29 @@ |
| +<!DOCTYPE html> |
| +<script src="../../../resources/run-after-layout-and-paint.js"></script> |
| +<script> |
| +if (window.internals) { |
| + internals.settings.setPreferCompositingToLCDTextEnabled(true); |
| + internals.settings.setMockScrollbarsEnabled(true); |
| + internals.settings.setOverlayScrollbarsEnabled(true); |
| +} |
| + |
| +if (window.testRunner) |
| + testRunner.waitUntilDone(); |
| + |
| +runAfterLayoutAndPaint(function() { |
| + document.getElementById('content').style.height = '250px'; |
| + runAfterLayoutAndPaint(function() { |
| + document.getElementById('content').style.height = '150px'; |
| + if (window.testRunner) |
|
wkorman
2016/02/02 22:02:35
I think you can just pass true as a second param t
Xianzhu
2016/02/02 22:47:12
Done.
Actually there was a syntax error here. Add
|
| + testRunner.notifyDone(); |
| + }; |
| +}); |
| +</script> |
| + |
| +Tests a float changes using composited scrolling. Passes if the green square is always visible.<p> |
| +To test manually, use command line switches --enable-prefer-compositing-to-lcd-text --enable-overlay-scrollbar |
| +<div style="height: 200px"> |
| + <div style="float: left; width: 300px; height: 100%; overflow: auto; background-color: green"> |
| + <div id="content" style="height: 150px"></div> |
| + </div> |
| +</div> |