|
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="domimplementationregistry16"> |
|
20 <metadata> |
|
21 <title>domimplementationregistry16</title> |
|
22 <creator>Curt Arnold</creator> |
|
23 <description> |
|
24 DOMImplementationRegistry.getDOMImplementationList("+cOrE 3.0") should return |
|
25 a list of DOMImplementation |
|
26 where hasFeature("+Core", "3.0") returns true. |
|
27 </description> |
|
28 <date qualifier="created">2004-01-15</date> |
|
29 <subject resource="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/java-binding"/> |
|
30 <subject resource="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/ecma-script-binding"/> |
|
31 <subject resource="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#ID-getDOMImpls"/> |
|
32 </metadata> |
|
33 <var name="domImplRegistry" type="DOMImplementationRegistry"/> |
|
34 <var name="domImpl" type="DOMImplementation"/> |
|
35 <var name="hasFeature" type="boolean"/> |
|
36 <var name="domImplList" type="DOMImplementationList"/> |
|
37 <var name="length" type="int"/> |
|
38 <DOMImplementationRegistry.newInstance var="domImplRegistry"/> |
|
39 <assertNotNull actual="domImplRegistry" id="domImplRegistryNotNull"/> |
|
40 <getDOMImplementationList var="domImplList" obj="domImplRegistry" features='"+cOrE 3.0"' interface="DOMImplementationRegistry"/> |
|
41 <length var="length" obj="domImplList" interface="DOMImplementationList"/> |
|
42 <assertTrue id="atLeastOne"> |
|
43 <greater actual="length" expected="0"/> |
|
44 </assertTrue> |
|
45 <for-each collection="domImplList" member="domImpl"> |
|
46 <hasFeature var="hasFeature" obj="domImpl" feature='"+Core"' version='"3.0"'/> |
|
47 <assertTrue actual="hasFeature" id="hasCore"/> |
|
48 </for-each> |
|
49 </test> |