trunk/resources/tests/dom3/Core/domimplementationregistry23.xml
changeset 0 5057afe1ec87
equal deleted inserted replaced
-1:000000000000 0:5057afe1ec87
       
     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="domimplementationregistry23">
       
    20 <metadata>
       
    21 <title>domimplementationregistry23</title>
       
    22 <creator>Curt Arnold</creator>
       
    23 <description>
       
    24 DOMImplementationRegistry.getDOMImplementationList("cOrE 3.0 xMl 3.0 eVeNts 2.0 lS") 
       
    25 should return an empty list or a list of DOMImplementation that implements the specified features.
       
    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-getDOMImpls"/>
       
    31 </metadata>
       
    32 <var name="domImplRegistry" type="DOMImplementationRegistry"/>
       
    33 <var name="domImpl" type="DOMImplementation"/>
       
    34 <var name="hasCore" type="boolean"/>
       
    35 <var name="hasXML" type="boolean"/>
       
    36 <var name="hasEvents" type="boolean"/>
       
    37 <var name="hasLS" type="boolean"/>
       
    38 <var name="baseImpl" type="DOMImplementation"/>
       
    39 <var name="nullVersion" type="DOMString" isNull="true"/>
       
    40 <var name="domImplList" type="DOMImplementationList"/>
       
    41 <var name="length" type="int"/>
       
    42 <DOMImplementationRegistry.newInstance var="domImplRegistry"/>
       
    43 <assertNotNull actual="domImplRegistry" id="domImplRegistryNotNull"/>
       
    44 <getDOMImplementationList var="domImplList" obj="domImplRegistry" 
       
    45 	features='"cOrE 3.0 xMl 3.0 eVeNts 2.0 lS"'
       
    46 	interface="DOMImplementationRegistry"/>
       
    47 <length var="length" obj="domImplList" interface="DOMImplementationList"/>
       
    48 <if>
       
    49 	<equals actual="length" expected="0" ignoreCase="false"/>
       
    50 	<implementation var="baseImpl"/>
       
    51 	<hasFeature var="hasCore" obj="baseImpl" feature='"Core"' version='"3.0"'/>
       
    52 	<hasFeature var="hasXML" obj="baseImpl" feature='"XML"' version='"3.0"'/>
       
    53 	<hasFeature var="hasEvents" obj="baseImpl" feature='"Events"' version='"2.0"'/>
       
    54 	<hasFeature var="hasLS" obj="baseImpl" feature='"LS"' version='nullVersion'/>
       
    55 	<assertFalse id="baseImplFeatures">
       
    56 		<and>
       
    57 			<isTrue value="hasCore"/>
       
    58 			<isTrue value="hasXML"/>
       
    59 			<isTrue value="hasEvents"/>
       
    60 			<isTrue value="hasLS"/>
       
    61 		</and>
       
    62 	</assertFalse>
       
    63 	<else>
       
    64 		<for-each collection="domImplList" member="domImpl">
       
    65 			<hasFeature var="hasCore" obj="domImpl" feature='"Core"' version='"3.0"'/>
       
    66 			<assertTrue actual="hasCore" id="hasCore"/>
       
    67 			<hasFeature var="hasXML" obj="domImpl" feature='"XML"' version='"3.0"'/>
       
    68 			<assertTrue actual="hasXML" id="hasXML"/>
       
    69 			<hasFeature var="hasEvents" obj="domImpl" feature='"Events"' version='"2.0"'/>
       
    70 			<assertTrue actual="hasEvents" id="hasEvents"/>
       
    71 			<hasFeature var="hasLS" obj="domImpl" feature='"LS"' version='nullVersion'/>
       
    72 			<assertTrue actual="hasLS" id="hasLS"/>
       
    73 		</for-each>
       
    74 	</else>
       
    75 </if>
       
    76 </test>