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) 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="domimplementationregistry06">
|
|
20 |
<metadata>
|
|
21 |
<title>domimplementationregistry06</title>
|
|
22 |
<creator>Curt Arnold</creator>
|
|
23 |
<description>
|
|
24 |
If the implementation supports "XML", DOMImplementationRegistry.getDOMImplementation("xMl 3.0 cOrE") should
|
|
25 |
return a DOMImplementation where hasFeature("XML", "3.0"), and hasFeature("Core", null) returns true.
|
|
26 |
</description>
|
|
27 |
<date qualifier="created">2004-01-15</date>
|
|
28 |
<subject resource="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding"/>
|
|
29 |
<subject resource="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/ecma-script-binding"/>
|
|
30 |
<subject resource="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#ID-getDOMImpl"/>
|
|
31 |
</metadata>
|
|
32 |
<hasFeature feature='"XML"'/>
|
|
33 |
<var name="domImplRegistry" type="DOMImplementationRegistry"/>
|
|
34 |
<var name="domImpl" type="DOMImplementation"/>
|
|
35 |
<var name="hasFeature" type="boolean"/>
|
|
36 |
<var name="nullVersion" type="DOMString" isNull="true"/>
|
|
37 |
<DOMImplementationRegistry.newInstance var="domImplRegistry"/>
|
|
38 |
<assertNotNull actual="domImplRegistry" id="domImplRegistryNotNull"/>
|
|
39 |
<getDOMImplementation var="domImpl" obj="domImplRegistry" features='"xMl 3.0 cOrE"' interface="DOMImplementationRegistry"/>
|
|
40 |
<assertNotNull actual="domImpl" id="domImplNotNull"/>
|
|
41 |
<hasFeature var="hasFeature" obj="domImpl" feature='"XML"' version='"3.0"'/>
|
|
42 |
<assertTrue actual="hasFeature" id="hasXML3"/>
|
|
43 |
<hasFeature var="hasFeature" obj="domImpl" feature='"Core"' version='nullVersion'/>
|
|
44 |
<assertTrue actual="hasFeature" id="hasCore"/>
|
|
45 |
</test>
|