Chromium Code Reviews| 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..274950ecd86322fa2b7c6e3c50865544be5c5860 100644 |
| --- a/LayoutTests/fast/dom/CompositorProxy/proxy-forces-layer.html |
| +++ b/LayoutTests/fast/dom/CompositorProxy/proxy-forces-layer.html |
| @@ -18,6 +18,7 @@ async_test(function(test) { |
| docLayer = JSON.parse(window.internals.layerTreeAsText(document)); |
| assert_equals(1, docLayer.children.length); |
| assert_equals(1, docLayer.children[0].children.length); |
| + assert_not_equals(docLayer.children[0].children[0].compositingReasons.indexOf("compositorProxy"), -1); |
|
esprehn
2015/05/25 21:05:43
assert_true(...compositingReasons.includes("compos
sadrul
2015/05/25 21:08:45
compositingReasons is actually an array, and there
esprehn
2015/05/25 21:13:13
Oh then you want to use assert_in_array then.
sadrul
2015/05/25 21:19:32
Nice! Done. Thanks! (I looked for something like a
|
| // Detach the element from the document. The corresponding layer should be removed. |
| container.parentNode.removeChild(container); |
| @@ -30,6 +31,7 @@ async_test(function(test) { |
| docLayer = JSON.parse(window.internals.layerTreeAsText(document)); |
| assert_equals(1, docLayer.children.length); |
| assert_equals(1, docLayer.children[0].children.length); |
| + assert_not_equals(docLayer.children[0].children[0].compositingReasons.indexOf("compositorProxy"), -1); |
| // Disconnecting the proxy should also remove the layer. |
| proxy.disconnect(); |