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="nodeinsertbeforenomodificationallowederrEE">
  15. <metadata>
  16. <title>nodeInsertBeforeNoModificationAllowedErrEE</title>
  17. <creator>Curt Arnold</creator>
  18. <description>
  19.    The "insertBefore(newChild,refChild)" method causes the
  20.    DOMException NO_MODIFICATION_ALLOWED_ERR to be raised
  21.    if the node is readonly.
  22.    
  23.    Create an ent4 entity reference and and execute the "insertBefore(newChild,refChild)" method.
  24.    This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown.
  25. </description>
  26. <date qualifier="created">2001-08-21</date>
  27. <subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/>
  28. <subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/>
  29. <subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-952280727')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/>
  30. <subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/>
  31. <source resource="http://www.w3.org/2001/DOM-Test-Suite/level1/core/nodeinsertbeforenomodificationallowederr.xml"/>
  32. </metadata>
  33. <var name="doc" type="Document"/>
  34. <var name="entRef" type="Node"/>
  35. <var name="createdNode" type="Node"/>
  36. <var name="insertedNode" type="Node"/>
  37. <var name="refChild" type="Node" isNull="true"/>
  38. <load var="doc" href="staff" willBeModified="true"/>
  39. <createEntityReference var="entRef" obj="doc" name='"ent4"'/>
  40. <assertNotNull actual="entRef" id="createdEntRefNotNull"/>
  41. <createElement obj="doc" tagName='"text3"' var="createdNode"/>
  42. <assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR">
  43. <NO_MODIFICATION_ALLOWED_ERR>
  44. <insertBefore var="insertedNode" obj="entRef" newChild="createdNode" refChild="refChild"/>
  45. </NO_MODIFICATION_ALLOWED_ERR>
  46. </assertDOMException>
  47. </test>
  48.