OLD | NEW |
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/text-based-repaint.js"></script> |
| 7 <script src="../../resources/run-after-display.js"></script> |
7 <title>The rectangle should be green.</title></head> | 8 <title>The rectangle should be green.</title></head> |
8 <script> | 9 <script> |
9 window.testIsAsync = true; | 10 window.testIsAsync = true; |
10 | 11 |
11 var W = 200; | 12 var W = 200; |
12 var H = 200; | 13 var H = 200; |
13 var SVGNS = "http://www.w3.org/2000/svg"; | 14 var SVGNS = "http://www.w3.org/2000/svg"; |
14 var currentColor = 0; | 15 var currentColor = 0; |
15 var colors = ["red", "green"]; | 16 var colors = ["red", "green"]; |
16 | 17 |
(...skipping 24 matching lines...) Expand all Loading... |
41 resetFill(defs); | 42 resetFill(defs); |
42 | 43 |
43 el.setAttribute("fill", "url(#pat)"); | 44 el.setAttribute("fill", "url(#pat)"); |
44 | 45 |
45 if(currentColor == 2) | 46 if(currentColor == 2) |
46 finishRepaintTest(); | 47 finishRepaintTest(); |
47 } | 48 } |
48 | 49 |
49 function repaintTest() { | 50 function repaintTest() { |
50 updateFill(); | 51 updateFill(); |
51 setTimeout("updateFill()", 0); | 52 runAfterDisplay(updateFill); |
52 } | 53 } |
53 </script> | 54 </script> |
54 <body onload="runRepaintAndPixelTest()"> | 55 <body onload="runRepaintAndPixelTest()"> |
55 <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%"> |
56 <defs id="defs"></defs> | 57 <defs id="defs"></defs> |
57 <rect id="shape" width="200" height="200"></rect> | 58 <rect id="shape" width="200" height="200"></rect> |
58 </svg> | 59 </svg> |
59 </body> | 60 </body> |
60 </html> | 61 </html> |
OLD | NEW |