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

Side by Side Diff: LayoutTests/compositing/iframes/repaint-after-losing-scrollbars.html

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, 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 | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <!-- Tests that overflow controls are repainted after compositing is disabled. T here should be three green squares and no visible overflow controls --> 2 <!-- Tests that overflow controls are repainted after compositing is disabled. T here should be three green squares and no visible overflow controls -->
3 <style> 3 <style>
4 .composited { 4 .composited {
5 -webkit-transform:translateZ(0); 5 -webkit-transform:translateZ(0);
6 } 6 }
7 7
8 .container { 8 .container {
9 width: 100px; 9 width: 100px;
10 height:100px; 10 height:100px;
(...skipping 16 matching lines...) Expand all
27 document.getElementById("both").contentDocument.body.classList.remove("wide" ); // bottom iframe loses both 27 document.getElementById("both").contentDocument.body.classList.remove("wide" ); // bottom iframe loses both
28 document.getElementById("both").contentDocument.body.classList.remove("tall" ); // bottom iframe loses both 28 document.getElementById("both").contentDocument.body.classList.remove("tall" ); // bottom iframe loses both
29 } 29 }
30 30
31 function test() { 31 function test() {
32 document.getElementById("vertical").contentDocument.body.classList.add("tall "); // topmost iframe starts with a vertical scrollbar 32 document.getElementById("vertical").contentDocument.body.classList.add("tall "); // topmost iframe starts with a vertical scrollbar
33 document.getElementById("horizontal").contentDocument.body.classList.add("wi de"); // middle iframe starts with a horizontal scrollbar 33 document.getElementById("horizontal").contentDocument.body.classList.add("wi de"); // middle iframe starts with a horizontal scrollbar
34 document.getElementById("both").contentDocument.body.classList.add("wide"); // bottom iframe starts with both 34 document.getElementById("both").contentDocument.body.classList.add("wide"); // bottom iframe starts with both
35 document.getElementById("both").contentDocument.body.classList.add("tall"); // vertical and horizontal scrollbars 35 document.getElementById("both").contentDocument.body.classList.add("tall"); // vertical and horizontal scrollbars
36 if (window.testRunner) { 36 if (window.testRunner) {
37 testRunner.dumpAsText(true); 37 testRunner.dumpAsTextWithPixelResults();
38 testRunner.display(); // Paint once with all overflow controls visible. 38 testRunner.display(); // Paint once with all overflow controls visible.
39 finishTest(); 39 finishTest();
40 } else 40 } else
41 window.setTimeout(finishTest, 5000); 41 window.setTimeout(finishTest, 5000);
42 } 42 }
43 </script> 43 </script>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698