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. Copyright (c) 2001-2004 World Wide Web Consortium,
  5. (Massachusetts Institute of Technology, Institut National de
  6. Recherche en Informatique et en Automatique, Keio University).  All
  7. Rights Reserved.  This program is distributed under the W3C's Software
  8. Intellectual Property License.  This program is distributed in the
  9. hope that it will be useful, but WITHOUT ANY WARRANTY; without even
  10. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  11. PURPOSE.  
  12.  
  13. See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  14.  
  15. -->
  16.  
  17. <!DOCTYPE test SYSTEM "dom3.dtd">
  18. <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-3" name="domstringlistcontains01">
  19. <metadata>
  20. <title>domstringlistcontains01</title>
  21. <creator>Curt Arnold</creator>
  22. <description>
  23. Check implementation of DOMStringList.contains by searching DOMConfig parameter
  24. names for "comments" and "".
  25. </description>
  26. <date qualifier="created">2004-01-12</date>
  27. <subject resource="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#DOMStringList-contains"/>
  28. <subject resource="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#DOMConfiguration-parameterNames"/>
  29. </metadata>
  30. <var name="doc" type="Document"/>
  31. <var name="paramList" type="DOMStringList"/>
  32. <var name="domConfig" type="DOMConfiguration"/>
  33. <var name="contains" type="boolean"/>
  34. <load var="doc" href="hc_staff" willBeModified="false"/>
  35. <domConfig obj="doc" var="domConfig" interface="Document"/>
  36. <parameterNames obj="domConfig" var="paramList"/>
  37. <contains var="contains" obj="paramList" str='"comments"' interface="DOMStringList"/>
  38. <assertTrue actual="contains" id="paramsContainComments"/>
  39. <contains var="contains" obj="paramList" str='""' interface="DOMStringList"/>
  40. <assertFalse actual="contains" id="paramsDoesntContainEmpty"/>
  41. </test>
  42.  
  43.