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

Unified Diff: LayoutTests/compositing/layer-creation/scroll-blocks-on-default.html

Issue 784453003: Initial scroll-blocks-on compositor integration (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove unneeded TODO Created 6 years 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: 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>

Powered by Google App Engine
This is Rietveld 408576698