From f8a4be170f62e8770324b9fb2a9616f5dda31aec Mon Sep 17 00:00:00 2001 From: James Shaw Date: Wed, 8 Aug 2007 20:45:38 +0000 Subject: Import more W3C tests that compile successfully svn path=/trunk/dom/; revision=3492 --- test/xml/tests/attrcreatedocumentfragment.xml | 51 +++++++++++++++++++++++++++ test/xml/tests/attreffectivevalue.xml | 44 +++++++++++++++++++++++ test/xml/tests/attrentityreplacement.xml | 48 +++++++++++++++++++++++++ test/xml/tests/attrname.xml | 47 ++++++++++++++++++++++++ test/xml/tests/attrnextsiblingnull.xml | 44 +++++++++++++++++++++++ test/xml/tests/documentcreatetextnode.xml | 43 ++++++++++++++++++++++ 6 files changed, 277 insertions(+) create mode 100644 test/xml/tests/attrcreatedocumentfragment.xml create mode 100644 test/xml/tests/attreffectivevalue.xml create mode 100644 test/xml/tests/attrentityreplacement.xml create mode 100644 test/xml/tests/attrname.xml create mode 100644 test/xml/tests/attrnextsiblingnull.xml create mode 100644 test/xml/tests/documentcreatetextnode.xml diff --git a/test/xml/tests/attrcreatedocumentfragment.xml b/test/xml/tests/attrcreatedocumentfragment.xml new file mode 100644 index 0000000..b07b191 --- /dev/null +++ b/test/xml/tests/attrcreatedocumentfragment.xml @@ -0,0 +1,51 @@ + + + + + +attrCreateDocumentFragment +NIST + + Attr nodes may be associated with Element nodes contained within a DocumentFragment. + Create a new DocumentFragment and add a newly created Element node(with one attribute). + Once the element is added, its attribute should be available as an attribute associated + with an Element within a DocumentFragment. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/tests/attreffectivevalue.xml b/test/xml/tests/attreffectivevalue.xml new file mode 100644 index 0000000..dbda4da --- /dev/null +++ b/test/xml/tests/attreffectivevalue.xml @@ -0,0 +1,44 @@ + + + + + +attrEffectiveValue +NIST + + If an Attr is explicitly assigned any value, then that value is the attributes effective value. + Retrieve the attribute named "domestic" from the last child of of the first employee + and examine its nodeValue attribute. This test uses the "getNamedItem(name)" method + from the NamedNodeMap interface. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/tests/attrentityreplacement.xml b/test/xml/tests/attrentityreplacement.xml new file mode 100644 index 0000000..d8fd431 --- /dev/null +++ b/test/xml/tests/attrentityreplacement.xml @@ -0,0 +1,48 @@ + + + + + +attrEntityReplacement +NIST + + The "getValue()" method will return the value of the + attribute as a string. The general entity references + are replaced with their values. + Retrieve the attribute named "street" from the last + child of of the fourth employee and examine the string + returned by the "getValue()" method. The value should + be set to "Yes" after the EntityReference is + replaced with its value. This test uses the + "getNamedItem(name)" method from the NamedNodeMap + interface. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + diff --git a/test/xml/tests/attrname.xml b/test/xml/tests/attrname.xml new file mode 100644 index 0000000..9243905 --- /dev/null +++ b/test/xml/tests/attrname.xml @@ -0,0 +1,47 @@ + + + + + +attrName +NIST + + The getNodeName() method of an Attribute node. + Retrieve the attribute named street from the last + child of of the second employee and examine its + NodeName. This test uses the getNamedItem(name) method from the NamedNodeMap + interface. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/tests/attrnextsiblingnull.xml b/test/xml/tests/attrnextsiblingnull.xml new file mode 100644 index 0000000..d425671 --- /dev/null +++ b/test/xml/tests/attrnextsiblingnull.xml @@ -0,0 +1,44 @@ + + + + + +attrNextSiblingNull +NIST + +The "getNextSibling()" method for an Attr node should return null. +Retrieve the attribute named "domestic" from the last child of of the +first employee and examine its NextSibling node. This test uses the +"getNamedItem(name)" method from the NamedNodeMap interface. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + diff --git a/test/xml/tests/documentcreatetextnode.xml b/test/xml/tests/documentcreatetextnode.xml new file mode 100644 index 0000000..b583e12 --- /dev/null +++ b/test/xml/tests/documentcreatetextnode.xml @@ -0,0 +1,43 @@ + + + + + +documentCreateTextNode +NIST + + The "createTextNode(data)" method creates a Text node + given the specfied string. + Retrieve the entire DOM document and invoke its + "createTextNode(data)" method. It should create a + new Text node whose "data" is the specified string. + The NodeName and NodeType are also checked. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + -- cgit v1.2.3