0
|
1 |
<?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
|
|
2 |
|
|
3 |
<!--
|
|
4 |
|
|
5 |
Copyright (c) 2001-2004 World Wide Web Consortium,
|
|
6 |
(Massachusetts Institute of Technology, Institut National de
|
|
7 |
Recherche en Informatique et en Automatique, Keio University). All
|
|
8 |
Rights Reserved. This program is distributed under the W3C's Software
|
|
9 |
Intellectual Property License. This program is distributed in the
|
|
10 |
hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
|
11 |
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
|
|
12 |
PURPOSE.
|
|
13 |
|
|
14 |
See W3C License http://www.w3.org/Consortium/Legal/ for more details.
|
|
15 |
|
|
16 |
-->
|
|
17 |
|
|
18 |
|
|
19 |
<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-3" name="nodegetfeature13">
|
|
20 |
<metadata>
|
|
21 |
<title>nodegetfeature13</title>
|
|
22 |
<creator>Curt Arnold</creator>
|
|
23 |
<description>
|
|
24 |
Check implementation of Node.getFeature on Notation.
|
|
25 |
</description>
|
|
26 |
<date qualifier="created">2004-02-25</date>
|
|
27 |
<subject resource="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#Node3-getFeature"/>
|
|
28 |
</metadata>
|
|
29 |
<var name="doc" type="Document"/>
|
|
30 |
<var name="node" type="Node"/>
|
|
31 |
<var name="nullVersion" type="DOMString" isNull="true"/>
|
|
32 |
<var name="featureImpl" type="Node"/>
|
|
33 |
<var name="isSupported" type="boolean"/>
|
|
34 |
<var name="domImpl" type="DOMImplementation"/>
|
|
35 |
<var name="notations" type="NamedNodeMap"/>
|
|
36 |
<var name="doctype" type="DocumentType"/>
|
|
37 |
<load var="doc" href="hc_staff" willBeModified="false"/>
|
|
38 |
<implementation var="domImpl" obj="doc"/>
|
|
39 |
<doctype var="doctype" obj="doc"/>
|
|
40 |
<notations var="notations" obj="doctype"/>
|
|
41 |
<getNamedItem var="node" obj="notations" name='"notation1"'/>
|
|
42 |
<getFeature interface="Node" var="featureImpl" obj="node" feature='"Core"' version="nullVersion"/>
|
|
43 |
<assertSame actual="featureImpl" expected="node" id="coreUnspecifiedVersion"/>
|
|
44 |
<getFeature interface="Node" var="featureImpl" obj="node" feature='"cOrE"' version="nullVersion"/>
|
|
45 |
<assertSame actual="featureImpl" expected="node" id="cOrEUnspecifiedVersion"/>
|
|
46 |
<getFeature interface="Node" var="featureImpl" obj="node" feature='"+cOrE"' version="nullVersion"/>
|
|
47 |
<assertSame actual="featureImpl" expected="node" id="PlusCoreUnspecifiedVersion"/>
|
|
48 |
<getFeature interface="Node" var="featureImpl" obj="node" feature='"org.w3c.domts.bogus.feature"' version="nullVersion"/>
|
|
49 |
<assertNull actual="featureImpl" id="unrecognizedFeature"/>
|
|
50 |
<getFeature interface="Node" var="featureImpl" obj="node" feature='"cOrE"' version='"2.0"'/>
|
|
51 |
<assertSame actual="featureImpl" expected="node" id="Core20"/>
|
|
52 |
<getFeature interface="Node" var="featureImpl" obj="node" feature='"cOrE"' version='"3.0"'/>
|
|
53 |
<assertSame actual="featureImpl" expected="node" id="Core30"/>
|
|
54 |
<!-- ask for some well-known feature,
|
|
55 |
can't say that they will be supported but they should not throw an exception -->
|
|
56 |
<isSupported var="isSupported" obj="node" feature='"XML"' version="nullVersion"/>
|
|
57 |
<getFeature interface="Node" var="featureImpl" obj="node" feature='"XML"' version='nullVersion'/>
|
|
58 |
<if><isTrue value="isSupported"/><assertSame actual="featureImpl" expected="node" id="XMLUnspecified"/></if>
|
|
59 |
<isSupported var="isSupported" obj="node" feature='"SVG"' version="nullVersion"/>
|
|
60 |
<getFeature interface="Node" var="featureImpl" obj="node" feature='"SVG"' version='nullVersion'/>
|
|
61 |
<if><isTrue value="isSupported"/><assertSame actual="featureImpl" expected="node" id="SVGUnspecified"/></if>
|
|
62 |
<isSupported var="isSupported" obj="node" feature='"HTML"' version="nullVersion"/>
|
|
63 |
<getFeature interface="Node" var="featureImpl" obj="node" feature='"HTML"' version='nullVersion'/>
|
|
64 |
<if><isTrue value="isSupported"/><assertSame actual="featureImpl" expected="node" id="HTMLUnspecified"/></if>
|
|
65 |
<isSupported var="isSupported" obj="node" feature='"Events"' version="nullVersion"/>
|
|
66 |
<getFeature interface="Node" var="featureImpl" obj="node" feature='"Events"' version='nullVersion'/>
|
|
67 |
<if><isTrue value="isSupported"/><assertSame actual="featureImpl" expected="node" id="EventsUnspecified"/></if>
|
|
68 |
<isSupported var="isSupported" obj="node" feature='"LS"' version="nullVersion"/>
|
|
69 |
<getFeature interface="Node" var="featureImpl" obj="node" feature='"LS"' version='nullVersion'/>
|
|
70 |
<if><isTrue value="isSupported"/><assertSame actual="featureImpl" expected="node" id="LSUnspecified"/></if>
|
|
71 |
<isSupported var="isSupported" obj="node" feature='"LS-Async"' version="nullVersion"/>
|
|
72 |
<getFeature interface="Node" var="featureImpl" obj="node" feature='"LS-Async"' version='nullVersion'/>
|
|
73 |
<if><isTrue value="isSupported"/><assertSame actual="featureImpl" expected="node" id="LSAsyncUnspecified"/></if>
|
|
74 |
<isSupported var="isSupported" obj="node" feature='"XPath"' version="nullVersion"/>
|
|
75 |
<getFeature interface="Node" var="featureImpl" obj="node" feature='"XPath"' version='nullVersion'/>
|
|
76 |
<if><isTrue value="isSupported"/><assertSame actual="featureImpl" expected="node" id="XPathUnspecified"/></if>
|
|
77 |
<isSupported var="isSupported" obj="node" feature='"+HTML"' version="nullVersion"/>
|
|
78 |
<getFeature interface="Node" var="featureImpl" obj="node" feature='"HTML"' version='nullVersion'/>
|
|
79 |
<if><isTrue value="isSupported"/><assertNotNull actual="featureImpl" id="PlusHTMLUnspecified"/></if>
|
|
80 |
<isSupported var="isSupported" obj="node" feature='"+SVG"' version="nullVersion"/>
|
|
81 |
<getFeature interface="Node" var="featureImpl" obj="node" feature='"SVG"' version='nullVersion'/>
|
|
82 |
<if><isTrue value="isSupported"/><assertNotNull actual="featureImpl" id="PlusSVGUnspecified"/></if>
|
|
83 |
</test>
|