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="domimplementationcreatedocumenttype01">
  20. <metadata>
  21. <title>domimplementationcreatedocumenttype01</title>
  22. <creator>IBM</creator>
  23. <description>
  24.         The method createDocumentType with valid values for qualifiedName, publicId and
  25.         systemId should create an empty DocumentType node.
  26.        
  27.         Invoke createDocument on this DOMImplementation with a valid qualifiedName and different
  28.         publicIds and systemIds.  Check if the the DocumentType node was created with its
  29.         ownerDocument attribute set to null.
  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. <var name="doc" type="Document"/>              
  36. <var name="domImpl" type="DOMImplementation"/>
  37. <var name="newDocType" type="DocumentType"/>
  38. <var name="ownerDocument" type="Document"/>
  39. <var name="qualifiedName" type="DOMString" value="&quot;test:root&quot;"/>
  40. <var name="publicId" type="DOMString"/>
  41. <var name="systemId" type="DOMString"/>
  42. <var name="publicIds" type="List">
  43. <member>&quot;1234&quot;</member>
  44. <member>&quot;test&quot;</member>
  45. </var>
  46. <var name="systemIds" type="List">
  47. <member>&quot;&quot;</member>
  48. <member>&quot;test&quot;</member>
  49. </var>
  50. <load var="doc" href="staffNS" willBeModified="false"/>
  51. <implementation obj="doc" var="domImpl"/>
  52. <for-each collection="publicIds" member="publicId">
  53. <for-each collection="systemIds" member="systemId">
  54. <createDocumentType obj="domImpl" var="newDocType" qualifiedName="qualifiedName" publicId="publicId" systemId="systemId"/>
  55. <assertNotNull actual="newDocType" id="domimplementationcreatedocumenttype01_newDocType"/>
  56. <ownerDocument obj="newDocType" var="ownerDocument"/>
  57. <assertNull actual="ownerDocument" id="domimplementationcreatedocumenttype01_ownerDocument"/>
  58. </for-each>
  59. </for-each>
  60. </test>
  61.