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

Unified Diff: third_party/WebKit/LayoutTests/compositing/squashing/dont-squash-into-animated-layers.html

Issue 2397333002: Change layerTreeAsText to default to layer lists. (Closed)
Patch Set: none Created 4 years, 2 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
Index: third_party/WebKit/LayoutTests/compositing/squashing/dont-squash-into-animated-layers.html
diff --git a/third_party/WebKit/LayoutTests/compositing/squashing/dont-squash-into-animated-layers.html b/third_party/WebKit/LayoutTests/compositing/squashing/dont-squash-into-animated-layers.html
index 006e4ed632d1fea1e6ddb376349dac4b2bd81628..b540b9dd625e706105175b4971a7148ae027911f 100644
--- a/third_party/WebKit/LayoutTests/compositing/squashing/dont-squash-into-animated-layers.html
+++ b/third_party/WebKit/LayoutTests/compositing/squashing/dont-squash-into-animated-layers.html
@@ -23,9 +23,9 @@ if (window.testRunner) {
onload = function() {
target.style.transform = "translateX(10px)";
if (window.internals) {
- var layers = JSON.parse(internals.layerTreeAsText(document, 1));
- assert_true(layers.children[0].children[1].compositingReasons[1] == "Layer was separately composited because it could not be squashed.");
- assert_true(layers.children[0].children[1].squashingDisallowedReasons[0] == "Cannot squash into a layer that is animating.");
+ var layers = JSON.parse(internals.layerTreeAsText(document, 1))["layers"]
+ assert_true(layers[2].compositingReasons[1] == "Layer was separately composited because it could not be squashed.");
+ assert_true(layers[2].squashingDisallowedReasons[0] == "Cannot squash into a layer that is animating.");
}
};
</script>

Powered by Google App Engine
This is Rietveld 408576698