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. <!--
  4.  
  5. Copyright (c) 2001 World Wide Web Consortium,
  6. (Massachusetts Institute of Technology, Institut National de
  7. Recherche en Informatique et en Automatique, Keio University).  All
  8. Rights Reserved.  This program is distributed under the W3C's Software
  9. Intellectual Property License.  This program is distributed in the
  10. hope that it will be useful, but WITHOUT ANY WARRANTY; without even
  11. the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
  12. PURPOSE.  
  13.  
  14. See W3C License http://www.w3.org/Consortium/Legal/ for more details.
  15.  
  16. -->
  17. <!DOCTYPE test SYSTEM "dom2.dtd">
  18. <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="HTMLTableRowElement17">
  19. <metadata>
  20. <title>HTMLTableRowElement17</title>
  21. <creator>NIST</creator>
  22. <description>
  23.    The deleteCell() method throws a INDEX_SIZE_ERR DOMException
  24.    if the specified index is greater than the number of cells.
  25.  
  26.    Retrieve the fourth TR element which has six cells.  Try
  27.    to delete a cell using an index of seven.  This should throw
  28.    a INDEX_SIZE_ERR DOMException since there are only six cells.
  29. </description>
  30. <contributor>Rick Rivello</contributor>
  31. <date qualifier="created">2002-05-02</date>
  32. <subject resource="http://www.w3.org/TR/DOM-Level-2-HTML/html#ID-11738598"/>
  33. <subject resource="http://www.w3.org/TR/DOM-Level-2-HTML/html#xpointer(id('ID-11738598')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INDEX_SIZE_ERR'])"/>
  34. </metadata>
  35. <var name="nodeList" type="NodeList"/>
  36. <var name="testNode" type="Node"/>
  37. <var name="doc" type="Document"/>
  38. <load var="doc" href="tablerow" willBeModified="true"/>
  39. <getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tr"'/>
  40. <assertSize collection="nodeList" size="5" id="Asize"/>
  41. <item interface="NodeList" obj="nodeList" var="testNode" index="3"/>
  42. <assertDOMException id="HTMLTableRowElement17">
  43. <INDEX_SIZE_ERR>
  44. <deleteCell interface="HTMLTableRowElement" obj="testNode" index="7"/>
  45. </INDEX_SIZE_ERR>
  46. </assertDOMException>
  47. </test>
  48.