Main Page   Packages   Class Hierarchy   Compound List   File List   Compound Members  

textsplittextnomodificationallowederrEE Class Reference

Inherits DOMTestCase.

List of all members.

Public Methods

 textsplittextnomodificationallowederrEE (DOMTestDocumentBuilderFactory factory)
void runTest () throws java.lang.Throwable
String getTargetURI ()

Static Public Methods

void main (String[] args)


Detailed Description

The "splitText(offset)" method raises a NO_MODIFICATION_ALLOWED_ERR DOMException if the node is readonly.

Create an ent3 reference and execute the "splitText(offset)" method. This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown.

Author:
Curt Arnold
See also:
http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR']) , http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-38853C1D , http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-38853C1D')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR']) , http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-38853C1D , http://www.w3.org/2001/DOM-Test-Suite/level1/core/textsplittextnomodificationallowederr.xml

Definition at line 47 of file textsplittextnomodificationallowederrEE.java.


Constructor & Destructor Documentation

textsplittextnomodificationallowederrEE::textsplittextnomodificationallowederrEE DOMTestDocumentBuilderFactory    factory [inline]
 

Definition at line 49 of file textsplittextnomodificationallowederrEE.java.

00050  {
00051       super(factory);
00052 
00053    }


Member Function Documentation

String textsplittextnomodificationallowederrEE::getTargetURI   [inline, virtual]
 

Reimplemented from DOMTest.

Definition at line 77 of file textsplittextnomodificationallowederrEE.java.

00077                                 {
00078       return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/textsplittextnomodificationallowederrEE";
00079    }

void textsplittextnomodificationallowederrEE::main String    args[] [inline, static]
 

Definition at line 80 of file textsplittextnomodificationallowederrEE.java.

References DOMTestCase::doMain().

00080                                           {
00081         DOMTestCase.doMain(textsplittextnomodificationallowederrEE.class,args);
00082    }

void textsplittextnomodificationallowederrEE::runTest   [inline, virtual]
 

Reimplemented from DOMTestCase.

Definition at line 55 of file textsplittextnomodificationallowederrEE.java.

References DOMTestCase::assertTrue(), and DOMTest::load().

00055                                                     {
00056       Document doc;
00057       Node entRef;
00058       Node entText;
00059       Text splitNode;
00060       doc = load("staff");
00061       entRef = doc.createEntityReference("ent3");
00062       entText = entRef.getFirstChild();
00063       
00064         {
00065                 boolean success = false;
00066                 try {
00067                         splitNode = ((Text)/*Node*/entText).splitText(2);
00068       
00069                 }
00070                 catch(DOMException ex) {
00071                         success = (ex.code == DOMException.NO_MODIFICATION_ALLOWED_ERR);
00072                 }
00073                 assertTrue("throw_NO_MODIFICATION_ALLOWED_ERR",success);
00074         }
00075 
00076    }


The documentation for this class was generated from the following file:
Generated on Thu Feb 14 19:47:13 2002 for DOM Level 1 Core Test Suite by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001