Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / svg / custom / use-event-handler-on-referenced-element-hierarchy.svg
blobd7c8e378e6e038874e74e7764238e4eaabca57da
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"/>
3 <defs id="hidden">
4 <g id="reference">
5 <rect onclick="test(evt)" id="referenceRect" x="240" y="1" width="239" height="358"/>
6 </g>
8 <script type="text/ecmascript">
9 <![CDATA[
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();
22 function test(evt) {
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();
31 ]]>
32 </script>
33 </defs>
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"/>
39 </svg>