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="domimplementationregistry17">
  20. <metadata>
  21. <title>domimplementationregistry17</title>
  22. <creator>Curt Arnold</creator>
  23. <description>
  24. If the implementation supports "XML", DOMImplementationRegistry.getDOMImplementationList("xMl 3.0 cOrE") should
  25. return a list of 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-getDOMImpls"/>
  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. <var name="domImplList" type="DOMImplementationList"/>
  38. <var name="length" type="int"/>
  39. <DOMImplementationRegistry.newInstance var="domImplRegistry"/>
  40. <assertNotNull actual="domImplRegistry" id="domImplRegistryNotNull"/>
  41. <getDOMImplementationList var="domImplList" obj="domImplRegistry" features='"xMl 3.0 cOrE"' interface="DOMImplementationRegistry"/>
  42. <length var="length" obj="domImplList" interface="DOMImplementationList"/>
  43. <assertTrue id="atLeastOne">
  44.         <greater actual="length" expected="0"/>
  45. </assertTrue>
  46. <for-each collection="domImplList" member="domImpl">
  47.         <hasFeature var="hasFeature" obj="domImpl" feature='"XML"' version='"3.0"'/>
  48.         <assertTrue actual="hasFeature" id="hasXML3"/>
  49.         <hasFeature var="hasFeature" obj="domImpl" feature='"Core"' version='nullVersion'/>
  50.         <assertTrue actual="hasFeature" id="hasCore"/>
  51. </for-each>
  52. </test>
  53.