Public Methods | |
| characterdatadeletedatamiddle (DOMTestDocumentBuilderFactory factory) | |
| void | runTest () throws java.lang.Throwable |
| String | getTargetURI () |
Static Public Methods | |
| void | main (String[] args) |
Retrieve the character data from the last child of the first employee. The "deleteData(offset,count)" method is then called with offset=16 and count=8. The method should delete the characters from position 16 thru position 24. The new value of the character data should be "1230 North Ave. Texas 98551".
Definition at line 49 of file characterdatadeletedatamiddle.java.
|
|
Definition at line 51 of file characterdatadeletedatamiddle.java.
00052 {
00053 super(factory);
00054
00055 }
|
|
|
Reimplemented from DOMTest. Definition at line 72 of file characterdatadeletedatamiddle.java.
00072 {
00073 return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/characterdatadeletedatamiddle";
00074 }
|
|
|
Definition at line 75 of file characterdatadeletedatamiddle.java. References DOMTestCase::doMain().
00075 {
00076 DOMTestCase.doMain(characterdatadeletedatamiddle.class,args);
00077 }
|
|
|
Reimplemented from DOMTestCase. Definition at line 57 of file characterdatadeletedatamiddle.java. References DOMTestCase::assertEquals(), and DOMTest::load().
00057 {
00058 Document doc;
00059 NodeList elementList;
00060 Node nameNode;
00061 CharacterData child;
00062 String childData;
00063 doc = load("staff");
00064 elementList = doc.getElementsByTagName("address");
00065 nameNode = elementList.item(0);
00066 child = (CharacterData)nameNode.getFirstChild();
00067 child.deleteData(16,8);
00068 childData = child.getData();
00069 assertEquals("characterdataDeleteDataMiddleAssert","1230 North Ave. Texas 98551",childData);
00070
00071 }
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001