From 1c2c5c73e4ab7141bc28df19addc849f8b03dcde Mon Sep 17 00:00:00 2001 From: James Shaw Date: Thu, 9 Aug 2007 21:05:15 +0000 Subject: Import more W3C tests that compile successfully svn path=/trunk/dom/; revision=3495 --- test/xml/tests/nodegetfirstchildnull.xml | 52 +++++++++++++++++++++++++++++ test/xml/tests/nodegetlastchildnull.xml | 52 +++++++++++++++++++++++++++++ test/xml/tests/nodegetnextsiblingnull.xml | 48 ++++++++++++++++++++++++++ test/xml/tests/nodegetownerdocument.xml | 50 +++++++++++++++++++++++++++ test/xml/tests/nodegetownerdocumentnull.xml | 31 +++++++++++++++++ 5 files changed, 233 insertions(+) create mode 100644 test/xml/tests/nodegetfirstchildnull.xml create mode 100644 test/xml/tests/nodegetlastchildnull.xml create mode 100644 test/xml/tests/nodegetnextsiblingnull.xml create mode 100644 test/xml/tests/nodegetownerdocument.xml create mode 100644 test/xml/tests/nodegetownerdocumentnull.xml (limited to 'test/xml') diff --git a/test/xml/tests/nodegetfirstchildnull.xml b/test/xml/tests/nodegetfirstchildnull.xml new file mode 100644 index 0000000..cd67a6f --- /dev/null +++ b/test/xml/tests/nodegetfirstchildnull.xml @@ -0,0 +1,52 @@ + + + + + +nodeGetFirstChildNull +NIST + + + If there is not a first child then the "getFirstChild()" + + method returns null. + + + + Retrieve the Text node form the second child of the first + + employee and invoke the "getFirstChild()" method. It + + should return null. + + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + diff --git a/test/xml/tests/nodegetlastchildnull.xml b/test/xml/tests/nodegetlastchildnull.xml new file mode 100644 index 0000000..f493e1c --- /dev/null +++ b/test/xml/tests/nodegetlastchildnull.xml @@ -0,0 +1,52 @@ + + + + + +nodeGetLastChildNull +NIST + + + If there is not a last child then the "getLastChild()" + + method returns null. + + + + Retrieve the Text node from the second child of the first + + employee and invoke the "getLastChild()" method. It + + should return null. + + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + diff --git a/test/xml/tests/nodegetnextsiblingnull.xml b/test/xml/tests/nodegetnextsiblingnull.xml new file mode 100644 index 0000000..b9ab799 --- /dev/null +++ b/test/xml/tests/nodegetnextsiblingnull.xml @@ -0,0 +1,48 @@ + + + + + +nodeGetNextSiblingNull +NIST + + + If there is not a node immediately following this node the + + "getNextSibling()" method returns null. + + + + Retrieve the first child of the second employee and + + invoke the "getNextSibling()" method. It should + + be set to null. + + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + diff --git a/test/xml/tests/nodegetownerdocument.xml b/test/xml/tests/nodegetownerdocument.xml new file mode 100644 index 0000000..414a607 --- /dev/null +++ b/test/xml/tests/nodegetownerdocument.xml @@ -0,0 +1,50 @@ + + + + + +nodeGetOwnerDocument +NIST + + The "getOwnerDocument()" method returns the Document + object associated with this node. + + Retrieve the second employee and examine Document + returned by the "getOwnerDocument()" method. Invoke + the "getDocumentElement()" on the Document which will + return an Element that is equal to "staff". + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/tests/nodegetownerdocumentnull.xml b/test/xml/tests/nodegetownerdocumentnull.xml new file mode 100644 index 0000000..ca50949 --- /dev/null +++ b/test/xml/tests/nodegetownerdocumentnull.xml @@ -0,0 +1,31 @@ + + + + + +nodeGetOwnerDocumentNull +NIST + + The "getOwnerDocument()" method returns null if the target + node itself is a document. + +Mary Brady +2001-08-17 + + + + + + + + -- cgit v1.2.3