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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/squashing/dont-squash-into-blend-mode.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 unified diff | Download patch
OLDNEW
1 <!doctype HTML> 1 <!doctype HTML>
2 Any errors will show below this line. 2 Any errors will show below this line.
3 <div id="target" style="position: absolute; width: 200px; height: 200px; will-ch ange: transform; background: lightblue; mix-blend-mode: overlay;"></div> 3 <div id="target" style="position: absolute; width: 200px; height: 200px; will-ch ange: transform; background: lightblue; mix-blend-mode: overlay;"></div>
4 <div style="position: absolute; width: 200px; height: 200px; top: 100px; left: 1 00px; background: lightgray"></div> 4 <div style="position: absolute; width: 200px; height: 200px; top: 100px; left: 1 00px; background: lightgray"></div>
5 <script src="../../resources/testharness.js"></script> 5 <script src="../../resources/testharness.js"></script>
6 <script> 6 <script>
7 if (window.testRunner) 7 if (window.testRunner)
8 testRunner.dumpAsText(); 8 testRunner.dumpAsText();
9 onload = function() { 9 onload = function() {
10 if (window.internals) { 10 if (window.internals) {
11 var layers = JSON.parse(internals.layerTreeAsText(document, internals.LA YER_TREE_INCLUDES_DEBUG_INFO)); 11 var layers = JSON.parse(internals.layerTreeAsText(document, internals.LA YER_TREE_INCLUDES_DEBUG_INFO))["layers"];
12 assert_true(layers.children[0].children[0].children[1].compositingReason s[1] == "Layer was separately composited because it could not be squashed."); 12 assert_true(layers[3].compositingReasons[1] == "Layer was separately com posited because it could not be squashed.");
13 assert_true(layers.children[0].children[0].children[1].squashingDisallow edReasons[0] == "Squashing a layer with blending is not supported."); 13 assert_true(layers[3].squashingDisallowedReasons[0] == "Squashing a laye r with blending is not supported.");
14 } 14 }
15 }; 15 };
16 </script> 16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698