Rubber-stamped by Brady Eidson.
[webbrowser.git] / LayoutTests / svg / custom / linking-a-03-b-viewTarget.svg
blob274531b64c118984a81916b4613cbe11e6357261
1 <?xml version="1.0" encoding="UTF-8"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">
3 <!--======================================================================-->
4 <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
5 <!--= Institute of Technology, Institut National de Recherche en =-->
6 <!--= Informatique et en Automatique, Keio University). All Rights =-->
7 <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
8 <!--======================================================================-->
9 <!-- ===================================================================== -->
10 <!-- linking-a-03-b.svg -->
11 <!-- Notes. This is based on sample files by Kelvin Lawrence et al, for -->
12 <!-- IBM's SVGview. Requires supplemental file, linkingCircle-f.svg. -->
13 <!-- Author : Lofton Henderson 03-April-2000 -->
14 <!--======================================================================-->
15 <svg version="1.1" baseProfile="basic" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360" onload="clickLinkSoon()">
16 <script type="text/ecmascript"><![CDATA[
17 if (window.layoutTestController)
18 window.layoutTestController.waitUntilDone();
20 function clickLinkSoon()
22 window.setTimeout("clickLinkNow()", 0);
25 function clickLinkNow() {
26 if (window.eventSender) {
27 eventSender.mouseMoveTo(240, 180);
28 eventSender.mouseDown();
29 eventSender.mouseUp();
30 } else {
31 // in manual mode
32 alert("Please use run-webkit-tests.");
35 ]]>
36 </script>
37 <title id="test-title">linking-a-03-b</title>
38 <desc id="test-desc">Basic in-bound link object addressing formats.</desc>
39 <!--======================================================================-->
40 <!--Content of Test Case follows... =====================-->
41 <!--======================================================================-->
42 <g id="test-body-content" transform="scale(2)">
43 <a xlink:href="resources/linkingCircle-f.svg#svgView(viewTarget(Someelement)))">
44 <path fill="aqua" stroke="blue" d="M 185,40 h -100 v -12 l -45 36 l 45 36 v -12 h 100 z"/>
45 </a>
46 </g>
47 <text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.2 $</text>
48 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
49 </svg>