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="domconfigurationcansetparameter03">
  19. <metadata>
  20. <title>domconfigurationcansetparameter03</title>
  21. <creator>IBM</creator>
  22. <description>
  23.         The canSetParameter method checks if setting a parameter to a specific value is supported.
  24.        
  25.         The parameter entities is turned on by default.  Check to see if this feature can be set
  26.         to false by invoking canSetParameter method.  Also check that this method does not change the
  27.         value of parameter by checking if entities still exist in the document.
  28. </description>
  29. <contributor>Jenny Hsu</contributor>
  30. <date qualifier="created">2003-11-06</date>
  31. <subject resource="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#DOMConfiguration-canSetParameter"/>
  32. </metadata>
  33. <!--  required for normalizeDocument  -->
  34. <implementationAttribute name="namespaceAware" value="true"/>
  35. <var name="doc" type="Document"/>
  36. <var name="domConfig" type="DOMConfiguration"/>
  37. <var name="docType" type="DocumentType"/>
  38. <var name="entitiesMap" type="NamedNodeMap"/>
  39. <var name="nullNS" type="DOMString" isNull="true"/>
  40. <var name="entity" type="Entity"/>
  41. <var name="entityName" type="DOMString"/>
  42. <var name="canSet" type="boolean"/>
  43. <load var="doc" href="hc_staff" willBeModified="true"/>
  44. <domConfig obj="doc" var="domConfig" interface="Document"/>
  45. <canSetParameter obj="domConfig" var="canSet" name='"entities"' value="false"/>
  46. <assertTrue actual="canSet" id="canSetFalse"/>
  47. <normalizeDocument obj="doc"/>
  48. <doctype obj="doc" var="docType" interface="Document"/>
  49. <entities obj="docType" var="entitiesMap" interface="DocumentType"/>
  50. <getNamedItem var="entity" obj="entitiesMap" name='"epsilon"'/>
  51. <assertNotNull actual="entity" id="entityNotNull"/>
  52. <nodeName obj="entity" var="entityName" interface="Node"/>
  53. <assertEquals actual="entityName" expected='"epsilon"' id="entityName" ignoreCase="false"/>
  54. </test>
  55.