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. <?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
  3.  
  4. <!--
  5.  
  6. Copyright (c) 2003 Oracle
  7.  
  8. All Rights Reserved.  This program is distributed under the W3C's
  9. Software Intellectual Property License [1].  This program is distributed
  10. in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
  11. even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  12. PURPOSE.
  13.  
  14. [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
  15.  
  16. -->
  17. <!DOCTYPE test SYSTEM "dom3.dtd">
  18. <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-3" name="allowedChildren">
  19. <metadata>
  20.  
  21. <title>allowedChildren</title>
  22. <creator>Kongyi Zhou</creator>
  23. <description>
  24.    The method getAllowedChildren returns the NameList of allowed child elements.
  25.    should return NameList of length 7  
  26. </description>
  27. <contributor>Oracle Corp.</contributor>
  28. <date qualifier="created">2003-03-01</date>
  29. <subject resource="http://www.w3.org/TR/2003/CR-DOM-Level-3-Val-20030730/validation#ElementEditVAL-allowedChildren"/>
  30. </metadata>
  31. <implementationAttribute name="schemaValidating" value="true"/>
  32.  
  33. <var name="doc" type="Document"/>
  34. <var name="root" type="ElementEditVAL"/>
  35. <var name="nlist" type="NameList"/>
  36. <var name="allowedChildrenLength" type="int"/>
  37. <load var="doc" href="book" willBeModified="false"/>
  38. <documentElement obj="doc"  var="root"/>
  39. <allowedChildren obj="root" var="nlist"/>
  40. <assertNotNull actual="nlist" id="allowedChildrenNotNull"/>
  41. <length var="allowedChildrenLength" obj="nlist" interface="NameList"/>
  42. <assertEquals actual="allowedChildrenLength" expected="7" id="allowedChildren" ignoreCase="false"/>
  43. </test>
  44.  
  45.  
  46.  
  47.