1 <svg version=
"1.1" baseProfile=
"basic" xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" onload=
"clickRect()">
2 <script xlink:
href=
"../../fast/repaint/resources/text-based-repaint.js"/>
5 <rect onclick=
"test(evt)" id=
"referenceRect" x=
"240" y=
"1" width=
"239" height=
"358"/>
8 <script type=
"text/ecmascript">
10 if (window.testRunner)
11 testRunner.dumpAsText();
13 function clickRect() {
14 if (window.eventSender) {
15 testRunner.waitUntilDone();
16 eventSender.mouseMoveTo(
250,
50);
17 eventSender.mouseDown();
18 eventSender.mouseUp();
23 var rect = evt.currentTarget;
24 var g = document.getElementById(
"reference");
25 var defs = document.getElementById(
"hidden");
26 if (rect.parentNode == g && rect.parentNode.parentNode == defs)
27 document.getElementById(
"text").firstChild.nodeValue =
"Test passed.";
28 if (window.testRunner)
29 testRunner.notifyDone();
35 <use xlink:
href=
"#reference" fill=
"grey"/>
37 <text id=
"text" transform=
"translate(5,20)">Test failed.
</text>
38 <rect id=
"test-frame" x=
"1" y=
"1" width=
"478" height=
"358" fill=
"none" stroke=
"#000"/>