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

Side by Side Diff: LayoutTests/compositing/overflow/resources/nested-render-surfaces.js

Issue 24438004: Rename testRunner.dumpAsText(true) to testRunner.dumpAsTextWithPixelResults() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: more tests Created 7 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 | Annotate | Revision Log
OLDNEW
1 if (window.testRunner) 1 if (window.testRunner)
2 testRunner.dumpAsText(true); 2 testRunner.dumpAsTextWithPixelResults();
3 3
4 function runTest(description) { 4 function runTest(description) {
5 var pre = document.createElement("pre"); 5 var pre = document.createElement("pre");
6 document.body.appendChild(pre); 6 document.body.appendChild(pre);
7 7
8 if (!window.internals) { 8 if (!window.internals) {
9 pre.innerHTML = description; 9 pre.innerHTML = description;
10 } else { 10 } else {
11 var isUnclipped = window.internals.isUnclippedDescendant(document.getEle mentById('fixed')); 11 var isUnclipped = window.internals.isUnclippedDescendant(document.getEle mentById('fixed'));
12 pre.innerHTML = "\n'fixed' " + (isUnclipped ? "is" : "is not") + " an un clipped descendant."; 12 pre.innerHTML = "\n'fixed' " + (isUnclipped ? "is" : "is not") + " an un clipped descendant.";
13 13
14 if (isUnclipped) { 14 if (isUnclipped) {
15 pre.innerHTML += "\nPASS"; 15 pre.innerHTML += "\nPASS";
16 } else { 16 } else {
17 pre.innerHTML += "\nUnclipped Descendants are only relevant for " + 17 pre.innerHTML += "\nUnclipped Descendants are only relevant for " +
18 "acceleratedCompositingForOverflowScroll, so this result is " + 18 "acceleratedCompositingForOverflowScroll, so this result is " +
19 "expected everywhere except in the virtual/gpu/ suite."; 19 "expected everywhere except in the virtual/gpu/ suite.";
20 } 20 }
21 } 21 }
22 } 22 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698