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

Side by Side Diff: LayoutTests/css3/filters/filter-change-repaint-composited.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 <!-- 2 <!--
3 This tests verifies that filters repaint correctly in composited mode when t he filter property is changed. 3 This tests verifies that filters repaint correctly in composited mode when t he filter property is changed.
4 You should see 7 green rectangles. First 6 of the rectangles have a blue sha dow. There should be no red. 4 You should see 7 green rectangles. First 6 of the rectangles have a blue sha dow. There should be no red.
5 --> 5 -->
6 <html> 6 <html>
7 <head> 7 <head>
8 <style> 8 <style>
9 .box { 9 .box {
10 /* force a composited layer */ 10 /* force a composited layer */
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 } 69 }
70 70
71 .none_from_composited.before { 71 .none_from_composited.before {
72 -webkit-filter: drop-shadow(0px 0px 10px red); 72 -webkit-filter: drop-shadow(0px 0px 10px red);
73 } 73 }
74 </style> 74 </style>
75 75
76 <script src="../../fast/repaint/resources/repaint.js"></script> 76 <script src="../../fast/repaint/resources/repaint.js"></script>
77 <script> 77 <script>
78 if (window.testRunner) 78 if (window.testRunner)
79 testRunner.dumpAsText(true); 79 testRunner.dumpAsTextWithPixelResults();
80 80
81 function repaintTest() 81 function repaintTest()
82 { 82 {
83 var items = document.getElementsByClassName('before'); 83 var items = document.getElementsByClassName('before');
84 while (items.length) 84 while (items.length)
85 items[0].classList.remove("before"); 85 items[0].classList.remove("before");
86 } 86 }
87 </script> 87 </script>
88 </head> 88 </head>
89 89
90 <body onload="runRepaintTest()"> 90 <body onload="runRepaintTest()">
91 <div class="box composited_from_none before"></div> 91 <div class="box composited_from_none before"></div>
92 <div class="box composited_from_composited before"></div> 92 <div class="box composited_from_composited before"></div>
93 <div class="box composited_from_composited_zero_radius before"></div> 93 <div class="box composited_from_composited_zero_radius before"></div>
94 <div class="box composited_from_composited_offset before"></div> 94 <div class="box composited_from_composited_offset before"></div>
95 <div class="box composited_from_software before"></div> 95 <div class="box composited_from_software before"></div>
96 <div class="box software_from_composited before"></div> 96 <div class="box software_from_composited before"></div>
97 <div class="box none_from_composited before"></div> 97 <div class="box none_from_composited before"></div>
98 </body> 98 </body>
99 </html> 99 </html>
OLDNEW
« no previous file with comments | « LayoutTests/css3/filters/filter-change-repaint.html ('k') | LayoutTests/css3/filters/filter-empty-element-crash.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698