Subversion Repositories Kolibri OS

Rev

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.  
  5. Copyright (c) 2001-2003 World Wide Web Consortium,
  6. (Massachusetts Institute of Technology, Institut National de
  7. Recherche en Informatique et en Automatique, Keio University).  All
  8. Rights Reserved.  This program is distributed under the W3C's Software
  9. Intellectual Property License.  This program is distributed in the
  10. hope that it will be useful, but WITHOUT ANY WARRANTY; without even
  11. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  12. PURPOSE.  
  13.  
  14. See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  15.  
  16. -->
  17.  
  18. <!DOCTYPE test SYSTEM "dom2.dtd">
  19. <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="domimplementationhasfeature02">
  20. <metadata>
  21. <title>domimplementationhasfeature02</title>
  22. <creator>IBM</creator>
  23. <description>
  24.         The method "hasFeature(feature,version)" tests if the DOMImplementation implements
  25.         a specific feature and if not returns false.
  26.        
  27.         Call the hasFeature method on this DOMImplementation with a unfimiliar values for
  28.         feature and version.  Check if the value returned was false.
  29. </description>
  30. <contributor>Neil Delima</contributor>
  31. <date qualifier="created">2002-04-24</date>
  32. <subject resource="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-5CED94D7"/>
  33. </metadata>
  34. <var name="doc" type="Document"/>              
  35. <var name="domImpl" type="DOMImplementation"/>
  36. <var name="success" type="boolean"/>           
  37. <load var="doc" href="staffNS" willBeModified="false"/>
  38. <implementation obj="doc" var="domImpl"/>
  39. <hasFeature obj="domImpl" var="success" feature="&quot;Blah Blah&quot;" version="&quot;&quot;"/>
  40. <assertFalse actual="success" id="domimplementationhasfeature02"/>
  41. </test>
  42.