Debian Codegraph @

samples/tests/spec/scripting/primaryDoc.svg

raw
1 <?xml version="1.0" standalone="no"?>
2
3 <!--
4
5 Licensed to the Apache Software Foundation (ASF) under one or more
6 contributor license agreements. See the NOTICE file distributed with
7 this work for additional information regarding copyright ownership.
8 The ASF licenses this file to You under the Apache License, Version 2.0
9 (the "License"); you may not use this file except in compliance with
10 the License. You may obtain a copy of the License at
11
12 http://www.apache.org/licenses/LICENSE-2.0
13
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
19
20 -->
21 <!-- ====================================================================== -->
22 <!-- Document that references resource documents -->
23 <!-- -->
24 <!-- @author [email protected] -->
25 <!-- @version $Id$ -->
26 <!-- ====================================================================== -->
27
28 <svg xmlns="http://www.w3.org/2000/svg"
29 xmlns:xlink="http://www.w3.org/1999/xlink"
30 version="1.1" width="400" height="400" viewBox="0 0 400 400">
31 <script type="text/ecmascript"><![CDATA[
32 var inRegard = false;
33 var es = ["u1", "u2", "u3", "u4"];
34 var all = es.concat(["u1res", "u2res", "u3res", "u4res"]);
35
36 function regardStart() {
37 inRegard = true;
38
39 regardTestInstance.registerResourceContext("Static11", "u1res");
40 regardTestInstance.registerResourceContext("Dynamic11", "u2res");
41 regardTestInstance.registerResourceContext("Static12", "u3res");
42 regardTestInstance.registerResourceContext("Dynamic12", "u4res");
43
44 for (var i in es) {
45 var e = document.getElementById(es[i]);
46 regardTestInstance.registerElement(e, es[i]);
47 e.parentNode.removeChild(e);
48 }
49
50 setTimeout("checkElem()", 10);
51 }
52
53 function checkElem() {
54 regardTestInstance.checkObjects(all);
55 // System.err.println("finished checking, waiting 10s"); java.lang.Thread.sleep(10000);
56 regardTestInstance.scriptDone();
57 }
58 ]]></script>
59
60 <use id="u1" xlink:href="resourceDocStatic11.svg#e"/>
61 <use id="u2" xlink:href="resourceDocDynamic11.svg#e"/>
62 <use id="u3" xlink:href="resourceDocStatic12.svg#e"/>
63 <use id="u4" xlink:href="resourceDocDynamic12.svg#e"/>
64 </svg>