OLD | NEW |
1 <?xml version="1.0" standalone="no"?> | 1 <?xml version="1.0" standalone="no"?> |
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/R
EC-SVG-20010904/DTD/svg10.dtd"> | 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/R
EC-SVG-20010904/DTD/svg10.dtd"> |
3 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" viewBox="0 0 250 250" onload="runRepaintAndPixelTest()"> | 3 <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlin
k" viewBox="0 0 250 250" onload="runRepaintAndPixelTest()"> |
4 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/> | 4 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/> |
| 5 <script xlink:href="../../resources/run-after-display.js"/> |
5 <script type="text/javascript"> | 6 <script type="text/javascript"> |
6 <![CDATA[ | 7 <![CDATA[ |
7 window.testIsAsync = true; | 8 window.testIsAsync = true; |
8 function repaintTest() { | 9 function repaintTest() { |
9 var elem = document.getElementById('use'); | 10 var elem = document.getElementById('use'); |
10 elem.setAttributeNS(null,'display','inline'); | 11 elem.setAttributeNS(null,'display','inline'); |
11 window.setTimeout("step2()", 0); | 12 runAfterDisplay(step2); |
12 } | 13 } |
13 function step2() { | 14 function step2() { |
14 var elem = document.getElementById('use'); | 15 var elem = document.getElementById('use'); |
15 elem.setAttributeNS(null,'display','none'); | 16 elem.setAttributeNS(null,'display','none'); |
16 window.setTimeout("step3()", 0); | 17 runAfterDisplay(step3); |
17 } | 18 } |
18 function step3() { | 19 function step3() { |
19 var elem = document.getElementById('use'); | 20 var elem = document.getElementById('use'); |
20 elem.setAttributeNS(null,'display','inline'); | 21 elem.setAttributeNS(null,'display','inline'); |
21 finishRepaintTest(); | 22 finishRepaintTest(); |
22 } | 23 } |
23 ]]> | 24 ]]> |
24 </script> | 25 </script> |
25 <g transform="matrix(1 0 0 1 5 5)"> | 26 <g transform="matrix(1 0 0 1 5 5)"> |
26 <defs> | 27 <defs> |
27 <text id="use_text" x="50" y="31" font-size="12" text-anchor="middle">use<
/text> | 28 <text id="use_text" x="50" y="31" font-size="12" text-anchor="middle">use<
/text> |
28 <circle id="use_circle" r="5" cx="50" cy="40" fill="#ff0000"/> | 29 <circle id="use_circle" r="5" cx="50" cy="40" fill="#ff0000"/> |
29 | 30 |
30 </defs> | 31 </defs> |
31 <g id="use" stroke="#000000" fill="#000000" display="none"> | 32 <g id="use" stroke="#000000" fill="#000000" display="none"> |
32 <use xlink:href="#use_text"/> | 33 <use xlink:href="#use_text"/> |
33 <use xlink:href="#use_circle"/> | 34 <use xlink:href="#use_circle"/> |
34 </g> | 35 </g> |
35 <rect x="0" y="0" width="100" height="50" opacity="0.2"/> | 36 <rect x="0" y="0" width="100" height="50" opacity="0.2"/> |
36 </g> | 37 </g> |
37 <g transform="matrix(1 0 0 1 10 70)"> | 38 <g transform="matrix(1 0 0 1 10 70)"> |
38 <text font-family="'Courier'" font-size="12"> | 39 <text font-family="'Courier'" font-size="12"> |
39 | 40 |
40 <tspan x="0" y="0">For this test case to be successful, the</tspan> | 41 <tspan x="0" y="0">For this test case to be successful, the</tspan> |
41 <tspan x="0" y="15">box above must show text and a circle. </tspan> | 42 <tspan x="0" y="15">box above must show text and a circle. </tspan> |
42 <tspan x="0" y="30">Bug 14927</tspan> | 43 <tspan x="0" y="30">Bug 14927</tspan> |
43 </text> | 44 </text> |
44 </g> | 45 </g> |
45 </svg> | 46 </svg> |
OLD | NEW |