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

Side by Side Diff: third_party/WebKit/LayoutTests/compositing/squashing/dont-squash-into-videos.html

Issue 2295653002: Use window.testRunner in if-clause (Closed)
Patch Set: a Created 4 years, 3 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 <video style="transform: translateZ(0); position: absolute; top: 0px; left: 0px; height: 100px; width: 100px; background: lightblue"></video> 1 <video style="transform: translateZ(0); position: absolute; top: 0px; left: 0px; height: 100px; width: 100px; background: lightblue"></video>
2 2
3 <div style="position: absolute; top: 50px; left: 50px; width: 200px; height: 200 px; background: lightgray;"></div> 3 <div style="position: absolute; top: 50px; left: 50px; width: 200px; height: 200 px; background: lightgray;"></div>
4 <script src="../../resources/run-after-layout-and-paint.js"></script> 4 <script src="../../resources/run-after-layout-and-paint.js"></script>
5 <script> 5 <script>
6 // Tests that squashing into videos is not allowed. 6 // Tests that squashing into videos is not allowed.
7 if (testRunner) { 7 if (window.testRunner) {
8 testRunner.dumpAsText(); 8 testRunner.dumpAsText();
9 testRunner.waitUntilDone(); 9 testRunner.waitUntilDone();
10 runAfterLayoutAndPaint(function() { 10 runAfterLayoutAndPaint(function() {
11 testRunner.setCustomTextOutput(window.internals.layerTreeAsText(document )); 11 testRunner.setCustomTextOutput(window.internals.layerTreeAsText(document ));
12 testRunner.notifyDone(); 12 testRunner.notifyDone();
13 }); 13 });
14 } 14 }
15 15
16 </script> 16 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698