Public Methods | |
| noderemovechildgetnodename (DOMTestDocumentBuilderFactory factory) | |
| void | runTest () throws java.lang.Throwable |
| String | getTargetURI () |
Static Public Methods | |
| void | main (String[] args) |
Remove the first child of the second employee and check the NodeName returned by the "removeChild(oldChild)" method. The returned node should have a NodeName equal to "text".
Definition at line 46 of file noderemovechildgetnodename.java.
|
|
Definition at line 48 of file noderemovechildgetnodename.java.
00049 {
00050 super(factory);
00051
00052 }
|
|
|
Reimplemented from DOMTest. Definition at line 83 of file noderemovechildgetnodename.java.
00083 {
00084 return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/noderemovechildgetnodename";
00085 }
|
|
|
Definition at line 86 of file noderemovechildgetnodename.java. References DOMTestCase::doMain().
00086 {
00087 DOMTestCase.doMain(noderemovechildgetnodename.class,args);
00088 }
|
|
|
Reimplemented from DOMTestCase. Definition at line 54 of file noderemovechildgetnodename.java. References DOMTestCase::assertEquals(), DOMTest::isIgnoringElementContentWhitespace(), and DOMTest::load().
00054 {
00055 Document doc;
00056 NodeList elementList;
00057 Node employeeNode;
00058 NodeList childList;
00059 Node oldChild;
00060 Node removedChild;
00061 String childName;
00062 doc = load("staff");
00063 elementList = doc.getElementsByTagName("employee");
00064 employeeNode = elementList.item(1);
00065 childList = employeeNode.getChildNodes();
00066 oldChild = childList.item(0);
00067 removedChild = employeeNode.removeChild(oldChild);
00068 childName = removedChild.getNodeName();
00069
00070 if(
00071 isIgnoringElementContentWhitespace()
00072 ) {
00073 assertEquals("nowhitespace","employeeId",childName);
00074
00075 }
00076
00077 else {
00078 assertEquals("whitespace","#text",childName);
00079
00080 }
00081
00082 }
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001