From b8b3b343ddef6d7b6e08cf3769cf901eb0e92c72 Mon Sep 17 00:00:00 2001 From: James Shaw Date: Sat, 11 Aug 2007 23:13:45 +0000 Subject: Import more W3C tests that compile successfully svn path=/trunk/dom/; revision=3506 --- test/xml/tests/nodeinsertbeforerefchildnull.xml | 52 ++++++++++++++++++++++ .../tests/nodelistindexgetlengthofemptylist.xml | 47 +++++++++++++++++++ test/xml/tests/nodeparentnode.xml | 47 +++++++++++++++++++ 3 files changed, 146 insertions(+) create mode 100644 test/xml/tests/nodeinsertbeforerefchildnull.xml create mode 100644 test/xml/tests/nodelistindexgetlengthofemptylist.xml create mode 100644 test/xml/tests/nodeparentnode.xml diff --git a/test/xml/tests/nodeinsertbeforerefchildnull.xml b/test/xml/tests/nodeinsertbeforerefchildnull.xml new file mode 100644 index 0000000..a104b02 --- /dev/null +++ b/test/xml/tests/nodeinsertbeforerefchildnull.xml @@ -0,0 +1,52 @@ + + + + + +nodeInsertBeforeRefChildNull +NIST + + If the "refChild" is null then the + "insertBefore(newChild,refChild)" method inserts the + node "newChild" at the end of the list of children. + + Retrieve the second employee and invoke the + "insertBefore(newChild,refChild)" method with + refChild=null. Since "refChild" is null the "newChild" + should be added to the end of the list. The last item + in the list is checked after insertion. The last Element + node of the list should be "newChild". + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/tests/nodelistindexgetlengthofemptylist.xml b/test/xml/tests/nodelistindexgetlengthofemptylist.xml new file mode 100644 index 0000000..f33c17b --- /dev/null +++ b/test/xml/tests/nodelistindexgetlengthofemptylist.xml @@ -0,0 +1,47 @@ + + + + + +nodelistIndexGetLengthOfEmptyList +NIST + + The "getLength()" method returns the number of nodes + in the list.(Test for EMPTY list) + + Create a list of all the children of the Text node + inside the first child of the third employee and + invoke the "getLength()" method. It should contain + the value 0. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/tests/nodeparentnode.xml b/test/xml/tests/nodeparentnode.xml new file mode 100644 index 0000000..1984a7b --- /dev/null +++ b/test/xml/tests/nodeparentnode.xml @@ -0,0 +1,47 @@ + + + + + +nodeParentNode +NIST + + The "getParentNode()" method returns the parent + of this node. + + Retrieve the second employee and invoke the + "getParentNode()" method on this node. It should + be set to "staff". + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + -- cgit v1.2.3