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

Unified Diff: LayoutTests/fast/dom/CompositorProxy/proxy-forces-layer.html

Issue 1153023002: layout-tests: Add flag for including compositingReasons in layerTreeAsText(). (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 years, 7 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
« no previous file with comments | « no previous file | Source/core/testing/Internals.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/dom/CompositorProxy/proxy-forces-layer.html
diff --git a/LayoutTests/fast/dom/CompositorProxy/proxy-forces-layer.html b/LayoutTests/fast/dom/CompositorProxy/proxy-forces-layer.html
index 4ecbf97fc7f542c0eeca61f1f566935de83c4aeb..254bf74871619cba0f852e3ce85771b7a93691e2 100644
--- a/LayoutTests/fast/dom/CompositorProxy/proxy-forces-layer.html
+++ b/LayoutTests/fast/dom/CompositorProxy/proxy-forces-layer.html
@@ -15,9 +15,10 @@ async_test(function(test) {
// Creating a proxy should force the container to have a layer.
var proxy = new CompositorProxy(container, ['opacity']);
- docLayer = JSON.parse(window.internals.layerTreeAsText(document));
+ docLayer = JSON.parse(window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_COMPOSITING_REASONS));
assert_equals(1, docLayer.children.length);
assert_equals(1, docLayer.children[0].children.length);
+ assert_in_array('compositorProxy', docLayer.children[0].children[0].compositingReasons);
// Detach the element from the document. The corresponding layer should be removed.
container.parentNode.removeChild(container);
@@ -27,9 +28,10 @@ async_test(function(test) {
// Add the element back to the document. The corresponding layer should reappear.
document.body.appendChild(container);
- docLayer = JSON.parse(window.internals.layerTreeAsText(document));
+ docLayer = JSON.parse(window.internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_COMPOSITING_REASONS));
assert_equals(1, docLayer.children.length);
assert_equals(1, docLayer.children[0].children.length);
+ assert_in_array('compositorProxy', docLayer.children[0].children[0].compositingReasons);
// Disconnecting the proxy should also remove the layer.
proxy.disconnect();
« no previous file with comments | « no previous file | Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698