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.  
  18. <!DOCTYPE test SYSTEM "dom3.dtd">
  19. <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-3" name="allowedAttributes">
  20. <metadata>
  21.  
  22. <title>allowedAttributes</title>
  23. <creator>Kongyi Zhou</creator>
  24. <description>
  25.         The method getAllowedAttributes returns the NameList of allowed attributes for
  26.        the element.
  27. </description>
  28. <contributor>Oracle Corp.</contributor>
  29. <date qualifier="created">2003-03-01</date>
  30. <subject resource="http://www.w3.org/TR/2003/CR-DOM-Level-3-Val-20030730/validation#ElementEditVAL-allowedAttributes"/>
  31. </metadata>
  32. <implementationAttribute name="schemaValidating" value="true"/>
  33.  
  34. <var name="doc" type="Document"/>
  35. <var name="root" type="ElementEditVAL"/>
  36. <var name="attrlist" type="NameList"/>
  37. <var name="attname" type="DOMString"/>
  38. <var name="allowedAttributesLength" type="int"/>
  39. <load var="doc" href="book" willBeModified="false"/>
  40. <documentElement obj="doc"  var="root"/>
  41. <allowedAttributes obj="root" var="attrlist"/>
  42. <assertNotNull actual="attrlist" id="allowedAttributesNotNull"/>
  43. <length var="allowedAttributesLength" obj="attrlist" interface="NameList"/>
  44. <assertEquals actual="allowedAttributesLength" expected="2" id="allowedAttributes" ignoreCase="false"/>
  45. </test>
  46.