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

Side by Side Diff: LayoutTests/css3/filters/filter-repaint-shadow.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 shadow is repainted using the full source image of the element instead of just the dirty area. 3 This tests verifies that shadow is repainted using the full source image of the element instead of just the dirty area.
4 There should be 3 green boxes of same size with blue shadow on the lower rig ht corner. Check that the shadow is not interrupted. 4 There should be 3 green boxes of same size with blue shadow on the lower rig ht corner. Check that the shadow is not interrupted.
5 --> 5 -->
6 <html> 6 <html>
7 <head> 7 <head>
8 <style> 8 <style>
9 .box { 9 .box {
10 margin: 10px; 10 margin: 10px;
11 height: 50px; 11 height: 50px;
12 width: 50px; 12 width: 50px;
13 background-color: green; 13 background-color: green;
14 } 14 }
15 15
16 .before { 16 .before {
17 background-color: red; 17 background-color: red;
18 } 18 }
19 19
20 .shadow { 20 .shadow {
21 margin: 50px; 21 margin: 50px;
22 -webkit-filter: drop-shadow(10px 10px 10px blue); 22 -webkit-filter: drop-shadow(10px 10px 10px blue);
23 } 23 }
24 </style> 24 </style>
25 25
26 <script src="../../fast/repaint/resources/repaint.js"></script> 26 <script src="../../fast/repaint/resources/repaint.js"></script>
27 <script> 27 <script>
28 if (window.testRunner) 28 if (window.testRunner)
29 testRunner.dumpAsText(true); 29 testRunner.dumpAsTextWithPixelResults();
30 30
31 function repaintTest() 31 function repaintTest()
32 { 32 {
33 document.querySelector(".before").classList.remove("before"); 33 document.querySelector(".before").classList.remove("before");
34 } 34 }
35 </script> 35 </script>
36 </head> 36 </head>
37 37
38 <body onload="runRepaintTest()"> 38 <body onload="runRepaintTest()">
39 39
40 <div class="shadow"> 40 <div class="shadow">
41 <div class="box"></div> 41 <div class="box"></div>
42 <div class="box before"></div> 42 <div class="box before"></div>
43 <div class="box"></div> 43 <div class="box"></div>
44 </div> 44 </div>
45 45
46 </body> 46 </body>
47 </html> 47 </html>
OLDNEW
« no previous file with comments | « LayoutTests/css3/filters/filter-repaint-sepia.html ('k') | LayoutTests/css3/filters/filter-repaint-shadow-clipped.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698