trunk/resources/tests/dom3/Core/domimplementationregistry11.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="domimplementationregistry11">
       
    20 <metadata>
       
    21 <title>domimplementationregistry11</title>
       
    22 <creator>Curt Arnold</creator>
       
    23 <description>
       
    24 DOMImplementationRegistry.getDOMImplementation("XPath") should return null or a DOMImplementation
       
    25 where hasFeature("XPath", 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 <var name="domImplRegistry" type="DOMImplementationRegistry"/>
       
    33 <var name="domImpl" type="DOMImplementation"/>
       
    34 <var name="hasFeature" type="boolean"/>
       
    35 <var name="baseImpl" type="DOMImplementation"/>
       
    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" 
       
    40 	features='"XPath"'
       
    41 	interface="DOMImplementationRegistry"/>
       
    42 <if>
       
    43 	<isNull obj="domImpl"/>
       
    44 	<implementation var="baseImpl"/>
       
    45 	<hasFeature var="hasFeature" feature='"XPath"' version="nullVersion"/>
       
    46 	<assertFalse actual="hasFeature" id="baseImplSupportsLS"/>
       
    47 	<else>
       
    48 		<hasFeature var="hasFeature" obj="domImpl" feature='"XPath"' version="nullVersion"/>
       
    49 		<assertTrue actual="hasFeature" id="hasCore"/>
       
    50 	</else>
       
    51 </if>
       
    52 </test>