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 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="namednodemapnotfounderr">
  15. <metadata>
  16. <title>namednodemapNotFoundErr</title>
  17. <creator>NIST</creator>
  18. <description>
  19.    The "removeNamedItem(name)" method raises a
  20.   NOT_FOUND_ERR DOMException if there is not a node
  21.   named "name" in the map.
  22.  
  23.   Create a NamedNodeMap object from the attributes of the
  24.   last child of the third employee and attempt to remove
  25.   the "district" attribute.  There is not a node named
  26.   "district" in the list and therefore the desired  
  27.   exception should be raised.
  28. </description>
  29. <contributor>Mary Brady</contributor>
  30. <date qualifier="created">2001-08-17</date>
  31. <subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INUSE_ATTRIBUTE_ERR'])"/>
  32. <subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-D58B193"/>
  33. <subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-D58B193')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INUSE_ATTRIBUTE_ERR'])"/>
  34. </metadata>
  35. <var name="doc" type="Document"/>
  36. <var name="elementList" type="NodeList"/>
  37. <var name="testEmployee" type="Element"/>
  38. <var name="attributes" type="NamedNodeMap"/>
  39. <var name="removedNode" type="Node"/>
  40. <load var="doc" href="staff" willBeModified="true"/>
  41. <getElementsByTagName interface="Document" obj="doc" var="elementList" tagname="&quot;address&quot;"/>
  42. <item interface="NodeList" obj="elementList" var="testEmployee" index="2"/>
  43. <attributes obj="testEmployee" var="attributes"/>
  44. <assertDOMException id="throw_NOT_FOUND_ERR">
  45. <NOT_FOUND_ERR>
  46. <removeNamedItem var="removedNode" interface="NamedNodeMap" obj="attributes" name="&quot;district&quot;"/>
  47. </NOT_FOUND_ERR>
  48. </assertDOMException>
  49. </test>
  50.