OLD | NEW |
| (Empty) |
1 if (window.testRunner) | |
2 testRunner.dumpAsTextWithPixelResults(); | |
3 | |
4 function runTest(description) { | |
5 var pre = document.createElement("pre"); | |
6 document.body.appendChild(pre); | |
7 | |
8 if (!window.internals) { | |
9 pre.innerHTML = description; | |
10 } else { | |
11 var isUnclipped = window.internals.isUnclippedDescendant(document.getEle
mentById('fixed')); | |
12 pre.innerHTML = "\n'fixed' " + (isUnclipped ? "is" : "is not") + " an un
clipped descendant."; | |
13 | |
14 if (isUnclipped) { | |
15 pre.innerHTML += "\nPASS"; | |
16 } else { | |
17 pre.innerHTML += "\nUnclipped Descendants are only relevant for " + | |
18 "preferCompositingToLCDText, so this result is " + | |
19 "expected everywhere except in the virtual/gpu/ suite."; | |
20 } | |
21 } | |
22 } | |
OLD | NEW |