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

Side by Side Diff: LayoutTests/css3/filters/filter-repaint-composited-fallback-crash.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, 2 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 work even on composited layers that fallbac k to rendering in software. 3 This tests verifies that filters work even on composited layers that fallbac k to rendering in software.
4 NOTE: It is using the fact that Safari can draw drop-shadows in GPU only if the filter is the last one in the filter chain. 4 NOTE: It is using the fact that Safari can draw drop-shadows in GPU only if the filter is the last one in the filter chain.
5 First we apply the shaders using a composited layer, but compute the filters in CPU. Then we switch to compute them in GPU. 5 First we apply the shaders using a composited layer, but compute the filters in CPU. Then we switch to compute them in GPU.
6 You should see three green rectangles slightly rotated and blurred. There sh ould be no red and it should not crash. 6 You should see three green rectangles slightly rotated and blurred. There sh ould be no red and it should not crash.
7 --> 7 -->
8 <html> 8 <html>
9 <head> 9 <head>
10 <style> 10 <style>
(...skipping 17 matching lines...) Expand all
28 } 28 }
29 29
30 .before { 30 .before {
31 -webkit-filter: blur(5px) drop-shadow(0px 0px 1px blue); 31 -webkit-filter: blur(5px) drop-shadow(0px 0px 1px blue);
32 } 32 }
33 </style> 33 </style>
34 34
35 <script src="../../fast/repaint/resources/repaint.js"></script> 35 <script src="../../fast/repaint/resources/repaint.js"></script>
36 <script> 36 <script>
37 if (window.testRunner) 37 if (window.testRunner)
38 testRunner.dumpAsText(true); 38 testRunner.dumpAsTextWithPixelResults();
39 39
40 function repaintTest() 40 function repaintTest()
41 { 41 {
42 document.querySelector(".before").classList.remove("before"); 42 document.querySelector(".before").classList.remove("before");
43 } 43 }
44 </script> 44 </script>
45 </head> 45 </head>
46 46
47 <body onload="runRepaintTest()"> 47 <body onload="runRepaintTest()">
48 48
49 <div class="blur before"> 49 <div class="blur before">
50 <div class="box"></div> 50 <div class="box"></div>
51 <div class="box"></div> 51 <div class="box"></div>
52 <div class="box"></div> 52 <div class="box"></div>
53 </div> 53 </div>
54 54
55 </body> 55 </body>
56 </html> 56 </html>
OLDNEW
« no previous file with comments | « LayoutTests/css3/filters/filter-repaint-composited-fallback.html ('k') | LayoutTests/css3/filters/filter-repaint-sepia.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698