Public Methods | |
| nodeappendchildnomodificationallowederrEE (DOMTestDocumentBuilderFactory factory) | |
| void | runTest () throws java.lang.Throwable |
| String | getTargetURI () |
Static Public Methods | |
| void | main (String[] args) |
Create an ent3 entity reference and the "appendChild(newChild)" method. This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown.
Definition at line 47 of file nodeappendchildnomodificationallowederrEE.java.
|
|
Definition at line 49 of file nodeappendchildnomodificationallowederrEE.java.
00050 {
00051 super(factory);
00052
00053 }
|
|
|
Reimplemented from DOMTest. Definition at line 77 of file nodeappendchildnomodificationallowederrEE.java.
00077 {
00078 return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/nodeappendchildnomodificationallowederrEE";
00079 }
|
|
|
Definition at line 80 of file nodeappendchildnomodificationallowederrEE.java. References DOMTestCase::doMain().
00080 {
00081 DOMTestCase.doMain(nodeappendchildnomodificationallowederrEE.class,args);
00082 }
|
|
|
Reimplemented from DOMTestCase. Definition at line 55 of file nodeappendchildnomodificationallowederrEE.java. References DOMTestCase::assertTrue(), and DOMTest::load().
00055 {
00056 Document doc;
00057 Node entRef;
00058 Node createdNode;
00059 Node appendedNode;
00060 doc = load("staff");
00061 entRef = doc.createEntityReference("ent3");
00062 createdNode = doc.createElement("text3");
00063
00064 {
00065 boolean success = false;
00066 try {
00067 appendedNode = entRef.appendChild(createdNode);
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 }
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001