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) 2001 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 "dom2.dtd">
  19. <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="domimplementationcreatedocument03">
  20. <metadata>
  21. <title>domimplementationcreatedocument03</title>
  22. <creator>IBM</creator>
  23. <description>
  24.     The createDocument method with valid arguments, should create a DOM Document of
  25.     the specified type.  
  26.    
  27.     Call the createDocument on this DOMImplementation with
  28.     createDocument ("http://www.w3.org/DOMTest/L2",see the array below for valid QNames,null).  
  29.     Check if the returned Document object is is empty with no Document Element.
  30. </description>
  31. <contributor>Neil Delima</contributor>
  32. <date qualifier="created">2002-04-24</date>
  33. <subject resource="http://www.w3.org/TR/DOM-Level-2-Core/core#Level-2-Core-DOM-createDocument"/>
  34. </metadata>
  35. <implementationAttribute name="namespaceAware" value="true"/>
  36. <var name="doc" type="Document"/>              
  37. <var name="domImpl" type="DOMImplementation"/>
  38. <var name="newDoc" type="Document"/>
  39. <var name="docType" type="DocumentType" isNull="true"/>
  40. <var name="namespaceURI" type="DOMString" value="&quot;http://www.w3.org/DOMTest/L2&quot;"/>
  41. <var name="qualifiedName" type="DOMString"/>
  42. <var name="qualifiedNames" type="List">
  43. <member>&quot;_:_&quot;</member>
  44. <member>&quot;_:h0&quot;</member>
  45. <member>&quot;_:test&quot;</member>
  46. <member>&quot;l_:_&quot;</member>
  47. <member>&quot;ns:_0&quot;</member>
  48. <member>&quot;ns:a0&quot;</member>
  49. <member>&quot;ns0:test&quot;</member>
  50. <member>&quot;a.b:c&quot;</member>
  51. <member>&quot;a-b:c&quot;</member>
  52. <member>&quot;a-b:c&quot;</member>
  53. </var>
  54. <load var="doc" href="staffNS" willBeModified="false"/>
  55. <implementation obj="doc" var="domImpl"/>
  56. <for-each collection="qualifiedNames" member="qualifiedName">
  57. <createDocument obj="domImpl" var="newDoc" namespaceURI="namespaceURI" qualifiedName="qualifiedName" doctype="docType"/>
  58. <assertNotNull actual="newDoc" id="domimplementationcreatedocument03"/>
  59. </for-each>
  60. </test>
  61.