Public Methods | |
| attrname (DOMTestDocumentBuilderFactory factory) | |
| void | runTest () throws java.lang.Throwable |
| String | getTargetURI () |
Static Public Methods | |
| void | main (String[] args) |
Definition at line 44 of file attrname.java.
|
|
Definition at line 46 of file attrname.java.
00047 {
00048 super(factory);
00049
00050 }
|
|
|
Reimplemented from DOMTest. Definition at line 70 of file attrname.java.
00070 {
00071 return "http://www.w3.org/2001/DOM-Test-Suite/level1/core/attrname";
00072 }
|
|
|
Definition at line 73 of file attrname.java. References DOMTestCase::doMain().
00073 {
00074 DOMTestCase.doMain(attrname.class,args);
00075 }
|
|
|
Reimplemented from DOMTestCase. Definition at line 52 of file attrname.java. References DOMTestCase::assertEquals(), and DOMTest::load().
00052 {
00053 Document doc;
00054 NodeList addressList;
00055 Node testNode;
00056 NamedNodeMap attributes;
00057 Attr streetAttr;
00058 String name;
00059 doc = load("staff");
00060 addressList = doc.getElementsByTagName("address");
00061 testNode = addressList.item(1);
00062 attributes = testNode.getAttributes();
00063 streetAttr = (Attr)attributes.getNamedItem("street");
00064 name = streetAttr.getNodeName();
00065 assertEquals("nodeName","street",name);
00066 name = streetAttr.getName();
00067 assertEquals("name","street",name);
00068
00069 }
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001