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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/css3/compositing/should-have-compositing-layer.html
diff --git a/LayoutTests/css3/compositing/should-have-compositing-layer.html b/LayoutTests/css3/compositing/should-have-compositing-layer.html
index 3bed190dc86f4e5214b42bd6d00039249c3efd67..c1f3219f7791feed4b855e76109e882caf85b178 100644
--- a/LayoutTests/css3/compositing/should-have-compositing-layer.html
+++ b/LayoutTests/css3/compositing/should-have-compositing-layer.html
@@ -3,28 +3,21 @@
<head>
<script src="../../fast/js/resources/js-test-pre.js"></script>
</head>
+<body>
+<img style="mix-blend-mode: multiply;" src="resources/reference.png">
<script>
- if (window.testRunner) {
- testRunner.dumpAsText();
- testRunner.waitUntilDone();
- }
-
- function doTest()
- {
- description("Test to make sure a blend mode creates a compositing layer. Test is successful of render tree shows compositing");
- if (window.testRunner) {
- var layers = window.internals.layerTreeAsText(document);
- if (layers == "")
- testFailed("no compositing layers");
- else
- testPassed("content has compositing layers");
- document.getElementById("layertree").innerText = layers;
- testRunner.notifyDone();
- }
- }
-
- window.addEventListener('load', doTest, false);
-
+ description("Test to make sure a blend mode creates a compositing layer. Test is successful of render tree shows compositing");
+ if (window.testRunner) {
+ var layers = window.internals.layerTreeAsText(document);
+ if (layers == "")
+ testFailed("no compositing layers");
+ else
+ testPassed("content has compositing layers");
+ testRunner.notifyDone();
+ }
+ successfullyParsed = true;
</script>
-<img style="mix-blend-mode: multiply;" src="resources/reference.png">
-<pre id="layertree"></pre>
+<script src="../../fast/js/resources/js-test-post.js"></script>
+</body>
+</html>
+

Powered by Google App Engine
This is Rietveld 408576698