Public Methods | |
| nodechildnodes (DOMTestDocumentBuilderFactory factory) | |
| void | runTest () throws java.lang.Throwable |
| String | getTargetURI () |
Static Public Methods | |
| void | main (String[] args) |
Retrieve the second employee and check the NodeList returned by the "getChildNodes()" method. The length of the list should be 13.
Definition at line 45 of file nodechildnodes.java.
|
|
Definition at line 47 of file nodechildnodes.java.
00048 {
00049 super(factory);
00050
00051 }
|
|
|
Reimplemented from DOMTest. Definition at line 76 of file nodechildnodes.java.
00076 {
00077 return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/nodechildnodes";
00078 }
|
|
|
Definition at line 79 of file nodechildnodes.java. References DOMTestCase::doMain().
00079 {
00080 DOMTestCase.doMain(nodechildnodes.class,args);
00081 }
|
|
|
Reimplemented from DOMTestCase. Definition at line 53 of file nodechildnodes.java. References DOMTestCase::assertSize(), DOMTest::isIgnoringElementContentWhitespace(), and DOMTest::load().
00053 {
00054 Document doc;
00055 NodeList elementList;
00056 Node employeeNode;
00057 NodeList childNodes;
00058 doc = load("staff");
00059 elementList = doc.getElementsByTagName("employee");
00060 employeeNode = elementList.item(1);
00061 childNodes = employeeNode.getChildNodes();
00062
00063 if(
00064 isIgnoringElementContentWhitespace()
00065 ) {
00066 assertSize("childCountNoWhitespace",6,childNodes);
00067
00068 }
00069
00070 else {
00071 assertSize("childCountWhitespace",13,childNodes);
00072
00073 }
00074
00075 }
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001