Public Methods | |
| documentinvalidcharacterexceptioncreateelement (DOMTestDocumentBuilderFactory factory) | |
| void | runTest () throws java.lang.Throwable |
| String | getTargetURI () |
Static Public Methods | |
| void | main (String[] args) |
Retrieve the entire DOM document and invoke its "createElement(tagName)" method with the tagName equal to the string "invalid^Name". Due to the invalid character the desired EXCEPTION should be raised.
Definition at line 49 of file documentinvalidcharacterexceptioncreateelement.java.
|
|
Definition at line 51 of file documentinvalidcharacterexceptioncreateelement.java.
00052 {
00053 super(factory);
00054
00055 }
|
|
|
Reimplemented from DOMTest. Definition at line 75 of file documentinvalidcharacterexceptioncreateelement.java.
00075 {
00076 return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/documentinvalidcharacterexceptioncreateelement";
00077 }
|
|
|
Definition at line 78 of file documentinvalidcharacterexceptioncreateelement.java. References DOMTestCase::doMain().
00078 {
00079 DOMTestCase.doMain(documentinvalidcharacterexceptioncreateelement.class,args);
00080 }
|
|
|
Reimplemented from DOMTestCase. Definition at line 57 of file documentinvalidcharacterexceptioncreateelement.java. References DOMTestCase::assertTrue(), and DOMTest::load().
00057 {
00058 Document doc;
00059 Element badElement;
00060 doc = load("staff");
00061
00062 {
00063 boolean success = false;
00064 try {
00065 badElement = doc.createElement("invalid^Name");
00066
00067 }
00068 catch(DOMException ex) {
00069 success = (ex.code == DOMException.INVALID_CHARACTER_ERR);
00070 }
00071 assertTrue("documentInvalidCharacterExceptionCreateElementAssert",success);
00072 }
00073
00074 }
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001