Public Methods | |
| elementreplaceattributewithself (DOMTestDocumentBuilderFactory factory) | |
| void | runTest () throws java.lang.Throwable |
| String | getTargetURI () |
Static Public Methods | |
| void | main (String[] args) |
This test was derived from elementinuserattributeerr which inadvertanly made this test.
Definition at line 44 of file elementreplaceattributewithself.java.
|
|
Definition at line 46 of file elementreplaceattributewithself.java.
00047 {
00048 super(factory);
00049
00050 }
|
|
|
Reimplemented from DOMTest. Definition at line 67 of file elementreplaceattributewithself.java.
00067 {
00068 return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/elementreplaceattributewithself";
00069 }
|
|
|
Definition at line 70 of file elementreplaceattributewithself.java. References DOMTestCase::doMain().
00070 {
00071 DOMTestCase.doMain(elementreplaceattributewithself.class,args);
00072 }
|
|
|
Reimplemented from DOMTestCase. Definition at line 52 of file elementreplaceattributewithself.java. References DOMTestCase::assertSame(), and DOMTest::load().
00052 {
00053 Document doc;
00054 NodeList elementList;
00055 Element testEmployee;
00056 Attr streetAttr;
00057 Attr replacedAttr;
00058 String value;
00059 doc = load("staff");
00060 elementList = doc.getElementsByTagName("address");
00061 testEmployee = (Element)elementList.item(2);
00062 streetAttr = testEmployee.getAttributeNode("street");
00063 replacedAttr = testEmployee.setAttributeNode(streetAttr);
00064 assertSame("replacedAttr",streetAttr,replacedAttr);
00065
00066 }
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001