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

Side by Side Diff: third_party/WebKit/LayoutTests/svg/custom/pending-resource-after-removal.xhtml

Issue 1972273002: Let repaint tests test pixels by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
OLDNEW
1 <?xml version="1.0" encoding="utf-8"?> 1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 3 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml"> 4 <html xmlns="http://www.w3.org/1999/xhtml">
5 <head> 5 <head>
6 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> 6 <script src="../../fast/repaint/resources/repaint.js"></script>
7 <title>The rectangle should be green.</title></head> 7 <title>The rectangle should be green.</title></head>
8 <script> 8 <script>
9 window.testIsAsync = true; 9 window.testIsAsync = true;
10 10
11 var W = 200; 11 var W = 200;
12 var H = 200; 12 var H = 200;
13 var SVGNS = "http://www.w3.org/2000/svg"; 13 var SVGNS = "http://www.w3.org/2000/svg";
14 var currentColor = 0; 14 var currentColor = 0;
15 var colors = ["red", "green"]; 15 var colors = ["red", "green"];
16 16
(...skipping 28 matching lines...) Expand all
45 if(currentColor == 2) 45 if(currentColor == 2)
46 finishRepaintTest(); 46 finishRepaintTest();
47 } 47 }
48 48
49 function repaintTest() { 49 function repaintTest() {
50 updateFill(); 50 updateFill();
51 // FIXME: we need a better way of waiting for layout/repainting to happen 51 // FIXME: we need a better way of waiting for layout/repainting to happen
52 setTimeout("updateFill()", 1); 52 setTimeout("updateFill()", 1);
53 } 53 }
54 </script> 54 </script>
55 <body onload="runRepaintAndPixelTest()"> 55 <body onload="runRepaintTest()">
56 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%"> 56 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin k" style="position: absolute; top: 0; left: 0; width: 100%; height: 100%">
57 <defs id="defs"></defs> 57 <defs id="defs"></defs>
58 <rect id="shape" width="200" height="200"></rect> 58 <rect id="shape" width="200" height="200"></rect>
59 </svg> 59 </svg>
60 </body> 60 </body>
61 </html> 61 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698