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"?>
  2. <!--
  3. Copyright (c) 2001-2004 World Wide Web Consortium,
  4. (Massachusetts Institute of Technology, Institut National de
  5. Recherche en Informatique et en Automatique, Keio University). All
  6. Rights Reserved. This program is distributed under the W3C's Software
  7. Intellectual Property License. This program is distributed in the
  8. hope that it will be useful, but WITHOUT ANY WARRANTY; without even
  9. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  10. PURPOSE.
  11. See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  12. --><!DOCTYPE test SYSTEM "dom1.dtd">
  13.  
  14. <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodecdatasectionnodeattribute">
  15. <metadata>
  16. <title>nodeCDATASectionNodeAttribute</title>
  17. <creator>NIST</creator>
  18. <description>
  19. The "getAttributes()" method invoked on a CDATASection
  20. Node returns null.
  21.  
  22. Retrieve the CDATASection node contained inside the
  23. second child of the second employee and invoke the
  24. "getAttributes()" method on the CDATASection node.
  25. It should return null.
  26. </description>
  27. <contributor>Mary Brady</contributor>
  28. <date qualifier="created">2001-08-17</date>
  29. <!--attributes attribute -->
  30. <subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/>
  31. <!-- CDATASection interface  -->
  32. <subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-667469212"/>
  33. </metadata>
  34. <var name="doc" type="Document"/>
  35. <var name="elementList" type="NodeList"/>
  36. <var name="cdataName" type="Element"/>
  37. <var name="cdataNode" type="Node"/>
  38. <var name="attrList" type="NamedNodeMap"/>
  39. <var name="nodeType" type="int"/>
  40. <load var="doc" href="staff" willBeModified="false"/>
  41. <getElementsByTagName interface="Document" obj="doc" var="elementList" tagname="&quot;name&quot;"/>
  42. <item interface="NodeList" obj="elementList" index="1" var="cdataName"/>
  43. <lastChild interface="Node" obj="cdataName" var="cdataNode"/>
  44. <nodeType var="nodeType" obj="cdataNode"/>
  45. <if><notEquals actual="nodeType" expected="4" ignoreCase="false"/>
  46.         <createCDATASection var="cdataNode" obj="doc" data='""'/>
  47. </if>
  48. <attributes obj="cdataNode" var="attrList"/>
  49. <assertNull actual="attrList" id="cdataSection"/>
  50. </test>
  51.