Chromium Code Reviews| Index: LayoutTests/compositing/layer-creation/scroll-blocks-on-default.html |
| diff --git a/LayoutTests/compositing/layer-creation/scroll-blocks-on-default.html b/LayoutTests/compositing/layer-creation/scroll-blocks-on-default.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c3f1392f5b255d10961fec49edf873ff8460aeb0 |
| --- /dev/null |
| +++ b/LayoutTests/compositing/layer-creation/scroll-blocks-on-default.html |
| @@ -0,0 +1,23 @@ |
| +<!DOCTYPE html> |
| +<style> |
| +#layer { |
| + transform: translateZ(0); |
| + width: 20px; |
| + height: 20px; |
| +} |
| +</style> |
| +<script> |
| + if (window.testRunner) { |
| + window.testRunner.dumpAsText(); |
| + } |
| + |
| + onload = function() { |
| + var output = document.getElementById('output'); |
| + if (window.internals) |
| + document.getElementById('output').innerText += window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_SCROLL_BLOCKS_ON); |
|
Ian Vollick
2015/01/06 04:13:51
I think you want testRunner.setCustomTextOutput he
Rick Byers
2015/01/08 21:08:11
Cool, thanks. The only downside is now the test d
Ian Vollick
2015/01/09 15:17:33
Yeah, if you do it like the test I agree, but you
|
| + }; |
| +</script> |
| +Verify we get the default scroll-blocks-on mode applied to the viewport, no additional layers created (even with an iframe), and no scroll-blocks-on mode applied to any other layer. |
| +<div id="layer"></div> |
| +<iframe srcdoc="<div style='width: 15px;'></div>"></iframe> |
| +<pre id="output"></pre> |