Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. <?xml version="1.0" encoding="iso-8859-1"?>
  2. <?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
  3. <!--
  4.  Copyright (c) 2003 World Wide Web Consortium,
  5.  
  6.  (Massachusetts Institute of Technology, European Research Consortium for
  7.  Informatics and Mathematics, Keio University). All Rights Reserved. This
  8.  work is distributed under the W3C(r) Software License [1] in the hope that
  9.  it will be useful, but WITHOUT ANY WARRANTY; without even the implied
  10.  warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11.  
  12.  [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
  13. -->
  14.  
  15. <!DOCTYPE test SYSTEM "dom3.dtd" [
  16.   <!ENTITY % entities SYSTEM "dom3xpathents.ent">
  17.   %entities;
  18. ]>
  19. <test xmlns="&level3;" name="Conformance_isSupported_empty">
  20.   <metadata>
  21.     <title>Conformance_isSupported_empty</title>
  22.     <creator>Philippe Le Hégaret</creator>
  23.     <contributor>Bob Clary</contributor>
  24.     <description>
  25.       1.3 Conformance - The "feature" parameter in the
  26.       "Node.isSupported(feature,version)"
  27.       method is the name of the feature and the version is the version
  28.       number of the feature to test.  XPath is the legal value for the
  29.       XPath module.  The method should return "true".
  30.      
  31.       Retrieve the DOM document on which the
  32.       "isSupported(feature,version)" method is invoked with "feature"
  33.       equal to "XPath" and version to the empty string "".  The method
  34.       should return a boolean "true" if the implementation claims support
  35.       for some version for XPath.
  36.     </description>
  37.     <date qualifier="created">2002-04-24</date>
  38.     <date qualifier="modified">2003-11-29</date>
  39.     <subject resource="&spec;#Conformance"/>
  40.   </metadata>
  41.   <var name="doc" type="Document"/>
  42.   <var name="state" type="boolean"/>
  43.   <load var="doc" href="staffNS" willBeModified="false"/>
  44.   <isSupported obj="doc" feature="&quot;xpATH&quot;"
  45.     version="&quot;&quot;" var="state"/>
  46.   <assertTrue actual="state" id="isSupported-XPath-empty"/>
  47.  
  48. </test>
  49.