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

Side by Side Diff: LayoutTests/css3/filters/filter-repaint.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 <html> 3 <html>
4 <head> 4 <head>
5 <style> 5 <style>
6 .box { 6 .box {
7 position: relative; 7 position: relative;
8 height: 200px; 8 height: 200px;
9 width: 200px; 9 width: 200px;
10 background-color: green; 10 background-color: green;
11 } 11 }
12 12
13 .blurry { 13 .blurry {
14 margin: 50px; 14 margin: 50px;
15 -webkit-filter: blur(10px); 15 -webkit-filter: blur(10px);
16 } 16 }
17 17
18 #change { 18 #change {
19 height: 100px; 19 height: 100px;
20 width: 100px; 20 width: 100px;
21 top: 50px; 21 top: 50px;
22 left: 50px; 22 left: 50px;
23 background-color: red; 23 background-color: red;
24 } 24 }
25 </style> 25 </style>
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 // Force software rendering mode. 30 // Force software rendering mode.
31 window.testRunner.overridePreference("WebKitAcceleratedCompositingEnab led", "0"); 31 testRunner.overridePreference("WebKitAcceleratedCompositingEnabled", " 0");
32 testRunner.waitUntilDone();
32 } 33 }
33 34
34 function repaintTest() 35 function repaintTest()
35 { 36 {
36 document.getElementById('change').style.backgroundColor = "green"; 37 runAfterDisplay(function() {
38 document.getElementById('change').style.backgroundColor = "green";
39 if (window.testRunner)
40 testRunner.notifyDone();
41 });
37 } 42 }
38 </script> 43 </script>
39 </head> 44 </head>
40 <body onload="runRepaintTest()"> 45 <body onload="repaintTest()">
41 46
42 <div class="blurry box"> 47 <div class="blurry box">
43 <div id="change" class="box"> 48 <div id="change" class="box">
44 </div> 49 </div>
45 </div> 50 </div>
46 51
47 </body> 52 </body>
48 </html> 53 </html>
OLDNEW
« no previous file with comments | « LayoutTests/css3/filters/filter-change-repaint-composited.html ('k') | LayoutTests/css3/filters/filter-repaint-blur.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698