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-2004 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="hc_elementnormalize">
  15. <metadata>
  16. <title>hc_elementnormalize</title>
  17. <creator>Curt Arnold</creator>
  18. <description>
  19. Append a couple of text nodes to the first sup element, normalize the
  20. document element and check that the element has been normalized.
  21. </description>
  22.  
  23. <date qualifier="created">2002-06-09</date>
  24. <subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-162CF083"/>
  25. <subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=546"/>
  26. </metadata>
  27. <var name="doc" type="Document"/>
  28. <var name="root" type="Element"/>
  29. <var name="elementList" type="NodeList"/>
  30. <var name="testName" type="Element"/>
  31. <var name="firstChild" type="Node"/>
  32. <var name="childValue" type="DOMString"/>
  33. <var name="textNode" type="Text"/>
  34. <var name="retNode" type="Node"/>
  35. <load var="doc" href="hc_staff" willBeModified="true"/>
  36. <getElementsByTagName interface="Document" obj="doc" tagname='"sup"' var="elementList"/>
  37. <item interface="NodeList" obj="elementList" index="0" var="testName"/>
  38. <createTextNode var="textNode" obj="doc" data='""'/>
  39. <appendChild var="retNode" obj="testName" newChild="textNode"/>
  40. <createTextNode var="textNode" obj="doc" data='",000"'/>
  41. <appendChild var="retNode" obj="testName" newChild="textNode"/>
  42. <documentElement obj="doc" var="root"/>
  43. <normalize obj="root"/>
  44. <getElementsByTagName interface="Document" obj="doc" tagname='"sup"' var="elementList"/>
  45. <item interface="NodeList" obj="elementList" index="0" var="testName"/>
  46. <firstChild interface="Node" obj="testName" var="firstChild"/>
  47. <nodeValue obj="firstChild" var="childValue"/>
  48. <assertEquals actual="childValue" expected='"56,000,000"' id="elementNormalizeAssert" ignoreCase="false"/>
  49. </test>
  50.