1 <svg version=
"1.1" baseProfile=
"basic" xmlns=
"http://www.w3.org/2000/svg" xmlns:
xlink=
"http://www.w3.org/1999/xlink" onload=
"runRepaintAndPixelTest()">
2 <script xlink:
href=
"../../fast/repaint/resources/text-based-repaint.js"/>
4 <rect id=
"reference" x=
"240" y=
"1" width=
"239" height=
"358"/>
6 <script type=
"text/ecmascript">
8 window.outputRepaintRects = false;
9 function repaintTest() {
10 if (window.eventSender) {
11 testRunner.waitUntilDone();
12 eventSender.mouseMoveTo(
250,
50);
13 eventSender.mouseDown();
14 eventSender.mouseUp();
19 document.getElementById(
"text").firstChild.nodeValue =
"Test passed.";
20 if (window.testRunner)
21 testRunner.notifyDone();
27 <use id=
"use" onclick=
"test()" xlink:
href=
"#reference" fill=
"grey"/>
29 <text id=
"text" transform=
"translate(5,20)">Test failed.
</text>
30 <rect id=
"test-frame" x=
"1" y=
"1" width=
"478" height=
"358" fill=
"none" stroke=
"#000"/>