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

Side by Side Diff: LayoutTests/css3/compositing/should-have-compositing-layer.html

Issue 15012010: Remove the CSS_COMPOSITING define, leaving the implementation under the runtime flag, since runtime… (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: removed bogus test Created 7 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 unified diff | Download patch
OLDNEW
1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"> 1 <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../fast/js/resources/js-test-pre.js"></script> 4 <script src="../../fast/js/resources/js-test-pre.js"></script>
5 </head> 5 </head>
6 <body>
7 <img style="mix-blend-mode: multiply;" src="resources/reference.png">
6 <script> 8 <script>
7 if (window.testRunner) { 9 description("Test to make sure a blend mode creates a compositing layer. Test is successful of render tree shows compositing");
8 testRunner.dumpAsText(); 10 » if (window.testRunner) {
9 testRunner.waitUntilDone(); 11 » » var layers = window.internals.layerTreeAsText(document);
10 } 12 » » if (layers == "")
13 » » » testFailed("no compositing layers");
14 » » else
15 » » » testPassed("content has compositing layers");
16 » » testRunner.notifyDone();
17 » }
18 » successfullyParsed = true;
19 </script>
20 <script src="../../fast/js/resources/js-test-post.js"></script>
21 </body>
22 </html>
11 23
12 function doTest()
13 {
14 description("Test to make sure a blend mode creates a compositing layer. Test is successful of render tree shows compositing");
15 if (window.testRunner) {
16 var layers = window.internals.layerTreeAsText(document);
17 if (layers == "")
18 testFailed("no compositing layers");
19 else
20 testPassed("content has compositing layers");
21 document.getElementById("layertree").innerText = layers;
22 testRunner.notifyDone();
23 }
24 }
25
26 window.addEventListener('load', doTest, false);
27
28 </script>
29 <img style="mix-blend-mode: multiply;" src="resources/reference.png">
30 <pre id="layertree"></pre>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698