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. <?xml-stylesheet href="test-to-html.xml" type="text/xml"?>
  3.  
  4. <!--
  5.  
  6. Copyright (c) 2001 World Wide Web Consortium,
  7. (Massachusetts Institute of Technology, Institut National de
  8. Recherche en Informatique et en Automatique, Keio University).  All
  9. Rights Reserved.  This program is distributed under the W3C's Software
  10. Intellectual Property License.  This program is distributed in the
  11. hope that it will be useful, but WITHOUT ANY WARRANTY; without even
  12. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  13. PURPOSE.  
  14.  
  15. See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  16.  
  17. -->
  18. <!DOCTYPE test SYSTEM "dom1.dtd">
  19. <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement24">
  20. <metadata>
  21. <title>HTMLTableElement24</title>
  22. <creator>NIST</creator>
  23. <description>
  24.     The deleteTFoot() method deletes the footer from the table.
  25.  
  26.     The deleteTFoot() method will delete the TFOOT Element from the
  27.     second TABLE element.  First make sure that the TFOOT element exists
  28.     and then count the number of rows.  After the TFOOT element is
  29.     deleted there should be one less row.
  30. </description>
  31. <contributor>Rick Rivello</contributor>
  32. <date qualifier="created">2002-05-02</date>
  33. <subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78363258"/>
  34. </metadata>
  35. <var name="nodeList" type="NodeList"/>
  36. <var name="rowsnodeList" type="HTMLCollection"/>
  37. <var name="testNode" type="Node"/>
  38. <var name="vsection1" type="HTMLTableElement" />
  39. <var name="vsection2" type="HTMLTableElement" />
  40. <var name="vrows" type="int"/>
  41. <var name="doc" type="Document"/>
  42. <var name="result" type="List"/>
  43. <var name="expectedResult" type="List">
  44. <member>4</member>
  45. <member>3</member>
  46. </var>
  47. <load var="doc" href="table" willBeModified="true"/>
  48. <getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/>
  49. <assertSize collection="nodeList" size="3" id="Asize"/>
  50. <item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
  51. <tFoot interface="HTMLTableElement" obj="testNode" var="vsection1"/>
  52. <assertNotNull actual="vsection1" id="vsection1Id"/>
  53. <rows interface="HTMLTableElement" obj="testNode" var="rowsnodeList"/>
  54. <length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/>
  55. <append collection="result" item="vrows"/>
  56. <deleteTFoot obj="testNode" interface="HTMLTableElement"/>
  57. <tFoot interface="HTMLTableElement" obj="testNode" var="vsection2"/>
  58. <rows interface="HTMLTableElement" obj="testNode" var="rowsnodeList"/>
  59. <length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/>
  60. <append collection="result" item="vrows"/>
  61. <assertEquals actual="result" expected="expectedResult" id="rowsLink" ignoreCase="false"/>
  62. </test>
  63.