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

Side by Side Diff: LayoutTests/css3/filters/filter-repaint-child-layers.html

Issue 207153002: Remove repaint.js include from css3/filters tests (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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 blur is repainted using the full source image of th e element instead of just the dirty area. 3 This tests verifies that blur is repainted using the full source image of th e element instead of just the dirty area.
4 Also it tests that the filter area includes all the child RenderLayers and a pplies the children's transforms correctly. 4 Also it tests that the filter area includes all the child RenderLayers and a pplies the children's transforms correctly.
5 You should see three green rectangles slightly rotated and blured. There sho uld be no red. 5 You should see three green rectangles slightly rotated and blured. There sho uld be no red.
6 --> 6 -->
7 <html> 7 <html>
8 <head> 8 <head>
9 <style> 9 <style>
10 .box { 10 .box {
(...skipping 13 matching lines...) Expand all
24 .blur { 24 .blur {
25 background: red; 25 background: red;
26 margin: 50px; 26 margin: 50px;
27 -webkit-filter: blur(5px); 27 -webkit-filter: blur(5px);
28 z-index: 0; 28 z-index: 0;
29 width: 0px; 29 width: 0px;
30 height: 0px; 30 height: 0px;
31 } 31 }
32 </style> 32 </style>
33 33
34 <script src="../../fast/repaint/resources/repaint.js"></script> 34 <script src="../../resources/run-after-display.js"></script>
35 <script> 35 <script>
36 if (window.testRunner) 36 if (window.testRunner) {
37 testRunner.dumpAsTextWithPixelResults(); 37 testRunner.dumpAsTextWithPixelResults();
38 testRunner.waitUntilDone();
39 }
38 40
39 function repaintTest() 41 function repaintTest()
40 { 42 {
41 document.querySelector(".before").classList.remove("before"); 43 runAfterDisplay(function() {
44 document.querySelector(".before").classList.remove("before");
45 if (window.testRunner)
46 testRunner.notifyDone();
47 });
42 } 48 }
43 </script> 49 </script>
44 </head> 50 </head>
45 51
46 <body onload="runRepaintTest()"> 52 <body onload="repaintTest()">
47 53
48 <div class="blur"> 54 <div class="blur">
49 <div class="box"></div> 55 <div class="box"></div>
50 <div class="box before"></div> 56 <div class="box before"></div>
51 <div class="box"></div> 57 <div class="box"></div>
52 </div> 58 </div>
53 59
54 </body> 60 </body>
55 </html> 61 </html>
OLDNEW
« no previous file with comments | « LayoutTests/css3/filters/filter-repaint-blur.html ('k') | LayoutTests/css3/filters/filter-repaint-composited-fallback.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698