OLD | NEW |
1 <svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink="http://www.w3.org/1999/xlin
k" onload="runRepaintTest()">> | 1 <svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink="http://www.w3.org/1999/xlin
k" onload="runRepaintAndPixelTest()">> |
2 <script xlink:href="../../fast/repaint/resources/repaint.js"/> | 2 <script xlink:href="../../fast/repaint/resources/text-based-repaint.js"/> |
3 <script> | 3 <script> |
4 function clickHandler(evt) { | 4 function clickHandler(evt) { |
5 evt.target.style.fill = "green"; | 5 evt.target.style.fill = "green"; |
6 if (window.testRunner) | 6 if (window.testRunner) |
7 testRunner.notifyDone(); | 7 testRunner.notifyDone(); |
8 } | 8 } |
9 | 9 |
10 function repaintTest() { | 10 function repaintTest() { |
11 if (window.eventSender) { | 11 if (window.eventSender) { |
12 testRunner.waitUntilDone(); | 12 testRunner.waitUntilDone(); |
13 eventSender.mouseMoveTo(50, 50); | 13 eventSender.mouseMoveTo(50, 50); |
14 eventSender.mouseDown(); | 14 eventSender.mouseDown(); |
15 eventSender.mouseUp(); | 15 eventSender.mouseUp(); |
16 } | 16 } |
17 } | 17 } |
18 </script> | 18 </script> |
19 <path onclick="clickHandler(evt)" fill="red" stroke="black" stroke-width="3" d="
M 10 10 l 0 100 l 100 0 l 0 -100 M 120 10 l 0 100 l 100 0 l 0 -100"/> | 19 <path onclick="clickHandler(evt)" fill="red" stroke="black" stroke-width="3" d="
M 10 10 l 0 100 l 100 0 l 0 -100 M 120 10 l 0 100 l 100 0 l 0 -100"/> |
20 | 20 |
21 <text x="10" y="150">There should be 2 green squares above this (when run under
DumpRenderTree)</text> | 21 <text x="10" y="150">There should be 2 green squares above this (when run under
DumpRenderTree)</text> |
22 | 22 |
23 </svg> | 23 </svg> |
OLD | NEW |