Public Methods | |
| elementnormalize (DOMTestDocumentBuilderFactory factory) | |
| void | runTest () throws java.lang.Throwable |
| String | getTargetURI () |
Static Public Methods | |
| void | main (String[] args) |
Retrieve the third employee and access its second child. This child contains a block of text that is spread across multiple lines. The content of the "name" child should be parsed and treated as a single Text node.
Definition at line 46 of file elementnormalize.java.
|
|
Definition at line 48 of file elementnormalize.java.
00049 {
00050 super(factory);
00051
00052 }
|
|
|
Reimplemented from DOMTest. Definition at line 71 of file elementnormalize.java.
00071 {
00072 return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/elementnormalize";
00073 }
|
|
|
Definition at line 74 of file elementnormalize.java. References DOMTestCase::doMain().
00074 {
00075 DOMTestCase.doMain(elementnormalize.class,args);
00076 }
|
|
|
Reimplemented from DOMTestCase. Definition at line 54 of file elementnormalize.java. References DOMTestCase::assertEquals(), and DOMTest::load().
00054 {
00055 Document doc;
00056 Element root;
00057 NodeList elementList;
00058 Element testName;
00059 Node firstChild;
00060 String childValue;
00061 doc = load("staff");
00062 root = doc.getDocumentElement();
00063 root.normalize();
00064 elementList = root.getElementsByTagName("name");
00065 testName = (Element)elementList.item(2);
00066 firstChild = testName.getFirstChild();
00067 childValue = firstChild.getNodeValue();
00068 assertEquals("elementNormalizeAssert","Roger\n Jones",childValue);
00069
00070 }
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001