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

Unified Diff: third_party/WebKit/LayoutTests/compositing/squashing/dont-squash-into-blend-mode.html

Issue 1730653002: Move squash preventing reasons out of compositing reasons (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bug and test fixes. Created 4 years, 10 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-blend-mode.html
diff --git a/third_party/WebKit/LayoutTests/compositing/squashing/dont-squash-into-blend-mode.html b/third_party/WebKit/LayoutTests/compositing/squashing/dont-squash-into-blend-mode.html
index 1365ce3a69b5e6b8300a5b388b8031ef21cef749..27bfd320942dfa51fd7f696cd29bfb64bb027c7e 100644
--- a/third_party/WebKit/LayoutTests/compositing/squashing/dont-squash-into-blend-mode.html
+++ b/third_party/WebKit/LayoutTests/compositing/squashing/dont-squash-into-blend-mode.html
@@ -8,8 +8,9 @@ if (window.testRunner)
testRunner.dumpAsText();
onload = function() {
if (window.internals) {
- var layers = JSON.parse(internals.layerTreeAsText(document, 1));
- assert_true(layers.children[0].children[0].children[1].compositingReasons[1] == "Squashing a layer with blending is not supported.");
+ var layers = JSON.parse(internals.layerTreeAsText(document, internals.LAYER_TREE_INCLUDES_DEBUG_INFO));
+ assert_true(layers.children[0].children[0].children[1].compositingReasons[1] == "Layer was separately composited because it could not be squashed.");
+ assert_true(layers.children[0].children[0].children[1].squashingDisallowedReasons[0] == "Squashing a layer with blending is not supported.");
}
};
-</script>
+</script>

Powered by Google App Engine
This is Rietveld 408576698