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

Side by Side Diff: LayoutTests/css3/flexbox/repaint-column-reverse.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
« no previous file with comments | « LayoutTests/css3/flexbox/repaint.html ('k') | LayoutTests/css3/flexbox/repaint-rtl-column.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <style> 2 <style>
3 #flexbox { 3 #flexbox {
4 display: -webkit-flex; 4 display: -webkit-flex;
5 -webkit-flex-flow: column-reverse; 5 -webkit-flex-flow: column-reverse;
6 width: 200px; 6 width: 200px;
7 } 7 }
8 .flex-item { 8 .flex-item {
9 height: 30px; 9 height: 30px;
10 } 10 }
11 </style> 11 </style>
12 <script> 12 <script>
13 function changeChildMargin() 13 function changeChildMargin()
14 { 14 {
15 document.getElementById("blue").style.margin = "1px"; 15 document.getElementById("blue").style.margin = "1px";
16 if (window.testRunner) 16 if (window.testRunner)
17 testRunner.notifyDone(); 17 testRunner.notifyDone();
18 } 18 }
19 19
20 window.onload = function() { 20 window.onload = function() {
21 if (window.testRunner) { 21 if (window.testRunner) {
22 testRunner.dumpAsText(true); 22 testRunner.dumpAsTextWithPixelResults();
23 testRunner.waitUntilDone(); 23 testRunner.waitUntilDone();
24 testRunner.display(); 24 testRunner.display();
25 } else { 25 } else {
26 document.body.appendChild(document.createTextNode( 26 document.body.appendChild(document.createTextNode(
27 "This test checks that for flex items that are moved multiple times during the layout " 27 "This test checks that for flex items that are moved multiple times during the layout "
28 + "only the initial and final positions are repainted. Only the blue flex item should be repainted " 28 + "only the initial and final positions are repainted. Only the blue flex item should be repainted "
29 + "after changing its position. If the other flex items are repainte d, this test fails.")); 29 + "after changing its position. If the other flex items are repainte d, this test fails."));
30 } 30 }
31 setTimeout(changeChildMargin, 0); 31 setTimeout(changeChildMargin, 0);
32 }; 32 };
33 </script> 33 </script>
34 <div id="flexbox"> 34 <div id="flexbox">
35 <div id="blue" class="flex-item" style="background-color: blue;"></div> 35 <div id="blue" class="flex-item" style="background-color: blue;"></div>
36 <div id="green" class="flex-item" style="background-color: green;"></div> 36 <div id="green" class="flex-item" style="background-color: green;"></div>
37 <div id="yellow" class="flex-item" style="background-color: yellow;"></div> 37 <div id="yellow" class="flex-item" style="background-color: yellow;"></div>
38 </div> 38 </div>
OLDNEW
« no previous file with comments | « LayoutTests/css3/flexbox/repaint.html ('k') | LayoutTests/css3/flexbox/repaint-rtl-column.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698