1 <svg 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 <script type=
"text/ecmascript">
6 function changeColor(evt) {
7 evt.target.setAttribute('fill', 'green');
10 if (window.testRunner)
11 testRunner.notifyDone();
14 function repaintTest() {
15 if (window.eventSender) {
16 testRunner.waitUntilDone();
17 eventSender.mouseMoveTo(
50,
50);
18 eventSender.mouseDown();
19 eventSender.mouseUp();
25 <a xlink:
href=
"javascript:void(document.getElementById('rect').style.fill='red')">
26 <rect id='rect'
onclick=
"changeColor(evt)" width='
100' height='
100' fill='orange'
/>