Public Methods | |
| cdatasectiongetdata (DOMTestDocumentBuilderFactory factory) throws DOMTestIncompatibleException | |
| void | runTest () throws java.lang.Throwable |
| String | getTargetURI () |
Static Public Methods | |
| void | main (String[] args) |
Definition at line 46 of file cdatasectiongetdata.java.
|
|
Definition at line 48 of file cdatasectiongetdata.java. References DocumentBuilderSetting::notCoalescing, and DOMTest::setFactory().
00049 {
00050
00051 DocumentBuilderSetting[] settings = new DocumentBuilderSetting[] {
00052 DocumentBuilderSetting.notCoalescing
00053 };
00054 DOMTestDocumentBuilderFactory testFactory = factory.newInstance(settings);
00055 setFactory(testFactory);
00056
00057 }
|
|
|
Reimplemented from DOMTest. Definition at line 73 of file cdatasectiongetdata.java.
00073 {
00074 return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/cdatasectiongetdata";
00075 }
|
|
|
Definition at line 76 of file cdatasectiongetdata.java. References DOMTestCase::doMain().
00076 {
00077 DOMTestCase.doMain(cdatasectiongetdata.class,args);
00078 }
|
|
|
Reimplemented from DOMTestCase. Definition at line 59 of file cdatasectiongetdata.java. References DOMTestCase::assertEquals(), and DOMTest::load().
00059 {
00060 Document doc;
00061 NodeList nameList;
00062 Node child;
00063 CDATASection lastChild;
00064 String data;
00065 doc = load("staff");
00066 nameList = doc.getElementsByTagName("name");
00067 child = nameList.item(1);
00068 lastChild = (CDATASection)child.getLastChild();
00069 data = lastChild.getData();
00070 assertEquals("data","This is an adjacent CDATASection with a reference to a tab &tab;",data);
00071
00072 }
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001