OLD | NEW |
1 <?xml version="1.0"?> | 1 <?xml version="1.0"?> |
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" | 2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" |
3 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> | 3 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> |
4 <svg xmlns="http://www.w3.org/2000/svg" | 4 <svg xmlns="http://www.w3.org/2000/svg" |
5 xmlns:xlink="http://www.w3.org/1999/xlink" | 5 xmlns:xlink="http://www.w3.org/1999/xlink" |
6 xmlns:html="http://www.w3.org/1999/xhtml" | 6 xmlns:html="http://www.w3.org/1999/xhtml" |
7 height="600" width="800" onload="runRepaintAndPixelTest()"> | 7 height="600" width="800" onload="runRepaintAndPixelTest()"> |
8 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/> | 8 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/> |
9 <g transform="translate(50,50)"> | 9 <g transform="translate(50,50)"> |
10 <polygon points="0,0 300,0 300,300 0,300" style="fill:lightblue; stroke:red;
"/> | 10 <polygon points="0,0 300,0 300,300 0,300" style="fill:lightblue; stroke:red;
"/> |
11 <!-- switch --> | 11 <!-- switch --> |
12 <foreignObject x="10" y="10" width="280" height="280"> | 12 <foreignObject x="10" y="10" width="280" height="280"> |
13 <html:b>Absolute Lineto</html:b><html:br/> | 13 <html:b>Absolute Lineto</html:b><html:br/> |
14 <path d="M50,80 L250,80 150,280 z" | 14 <path d="M50,80 L250,80 150,280 z" |
15 style="fill:red; stroke:blue;"/> | 15 style="fill:red; stroke:blue;"/> |
16 </foreignObject> | 16 </foreignObject> |
17 <!-- /switch --> | 17 <!-- /switch --> |
18 <path d="M50,80 L250,80 150,280 z" | 18 <path d="M50,80 L250,80 150,280 z" |
19 style="fill:red; stroke:blue;"/> | 19 style="fill:red; stroke:blue;"/> |
20 </g> | 20 </g> |
21 <script> | 21 <script> |
| 22 window.testIsAsync = true; |
22 function repaintTest() { | 23 function repaintTest() { |
23 if (window.eventSender) { | 24 if (window.eventSender) { |
24 testRunner.waitUntilDone(); | |
25 eventSender.mouseMoveTo(100, 100); | 25 eventSender.mouseMoveTo(100, 100); |
26 eventSender.mouseUp(); | 26 eventSender.mouseUp(); |
27 eventSender.mouseDown(); | 27 eventSender.mouseDown(); |
28 setTimeout("testRunner.notifyDone()", 0); | 28 setTimeout(finishRepaintTest, 0); |
29 } | 29 } |
30 } | 30 } |
31 </script> | 31 </script> |
32 </svg> | 32 </svg> |
OLD | NEW |