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

Side by Side Diff: LayoutTests/compositing/repaint/newly-composited-repaint-rect.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 <html> 2 <html>
3 <head> 3 <head>
4 <!-- This test case reproduces a bug that is hopefully solved by https://bugs. webkit.org/show_bug.cgi?id=80641 4 <!-- This test case reproduces a bug that is hopefully solved by https://bugs. webkit.org/show_bug.cgi?id=80641
5 5
6 In the bug, a div element begins as non-composited, and the repaintRect h ad a 6 In the bug, a div element begins as non-composited, and the repaintRect h ad a
7 correct non-zero offset because it paints into an ancestor container. Lat er, the 7 correct non-zero offset because it paints into an ancestor container. Lat er, the
8 layer becomes composited (in this case, because the layer is moved to ove rlap 8 layer becomes composited (in this case, because the layer is moved to ove rlap
9 another composited layer). Because the layer is now composited, the repai ntRect 9 another composited layer). Because the layer is now composited, the repai ntRect
10 should have been recomputed - in particular, the offset of the repaintRec t should 10 should have been recomputed - in particular, the offset of the repaintRec t should
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 background-color: green; 43 background-color: green;
44 } 44 }
45 </style> 45 </style>
46 46
47 </head> 47 </head>
48 48
49 <script src="../../fast/repaint/resources/repaint.js"></script> 49 <script src="../../fast/repaint/resources/repaint.js"></script>
50 50
51 <script> 51 <script>
52 if (window.testRunner) { 52 if (window.testRunner) {
53 testRunner.dumpAsText(true); 53 testRunner.dumpAsTextWithPixelResults();
54 testRunner.waitUntilDone(); 54 testRunner.waitUntilDone();
55 } 55 }
56 56
57 function changeDivPosition() { 57 function changeDivPosition() {
58 document.getElementById("scrolldiv").style.left="50px"; 58 document.getElementById("scrolldiv").style.left="50px";
59 } 59 }
60 60
61 function repaintTest() { 61 function repaintTest() {
62 // Changing the position will cause the scrolldiv to become composited b ecuase it overlaps another compostied element. 62 // Changing the position will cause the scrolldiv to become composited b ecuase it overlaps another compostied element.
63 changeDivPosition(); 63 changeDivPosition();
(...skipping 14 matching lines...) Expand all
78 78
79 <body onload="runRepaintTest()"> 79 <body onload="runRepaintTest()">
80 <div class="composited box"></div> 80 <div class="composited box"></div>
81 <div id="scrolldiv"> 81 <div id="scrolldiv">
82 <div class="shouldNotBeSeen box"></div> 82 <div class="shouldNotBeSeen box"></div>
83 <div class="shouldBeSeen box"></div> 83 <div class="shouldBeSeen box"></div>
84 </div> 84 </div>
85 </body> 85 </body>
86 86
87 </html> 87 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698