Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  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. <!DOCTYPE test SYSTEM "dom3.dtd">
  19. <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-3" name="domimplementationregistry12">
  20. <metadata>
  21. <title>domimplementationregistry12</title>
  22. <creator>Curt Arnold</creator>
  23. <description>
  24. DOMImplementationRegistry.getDOMImplementation("cOrE 3.0 xMl 3.0 eVeNts 2.0 lS") should return null
  25. or a 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-getDOMImpl"/>
  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. <DOMImplementationRegistry.newInstance var="domImplRegistry"/>
  41. <assertNotNull actual="domImplRegistry" id="domImplRegistryNotNull"/>
  42. <getDOMImplementation var="domImpl" obj="domImplRegistry"
  43.         features='"cOrE 3.0 xMl 3.0 eVeNts 2.0 lS"'
  44.         interface="DOMImplementationRegistry"/>
  45. <if>
  46.         <isNull obj="domImpl"/>
  47.         <implementation var="baseImpl"/>
  48.         <hasFeature var="hasCore" obj="baseImpl" feature='"Core"' version='"3.0"'/>
  49.         <hasFeature var="hasXML" obj="baseImpl" feature='"XML"' version='"3.0"'/>
  50.         <hasFeature var="hasEvents" obj="baseImpl" feature='"Events"' version='"2.0"'/>
  51.         <hasFeature var="hasLS" obj="baseImpl" feature='"LS"' version='nullVersion'/>
  52.         <assertFalse id="baseImplFeatures">
  53.                 <and>
  54.                         <isTrue value="hasCore"/>
  55.                         <isTrue value="hasXML"/>
  56.                         <isTrue value="hasEvents"/>
  57.                         <isTrue value="hasLS"/>
  58.                 </and>
  59.         </assertFalse>
  60.         <else>
  61.                 <hasFeature var="hasCore" obj="domImpl" feature='"Core"' version='"3.0"'/>
  62.                 <assertTrue actual="hasCore" id="hasCore"/>
  63.                 <hasFeature var="hasXML" obj="domImpl" feature='"XML"' version='"3.0"'/>
  64.                 <assertTrue actual="hasXML" id="hasXML"/>
  65.                 <hasFeature var="hasEvents" obj="domImpl" feature='"Events"' version='"2.0"'/>
  66.                 <assertTrue actual="hasEvents" id="hasEvents"/>
  67.                 <hasFeature var="hasLS" obj="domImpl" feature='"LS"' version='nullVersion'/>
  68.                 <assertTrue actual="hasLS" id="hasLS"/>
  69.         </else>
  70. </if>
  71. </test>
  72.