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. <!--
  4.  
  5. Copyright (c) 2003 Oracle
  6.  
  7. All Rights Reserved.  This program is distributed under the W3C's
  8. Software Intellectual Property License [1].  This program is distributed
  9. in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
  10. even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE.
  12.  
  13. [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
  14.  
  15. -->
  16. <!DOCTYPE test SYSTEM "dom3.dtd">
  17. <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-3" name="allowedNextSiblings">
  18. <metadata>
  19.  
  20. <title>allowedNextSiblings</title>
  21. <creator>Kongyi Zhou</creator>
  22. <description>
  23.    The method getAllowedNextSiblings return the NameList of elements that may be
  24.    inserted, should return empty list.  
  25. </description>
  26. <contributor>Oracle Corp.</contributor>
  27. <date qualifier="created">2003-03-01</date>
  28. <subject resource="http://www.w3.org/TR/2003/CR-DOM-Level-3-Val-20030730/validation#ElementEditVAL-allowedNextSiblings"/>
  29. </metadata>
  30. <implementationAttribute name="schemaValidating" value="true"/>
  31.  
  32. <var name="doc" type="Document"/>
  33. <var name="elem" type="ElementEditVAL"/>
  34. <var name="nlist" type="NameList"/>
  35. <var name="elemList" type="NodeList"/>
  36. <var name="childname" type="DOMString"/>
  37. <load var="doc" href="book" willBeModified="false"/>
  38. <getElementsByTagName obj="doc" interface="Document" var="elemList" tagname='"author"'/>
  39. <item interface="NodeList" obj="elemList" index="0" var="elem"/>
  40. <allowedNextSiblings obj="elem" var="nlist"/>
  41. <assertNotNull actual="nlist" id="allowedNextSiblingsNotNull"/>
  42. <getName interface="NameList" obj="nlist" index="0" var="childname"/>
  43. <!--  since ISBN is already present, no insertable sibling   -->
  44. <assertNull actual="childname" id="noAllowableNextSibling"/>
  45. </test>