Public Methods | |
| textsplittextfour (DOMTestDocumentBuilderFactory factory) | |
| void | runTest () throws java.lang.Throwable |
| String | getTargetURI () |
Static Public Methods | |
| void | main (String[] args) |
Retrieve the textual data from the last child of the first employee and invoke the "splitText(offset)" method. The method should return the new Text node. The offset value used for this test is 30. The "getNodeValue()" method is called to check that the new node now contains the characters at and after position 30. (Starting count at 0)
Definition at line 47 of file textsplittextfour.java.
|
|
Definition at line 49 of file textsplittextfour.java.
00050 {
00051 super(factory);
00052
00053 }
|
|
|
Reimplemented from DOMTest. Definition at line 71 of file textsplittextfour.java.
00071 {
00072 return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/textsplittextfour";
00073 }
|
|
|
Definition at line 74 of file textsplittextfour.java. References DOMTestCase::doMain().
00074 {
00075 DOMTestCase.doMain(textsplittextfour.class,args);
00076 }
|
|
|
Reimplemented from DOMTestCase. Definition at line 55 of file textsplittextfour.java. References DOMTestCase::assertEquals(), and DOMTest::load().
00055 {
00056 Document doc;
00057 NodeList elementList;
00058 Node addressNode;
00059 Text textNode;
00060 Text splitNode;
00061 String value;
00062 doc = load("staff");
00063 elementList = doc.getElementsByTagName("address");
00064 addressNode = elementList.item(0);
00065 textNode = (Text)addressNode.getFirstChild();
00066 splitNode = textNode.splitText(30);
00067 value = splitNode.getNodeValue();
00068 assertEquals("textSplitTextFourAssert","98551",value);
00069
00070 }
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001