1 <?xml version=
"1.0" encoding=
"ISO-8859-1" standalone=
"no"?>
2 <!DOCTYPE svg PUBLIC
"-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd">
3 <svg width=
"250" height=
"265" xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" onload=
"runRepaintAndPixelTest()">
4 <script xlink:
href=
"../../fast/repaint/resources/text-based-repaint.js"/>
5 <script type=
"text/ecmascript"><![CDATA[
6 function repaintTest() {
7 if (window.eventSender) {
8 testRunner.waitUntilDone();
9 eventSender.mouseMoveTo(
20,
20);
10 eventSender.mouseDown();
11 eventSender.mouseUp();
13 eventSender.mouseMoveTo(
20,
80);
14 eventSender.mouseDown();
15 eventSender.mouseUp();
17 eventSender.mouseMoveTo(
20,
140);
18 eventSender.mouseDown();
19 eventSender.mouseUp();
21 eventSender.mouseMoveTo(
20,
200);
22 eventSender.mouseDown();
23 eventSender.mouseUp();
25 eventSender.mouseMoveTo(
0,
0);
29 function mouseHandler(evt) {
30 evt.target.style.setProperty(
"fill",
"green",
"");
33 function mouseHandlerLast(evt) {
35 if (window.testRunner)
36 testRunner.notifyDone();
40 <g style=
"fill:red; stroke:navy">
41 <rect id=
"target1" x=
"10" y=
"10" width=
"150" height=
"50" onmousedown=
"mouseHandler(evt)"/>
42 <rect id=
"target2" x=
"10" y=
"70" width=
"150" height=
"50" onmouseup=
"mouseHandler(evt)"/>
43 <rect id=
"target3" x=
"10" y=
"130" width=
"150" height=
"50" onmousemove=
"mouseHandler(evt)"/>
44 <rect id=
"target4" x=
"10" y=
"190" width=
"150" height=
"50" onmouseout=
"mouseHandlerLast(evt)"/>