Debian Codegraph @

samples/tests/spec/scripting/memoryLeak1.svg

raw
1 <?xml version="1.0" standalone="no"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000802//EN"
3 "http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd">
4
5 <!--
6
7 Licensed to the Apache Software Foundation (ASF) under one or more
8 contributor license agreements. See the NOTICE file distributed with
9 this work for additional information regarding copyright ownership.
10 The ASF licenses this file to You under the Apache License, Version 2.0
11 (the "License"); you may not use this file except in compliance with
12 the License. You may obtain a copy of the License at
13
14 http://www.apache.org/licenses/LICENSE-2.0
15
16 Unless required by applicable law or agreed to in writing, software
17 distributed under the License is distributed on an "AS IS" BASIS,
18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 See the License for the specific language governing permissions and
20 limitations under the License.
21
22 -->
23 <!-- ====================================================================== -->
24 <!-- Modification of text children -->
25 <!-- -->
26 <!-- @author [email protected] -->
27 <!-- @version $Id$ -->
28 <!-- ====================================================================== -->
29
30 <svg xmlns="http://www.w3.org/2000/svg" id="body" width="450" height="500" viewBox="0 0 450 500">
31 <script type="text/ecmascript"><![CDATA[
32 var inRegard=false;
33 var elems = new Array
34 ("t1", "t2", "r1", "r2", "c1", "c2", "ts1", "ts2", "xxx");
35
36 function regardStart() {
37 inRegard=true;
38
39 var elem;
40 for(var i=0; i<elems.length; i++) {
41 var elem = document.getElementById(elems[i]);
42 regardTestInstance.registerElement(elem, elems[i]);
43 elem.parentNode.removeChild(elem);
44 }
45
46 setTimeout("checkElem()", 10);
47 }
48
49 function checkElem() {
50 regardTestInstance.checkObjects(elems);
51 // setTimeout("regardTestInstance.scriptDone()", 30000);
52 regardTestInstance.scriptDone();
53 }
54 ]]></script>
55
56 <defs>
57 <rect id="xxx" x="10" y="150" width="100" height="50" fill="purple"/>
58 </defs>
59
60 <g id="test-content">
61 <g style="font-size:20" >
62 <text id="t1_bg" x="5" y="135" fill="purple" >Simple Text</text>
63 <text id="t2" x="155" y="135" fill="crimson">Simple Text</text>
64 <text id="t1" x="305" y="135" fill="gold" >Simple Text</text>
65 </g>
66
67 <g>
68 <rect id="r_bg" x="10" y="150" width="100" height="50" fill="purple"/>
69 <rect id="r1" x="160" y="150" width="100" height="50" fill="crimson"/>
70 <rect id="r2" x="310" y="150" width="100" height="50" fill="gold"/>
71 </g>
72
73 <g>
74 <circle id="c_bg" cx="60" cy="235" r="25" fill="purple"/>
75 <circle id="c1" cx="210" cy="235" r="25" fill="crimson"/>
76 <circle id="c2" cx="360" cy="235" r="25" fill="gold"/>
77 </g>
78
79 <g style="font-size:15" >
80 <text x="5" y="290" fill="purple">Some
81 <tspan id="ts_bg" font-weight="bold">Complex</tspan> Text</text>
82 <text x="155" y="290" fill="crimson">Some
83 <tspan id="ts1" font-weight="bold">Complex</tspan> Text</text>
84 <text x="305" y="290" fill="gold">Some
85 <tspan id="ts2" font-weight="bold">Complex</tspan> Text</text>
86 </g>
87 </g>
88 </svg>