ownerDocument01public final class ownerDocument01 extends org.w3c.domts.DOMTestCase The "getOwnerDocument()" method returns null if the target
node itself is a DocumentType which is not used with any document yet.
Invoke the "getOwnerDocument()" method on the master
document. The DocumentType returned should be null. |
Constructors Summary |
---|
public ownerDocument01(org.w3c.domts.DOMTestDocumentBuilderFactory factory)Constructor.
super(factory);
//
// check if loaded documents are supported for content type
//
String contentType = getContentType();
preload(contentType, "staff", false);
|
Methods Summary |
---|
public java.lang.String | getTargetURI()Gets URI that identifies the test.
return "http://www.w3.org/2001/DOM-Test-Suite/level2/core/ownerDocument01";
| public static void | main(java.lang.String[] args)Runs this test from the command line.
DOMTestCase.doMain(ownerDocument01.class, args);
| public void | runTest()Runs the test case.
Document doc;
DocumentType ownerDocument;
doc = (Document) load("staff", false);
ownerDocument = (DocumentType) doc.getOwnerDocument();
assertNull("throw_Null", ownerDocument);
|
|