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"?>
  2. <!--
  3. Copyright (c) 2001-2003 World Wide Web Consortium,
  4. (Massachusetts Institute of Technology, Institut National de
  5. Recherche en Informatique et en Automatique, Keio University). All
  6. Rights Reserved. This program is distributed under the W3C's Software
  7. Intellectual Property License. This program is distributed in the
  8. hope that it will be useful, but WITHOUT ANY WARRANTY; without even
  9. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  10. PURPOSE.
  11. See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  12. --><!DOCTYPE test SYSTEM "dom1.dtd">
  13.  
  14. <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeprocessinginstructionsetnodevalue">
  15. <metadata>
  16. <title>nodeProcessingInstructionSetNodeValue</title>
  17. <creator>Curt Arnold</creator>
  18. <description>
  19.     Setting the nodeValue should change the value returned by
  20.     nodeValue and ProcessingInstruction.getData.
  21. </description>
  22. <date qualifier="created">2001-10-21</date>
  23. <!--   Node.nodeValue   -->
  24. <subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/>
  25. <!--   ProcessingInstruction interface -->
  26. <subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1004215813"/>
  27. <!--data attribute -->
  28. <subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-837822393"/>
  29. <subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=181"/>
  30. </metadata>
  31. <var name="doc" type="Document"/>
  32. <var name="testList" type="NodeList"/>
  33. <var name="piNode" type="Node"/>
  34. <var name="piValue" type="DOMString"/>
  35. <load var="doc" href="staff" willBeModified="true"/>
  36. <childNodes obj="doc" var="testList"/>
  37. <item interface="NodeList" obj="testList" index="0" var="piNode"/>
  38. <nodeValue obj="piNode" value='"Something different"'/>
  39. <nodeValue obj="piNode" var="piValue"/>
  40. <assertEquals actual="piValue" expected='"Something different"' id="nodeValue" ignoreCase="false"/>
  41. <data interface="ProcessingInstruction" obj="piNode" var="piValue"/>
  42. <assertEquals actual="piValue" expected='"Something different"' id="data" ignoreCase="false"/>
  43. </test>
  44.