Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / use-event-handler-on-use-element.svg
blob7545cb9cc3ab6b853845d88aec7398d7d7fa22cb
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"/>
3 <defs>
4 <rect id="reference" x="240" y="1" width="239" height="358"/>
6 <script type="text/ecmascript">
7 <![CDATA[
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();
18 function test() {
19 document.getElementById("text").firstChild.nodeValue = "Test passed.";
20 if (window.testRunner)
21 testRunner.notifyDone();
23 ]]>
24 </script>
25 </defs>
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"/>
31 </svg>