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

Side by Side Diff: LayoutTests/css3/filters/filter-repaint-blur.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 There should be 3 blurry green boxes on the page, all the same size and colo r. 4 There should be 3 blurry green boxes on the page, all the same size and colo r.
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 .blur { 20 .blur {
21 margin: 50px; 21 margin: 50px;
22 -webkit-filter: blur(10px); 22 -webkit-filter: blur(10px);
23 } 23 }
24 </style> 24 </style>
25 25
26 <script src="../../fast/repaint/resources/repaint.js"></script> 26 <script src="../../resources/run-after-display.js"></script>
27 <script> 27 <script>
28 if (window.testRunner) 28 if (window.testRunner) {
29 testRunner.dumpAsTextWithPixelResults(); 29 testRunner.dumpAsTextWithPixelResults();
30 testRunner.waitUntilDone();
31 }
30 32
31 function repaintTest() 33 function repaintTest()
32 { 34 {
33 document.querySelector(".before").classList.remove("before"); 35 runAfterDisplay(function() {
36 document.querySelector(".before").classList.remove("before");
37 if (window.testRunner)
38 testRunner.notifyDone();
39 });
34 } 40 }
35 </script> 41 </script>
36 </head> 42 </head>
37 43
38 <body onload="runRepaintTest()"> 44 <body onload="repaintTest()">
39
40 <div class="blur"> 45 <div class="blur">
41 <div class="box"></div> 46 <div class="box"></div>
42 <div class="box before"></div> 47 <div class="box before"></div>
43 <div class="box"></div> 48 <div class="box"></div>
44 </div> 49 </div>
45
46 </body> 50 </body>
47 </html> 51 </html>
OLDNEW
« no previous file with comments | « LayoutTests/css3/filters/filter-repaint.html ('k') | LayoutTests/css3/filters/filter-repaint-child-layers.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698