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.  
  5.  
  6.  
  7. Copyright (c) 2001 World Wide Web Consortium,
  8.  
  9. (Massachusetts Institute of Technology, Institut National de
  10.  
  11. Recherche en Informatique et en Automatique, Keio University).  All
  12.  
  13. Rights Reserved.  This program is distributed under the W3C's Software
  14.  
  15. Intellectual Property License.  This program is distributed in the
  16.  
  17. hope that it will be useful, but WITHOUT ANY WARRANTY; without even
  18.  
  19. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  20.  
  21. PURPOSE.  
  22.  
  23.  
  24.  
  25. See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  26.  
  27.  
  28.  
  29. -->
  30.  
  31. <!DOCTYPE test SYSTEM "dom2.dtd">
  32.  
  33. <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="domimplementationfeaturecore">
  34.  
  35.         <metadata>
  36.  
  37.                 <title>domimplementationFeaturecore</title>
  38.  
  39.                 <creator>NIST</creator>
  40.  
  41.                 <description>
  42.  
  43.     The "feature" parameter in the
  44.  
  45.    "hasFeature(feature,version)" method is the package name
  46.  
  47.    of the feature.  Legal values are XML and HTML and CORE.
  48.  
  49.    (Test for feature core, lower case)
  50.  
  51.    
  52.  
  53.    Retrieve the entire DOM document and invoke its
  54.  
  55.    "getImplementation()" method.  This should create a
  56.  
  57.    DOMImplementation object whose "hasFeature(feature,
  58.  
  59.    version)" method is invoked with feature equal to "core".
  60.  
  61.    The method should return a boolean "true".
  62.  
  63. </description>
  64.  
  65.                 <contributor>Mary Brady</contributor>
  66.  
  67.                 <date qualifier="created">2001-08-17</date>
  68.  
  69.                 <subject resource="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-5CED94D7"/>
  70.  
  71.         </metadata>
  72.  
  73.         <var name="doc" type="Document"/>
  74.  
  75.         <var name="domImpl" type="DOMImplementation"/>
  76.  
  77.         <var name="state" type="boolean"/>
  78.  
  79.         <load var="doc" href="staff" willBeModified="false"/>
  80.  
  81.         <implementation obj="doc" var="domImpl"/>
  82.  
  83.         <hasFeature obj="domImpl" var="state" feature='"core"' version='"2.0"'/>
  84.  
  85.         <assertTrue actual="state" id="domimplementationFeaturecoreAssert"/>
  86.  
  87. </test>
  88.  
  89.