From bb0bf3763647fbdc63509f065db473fe7bd8a60c Mon Sep 17 00:00:00 2001 From: John Mark Bell Date: Thu, 30 Jul 2009 11:06:01 +0000 Subject: Merge DOMTS tests -- they're causing havoc with review diffs. svn path=/trunk/dom/; revision=8910 --- test/testcases/tests/level2/CVS/Entries | 3 + test/testcases/tests/level2/CVS/Repository | 1 + test/testcases/tests/level2/CVS/Root | 1 + test/testcases/tests/level2/CVS/Template | 0 test/testcases/tests/level2/core/.cvsignore | 2 + test/testcases/tests/level2/core/CVS/Entries | 287 +++++++++ test/testcases/tests/level2/core/CVS/Repository | 1 + test/testcases/tests/level2/core/CVS/Root | 1 + test/testcases/tests/level2/core/CVS/Template | 0 test/testcases/tests/level2/core/alltests.xml | 301 +++++++++ .../tests/level2/core/attrgetownerelement01.xml | 52 ++ .../tests/level2/core/attrgetownerelement02.xml | 47 ++ .../tests/level2/core/attrgetownerelement03.xml | 40 ++ .../tests/level2/core/attrgetownerelement04.xml | 40 ++ .../tests/level2/core/attrgetownerelement05.xml | 55 ++ .../tests/level2/core/createAttributeNS01.xml | 48 ++ .../tests/level2/core/createAttributeNS02.xml | 47 ++ .../tests/level2/core/createAttributeNS03.xml | 78 +++ .../tests/level2/core/createAttributeNS04.xml | 50 ++ .../tests/level2/core/createAttributeNS05.xml | 44 ++ .../tests/level2/core/createAttributeNS06.xml | 40 ++ .../tests/level2/core/createDocument01.xml | 53 ++ .../tests/level2/core/createDocument02.xml | 50 ++ .../tests/level2/core/createDocument03.xml | 51 ++ .../tests/level2/core/createDocument04.xml | 53 ++ .../tests/level2/core/createDocument05.xml | 82 +++ .../tests/level2/core/createDocument06.xml | 54 ++ .../tests/level2/core/createDocument07.xml | 52 ++ .../tests/level2/core/createDocument08.xml | 40 ++ .../tests/level2/core/createDocumentType01.xml | 52 ++ .../tests/level2/core/createDocumentType02.xml | 81 +++ .../tests/level2/core/createDocumentType03.xml | 51 ++ .../tests/level2/core/createDocumentType04.xml | 41 ++ .../tests/level2/core/createElementNS01.xml | 48 ++ .../tests/level2/core/createElementNS02.xml | 47 ++ .../tests/level2/core/createElementNS03.xml | 80 +++ .../tests/level2/core/createElementNS04.xml | 50 ++ .../tests/level2/core/createElementNS05.xml | 44 ++ .../tests/level2/core/createElementNS06.xml | 42 ++ .../level2/core/documentcreateattributeNS01.xml | 47 ++ .../level2/core/documentcreateattributeNS02.xml | 65 ++ .../level2/core/documentcreateattributeNS03.xml | 59 ++ .../level2/core/documentcreateattributeNS04.xml | 54 ++ .../level2/core/documentcreateattributeNS05.xml | 49 ++ .../level2/core/documentcreateattributeNS06.xml | 50 ++ .../level2/core/documentcreateattributeNS07.xml | 45 ++ .../level2/core/documentcreateelementNS01.xml | 55 ++ .../level2/core/documentcreateelementNS02.xml | 44 ++ .../level2/core/documentcreateelementNS05.xml | 44 ++ .../level2/core/documentcreateelementNS06.xml | 51 ++ .../tests/level2/core/documentgetelementbyid01.xml | 41 ++ .../core/documentgetelementsbytagnameNS01.xml | 48 ++ .../core/documentgetelementsbytagnameNS02.xml | 51 ++ .../core/documentgetelementsbytagnameNS03.xml | 41 ++ .../core/documentgetelementsbytagnameNS04.xml | 44 ++ .../core/documentgetelementsbytagnameNS05.xml | 43 ++ .../tests/level2/core/documentimportnode01.xml | 64 ++ .../tests/level2/core/documentimportnode02.xml | 65 ++ .../tests/level2/core/documentimportnode03.xml | 62 ++ .../tests/level2/core/documentimportnode04.xml | 67 ++ .../tests/level2/core/documentimportnode05.xml | 62 ++ .../tests/level2/core/documentimportnode06.xml | 45 ++ .../tests/level2/core/documentimportnode07.xml | 48 ++ .../tests/level2/core/documentimportnode08.xml | 51 ++ .../tests/level2/core/documentimportnode09.xml | 54 ++ .../tests/level2/core/documentimportnode10.xml | 54 ++ .../tests/level2/core/documentimportnode11.xml | 53 ++ .../tests/level2/core/documentimportnode12.xml | 56 ++ .../tests/level2/core/documentimportnode13.xml | 52 ++ .../tests/level2/core/documentimportnode14.xml | 61 ++ .../tests/level2/core/documentimportnode15.xml | 50 ++ .../tests/level2/core/documentimportnode17.xml | 50 ++ .../tests/level2/core/documentimportnode18.xml | 53 ++ .../tests/level2/core/documentimportnode19.xml | 83 +++ .../tests/level2/core/documentimportnode20.xml | 81 +++ .../tests/level2/core/documentimportnode21.xml | 91 +++ .../tests/level2/core/documentimportnode22.xml | 92 +++ .../level2/core/documenttypeinternalSubset01.xml | 43 ++ .../tests/level2/core/documenttypepublicid01.xml | 43 ++ .../tests/level2/core/documenttypesystemid01.xml | 44 ++ .../core/domimplementationcreatedocument03.xml | 60 ++ .../core/domimplementationcreatedocument04.xml | 49 ++ .../core/domimplementationcreatedocument05.xml | 49 ++ .../core/domimplementationcreatedocument07.xml | 46 ++ .../core/domimplementationcreatedocumenttype01.xml | 60 ++ .../core/domimplementationcreatedocumenttype02.xml | 66 ++ .../core/domimplementationcreatedocumenttype04.xml | 65 ++ .../level2/core/domimplementationfeaturecore.xml | 44 ++ .../core/domimplementationfeaturexmlversion2.xml | 45 ++ .../level2/core/domimplementationhasfeature01.xml | 70 ++ .../level2/core/domimplementationhasfeature02.xml | 41 ++ .../level2/core/elementgetattributenodens01.xml | 67 ++ .../level2/core/elementgetattributenodens02.xml | 48 ++ .../level2/core/elementgetattributenodens03.xml | 48 ++ .../tests/level2/core/elementgetattributens02.xml | 45 ++ .../core/elementgetelementsbytagnamens02.xml | 42 ++ .../core/elementgetelementsbytagnamens04.xml | 63 ++ .../core/elementgetelementsbytagnamens05.xml | 43 ++ .../tests/level2/core/elementhasattribute01.xml | 39 ++ .../tests/level2/core/elementhasattribute02.xml | 44 ++ .../tests/level2/core/elementhasattribute03.xml | 47 ++ .../tests/level2/core/elementhasattribute04.xml | 44 ++ .../tests/level2/core/elementhasattributens01.xml | 45 ++ .../tests/level2/core/elementhasattributens02.xml | 51 ++ .../tests/level2/core/elementhasattributens03.xml | 52 ++ .../level2/core/elementremoveattributens01.xml | 50 ++ .../level2/core/elementsetattributenodens01.xml | 78 +++ .../level2/core/elementsetattributenodens02.xml | 63 ++ .../level2/core/elementsetattributenodens03.xml | 57 ++ .../level2/core/elementsetattributenodens04.xml | 53 ++ .../level2/core/elementsetattributenodens05.xml | 53 ++ .../level2/core/elementsetattributenodens06.xml | 57 ++ .../tests/level2/core/elementsetattributens01.xml | 51 ++ .../tests/level2/core/elementsetattributens02.xml | 53 ++ .../tests/level2/core/elementsetattributens03.xml | 57 ++ .../tests/level2/core/elementsetattributens04.xml | 60 ++ .../tests/level2/core/elementsetattributens05.xml | 46 ++ .../tests/level2/core/elementsetattributens08.xml | 56 ++ .../level2/core/elementsetattributensurinull.xml | 49 ++ test/testcases/tests/level2/core/files/.cvsignore | 0 test/testcases/tests/level2/core/files/CVS/Entries | 21 + .../tests/level2/core/files/CVS/Repository | 1 + test/testcases/tests/level2/core/files/CVS/Root | 1 + .../testcases/tests/level2/core/files/CVS/Template | 0 .../tests/level2/core/files/hc_staff.html | 48 ++ .../testcases/tests/level2/core/files/hc_staff.svg | 72 +++ .../tests/level2/core/files/hc_staff.xhtml | 60 ++ .../testcases/tests/level2/core/files/hc_staff.xml | 60 ++ .../tests/level2/core/files/internalSubset01.js | 0 .../tests/level2/core/files/nodtdstaff.svg | 11 + .../tests/level2/core/files/nodtdstaff.xml | 11 + test/testcases/tests/level2/core/files/staff.dtd | 17 + test/testcases/tests/level2/core/files/staff.svg | 72 +++ test/testcases/tests/level2/core/files/staff.xml | 57 ++ test/testcases/tests/level2/core/files/staff2.dtd | 24 + test/testcases/tests/level2/core/files/staff2.svg | 13 + test/testcases/tests/level2/core/files/staff2.xml | 13 + test/testcases/tests/level2/core/files/staffNS.dtd | 45 ++ test/testcases/tests/level2/core/files/staffNS.svg | 73 +++ test/testcases/tests/level2/core/files/staffNS.xml | 59 ++ test/testcases/tests/level2/core/files/svgtest.js | 0 test/testcases/tests/level2/core/files/svgunit.js | 0 .../tests/level2/core/files/xhtml1-strict.dtd | 65 ++ .../tests/level2/core/getAttributeNS01.xml | 50 ++ .../tests/level2/core/getAttributeNS02.xml | 55 ++ .../tests/level2/core/getAttributeNS03.xml | 48 ++ .../tests/level2/core/getAttributeNS04.xml | 53 ++ .../tests/level2/core/getAttributeNS05.xml | 47 ++ .../tests/level2/core/getAttributeNodeNS01.xml | 48 ++ .../tests/level2/core/getAttributeNodeNS02.xml | 49 ++ .../tests/level2/core/getElementById01.xml | 45 ++ .../tests/level2/core/getElementById02.xml | 40 ++ .../tests/level2/core/getElementsByTagNameNS01.xml | 42 ++ .../tests/level2/core/getElementsByTagNameNS02.xml | 52 ++ .../tests/level2/core/getElementsByTagNameNS03.xml | 67 ++ .../tests/level2/core/getElementsByTagNameNS04.xml | 57 ++ .../tests/level2/core/getElementsByTagNameNS05.xml | 44 ++ .../tests/level2/core/getElementsByTagNameNS06.xml | 44 ++ .../tests/level2/core/getElementsByTagNameNS07.xml | 43 ++ .../tests/level2/core/getElementsByTagNameNS08.xml | 47 ++ .../tests/level2/core/getElementsByTagNameNS09.xml | 58 ++ .../tests/level2/core/getElementsByTagNameNS10.xml | 72 +++ .../tests/level2/core/getElementsByTagNameNS11.xml | 61 ++ .../tests/level2/core/getElementsByTagNameNS12.xml | 45 ++ .../tests/level2/core/getElementsByTagNameNS13.xml | 46 ++ .../tests/level2/core/getElementsByTagNameNS14.xml | 45 ++ .../tests/level2/core/getNamedItemNS01.xml | 51 ++ .../tests/level2/core/getNamedItemNS02.xml | 51 ++ .../tests/level2/core/getNamedItemNS03.xml | 43 ++ .../tests/level2/core/getNamedItemNS04.xml | 43 ++ .../testcases/tests/level2/core/hasAttribute01.xml | 42 ++ .../testcases/tests/level2/core/hasAttribute02.xml | 45 ++ .../testcases/tests/level2/core/hasAttribute03.xml | 42 ++ .../testcases/tests/level2/core/hasAttribute04.xml | 45 ++ .../tests/level2/core/hasAttributeNS01.xml | 47 ++ .../tests/level2/core/hasAttributeNS02.xml | 46 ++ .../tests/level2/core/hasAttributeNS03.xml | 47 ++ .../tests/level2/core/hasAttributeNS04.xml | 50 ++ .../tests/level2/core/hasAttributeNS05.xml | 48 ++ .../tests/level2/core/hasAttributes01.xml | 42 ++ .../tests/level2/core/hasAttributes02.xml | 42 ++ .../level2/core/hc_entitiesremovenameditemns1.xml | 47 ++ .../level2/core/hc_entitiessetnameditemns1.xml | 49 ++ .../level2/core/hc_namednodemapinvalidtype1.xml | 42 ++ .../core/hc_nodedocumentfragmentnormalize1.xml | 44 ++ .../core/hc_nodedocumentfragmentnormalize2.xml | 39 ++ .../level2/core/hc_notationsremovenameditemns1.xml | 47 ++ .../level2/core/hc_notationssetnameditemns1.xml | 49 ++ test/testcases/tests/level2/core/importNode01.xml | 82 +++ test/testcases/tests/level2/core/importNode02.xml | 55 ++ test/testcases/tests/level2/core/importNode03.xml | 56 ++ test/testcases/tests/level2/core/importNode04.xml | 57 ++ test/testcases/tests/level2/core/importNode05.xml | 62 ++ test/testcases/tests/level2/core/importNode06.xml | 59 ++ test/testcases/tests/level2/core/importNode07.xml | 62 ++ test/testcases/tests/level2/core/importNode08.xml | 56 ++ test/testcases/tests/level2/core/importNode09.xml | 68 ++ test/testcases/tests/level2/core/importNode10.xml | 59 ++ test/testcases/tests/level2/core/importNode11.xml | 57 ++ test/testcases/tests/level2/core/importNode12.xml | 65 ++ test/testcases/tests/level2/core/importNode13.xml | 62 ++ test/testcases/tests/level2/core/importNode14.xml | 59 ++ test/testcases/tests/level2/core/importNode15.xml | 56 ++ test/testcases/tests/level2/core/importNode16.xml | 50 ++ test/testcases/tests/level2/core/importNode17.xml | 48 ++ .../tests/level2/core/internalSubset01.xml | 42 ++ test/testcases/tests/level2/core/isSupported01.xml | 46 ++ test/testcases/tests/level2/core/isSupported02.xml | 46 ++ test/testcases/tests/level2/core/isSupported04.xml | 48 ++ test/testcases/tests/level2/core/isSupported05.xml | 48 ++ test/testcases/tests/level2/core/isSupported06.xml | 48 ++ test/testcases/tests/level2/core/isSupported07.xml | 48 ++ test/testcases/tests/level2/core/isSupported09.xml | 48 ++ test/testcases/tests/level2/core/isSupported10.xml | 48 ++ test/testcases/tests/level2/core/isSupported11.xml | 48 ++ test/testcases/tests/level2/core/isSupported12.xml | 73 +++ test/testcases/tests/level2/core/isSupported13.xml | 36 ++ test/testcases/tests/level2/core/isSupported14.xml | 37 ++ test/testcases/tests/level2/core/localName01.xml | 50 ++ test/testcases/tests/level2/core/localName02.xml | 43 ++ test/testcases/tests/level2/core/localName03.xml | 47 ++ test/testcases/tests/level2/core/localName04.xml | 46 ++ test/testcases/tests/level2/core/metadata.xml | 18 + .../level2/core/namednodemapgetnameditemns01.xml | 54 ++ .../level2/core/namednodemapgetnameditemns02.xml | 48 ++ .../level2/core/namednodemapgetnameditemns03.xml | 52 ++ .../level2/core/namednodemapgetnameditemns04.xml | 53 ++ .../level2/core/namednodemapgetnameditemns05.xml | 46 ++ .../level2/core/namednodemapgetnameditemns06.xml | 56 ++ .../core/namednodemapremovenameditemns01.xml | 45 ++ .../core/namednodemapremovenameditemns02.xml | 55 ++ .../core/namednodemapremovenameditemns03.xml | 53 ++ .../core/namednodemapremovenameditemns04.xml | 49 ++ .../core/namednodemapremovenameditemns05.xml | 63 ++ .../core/namednodemapremovenameditemns06.xml | 49 ++ .../core/namednodemapremovenameditemns07.xml | 49 ++ .../core/namednodemapremovenameditemns08.xml | 52 ++ .../core/namednodemapremovenameditemns09.xml | 49 ++ .../level2/core/namednodemapsetnameditemns01.xml | 54 ++ .../level2/core/namednodemapsetnameditemns02.xml | 52 ++ .../level2/core/namednodemapsetnameditemns03.xml | 65 ++ .../level2/core/namednodemapsetnameditemns04.xml | 60 ++ .../level2/core/namednodemapsetnameditemns05.xml | 61 ++ .../level2/core/namednodemapsetnameditemns06.xml | 53 ++ .../level2/core/namednodemapsetnameditemns07.xml | 62 ++ .../level2/core/namednodemapsetnameditemns08.xml | 62 ++ .../level2/core/namednodemapsetnameditemns09.xml | 55 ++ .../level2/core/namednodemapsetnameditemns10.xml | 59 ++ .../level2/core/namednodemapsetnameditemns11.xml | 59 ++ .../testcases/tests/level2/core/namespaceURI01.xml | 50 ++ .../testcases/tests/level2/core/namespaceURI02.xml | 48 ++ .../testcases/tests/level2/core/namespaceURI03.xml | 45 ++ .../testcases/tests/level2/core/namespaceURI04.xml | 54 ++ .../tests/level2/core/nodegetlocalname03.xml | 56 ++ .../tests/level2/core/nodegetnamespaceuri03.xml | 59 ++ .../tests/level2/core/nodegetownerdocument01.xml | 44 ++ .../tests/level2/core/nodegetownerdocument02.xml | 52 ++ .../tests/level2/core/nodegetprefix03.xml | 56 ++ .../tests/level2/core/nodehasattributes01.xml | 45 ++ .../tests/level2/core/nodehasattributes02.xml | 39 ++ .../tests/level2/core/nodehasattributes03.xml | 41 ++ .../tests/level2/core/nodehasattributes04.xml | 58 ++ .../tests/level2/core/nodeissupported01.xml | 70 ++ .../tests/level2/core/nodeissupported02.xml | 70 ++ .../tests/level2/core/nodeissupported03.xml | 41 ++ .../tests/level2/core/nodeissupported04.xml | 42 ++ .../tests/level2/core/nodeissupported05.xml | 41 ++ .../tests/level2/core/nodenormalize01.xml | 153 +++++ .../tests/level2/core/nodesetprefix01.xml | 50 ++ .../tests/level2/core/nodesetprefix02.xml | 56 ++ .../tests/level2/core/nodesetprefix03.xml | 42 ++ .../tests/level2/core/nodesetprefix04.xml | 51 ++ .../tests/level2/core/nodesetprefix05.xml | 53 ++ .../tests/level2/core/nodesetprefix06.xml | 43 ++ .../tests/level2/core/nodesetprefix07.xml | 44 ++ .../tests/level2/core/nodesetprefix08.xml | 46 ++ .../tests/level2/core/nodesetprefix09.xml | 42 ++ test/testcases/tests/level2/core/normalize01.xml | 55 ++ .../tests/level2/core/ownerDocument01.xml | 38 ++ .../testcases/tests/level2/core/ownerElement01.xml | 48 ++ .../testcases/tests/level2/core/ownerElement02.xml | 41 ++ test/testcases/tests/level2/core/prefix01.xml | 43 ++ test/testcases/tests/level2/core/prefix02.xml | 48 ++ test/testcases/tests/level2/core/prefix03.xml | 44 ++ test/testcases/tests/level2/core/prefix04.xml | 42 ++ test/testcases/tests/level2/core/prefix05.xml | 53 ++ test/testcases/tests/level2/core/prefix06.xml | 49 ++ test/testcases/tests/level2/core/prefix07.xml | 47 ++ test/testcases/tests/level2/core/prefix08.xml | 63 ++ test/testcases/tests/level2/core/prefix09.xml | 53 ++ test/testcases/tests/level2/core/prefix10.xml | 49 ++ test/testcases/tests/level2/core/prefix11.xml | 57 ++ test/testcases/tests/level2/core/publicId01.xml | 41 ++ .../tests/level2/core/removeAttributeNS01.xml | 64 ++ .../tests/level2/core/removeAttributeNS02.xml | 66 ++ .../tests/level2/core/removeNamedItemNS01.xml | 52 ++ .../tests/level2/core/removeNamedItemNS02.xml | 56 ++ .../tests/level2/core/removeNamedItemNS03.xml | 71 +++ .../tests/level2/core/setAttributeNS01.xml | 50 ++ .../tests/level2/core/setAttributeNS02.xml | 49 ++ .../tests/level2/core/setAttributeNS03.xml | 67 ++ .../tests/level2/core/setAttributeNS04.xml | 63 ++ .../tests/level2/core/setAttributeNS05.xml | 54 ++ .../tests/level2/core/setAttributeNS06.xml | 51 ++ .../tests/level2/core/setAttributeNS07.xml | 52 ++ .../tests/level2/core/setAttributeNS09.xml | 63 ++ .../tests/level2/core/setAttributeNS10.xml | 43 ++ .../tests/level2/core/setAttributeNodeNS01.xml | 65 ++ .../tests/level2/core/setAttributeNodeNS02.xml | 69 ++ .../tests/level2/core/setAttributeNodeNS03.xml | 52 ++ .../tests/level2/core/setAttributeNodeNS04.xml | 54 ++ .../tests/level2/core/setAttributeNodeNS05.xml | 60 ++ .../tests/level2/core/setNamedItemNS01.xml | 61 ++ .../tests/level2/core/setNamedItemNS02.xml | 60 ++ .../tests/level2/core/setNamedItemNS03.xml | 57 ++ .../tests/level2/core/setNamedItemNS04.xml | 73 +++ .../tests/level2/core/setNamedItemNS05.xml | 55 ++ test/testcases/tests/level2/core/systemId01.xml | 42 ++ test/testcases/tests/level2/events/.cvsignore | 2 + test/testcases/tests/level2/events/CVS/Entries | 30 + test/testcases/tests/level2/events/CVS/Repository | 1 + test/testcases/tests/level2/events/CVS/Root | 1 + test/testcases/tests/level2/events/CVS/Template | 0 .../tests/level2/events/DocumentEventCast01.xml | 33 + .../tests/level2/events/EventTargetCast01.xml | 33 + test/testcases/tests/level2/events/alltests.xml | 46 ++ .../tests/level2/events/createEvent01.xml | 34 + .../tests/level2/events/createEvent02.xml | 36 ++ .../tests/level2/events/createEvent03.xml | 36 ++ .../tests/level2/events/createEvent04.xml | 36 ++ .../tests/level2/events/createEvent05.xml | 36 ++ .../tests/level2/events/dispatchEvent01.xml | 38 ++ .../tests/level2/events/dispatchEvent02.xml | 41 ++ .../tests/level2/events/dispatchEvent03.xml | 42 ++ .../tests/level2/events/dispatchEvent04.xml | 42 ++ .../tests/level2/events/dispatchEvent05.xml | 42 ++ .../tests/level2/events/dispatchEvent06.xml | 42 ++ .../tests/level2/events/dispatchEvent07.xml | 42 ++ .../tests/level2/events/dispatchEvent08.xml | 49 ++ .../tests/level2/events/dispatchEvent09.xml | 49 ++ .../tests/level2/events/dispatchEvent10.xml | 50 ++ .../tests/level2/events/dispatchEvent11.xml | 45 ++ .../tests/level2/events/dispatchEvent12.xml | 50 ++ .../tests/level2/events/dispatchEvent13.xml | 84 +++ .../testcases/tests/level2/events/files/.cvsignore | 0 .../tests/level2/events/files/CVS/Entries | 10 + .../tests/level2/events/files/CVS/Repository | 1 + test/testcases/tests/level2/events/files/CVS/Root | 1 + .../tests/level2/events/files/CVS/Template | 0 .../tests/level2/events/files/hc_staff.html | 48 ++ .../tests/level2/events/files/hc_staff.svg | 72 +++ .../tests/level2/events/files/hc_staff.xhtml | 60 ++ .../tests/level2/events/files/hc_staff.xml | 60 ++ test/testcases/tests/level2/events/files/staff.dtd | 17 + .../testcases/tests/level2/events/files/svgtest.js | 0 .../testcases/tests/level2/events/files/svgunit.js | 0 .../tests/level2/events/files/xhtml1-strict.dtd | 65 ++ test/testcases/tests/level2/events/initEvent01.xml | 48 ++ test/testcases/tests/level2/events/initEvent02.xml | 48 ++ test/testcases/tests/level2/events/initEvent03.xml | 55 ++ test/testcases/tests/level2/events/initEvent04.xml | 50 ++ test/testcases/tests/level2/events/initEvent05.xml | 50 ++ test/testcases/tests/level2/events/initEvent06.xml | 57 ++ test/testcases/tests/level2/events/metadata.xml | 20 + test/testcases/tests/level2/html/.cvsignore | 2 + test/testcases/tests/level2/html/CVS/Entries | 65 ++ test/testcases/tests/level2/html/CVS/Repository | 1 + test/testcases/tests/level2/html/CVS/Root | 1 + test/testcases/tests/level2/html/CVS/Template | 0 .../tests/level2/html/HTMLAppletElement07.xml | 42 ++ .../tests/level2/html/HTMLAppletElement09.xml | 42 ++ .../tests/level2/html/HTMLBaseFontElement03.xml | 41 ++ .../tests/level2/html/HTMLBodyElement07.xml | 38 ++ .../tests/level2/html/HTMLBodyElement08.xml | 38 ++ .../tests/level2/html/HTMLBodyElement09.xml | 40 ++ .../tests/level2/html/HTMLBodyElement10.xml | 40 ++ .../tests/level2/html/HTMLBodyElement11.xml | 38 ++ .../tests/level2/html/HTMLBodyElement12.xml | 38 ++ .../testcases/tests/level2/html/HTMLDocument22.xml | 36 ++ .../testcases/tests/level2/html/HTMLDocument23.xml | 36 ++ .../testcases/tests/level2/html/HTMLDocument24.xml | 38 ++ .../testcases/tests/level2/html/HTMLDocument25.xml | 38 ++ .../testcases/tests/level2/html/HTMLDocument26.xml | 36 ++ .../testcases/tests/level2/html/HTMLDocument27.xml | 36 ++ .../tests/level2/html/HTMLFrameElement09.xml | 42 ++ .../tests/level2/html/HTMLIFrameElement11.xml | 39 ++ .../tests/level2/html/HTMLImageElement05.xml | 41 ++ .../tests/level2/html/HTMLImageElement06.xml | 42 ++ .../tests/level2/html/HTMLImageElement11.xml | 42 ++ .../tests/level2/html/HTMLImageElement12.xml | 41 ++ .../tests/level2/html/HTMLInputElement13.xml | 43 ++ .../tests/level2/html/HTMLObjectElement11.xml | 43 ++ .../tests/level2/html/HTMLObjectElement16.xml | 43 ++ .../tests/level2/html/HTMLObjectElement20.xml | 40 ++ .../tests/level2/html/HTMLOptionsCollection01.xml | 46 ++ .../tests/level2/html/HTMLOptionsCollection02.xml | 54 ++ .../tests/level2/html/HTMLOptionsCollection03.xml | 54 ++ .../tests/level2/html/HTMLOptionsCollection04.xml | 54 ++ .../tests/level2/html/HTMLOptionsCollection05.xml | 55 ++ .../tests/level2/html/HTMLOptionsCollection06.xml | 52 ++ .../tests/level2/html/HTMLOptionsCollection07.xml | 54 ++ .../tests/level2/html/HTMLSelectElement20.xml | 56 ++ .../tests/level2/html/HTMLTableElement34.xml | 48 ++ .../tests/level2/html/HTMLTableElement35.xml | 48 ++ .../tests/level2/html/HTMLTableElement36.xml | 47 ++ .../tests/level2/html/HTMLTableElement37.xml | 48 ++ .../tests/level2/html/HTMLTableElement38.xml | 47 ++ .../tests/level2/html/HTMLTableElement39.xml | 62 ++ .../tests/level2/html/HTMLTableElement40.xml | 50 ++ .../tests/level2/html/HTMLTableRowElement15.xml | 48 ++ .../tests/level2/html/HTMLTableRowElement16.xml | 48 ++ .../tests/level2/html/HTMLTableRowElement17.xml | 47 ++ .../tests/level2/html/HTMLTableRowElement18.xml | 47 ++ .../tests/level2/html/HTMLTableRowElement19.xml | 47 ++ .../tests/level2/html/HTMLTableRowElement20.xml | 68 ++ .../tests/level2/html/HTMLTableRowElement21.xml | 67 ++ .../level2/html/HTMLTableSectionElement25.xml | 48 ++ .../level2/html/HTMLTableSectionElement26.xml | 48 ++ .../level2/html/HTMLTableSectionElement27.xml | 48 ++ .../level2/html/HTMLTableSectionElement28.xml | 48 ++ .../level2/html/HTMLTableSectionElement29.xml | 47 ++ .../level2/html/HTMLTableSectionElement30.xml | 55 ++ .../level2/html/HTMLTableSectionElement31.xml | 53 ++ test/testcases/tests/level2/html/alltests.xml | 707 +++++++++++++++++++++ test/testcases/tests/level2/html/files/.cvsignore | 6 + test/testcases/tests/level2/html/files/CVS/Entries | 11 + .../tests/level2/html/files/CVS/Repository | 1 + test/testcases/tests/level2/html/files/CVS/Root | 1 + .../testcases/tests/level2/html/files/CVS/Template | 0 test/testcases/tests/level2/html/files/frame2.html | 16 + .../testcases/tests/level2/html/files/frame2.xhtml | 17 + test/testcases/tests/level2/html/files/frame2.xml | 16 + .../testcases/tests/level2/html/files/iframe2.html | 13 + .../tests/level2/html/files/iframe2.xhtml | 15 + test/testcases/tests/level2/html/files/iframe2.xml | 15 + .../tests/level2/html/files/optionscollection.html | 36 ++ .../level2/html/files/optionscollection.xhtml | 33 + .../tests/level2/html/files/optionscollection.xml | 33 + test/testcases/tests/level2/html/hasFeature02.xml | 31 + test/testcases/tests/level2/html/hasFeature03.xml | 33 + test/testcases/tests/level2/html/hasFeature04.xml | 33 + test/testcases/tests/level2/html/hasFeature05.xml | 31 + test/testcases/tests/level2/html/hasFeature06.xml | 31 + test/testcases/tests/level2/html/metadata.xml | 15 + test/testcases/tests/level2/html/object08.xml | 40 ++ test/testcases/tests/level2/html/object13.xml | 40 ++ 446 files changed, 21593 insertions(+) create mode 100644 test/testcases/tests/level2/CVS/Entries create mode 100644 test/testcases/tests/level2/CVS/Repository create mode 100644 test/testcases/tests/level2/CVS/Root create mode 100644 test/testcases/tests/level2/CVS/Template create mode 100644 test/testcases/tests/level2/core/.cvsignore create mode 100644 test/testcases/tests/level2/core/CVS/Entries create mode 100644 test/testcases/tests/level2/core/CVS/Repository create mode 100644 test/testcases/tests/level2/core/CVS/Root create mode 100644 test/testcases/tests/level2/core/CVS/Template create mode 100644 test/testcases/tests/level2/core/alltests.xml create mode 100644 test/testcases/tests/level2/core/attrgetownerelement01.xml create mode 100644 test/testcases/tests/level2/core/attrgetownerelement02.xml create mode 100644 test/testcases/tests/level2/core/attrgetownerelement03.xml create mode 100644 test/testcases/tests/level2/core/attrgetownerelement04.xml create mode 100644 test/testcases/tests/level2/core/attrgetownerelement05.xml create mode 100644 test/testcases/tests/level2/core/createAttributeNS01.xml create mode 100644 test/testcases/tests/level2/core/createAttributeNS02.xml create mode 100644 test/testcases/tests/level2/core/createAttributeNS03.xml create mode 100644 test/testcases/tests/level2/core/createAttributeNS04.xml create mode 100644 test/testcases/tests/level2/core/createAttributeNS05.xml create mode 100644 test/testcases/tests/level2/core/createAttributeNS06.xml create mode 100644 test/testcases/tests/level2/core/createDocument01.xml create mode 100644 test/testcases/tests/level2/core/createDocument02.xml create mode 100644 test/testcases/tests/level2/core/createDocument03.xml create mode 100644 test/testcases/tests/level2/core/createDocument04.xml create mode 100644 test/testcases/tests/level2/core/createDocument05.xml create mode 100644 test/testcases/tests/level2/core/createDocument06.xml create mode 100644 test/testcases/tests/level2/core/createDocument07.xml create mode 100644 test/testcases/tests/level2/core/createDocument08.xml create mode 100644 test/testcases/tests/level2/core/createDocumentType01.xml create mode 100644 test/testcases/tests/level2/core/createDocumentType02.xml create mode 100644 test/testcases/tests/level2/core/createDocumentType03.xml create mode 100644 test/testcases/tests/level2/core/createDocumentType04.xml create mode 100644 test/testcases/tests/level2/core/createElementNS01.xml create mode 100644 test/testcases/tests/level2/core/createElementNS02.xml create mode 100644 test/testcases/tests/level2/core/createElementNS03.xml create mode 100644 test/testcases/tests/level2/core/createElementNS04.xml create mode 100644 test/testcases/tests/level2/core/createElementNS05.xml create mode 100644 test/testcases/tests/level2/core/createElementNS06.xml create mode 100644 test/testcases/tests/level2/core/documentcreateattributeNS01.xml create mode 100644 test/testcases/tests/level2/core/documentcreateattributeNS02.xml create mode 100644 test/testcases/tests/level2/core/documentcreateattributeNS03.xml create mode 100644 test/testcases/tests/level2/core/documentcreateattributeNS04.xml create mode 100644 test/testcases/tests/level2/core/documentcreateattributeNS05.xml create mode 100644 test/testcases/tests/level2/core/documentcreateattributeNS06.xml create mode 100644 test/testcases/tests/level2/core/documentcreateattributeNS07.xml create mode 100644 test/testcases/tests/level2/core/documentcreateelementNS01.xml create mode 100644 test/testcases/tests/level2/core/documentcreateelementNS02.xml create mode 100644 test/testcases/tests/level2/core/documentcreateelementNS05.xml create mode 100644 test/testcases/tests/level2/core/documentcreateelementNS06.xml create mode 100644 test/testcases/tests/level2/core/documentgetelementbyid01.xml create mode 100644 test/testcases/tests/level2/core/documentgetelementsbytagnameNS01.xml create mode 100644 test/testcases/tests/level2/core/documentgetelementsbytagnameNS02.xml create mode 100644 test/testcases/tests/level2/core/documentgetelementsbytagnameNS03.xml create mode 100644 test/testcases/tests/level2/core/documentgetelementsbytagnameNS04.xml create mode 100644 test/testcases/tests/level2/core/documentgetelementsbytagnameNS05.xml create mode 100644 test/testcases/tests/level2/core/documentimportnode01.xml create mode 100644 test/testcases/tests/level2/core/documentimportnode02.xml create mode 100644 test/testcases/tests/level2/core/documentimportnode03.xml create mode 100644 test/testcases/tests/level2/core/documentimportnode04.xml create mode 100644 test/testcases/tests/level2/core/documentimportnode05.xml create mode 100644 test/testcases/tests/level2/core/documentimportnode06.xml create mode 100644 test/testcases/tests/level2/core/documentimportnode07.xml create mode 100644 test/testcases/tests/level2/core/documentimportnode08.xml create mode 100644 test/testcases/tests/level2/core/documentimportnode09.xml create mode 100644 test/testcases/tests/level2/core/documentimportnode10.xml create mode 100644 test/testcases/tests/level2/core/documentimportnode11.xml create mode 100644 test/testcases/tests/level2/core/documentimportnode12.xml create mode 100644 test/testcases/tests/level2/core/documentimportnode13.xml create mode 100644 test/testcases/tests/level2/core/documentimportnode14.xml create mode 100644 test/testcases/tests/level2/core/documentimportnode15.xml create mode 100644 test/testcases/tests/level2/core/documentimportnode17.xml create mode 100644 test/testcases/tests/level2/core/documentimportnode18.xml create mode 100644 test/testcases/tests/level2/core/documentimportnode19.xml create mode 100644 test/testcases/tests/level2/core/documentimportnode20.xml create mode 100644 test/testcases/tests/level2/core/documentimportnode21.xml create mode 100644 test/testcases/tests/level2/core/documentimportnode22.xml create mode 100644 test/testcases/tests/level2/core/documenttypeinternalSubset01.xml create mode 100644 test/testcases/tests/level2/core/documenttypepublicid01.xml create mode 100644 test/testcases/tests/level2/core/documenttypesystemid01.xml create mode 100644 test/testcases/tests/level2/core/domimplementationcreatedocument03.xml create mode 100644 test/testcases/tests/level2/core/domimplementationcreatedocument04.xml create mode 100644 test/testcases/tests/level2/core/domimplementationcreatedocument05.xml create mode 100644 test/testcases/tests/level2/core/domimplementationcreatedocument07.xml create mode 100644 test/testcases/tests/level2/core/domimplementationcreatedocumenttype01.xml create mode 100644 test/testcases/tests/level2/core/domimplementationcreatedocumenttype02.xml create mode 100644 test/testcases/tests/level2/core/domimplementationcreatedocumenttype04.xml create mode 100644 test/testcases/tests/level2/core/domimplementationfeaturecore.xml create mode 100644 test/testcases/tests/level2/core/domimplementationfeaturexmlversion2.xml create mode 100644 test/testcases/tests/level2/core/domimplementationhasfeature01.xml create mode 100644 test/testcases/tests/level2/core/domimplementationhasfeature02.xml create mode 100644 test/testcases/tests/level2/core/elementgetattributenodens01.xml create mode 100644 test/testcases/tests/level2/core/elementgetattributenodens02.xml create mode 100644 test/testcases/tests/level2/core/elementgetattributenodens03.xml create mode 100644 test/testcases/tests/level2/core/elementgetattributens02.xml create mode 100644 test/testcases/tests/level2/core/elementgetelementsbytagnamens02.xml create mode 100644 test/testcases/tests/level2/core/elementgetelementsbytagnamens04.xml create mode 100644 test/testcases/tests/level2/core/elementgetelementsbytagnamens05.xml create mode 100644 test/testcases/tests/level2/core/elementhasattribute01.xml create mode 100644 test/testcases/tests/level2/core/elementhasattribute02.xml create mode 100644 test/testcases/tests/level2/core/elementhasattribute03.xml create mode 100644 test/testcases/tests/level2/core/elementhasattribute04.xml create mode 100644 test/testcases/tests/level2/core/elementhasattributens01.xml create mode 100644 test/testcases/tests/level2/core/elementhasattributens02.xml create mode 100644 test/testcases/tests/level2/core/elementhasattributens03.xml create mode 100644 test/testcases/tests/level2/core/elementremoveattributens01.xml create mode 100644 test/testcases/tests/level2/core/elementsetattributenodens01.xml create mode 100644 test/testcases/tests/level2/core/elementsetattributenodens02.xml create mode 100644 test/testcases/tests/level2/core/elementsetattributenodens03.xml create mode 100644 test/testcases/tests/level2/core/elementsetattributenodens04.xml create mode 100644 test/testcases/tests/level2/core/elementsetattributenodens05.xml create mode 100644 test/testcases/tests/level2/core/elementsetattributenodens06.xml create mode 100644 test/testcases/tests/level2/core/elementsetattributens01.xml create mode 100644 test/testcases/tests/level2/core/elementsetattributens02.xml create mode 100644 test/testcases/tests/level2/core/elementsetattributens03.xml create mode 100644 test/testcases/tests/level2/core/elementsetattributens04.xml create mode 100644 test/testcases/tests/level2/core/elementsetattributens05.xml create mode 100644 test/testcases/tests/level2/core/elementsetattributens08.xml create mode 100644 test/testcases/tests/level2/core/elementsetattributensurinull.xml create mode 100644 test/testcases/tests/level2/core/files/.cvsignore create mode 100644 test/testcases/tests/level2/core/files/CVS/Entries create mode 100644 test/testcases/tests/level2/core/files/CVS/Repository create mode 100644 test/testcases/tests/level2/core/files/CVS/Root create mode 100644 test/testcases/tests/level2/core/files/CVS/Template create mode 100644 test/testcases/tests/level2/core/files/hc_staff.html create mode 100644 test/testcases/tests/level2/core/files/hc_staff.svg create mode 100644 test/testcases/tests/level2/core/files/hc_staff.xhtml create mode 100644 test/testcases/tests/level2/core/files/hc_staff.xml create mode 100644 test/testcases/tests/level2/core/files/internalSubset01.js create mode 100644 test/testcases/tests/level2/core/files/nodtdstaff.svg create mode 100644 test/testcases/tests/level2/core/files/nodtdstaff.xml create mode 100644 test/testcases/tests/level2/core/files/staff.dtd create mode 100644 test/testcases/tests/level2/core/files/staff.svg create mode 100644 test/testcases/tests/level2/core/files/staff.xml create mode 100644 test/testcases/tests/level2/core/files/staff2.dtd create mode 100644 test/testcases/tests/level2/core/files/staff2.svg create mode 100644 test/testcases/tests/level2/core/files/staff2.xml create mode 100644 test/testcases/tests/level2/core/files/staffNS.dtd create mode 100644 test/testcases/tests/level2/core/files/staffNS.svg create mode 100644 test/testcases/tests/level2/core/files/staffNS.xml create mode 100644 test/testcases/tests/level2/core/files/svgtest.js create mode 100644 test/testcases/tests/level2/core/files/svgunit.js create mode 100644 test/testcases/tests/level2/core/files/xhtml1-strict.dtd create mode 100644 test/testcases/tests/level2/core/getAttributeNS01.xml create mode 100644 test/testcases/tests/level2/core/getAttributeNS02.xml create mode 100644 test/testcases/tests/level2/core/getAttributeNS03.xml create mode 100644 test/testcases/tests/level2/core/getAttributeNS04.xml create mode 100644 test/testcases/tests/level2/core/getAttributeNS05.xml create mode 100644 test/testcases/tests/level2/core/getAttributeNodeNS01.xml create mode 100644 test/testcases/tests/level2/core/getAttributeNodeNS02.xml create mode 100644 test/testcases/tests/level2/core/getElementById01.xml create mode 100644 test/testcases/tests/level2/core/getElementById02.xml create mode 100644 test/testcases/tests/level2/core/getElementsByTagNameNS01.xml create mode 100644 test/testcases/tests/level2/core/getElementsByTagNameNS02.xml create mode 100644 test/testcases/tests/level2/core/getElementsByTagNameNS03.xml create mode 100644 test/testcases/tests/level2/core/getElementsByTagNameNS04.xml create mode 100644 test/testcases/tests/level2/core/getElementsByTagNameNS05.xml create mode 100644 test/testcases/tests/level2/core/getElementsByTagNameNS06.xml create mode 100644 test/testcases/tests/level2/core/getElementsByTagNameNS07.xml create mode 100644 test/testcases/tests/level2/core/getElementsByTagNameNS08.xml create mode 100644 test/testcases/tests/level2/core/getElementsByTagNameNS09.xml create mode 100644 test/testcases/tests/level2/core/getElementsByTagNameNS10.xml create mode 100644 test/testcases/tests/level2/core/getElementsByTagNameNS11.xml create mode 100644 test/testcases/tests/level2/core/getElementsByTagNameNS12.xml create mode 100644 test/testcases/tests/level2/core/getElementsByTagNameNS13.xml create mode 100644 test/testcases/tests/level2/core/getElementsByTagNameNS14.xml create mode 100644 test/testcases/tests/level2/core/getNamedItemNS01.xml create mode 100644 test/testcases/tests/level2/core/getNamedItemNS02.xml create mode 100644 test/testcases/tests/level2/core/getNamedItemNS03.xml create mode 100644 test/testcases/tests/level2/core/getNamedItemNS04.xml create mode 100644 test/testcases/tests/level2/core/hasAttribute01.xml create mode 100644 test/testcases/tests/level2/core/hasAttribute02.xml create mode 100644 test/testcases/tests/level2/core/hasAttribute03.xml create mode 100644 test/testcases/tests/level2/core/hasAttribute04.xml create mode 100644 test/testcases/tests/level2/core/hasAttributeNS01.xml create mode 100644 test/testcases/tests/level2/core/hasAttributeNS02.xml create mode 100644 test/testcases/tests/level2/core/hasAttributeNS03.xml create mode 100644 test/testcases/tests/level2/core/hasAttributeNS04.xml create mode 100644 test/testcases/tests/level2/core/hasAttributeNS05.xml create mode 100644 test/testcases/tests/level2/core/hasAttributes01.xml create mode 100644 test/testcases/tests/level2/core/hasAttributes02.xml create mode 100644 test/testcases/tests/level2/core/hc_entitiesremovenameditemns1.xml create mode 100644 test/testcases/tests/level2/core/hc_entitiessetnameditemns1.xml create mode 100644 test/testcases/tests/level2/core/hc_namednodemapinvalidtype1.xml create mode 100644 test/testcases/tests/level2/core/hc_nodedocumentfragmentnormalize1.xml create mode 100644 test/testcases/tests/level2/core/hc_nodedocumentfragmentnormalize2.xml create mode 100644 test/testcases/tests/level2/core/hc_notationsremovenameditemns1.xml create mode 100644 test/testcases/tests/level2/core/hc_notationssetnameditemns1.xml create mode 100644 test/testcases/tests/level2/core/importNode01.xml create mode 100644 test/testcases/tests/level2/core/importNode02.xml create mode 100644 test/testcases/tests/level2/core/importNode03.xml create mode 100644 test/testcases/tests/level2/core/importNode04.xml create mode 100644 test/testcases/tests/level2/core/importNode05.xml create mode 100644 test/testcases/tests/level2/core/importNode06.xml create mode 100644 test/testcases/tests/level2/core/importNode07.xml create mode 100644 test/testcases/tests/level2/core/importNode08.xml create mode 100644 test/testcases/tests/level2/core/importNode09.xml create mode 100644 test/testcases/tests/level2/core/importNode10.xml create mode 100644 test/testcases/tests/level2/core/importNode11.xml create mode 100644 test/testcases/tests/level2/core/importNode12.xml create mode 100644 test/testcases/tests/level2/core/importNode13.xml create mode 100644 test/testcases/tests/level2/core/importNode14.xml create mode 100644 test/testcases/tests/level2/core/importNode15.xml create mode 100644 test/testcases/tests/level2/core/importNode16.xml create mode 100644 test/testcases/tests/level2/core/importNode17.xml create mode 100644 test/testcases/tests/level2/core/internalSubset01.xml create mode 100644 test/testcases/tests/level2/core/isSupported01.xml create mode 100644 test/testcases/tests/level2/core/isSupported02.xml create mode 100644 test/testcases/tests/level2/core/isSupported04.xml create mode 100644 test/testcases/tests/level2/core/isSupported05.xml create mode 100644 test/testcases/tests/level2/core/isSupported06.xml create mode 100644 test/testcases/tests/level2/core/isSupported07.xml create mode 100644 test/testcases/tests/level2/core/isSupported09.xml create mode 100644 test/testcases/tests/level2/core/isSupported10.xml create mode 100644 test/testcases/tests/level2/core/isSupported11.xml create mode 100644 test/testcases/tests/level2/core/isSupported12.xml create mode 100644 test/testcases/tests/level2/core/isSupported13.xml create mode 100644 test/testcases/tests/level2/core/isSupported14.xml create mode 100644 test/testcases/tests/level2/core/localName01.xml create mode 100644 test/testcases/tests/level2/core/localName02.xml create mode 100644 test/testcases/tests/level2/core/localName03.xml create mode 100644 test/testcases/tests/level2/core/localName04.xml create mode 100644 test/testcases/tests/level2/core/metadata.xml create mode 100644 test/testcases/tests/level2/core/namednodemapgetnameditemns01.xml create mode 100644 test/testcases/tests/level2/core/namednodemapgetnameditemns02.xml create mode 100644 test/testcases/tests/level2/core/namednodemapgetnameditemns03.xml create mode 100644 test/testcases/tests/level2/core/namednodemapgetnameditemns04.xml create mode 100644 test/testcases/tests/level2/core/namednodemapgetnameditemns05.xml create mode 100644 test/testcases/tests/level2/core/namednodemapgetnameditemns06.xml create mode 100644 test/testcases/tests/level2/core/namednodemapremovenameditemns01.xml create mode 100644 test/testcases/tests/level2/core/namednodemapremovenameditemns02.xml create mode 100644 test/testcases/tests/level2/core/namednodemapremovenameditemns03.xml create mode 100644 test/testcases/tests/level2/core/namednodemapremovenameditemns04.xml create mode 100644 test/testcases/tests/level2/core/namednodemapremovenameditemns05.xml create mode 100644 test/testcases/tests/level2/core/namednodemapremovenameditemns06.xml create mode 100644 test/testcases/tests/level2/core/namednodemapremovenameditemns07.xml create mode 100644 test/testcases/tests/level2/core/namednodemapremovenameditemns08.xml create mode 100644 test/testcases/tests/level2/core/namednodemapremovenameditemns09.xml create mode 100644 test/testcases/tests/level2/core/namednodemapsetnameditemns01.xml create mode 100644 test/testcases/tests/level2/core/namednodemapsetnameditemns02.xml create mode 100644 test/testcases/tests/level2/core/namednodemapsetnameditemns03.xml create mode 100644 test/testcases/tests/level2/core/namednodemapsetnameditemns04.xml create mode 100644 test/testcases/tests/level2/core/namednodemapsetnameditemns05.xml create mode 100644 test/testcases/tests/level2/core/namednodemapsetnameditemns06.xml create mode 100644 test/testcases/tests/level2/core/namednodemapsetnameditemns07.xml create mode 100644 test/testcases/tests/level2/core/namednodemapsetnameditemns08.xml create mode 100644 test/testcases/tests/level2/core/namednodemapsetnameditemns09.xml create mode 100644 test/testcases/tests/level2/core/namednodemapsetnameditemns10.xml create mode 100644 test/testcases/tests/level2/core/namednodemapsetnameditemns11.xml create mode 100644 test/testcases/tests/level2/core/namespaceURI01.xml create mode 100644 test/testcases/tests/level2/core/namespaceURI02.xml create mode 100644 test/testcases/tests/level2/core/namespaceURI03.xml create mode 100644 test/testcases/tests/level2/core/namespaceURI04.xml create mode 100644 test/testcases/tests/level2/core/nodegetlocalname03.xml create mode 100644 test/testcases/tests/level2/core/nodegetnamespaceuri03.xml create mode 100644 test/testcases/tests/level2/core/nodegetownerdocument01.xml create mode 100644 test/testcases/tests/level2/core/nodegetownerdocument02.xml create mode 100644 test/testcases/tests/level2/core/nodegetprefix03.xml create mode 100644 test/testcases/tests/level2/core/nodehasattributes01.xml create mode 100644 test/testcases/tests/level2/core/nodehasattributes02.xml create mode 100644 test/testcases/tests/level2/core/nodehasattributes03.xml create mode 100644 test/testcases/tests/level2/core/nodehasattributes04.xml create mode 100644 test/testcases/tests/level2/core/nodeissupported01.xml create mode 100644 test/testcases/tests/level2/core/nodeissupported02.xml create mode 100644 test/testcases/tests/level2/core/nodeissupported03.xml create mode 100644 test/testcases/tests/level2/core/nodeissupported04.xml create mode 100644 test/testcases/tests/level2/core/nodeissupported05.xml create mode 100644 test/testcases/tests/level2/core/nodenormalize01.xml create mode 100644 test/testcases/tests/level2/core/nodesetprefix01.xml create mode 100644 test/testcases/tests/level2/core/nodesetprefix02.xml create mode 100644 test/testcases/tests/level2/core/nodesetprefix03.xml create mode 100644 test/testcases/tests/level2/core/nodesetprefix04.xml create mode 100644 test/testcases/tests/level2/core/nodesetprefix05.xml create mode 100644 test/testcases/tests/level2/core/nodesetprefix06.xml create mode 100644 test/testcases/tests/level2/core/nodesetprefix07.xml create mode 100644 test/testcases/tests/level2/core/nodesetprefix08.xml create mode 100644 test/testcases/tests/level2/core/nodesetprefix09.xml create mode 100644 test/testcases/tests/level2/core/normalize01.xml create mode 100644 test/testcases/tests/level2/core/ownerDocument01.xml create mode 100644 test/testcases/tests/level2/core/ownerElement01.xml create mode 100644 test/testcases/tests/level2/core/ownerElement02.xml create mode 100644 test/testcases/tests/level2/core/prefix01.xml create mode 100644 test/testcases/tests/level2/core/prefix02.xml create mode 100644 test/testcases/tests/level2/core/prefix03.xml create mode 100644 test/testcases/tests/level2/core/prefix04.xml create mode 100644 test/testcases/tests/level2/core/prefix05.xml create mode 100644 test/testcases/tests/level2/core/prefix06.xml create mode 100644 test/testcases/tests/level2/core/prefix07.xml create mode 100644 test/testcases/tests/level2/core/prefix08.xml create mode 100644 test/testcases/tests/level2/core/prefix09.xml create mode 100644 test/testcases/tests/level2/core/prefix10.xml create mode 100644 test/testcases/tests/level2/core/prefix11.xml create mode 100644 test/testcases/tests/level2/core/publicId01.xml create mode 100644 test/testcases/tests/level2/core/removeAttributeNS01.xml create mode 100644 test/testcases/tests/level2/core/removeAttributeNS02.xml create mode 100644 test/testcases/tests/level2/core/removeNamedItemNS01.xml create mode 100644 test/testcases/tests/level2/core/removeNamedItemNS02.xml create mode 100644 test/testcases/tests/level2/core/removeNamedItemNS03.xml create mode 100644 test/testcases/tests/level2/core/setAttributeNS01.xml create mode 100644 test/testcases/tests/level2/core/setAttributeNS02.xml create mode 100644 test/testcases/tests/level2/core/setAttributeNS03.xml create mode 100644 test/testcases/tests/level2/core/setAttributeNS04.xml create mode 100644 test/testcases/tests/level2/core/setAttributeNS05.xml create mode 100644 test/testcases/tests/level2/core/setAttributeNS06.xml create mode 100644 test/testcases/tests/level2/core/setAttributeNS07.xml create mode 100644 test/testcases/tests/level2/core/setAttributeNS09.xml create mode 100644 test/testcases/tests/level2/core/setAttributeNS10.xml create mode 100644 test/testcases/tests/level2/core/setAttributeNodeNS01.xml create mode 100644 test/testcases/tests/level2/core/setAttributeNodeNS02.xml create mode 100644 test/testcases/tests/level2/core/setAttributeNodeNS03.xml create mode 100644 test/testcases/tests/level2/core/setAttributeNodeNS04.xml create mode 100644 test/testcases/tests/level2/core/setAttributeNodeNS05.xml create mode 100644 test/testcases/tests/level2/core/setNamedItemNS01.xml create mode 100644 test/testcases/tests/level2/core/setNamedItemNS02.xml create mode 100644 test/testcases/tests/level2/core/setNamedItemNS03.xml create mode 100644 test/testcases/tests/level2/core/setNamedItemNS04.xml create mode 100644 test/testcases/tests/level2/core/setNamedItemNS05.xml create mode 100644 test/testcases/tests/level2/core/systemId01.xml create mode 100644 test/testcases/tests/level2/events/.cvsignore create mode 100644 test/testcases/tests/level2/events/CVS/Entries create mode 100644 test/testcases/tests/level2/events/CVS/Repository create mode 100644 test/testcases/tests/level2/events/CVS/Root create mode 100644 test/testcases/tests/level2/events/CVS/Template create mode 100644 test/testcases/tests/level2/events/DocumentEventCast01.xml create mode 100644 test/testcases/tests/level2/events/EventTargetCast01.xml create mode 100644 test/testcases/tests/level2/events/alltests.xml create mode 100644 test/testcases/tests/level2/events/createEvent01.xml create mode 100644 test/testcases/tests/level2/events/createEvent02.xml create mode 100644 test/testcases/tests/level2/events/createEvent03.xml create mode 100644 test/testcases/tests/level2/events/createEvent04.xml create mode 100644 test/testcases/tests/level2/events/createEvent05.xml create mode 100644 test/testcases/tests/level2/events/dispatchEvent01.xml create mode 100644 test/testcases/tests/level2/events/dispatchEvent02.xml create mode 100644 test/testcases/tests/level2/events/dispatchEvent03.xml create mode 100644 test/testcases/tests/level2/events/dispatchEvent04.xml create mode 100644 test/testcases/tests/level2/events/dispatchEvent05.xml create mode 100644 test/testcases/tests/level2/events/dispatchEvent06.xml create mode 100644 test/testcases/tests/level2/events/dispatchEvent07.xml create mode 100644 test/testcases/tests/level2/events/dispatchEvent08.xml create mode 100644 test/testcases/tests/level2/events/dispatchEvent09.xml create mode 100644 test/testcases/tests/level2/events/dispatchEvent10.xml create mode 100644 test/testcases/tests/level2/events/dispatchEvent11.xml create mode 100644 test/testcases/tests/level2/events/dispatchEvent12.xml create mode 100644 test/testcases/tests/level2/events/dispatchEvent13.xml create mode 100644 test/testcases/tests/level2/events/files/.cvsignore create mode 100644 test/testcases/tests/level2/events/files/CVS/Entries create mode 100644 test/testcases/tests/level2/events/files/CVS/Repository create mode 100644 test/testcases/tests/level2/events/files/CVS/Root create mode 100644 test/testcases/tests/level2/events/files/CVS/Template create mode 100644 test/testcases/tests/level2/events/files/hc_staff.html create mode 100644 test/testcases/tests/level2/events/files/hc_staff.svg create mode 100644 test/testcases/tests/level2/events/files/hc_staff.xhtml create mode 100644 test/testcases/tests/level2/events/files/hc_staff.xml create mode 100644 test/testcases/tests/level2/events/files/staff.dtd create mode 100644 test/testcases/tests/level2/events/files/svgtest.js create mode 100644 test/testcases/tests/level2/events/files/svgunit.js create mode 100644 test/testcases/tests/level2/events/files/xhtml1-strict.dtd create mode 100644 test/testcases/tests/level2/events/initEvent01.xml create mode 100644 test/testcases/tests/level2/events/initEvent02.xml create mode 100644 test/testcases/tests/level2/events/initEvent03.xml create mode 100644 test/testcases/tests/level2/events/initEvent04.xml create mode 100644 test/testcases/tests/level2/events/initEvent05.xml create mode 100644 test/testcases/tests/level2/events/initEvent06.xml create mode 100644 test/testcases/tests/level2/events/metadata.xml create mode 100644 test/testcases/tests/level2/html/.cvsignore create mode 100644 test/testcases/tests/level2/html/CVS/Entries create mode 100644 test/testcases/tests/level2/html/CVS/Repository create mode 100644 test/testcases/tests/level2/html/CVS/Root create mode 100644 test/testcases/tests/level2/html/CVS/Template create mode 100644 test/testcases/tests/level2/html/HTMLAppletElement07.xml create mode 100644 test/testcases/tests/level2/html/HTMLAppletElement09.xml create mode 100644 test/testcases/tests/level2/html/HTMLBaseFontElement03.xml create mode 100644 test/testcases/tests/level2/html/HTMLBodyElement07.xml create mode 100644 test/testcases/tests/level2/html/HTMLBodyElement08.xml create mode 100644 test/testcases/tests/level2/html/HTMLBodyElement09.xml create mode 100644 test/testcases/tests/level2/html/HTMLBodyElement10.xml create mode 100644 test/testcases/tests/level2/html/HTMLBodyElement11.xml create mode 100644 test/testcases/tests/level2/html/HTMLBodyElement12.xml create mode 100644 test/testcases/tests/level2/html/HTMLDocument22.xml create mode 100644 test/testcases/tests/level2/html/HTMLDocument23.xml create mode 100644 test/testcases/tests/level2/html/HTMLDocument24.xml create mode 100644 test/testcases/tests/level2/html/HTMLDocument25.xml create mode 100644 test/testcases/tests/level2/html/HTMLDocument26.xml create mode 100644 test/testcases/tests/level2/html/HTMLDocument27.xml create mode 100644 test/testcases/tests/level2/html/HTMLFrameElement09.xml create mode 100644 test/testcases/tests/level2/html/HTMLIFrameElement11.xml create mode 100644 test/testcases/tests/level2/html/HTMLImageElement05.xml create mode 100644 test/testcases/tests/level2/html/HTMLImageElement06.xml create mode 100644 test/testcases/tests/level2/html/HTMLImageElement11.xml create mode 100644 test/testcases/tests/level2/html/HTMLImageElement12.xml create mode 100644 test/testcases/tests/level2/html/HTMLInputElement13.xml create mode 100644 test/testcases/tests/level2/html/HTMLObjectElement11.xml create mode 100644 test/testcases/tests/level2/html/HTMLObjectElement16.xml create mode 100644 test/testcases/tests/level2/html/HTMLObjectElement20.xml create mode 100644 test/testcases/tests/level2/html/HTMLOptionsCollection01.xml create mode 100644 test/testcases/tests/level2/html/HTMLOptionsCollection02.xml create mode 100644 test/testcases/tests/level2/html/HTMLOptionsCollection03.xml create mode 100644 test/testcases/tests/level2/html/HTMLOptionsCollection04.xml create mode 100644 test/testcases/tests/level2/html/HTMLOptionsCollection05.xml create mode 100644 test/testcases/tests/level2/html/HTMLOptionsCollection06.xml create mode 100644 test/testcases/tests/level2/html/HTMLOptionsCollection07.xml create mode 100644 test/testcases/tests/level2/html/HTMLSelectElement20.xml create mode 100644 test/testcases/tests/level2/html/HTMLTableElement34.xml create mode 100644 test/testcases/tests/level2/html/HTMLTableElement35.xml create mode 100644 test/testcases/tests/level2/html/HTMLTableElement36.xml create mode 100644 test/testcases/tests/level2/html/HTMLTableElement37.xml create mode 100644 test/testcases/tests/level2/html/HTMLTableElement38.xml create mode 100644 test/testcases/tests/level2/html/HTMLTableElement39.xml create mode 100644 test/testcases/tests/level2/html/HTMLTableElement40.xml create mode 100644 test/testcases/tests/level2/html/HTMLTableRowElement15.xml create mode 100644 test/testcases/tests/level2/html/HTMLTableRowElement16.xml create mode 100644 test/testcases/tests/level2/html/HTMLTableRowElement17.xml create mode 100644 test/testcases/tests/level2/html/HTMLTableRowElement18.xml create mode 100644 test/testcases/tests/level2/html/HTMLTableRowElement19.xml create mode 100644 test/testcases/tests/level2/html/HTMLTableRowElement20.xml create mode 100644 test/testcases/tests/level2/html/HTMLTableRowElement21.xml create mode 100644 test/testcases/tests/level2/html/HTMLTableSectionElement25.xml create mode 100644 test/testcases/tests/level2/html/HTMLTableSectionElement26.xml create mode 100644 test/testcases/tests/level2/html/HTMLTableSectionElement27.xml create mode 100644 test/testcases/tests/level2/html/HTMLTableSectionElement28.xml create mode 100644 test/testcases/tests/level2/html/HTMLTableSectionElement29.xml create mode 100644 test/testcases/tests/level2/html/HTMLTableSectionElement30.xml create mode 100644 test/testcases/tests/level2/html/HTMLTableSectionElement31.xml create mode 100644 test/testcases/tests/level2/html/alltests.xml create mode 100644 test/testcases/tests/level2/html/files/.cvsignore create mode 100644 test/testcases/tests/level2/html/files/CVS/Entries create mode 100644 test/testcases/tests/level2/html/files/CVS/Repository create mode 100644 test/testcases/tests/level2/html/files/CVS/Root create mode 100644 test/testcases/tests/level2/html/files/CVS/Template create mode 100644 test/testcases/tests/level2/html/files/frame2.html create mode 100644 test/testcases/tests/level2/html/files/frame2.xhtml create mode 100644 test/testcases/tests/level2/html/files/frame2.xml create mode 100644 test/testcases/tests/level2/html/files/iframe2.html create mode 100644 test/testcases/tests/level2/html/files/iframe2.xhtml create mode 100644 test/testcases/tests/level2/html/files/iframe2.xml create mode 100644 test/testcases/tests/level2/html/files/optionscollection.html create mode 100644 test/testcases/tests/level2/html/files/optionscollection.xhtml create mode 100644 test/testcases/tests/level2/html/files/optionscollection.xml create mode 100644 test/testcases/tests/level2/html/hasFeature02.xml create mode 100644 test/testcases/tests/level2/html/hasFeature03.xml create mode 100644 test/testcases/tests/level2/html/hasFeature04.xml create mode 100644 test/testcases/tests/level2/html/hasFeature05.xml create mode 100644 test/testcases/tests/level2/html/hasFeature06.xml create mode 100644 test/testcases/tests/level2/html/metadata.xml create mode 100644 test/testcases/tests/level2/html/object08.xml create mode 100644 test/testcases/tests/level2/html/object13.xml (limited to 'test/testcases/tests/level2') diff --git a/test/testcases/tests/level2/CVS/Entries b/test/testcases/tests/level2/CVS/Entries new file mode 100644 index 0000000..cb66ad2 --- /dev/null +++ b/test/testcases/tests/level2/CVS/Entries @@ -0,0 +1,3 @@ +D/core//// +D/events//// +D/html//// diff --git a/test/testcases/tests/level2/CVS/Repository b/test/testcases/tests/level2/CVS/Repository new file mode 100644 index 0000000..cd1c79d --- /dev/null +++ b/test/testcases/tests/level2/CVS/Repository @@ -0,0 +1 @@ +2001/DOM-Test-Suite/tests/level2 diff --git a/test/testcases/tests/level2/CVS/Root b/test/testcases/tests/level2/CVS/Root new file mode 100644 index 0000000..3c7177e --- /dev/null +++ b/test/testcases/tests/level2/CVS/Root @@ -0,0 +1 @@ +:pserver:anonymous@dev.w3.org:/sources/public diff --git a/test/testcases/tests/level2/CVS/Template b/test/testcases/tests/level2/CVS/Template new file mode 100644 index 0000000..e69de29 diff --git a/test/testcases/tests/level2/core/.cvsignore b/test/testcases/tests/level2/core/.cvsignore new file mode 100644 index 0000000..cc87140 --- /dev/null +++ b/test/testcases/tests/level2/core/.cvsignore @@ -0,0 +1,2 @@ +dom2.dtd +dom2.xsd diff --git a/test/testcases/tests/level2/core/CVS/Entries b/test/testcases/tests/level2/core/CVS/Entries new file mode 100644 index 0000000..fddde67 --- /dev/null +++ b/test/testcases/tests/level2/core/CVS/Entries @@ -0,0 +1,287 @@ +D/files//// +/.cvsignore/1.2/Fri Apr 3 02:47:56 2009// +/alltests.xml/1.13/Fri Apr 3 02:47:56 2009// +/attrgetownerelement01.xml/1.4/Fri Apr 3 02:47:56 2009// +/attrgetownerelement02.xml/1.2/Fri Apr 3 02:47:56 2009// +/attrgetownerelement03.xml/1.1/Fri Apr 3 02:47:56 2009// +/attrgetownerelement04.xml/1.3/Fri Apr 3 02:47:56 2009// +/attrgetownerelement05.xml/1.4/Fri Apr 3 02:47:56 2009// +/createAttributeNS01.xml/1.4/Fri Apr 3 02:47:56 2009// +/createAttributeNS02.xml/1.4/Fri Apr 3 02:47:56 2009// +/createAttributeNS03.xml/1.5/Fri Apr 3 02:47:56 2009// +/createAttributeNS04.xml/1.4/Fri Apr 3 02:47:56 2009// +/createAttributeNS05.xml/1.4/Fri Apr 3 02:47:56 2009// +/createAttributeNS06.xml/1.1/Fri Apr 3 02:47:56 2009// +/createDocument01.xml/1.4/Fri Apr 3 02:47:56 2009// +/createDocument02.xml/1.4/Fri Apr 3 02:47:56 2009// +/createDocument03.xml/1.4/Fri Apr 3 02:47:56 2009// +/createDocument04.xml/1.4/Fri Apr 3 02:47:56 2009// +/createDocument05.xml/1.4/Fri Apr 3 02:47:56 2009// +/createDocument06.xml/1.4/Fri Apr 3 02:47:56 2009// +/createDocument07.xml/1.4/Fri Apr 3 02:47:56 2009// +/createDocument08.xml/1.1/Fri Apr 3 02:47:56 2009// +/createDocumentType01.xml/1.4/Fri Apr 3 02:47:56 2009// +/createDocumentType02.xml/1.5/Fri Apr 3 02:47:56 2009// +/createDocumentType03.xml/1.4/Fri Apr 3 02:47:56 2009// +/createDocumentType04.xml/1.1/Fri Apr 3 02:47:56 2009// +/createElementNS01.xml/1.4/Fri Apr 3 02:47:56 2009// +/createElementNS02.xml/1.4/Fri Apr 3 02:47:56 2009// +/createElementNS03.xml/1.5/Fri Apr 3 02:47:56 2009// +/createElementNS04.xml/1.4/Fri Apr 3 02:47:56 2009// +/createElementNS05.xml/1.4/Fri Apr 3 02:47:56 2009// +/createElementNS06.xml/1.1/Fri Apr 3 02:47:56 2009// +/documentcreateattributeNS01.xml/1.2/Fri Apr 3 02:47:56 2009// +/documentcreateattributeNS02.xml/1.2/Fri Apr 3 02:47:56 2009// +/documentcreateattributeNS03.xml/1.1/Fri Apr 3 02:47:56 2009// +/documentcreateattributeNS04.xml/1.1/Fri Apr 3 02:47:56 2009// +/documentcreateattributeNS05.xml/1.2/Fri Apr 3 02:47:56 2009// +/documentcreateattributeNS06.xml/1.2/Fri Apr 3 02:47:56 2009// +/documentcreateattributeNS07.xml/1.1/Fri Apr 3 02:47:56 2009// +/documentcreateelementNS01.xml/1.1/Fri Apr 3 02:47:56 2009// +/documentcreateelementNS02.xml/1.1/Fri Apr 3 02:47:56 2009// +/documentcreateelementNS05.xml/1.1/Fri Apr 3 02:47:56 2009// +/documentcreateelementNS06.xml/1.2/Fri Apr 3 02:47:56 2009// +/documentgetelementbyid01.xml/1.1/Fri Apr 3 02:47:56 2009// +/documentgetelementsbytagnameNS01.xml/1.3/Fri Apr 3 02:47:56 2009// +/documentgetelementsbytagnameNS02.xml/1.3/Fri Apr 3 02:47:56 2009// +/documentgetelementsbytagnameNS03.xml/1.2/Fri Apr 3 02:47:56 2009// +/documentgetelementsbytagnameNS04.xml/1.3/Fri Apr 3 02:47:56 2009// +/documentgetelementsbytagnameNS05.xml/1.2/Fri Apr 3 02:47:56 2009// +/documentimportnode01.xml/1.3/Fri Apr 3 02:47:56 2009// +/documentimportnode02.xml/1.4/Fri Apr 3 02:47:56 2009// +/documentimportnode03.xml/1.4/Fri Apr 3 02:47:56 2009// +/documentimportnode04.xml/1.4/Fri Apr 3 02:47:56 2009// +/documentimportnode05.xml/1.3/Fri Apr 3 02:47:56 2009// +/documentimportnode06.xml/1.3/Fri Apr 3 02:47:56 2009// +/documentimportnode07.xml/1.3/Fri Apr 3 02:47:56 2009// +/documentimportnode08.xml/1.4/Fri Apr 3 02:47:56 2009// +/documentimportnode09.xml/1.3/Fri Apr 3 02:47:56 2009// +/documentimportnode10.xml/1.3/Fri Apr 3 02:47:56 2009// +/documentimportnode11.xml/1.3/Fri Apr 3 02:47:56 2009// +/documentimportnode12.xml/1.3/Fri Apr 3 02:47:56 2009// +/documentimportnode13.xml/1.3/Fri Apr 3 02:47:56 2009// +/documentimportnode14.xml/1.5/Fri Apr 3 02:47:56 2009// +/documentimportnode15.xml/1.3/Fri Apr 3 02:47:56 2009// +/documentimportnode17.xml/1.3/Fri Apr 3 02:47:56 2009// +/documentimportnode18.xml/1.4/Fri Apr 3 02:47:56 2009// +/documentimportnode19.xml/1.4/Fri Apr 3 02:47:56 2009// +/documentimportnode20.xml/1.3/Fri Apr 3 02:47:56 2009// +/documentimportnode21.xml/1.3/Fri Apr 3 02:47:56 2009// +/documentimportnode22.xml/1.4/Fri Apr 3 02:47:56 2009// +/documenttypeinternalSubset01.xml/1.3/Fri Apr 3 02:47:56 2009// +/documenttypepublicid01.xml/1.3/Fri Apr 3 02:47:56 2009// +/documenttypesystemid01.xml/1.2/Fri Apr 3 02:47:56 2009// +/domimplementationcreatedocument03.xml/1.1/Fri Apr 3 02:47:56 2009// +/domimplementationcreatedocument04.xml/1.1/Fri Apr 3 02:47:56 2009// +/domimplementationcreatedocument05.xml/1.1/Fri Apr 3 02:47:56 2009// +/domimplementationcreatedocument07.xml/1.1/Fri Apr 3 02:47:56 2009// +/domimplementationcreatedocumenttype01.xml/1.1/Fri Apr 3 02:47:56 2009// +/domimplementationcreatedocumenttype02.xml/1.1/Fri Apr 3 02:47:56 2009// +/domimplementationcreatedocumenttype04.xml/1.1/Fri Apr 3 02:47:56 2009// +/domimplementationfeaturecore.xml/1.7/Fri Apr 3 02:47:56 2009// +/domimplementationfeaturexmlversion2.xml/1.7/Fri Apr 3 02:47:56 2009// +/domimplementationhasfeature01.xml/1.3/Fri Apr 3 02:47:56 2009// +/domimplementationhasfeature02.xml/1.3/Fri Apr 3 02:47:56 2009// +/elementgetattributenodens01.xml/1.2/Fri Apr 3 02:47:56 2009// +/elementgetattributenodens02.xml/1.2/Fri Apr 3 02:47:56 2009// +/elementgetattributenodens03.xml/1.4/Fri Apr 3 02:47:56 2009// +/elementgetattributens02.xml/1.4/Fri Apr 3 02:47:56 2009// +/elementgetelementsbytagnamens02.xml/1.1/Fri Apr 3 02:47:56 2009// +/elementgetelementsbytagnamens04.xml/1.3/Fri Apr 3 02:47:56 2009// +/elementgetelementsbytagnamens05.xml/1.1/Fri Apr 3 02:47:56 2009// +/elementhasattribute01.xml/1.1/Fri Apr 3 02:47:56 2009// +/elementhasattribute02.xml/1.3/Fri Apr 3 02:47:56 2009// +/elementhasattribute03.xml/1.3/Fri Apr 3 02:47:56 2009// +/elementhasattribute04.xml/1.2/Fri Apr 3 02:47:56 2009// +/elementhasattributens01.xml/1.2/Fri Apr 3 02:47:56 2009// +/elementhasattributens02.xml/1.3/Fri Apr 3 02:47:56 2009// +/elementhasattributens03.xml/1.4/Fri Apr 3 02:47:56 2009// +/elementremoveattributens01.xml/1.2/Fri Apr 3 02:47:56 2009// +/elementsetattributenodens01.xml/1.3/Fri Apr 3 02:47:56 2009// +/elementsetattributenodens02.xml/1.4/Fri Apr 3 02:47:56 2009// +/elementsetattributenodens03.xml/1.4/Fri Apr 3 02:47:56 2009// +/elementsetattributenodens04.xml/1.3/Fri Apr 3 02:47:56 2009// +/elementsetattributenodens05.xml/1.4/Fri Apr 3 02:47:56 2009// +/elementsetattributenodens06.xml/1.3/Fri Apr 3 02:47:56 2009// +/elementsetattributens01.xml/1.3/Fri Apr 3 02:47:56 2009// +/elementsetattributens02.xml/1.3/Fri Apr 3 02:47:56 2009// +/elementsetattributens03.xml/1.5/Fri Apr 3 02:47:56 2009// +/elementsetattributens04.xml/1.3/Fri Apr 3 02:47:56 2009// +/elementsetattributens05.xml/1.4/Fri Apr 3 02:47:56 2009// +/elementsetattributens08.xml/1.3/Fri Apr 3 02:47:56 2009// +/elementsetattributensurinull.xml/1.9/Fri Apr 3 02:47:56 2009// +/getAttributeNS01.xml/1.6/Fri Apr 3 02:47:56 2009// +/getAttributeNS02.xml/1.5/Fri Apr 3 02:47:56 2009// +/getAttributeNS03.xml/1.6/Fri Apr 3 02:47:56 2009// +/getAttributeNS04.xml/1.5/Fri Apr 3 02:47:56 2009// +/getAttributeNS05.xml/1.6/Fri Apr 3 02:47:56 2009// +/getAttributeNodeNS01.xml/1.5/Fri Apr 3 02:47:56 2009// +/getAttributeNodeNS02.xml/1.6/Fri Apr 3 02:47:56 2009// +/getElementById01.xml/1.5/Fri Apr 3 02:47:56 2009// +/getElementById02.xml/1.4/Fri Apr 3 02:47:56 2009// +/getElementsByTagNameNS01.xml/1.5/Fri Apr 3 02:47:56 2009// +/getElementsByTagNameNS02.xml/1.7/Fri Apr 3 02:47:56 2009// +/getElementsByTagNameNS03.xml/1.7/Fri Apr 3 02:47:56 2009// +/getElementsByTagNameNS04.xml/1.7/Fri Apr 3 02:47:56 2009// +/getElementsByTagNameNS05.xml/1.4/Fri Apr 3 02:47:56 2009// +/getElementsByTagNameNS06.xml/1.5/Fri Apr 3 02:47:56 2009// +/getElementsByTagNameNS07.xml/1.5/Fri Apr 3 02:47:56 2009// +/getElementsByTagNameNS08.xml/1.2/Fri Apr 3 02:47:56 2009// +/getElementsByTagNameNS09.xml/1.1/Fri Apr 3 02:47:56 2009// +/getElementsByTagNameNS10.xml/1.2/Fri Apr 3 02:47:56 2009// +/getElementsByTagNameNS11.xml/1.2/Fri Apr 3 02:47:56 2009// +/getElementsByTagNameNS12.xml/1.1/Fri Apr 3 02:47:56 2009// +/getElementsByTagNameNS13.xml/1.1/Fri Apr 3 02:47:56 2009// +/getElementsByTagNameNS14.xml/1.3/Fri Apr 3 02:47:56 2009// +/getNamedItemNS01.xml/1.5/Fri Apr 3 02:47:56 2009// +/getNamedItemNS02.xml/1.4/Fri Apr 3 02:47:56 2009// +/getNamedItemNS03.xml/1.3/Fri Apr 3 02:47:56 2009// +/getNamedItemNS04.xml/1.2/Fri Apr 3 02:47:56 2009// +/hasAttribute01.xml/1.5/Fri Apr 3 02:47:56 2009// +/hasAttribute02.xml/1.6/Fri Apr 3 02:47:56 2009// +/hasAttribute03.xml/1.5/Fri Apr 3 02:47:56 2009// +/hasAttribute04.xml/1.6/Fri Apr 3 02:47:56 2009// +/hasAttributeNS01.xml/1.4/Fri Apr 3 02:47:56 2009// +/hasAttributeNS02.xml/1.4/Fri Apr 3 02:47:56 2009// +/hasAttributeNS03.xml/1.5/Fri Apr 3 02:47:56 2009// +/hasAttributeNS04.xml/1.6/Fri Apr 3 02:47:56 2009// +/hasAttributeNS05.xml/1.5/Fri Apr 3 02:47:56 2009// +/hasAttributes01.xml/1.5/Fri Apr 3 02:47:56 2009// +/hasAttributes02.xml/1.5/Fri Apr 3 02:47:56 2009// +/hc_entitiesremovenameditemns1.xml/1.2/Fri Apr 3 02:47:56 2009// +/hc_entitiessetnameditemns1.xml/1.2/Fri Apr 3 02:47:56 2009// +/hc_namednodemapinvalidtype1.xml/1.1/Fri Apr 3 02:47:56 2009// +/hc_nodedocumentfragmentnormalize1.xml/1.1/Fri Apr 3 02:47:56 2009// +/hc_nodedocumentfragmentnormalize2.xml/1.1/Fri Apr 3 02:47:56 2009// +/hc_notationsremovenameditemns1.xml/1.2/Fri Apr 3 02:47:56 2009// +/hc_notationssetnameditemns1.xml/1.2/Fri Apr 3 02:47:56 2009// +/importNode01.xml/1.8/Fri Apr 3 02:47:56 2009// +/importNode02.xml/1.9/Fri Apr 3 02:47:56 2009// +/importNode03.xml/1.9/Fri Apr 3 02:47:56 2009// +/importNode04.xml/1.8/Fri Apr 3 02:47:56 2009// +/importNode05.xml/1.9/Fri Apr 3 02:47:56 2009// +/importNode06.xml/1.8/Fri Apr 3 02:47:56 2009// +/importNode07.xml/1.10/Fri Apr 3 02:47:56 2009// +/importNode08.xml/1.8/Fri Apr 3 02:47:56 2009// +/importNode09.xml/1.9/Fri Apr 3 02:47:56 2009// +/importNode10.xml/1.9/Fri Apr 3 02:47:56 2009// +/importNode11.xml/1.9/Fri Apr 3 02:47:56 2009// +/importNode12.xml/1.9/Fri Apr 3 02:47:56 2009// +/importNode13.xml/1.9/Fri Apr 3 02:47:56 2009// +/importNode14.xml/1.9/Fri Apr 3 02:47:56 2009// +/importNode15.xml/1.9/Fri Apr 3 02:47:56 2009// +/importNode16.xml/1.5/Fri Apr 3 02:47:56 2009// +/importNode17.xml/1.5/Fri Apr 3 02:47:56 2009// +/internalSubset01.xml/1.6/Fri Apr 3 02:47:56 2009// +/isSupported01.xml/1.5/Fri Apr 3 02:47:56 2009// +/isSupported02.xml/1.5/Fri Apr 3 02:47:56 2009// +/isSupported04.xml/1.5/Fri Apr 3 02:47:56 2009// +/isSupported05.xml/1.5/Fri Apr 3 02:47:56 2009// +/isSupported06.xml/1.5/Fri Apr 3 02:47:56 2009// +/isSupported07.xml/1.5/Fri Apr 3 02:47:56 2009// +/isSupported09.xml/1.5/Fri Apr 3 02:47:56 2009// +/isSupported10.xml/1.5/Fri Apr 3 02:47:56 2009// +/isSupported11.xml/1.5/Fri Apr 3 02:47:56 2009// +/isSupported12.xml/1.9/Fri Apr 3 02:47:56 2009// +/isSupported13.xml/1.5/Fri Apr 3 02:47:56 2009// +/isSupported14.xml/1.5/Fri Apr 3 02:47:56 2009// +/localName01.xml/1.6/Fri Apr 3 02:47:56 2009// +/localName02.xml/1.5/Fri Apr 3 02:47:56 2009// +/localName03.xml/1.5/Fri Apr 3 02:47:56 2009// +/localName04.xml/1.5/Fri Apr 3 02:47:56 2009// +/metadata.xml/1.3/Fri Apr 3 02:47:56 2009// +/namednodemapgetnameditemns01.xml/1.5/Fri Apr 3 02:47:56 2009// +/namednodemapgetnameditemns02.xml/1.2/Fri Apr 3 02:47:56 2009// +/namednodemapgetnameditemns03.xml/1.2/Fri Apr 3 02:47:56 2009// +/namednodemapgetnameditemns04.xml/1.3/Fri Apr 3 02:47:56 2009// +/namednodemapgetnameditemns05.xml/1.3/Fri Apr 3 02:47:56 2009// +/namednodemapgetnameditemns06.xml/1.3/Fri Apr 3 02:47:56 2009// +/namednodemapremovenameditemns01.xml/1.3/Fri Apr 3 02:47:56 2009// +/namednodemapremovenameditemns02.xml/1.5/Fri Apr 3 02:47:56 2009// +/namednodemapremovenameditemns03.xml/1.3/Fri Apr 3 02:47:56 2009// +/namednodemapremovenameditemns04.xml/1.3/Fri Apr 3 02:47:56 2009// +/namednodemapremovenameditemns05.xml/1.6/Fri Apr 3 02:47:56 2009// +/namednodemapremovenameditemns06.xml/1.4/Fri Apr 3 02:47:56 2009// +/namednodemapremovenameditemns07.xml/1.4/Fri Apr 3 02:47:56 2009// +/namednodemapremovenameditemns08.xml/1.4/Fri Apr 3 02:47:56 2009// +/namednodemapremovenameditemns09.xml/1.3/Fri Apr 3 02:47:56 2009// +/namednodemapsetnameditemns01.xml/1.3/Fri Apr 3 02:47:56 2009// +/namednodemapsetnameditemns02.xml/1.3/Fri Apr 3 02:47:56 2009// +/namednodemapsetnameditemns03.xml/1.7/Fri Apr 3 02:47:56 2009// +/namednodemapsetnameditemns04.xml/1.5/Fri Apr 3 02:47:56 2009// +/namednodemapsetnameditemns05.xml/1.6/Fri Apr 3 02:47:56 2009// +/namednodemapsetnameditemns06.xml/1.3/Fri Apr 3 02:47:56 2009// +/namednodemapsetnameditemns07.xml/1.3/Fri Apr 3 02:47:56 2009// +/namednodemapsetnameditemns08.xml/1.3/Fri Apr 3 02:47:56 2009// +/namednodemapsetnameditemns09.xml/1.4/Fri Apr 3 02:47:56 2009// +/namednodemapsetnameditemns10.xml/1.6/Fri Apr 3 02:47:56 2009// +/namednodemapsetnameditemns11.xml/1.3/Fri Apr 3 02:47:56 2009// +/namespaceURI01.xml/1.6/Fri Apr 3 02:47:56 2009// +/namespaceURI02.xml/1.6/Fri Apr 3 02:47:56 2009// +/namespaceURI03.xml/1.6/Fri Apr 3 02:47:56 2009// +/namespaceURI04.xml/1.5/Fri Apr 3 02:47:56 2009// +/nodegetlocalname03.xml/1.2/Fri Apr 3 02:47:56 2009// +/nodegetnamespaceuri03.xml/1.3/Fri Apr 3 02:47:56 2009// +/nodegetownerdocument01.xml/1.3/Fri Apr 3 02:47:56 2009// +/nodegetownerdocument02.xml/1.4/Fri Apr 3 02:47:56 2009// +/nodegetprefix03.xml/1.2/Fri Apr 3 02:47:56 2009// +/nodehasattributes01.xml/1.3/Fri Apr 3 02:47:56 2009// +/nodehasattributes02.xml/1.1/Fri Apr 3 02:47:56 2009// +/nodehasattributes03.xml/1.3/Fri Apr 3 02:47:56 2009// +/nodehasattributes04.xml/1.2/Fri Apr 3 02:47:56 2009// +/nodeissupported01.xml/1.3/Fri Apr 3 02:47:56 2009// +/nodeissupported02.xml/1.3/Fri Apr 3 02:47:56 2009// +/nodeissupported03.xml/1.1/Fri Apr 3 02:47:56 2009// +/nodeissupported04.xml/1.2/Fri Apr 3 02:47:56 2009// +/nodeissupported05.xml/1.1/Fri Apr 3 02:47:56 2009// +/nodenormalize01.xml/1.5/Fri Apr 3 02:47:56 2009// +/nodesetprefix01.xml/1.3/Fri Apr 3 02:47:56 2009// +/nodesetprefix02.xml/1.3/Fri Apr 3 02:47:56 2009// +/nodesetprefix03.xml/1.4/Fri Apr 3 02:47:56 2009// +/nodesetprefix04.xml/1.5/Fri Apr 3 02:47:56 2009// +/nodesetprefix05.xml/1.4/Fri Apr 3 02:47:56 2009// +/nodesetprefix06.xml/1.4/Fri Apr 3 02:47:56 2009// +/nodesetprefix07.xml/1.4/Fri Apr 3 02:47:56 2009// +/nodesetprefix08.xml/1.4/Fri Apr 3 02:47:56 2009// +/nodesetprefix09.xml/1.5/Fri Apr 3 02:47:56 2009// +/normalize01.xml/1.7/Fri Apr 3 02:47:56 2009// +/ownerDocument01.xml/1.5/Fri Apr 3 02:47:56 2009// +/ownerElement01.xml/1.5/Fri Apr 3 02:47:56 2009// +/ownerElement02.xml/1.5/Fri Apr 3 02:47:56 2009// +/prefix01.xml/1.4/Fri Apr 3 02:47:56 2009// +/prefix02.xml/1.6/Fri Apr 3 02:47:56 2009// +/prefix03.xml/1.6/Fri Apr 3 02:47:56 2009// +/prefix04.xml/1.4/Fri Apr 3 02:47:56 2009// +/prefix05.xml/1.5/Fri Apr 3 02:47:56 2009// +/prefix06.xml/1.8/Fri Apr 3 02:47:56 2009// +/prefix07.xml/1.4/Fri Apr 3 02:47:56 2009// +/prefix08.xml/1.7/Fri Apr 3 02:47:56 2009// +/prefix09.xml/1.5/Fri Apr 3 02:47:56 2009// +/prefix10.xml/1.4/Fri Apr 3 02:47:56 2009// +/prefix11.xml/1.5/Fri Apr 3 02:47:56 2009// +/publicId01.xml/1.4/Fri Apr 3 02:47:56 2009// +/removeAttributeNS01.xml/1.6/Fri Apr 3 02:47:56 2009// +/removeAttributeNS02.xml/1.7/Fri Apr 3 02:47:56 2009// +/removeNamedItemNS01.xml/1.5/Fri Apr 3 02:47:56 2009// +/removeNamedItemNS02.xml/1.4/Fri Apr 3 02:47:56 2009// +/removeNamedItemNS03.xml/1.7/Fri Apr 3 02:47:56 2009// +/setAttributeNS01.xml/1.4/Fri Apr 3 02:47:56 2009// +/setAttributeNS02.xml/1.4/Fri Apr 3 02:47:56 2009// +/setAttributeNS03.xml/1.6/Fri Apr 3 02:47:56 2009// +/setAttributeNS04.xml/1.6/Fri Apr 3 02:47:56 2009// +/setAttributeNS05.xml/1.5/Fri Apr 3 02:47:56 2009// +/setAttributeNS06.xml/1.4/Fri Apr 3 02:47:56 2009// +/setAttributeNS07.xml/1.4/Fri Apr 3 02:47:56 2009// +/setAttributeNS09.xml/1.7/Fri Apr 3 02:47:56 2009// +/setAttributeNS10.xml/1.1/Fri Apr 3 02:47:56 2009// +/setAttributeNodeNS01.xml/1.5/Fri Apr 3 02:47:56 2009// +/setAttributeNodeNS02.xml/1.5/Fri Apr 3 02:47:56 2009// +/setAttributeNodeNS03.xml/1.5/Fri Apr 3 02:47:56 2009// +/setAttributeNodeNS04.xml/1.6/Fri Apr 3 02:47:56 2009// +/setAttributeNodeNS05.xml/1.4/Fri Apr 3 02:47:56 2009// +/setNamedItemNS01.xml/1.5/Fri Apr 3 02:47:56 2009// +/setNamedItemNS02.xml/1.4/Fri Apr 3 02:47:56 2009// +/setNamedItemNS03.xml/1.4/Fri Apr 3 02:47:56 2009// +/setNamedItemNS04.xml/1.8/Fri Apr 3 02:47:56 2009// +/setNamedItemNS05.xml/1.5/Fri Apr 3 02:47:56 2009// +/systemId01.xml/1.6/Fri Apr 3 02:47:56 2009// diff --git a/test/testcases/tests/level2/core/CVS/Repository b/test/testcases/tests/level2/core/CVS/Repository new file mode 100644 index 0000000..daa629c --- /dev/null +++ b/test/testcases/tests/level2/core/CVS/Repository @@ -0,0 +1 @@ +2001/DOM-Test-Suite/tests/level2/core diff --git a/test/testcases/tests/level2/core/CVS/Root b/test/testcases/tests/level2/core/CVS/Root new file mode 100644 index 0000000..3c7177e --- /dev/null +++ b/test/testcases/tests/level2/core/CVS/Root @@ -0,0 +1 @@ +:pserver:anonymous@dev.w3.org:/sources/public diff --git a/test/testcases/tests/level2/core/CVS/Template b/test/testcases/tests/level2/core/CVS/Template new file mode 100644 index 0000000..e69de29 diff --git a/test/testcases/tests/level2/core/alltests.xml b/test/testcases/tests/level2/core/alltests.xml new file mode 100644 index 0000000..26040b0 --- /dev/null +++ b/test/testcases/tests/level2/core/alltests.xml @@ -0,0 +1,301 @@ + + + + + +DOM Level 2 Core Test Suite +DOM Test Suite Project + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/attrgetownerelement01.xml b/test/testcases/tests/level2/core/attrgetownerelement01.xml new file mode 100644 index 0000000..c589667 --- /dev/null +++ b/test/testcases/tests/level2/core/attrgetownerelement01.xml @@ -0,0 +1,52 @@ + + + + + + +attrgetownerelement01 +IBM + + The "getOwnerElement()" will return the Element node this attribute is attached to or + null if this attribute is not in use. + + Retreive the default attribute defaultAttr and check its owner element. Verify if the name + the nodeName of the returned ownerElement is emp:employee. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/attrgetownerelement02.xml b/test/testcases/tests/level2/core/attrgetownerelement02.xml new file mode 100644 index 0000000..90ba894 --- /dev/null +++ b/test/testcases/tests/level2/core/attrgetownerelement02.xml @@ -0,0 +1,47 @@ + + + + + + +attrgetownerelement02 +IBM + + The "getOwnerElement()" will return the Element node this attribute + is attached to or null if this attribute is not in use. + + Create a new element and attribute node, attach the attribute to the element. + Check the value of owner element of the new attribute node + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/attrgetownerelement03.xml b/test/testcases/tests/level2/core/attrgetownerelement03.xml new file mode 100644 index 0000000..586685f --- /dev/null +++ b/test/testcases/tests/level2/core/attrgetownerelement03.xml @@ -0,0 +1,40 @@ + + + + + + +attrgetownerelement03 +IBM + + The "getOwnerElement()" will return the Element node this attribute + is attached to or null if this attribute is not in use. + + Create a new attribute node for this document node. Since the newly attribute is + not it use its owner element should be null. + +Neil Delima +2002-04-28 + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/attrgetownerelement04.xml b/test/testcases/tests/level2/core/attrgetownerelement04.xml new file mode 100644 index 0000000..8b69969 --- /dev/null +++ b/test/testcases/tests/level2/core/attrgetownerelement04.xml @@ -0,0 +1,40 @@ + + + + + +attrgetownerelement04 +IBM + + The "getOwnerElement()" will return the Element node this attribute is attached to or + null if this attribute is not in use. + Import an attribute node to another document. If an Attr node is imported, its + ownerElement attribute should be set to null. Verify if the ownerElement has been set + to null. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/attrgetownerelement05.xml b/test/testcases/tests/level2/core/attrgetownerelement05.xml new file mode 100644 index 0000000..c9eed81 --- /dev/null +++ b/test/testcases/tests/level2/core/attrgetownerelement05.xml @@ -0,0 +1,55 @@ + + + + + + +attrgetownerelement05 +IBM + + The "getOwnerElement()" will return the Element node this attribute is attached to + or null if this attribute is not in use. + + Retreive an element and its attributes. Then remove the element and check the name of + the ownerElement of attribute of the attribute "street". + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test/testcases/tests/level2/core/createAttributeNS01.xml b/test/testcases/tests/level2/core/createAttributeNS01.xml new file mode 100644 index 0000000..d50de36 --- /dev/null +++ b/test/testcases/tests/level2/core/createAttributeNS01.xml @@ -0,0 +1,48 @@ + + + + + + +createAttributeNS01 +NIST + + The "createAttributeNS(namespaceURI,qualifiedName)" method for a + Document should raise NAMESPACE_ERR DOMException + if qualifiedName is malformed. + + Invoke method createAttributeNS(namespaceURI,qualifiedName) on + the XMLNS Document with namespaceURI being "http://www.ecommerce.org/", + qualifiedName as "prefix::local". Method should raise + NAMESPACE_ERR DOMException. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/createAttributeNS02.xml b/test/testcases/tests/level2/core/createAttributeNS02.xml new file mode 100644 index 0000000..3823f0d --- /dev/null +++ b/test/testcases/tests/level2/core/createAttributeNS02.xml @@ -0,0 +1,47 @@ + + + + + + +createAttributeNS02 +NIST + + The "createAttributeNS(namespaceURI,qualifiedName)" method for a + Document should raise NAMESPACE_ERR DOMException + if qualifiedName has a prefix and namespaceURI is null. + + Invoke method createAttributeNS(namespaceURI,qualifiedName) on this document + with namespaceURI being null and qualifiedName contains the prefix "person". + Method should raise NAMESPACE_ERR DOMException. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/createAttributeNS03.xml b/test/testcases/tests/level2/core/createAttributeNS03.xml new file mode 100644 index 0000000..df424df --- /dev/null +++ b/test/testcases/tests/level2/core/createAttributeNS03.xml @@ -0,0 +1,78 @@ + + + + + + +createAttributeNS03 +NIST + + The "createAttributeNS(namespaceURI,qualifiedName)" method for a + Document should raise INVALID_CHARACTER_ERR DOMException + if qualifiedName contains an illegal character. + + Invoke method createAttributeNS(namespaceURI,qualifiedName) on this document + with qualifiedName containing an illegal character from illegalChars[]. + Method should raise INVALID_CHARACTER_ERR DOMException for all + characters in illegalChars[]. + +Mary Brady +2001-08-17 + + + + + + + + +"person:{" +"person:}" +"person:~" +"person:'" +"person:!" +"person:@" +"person:#" +"person:$" +"person:%" +"person:^" +"person:&" +"person:*" +"person:(" +"person:)" +"person:+" +"person:=" +"person:[" +"person:]" +"person:\\" +"person:/" +"person:;" +"person:`" +"person:<" +"person:>" +"person:," +"person:a " +"person:\"" + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/createAttributeNS04.xml b/test/testcases/tests/level2/core/createAttributeNS04.xml new file mode 100644 index 0000000..d14a3ae --- /dev/null +++ b/test/testcases/tests/level2/core/createAttributeNS04.xml @@ -0,0 +1,50 @@ + + + + + + +createAttributeNS04 +NIST + + The "createAttributeNS(namespaceURI,qualifiedName)" method for a + Document should raise NAMESPACE_ERR DOMException + if qualifiedName has the "xml" prefix and namespaceURI is different + from "http://www.w3.org/XML/1998/namespace". + + Invoke method createAttributeNS(namespaceURI,qualifiedName) on this document + with qualifiedName being "xml:attr1 and namespaceURI equals + the string "http://www.w3.org/XML/1998/namespaces" (which differs from the required + string "http://www.w3.org/XML/1998/namespace"). + Method should raise NAMESPACE_ERR DOMException. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/createAttributeNS05.xml b/test/testcases/tests/level2/core/createAttributeNS05.xml new file mode 100644 index 0000000..9713364 --- /dev/null +++ b/test/testcases/tests/level2/core/createAttributeNS05.xml @@ -0,0 +1,44 @@ + + + + + + +createAttributeNS05 +NIST + + The "createAttributeNS(namespaceURI,qualifiedName)" method for a + Document should return a new Attr object given that all parameters are + valid and correctly formed. + + Invoke method createAttributeNS(namespaceURI,qualifiedName) on this document with + parameters equal "http://www.ecommerce.org/" and "ecom:local" + respectively. Method should return a new Attr object whose name is "ecom:local". + +Mary Brady +2001-08-17 + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/createAttributeNS06.xml b/test/testcases/tests/level2/core/createAttributeNS06.xml new file mode 100644 index 0000000..133136d --- /dev/null +++ b/test/testcases/tests/level2/core/createAttributeNS06.xml @@ -0,0 +1,40 @@ + + + + + + +createAttributeNS06 +Curt Arnold + +Document.createAttributeNS with an empty qualified name should cause an INVALID_CHARACTER_ERR. + +2004-03-09 + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/createDocument01.xml b/test/testcases/tests/level2/core/createDocument01.xml new file mode 100644 index 0000000..453a8a8 --- /dev/null +++ b/test/testcases/tests/level2/core/createDocument01.xml @@ -0,0 +1,53 @@ + + + + + + +createDocument01 +NIST + + The "createDocument(namespaceURI,qualifiedName,doctype)" method for a + DOMImplementation should raise NAMESPACE_ERR DOMException + if parameter qualifiedName is malformed. + + Retrieve the DOMImplementation on the XMLNS Document. + Invoke method createDocument(namespaceURI,qualifiedName,doctype) + on the retrieved DOMImplementation with namespaceURI being + the literal string "http://www.ecommerce.org/", qualifiedName as + "prefix::local", and doctype as null. Method should raise + NAMESPACE_ERR DOMException. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/createDocument02.xml b/test/testcases/tests/level2/core/createDocument02.xml new file mode 100644 index 0000000..983aaec --- /dev/null +++ b/test/testcases/tests/level2/core/createDocument02.xml @@ -0,0 +1,50 @@ + + + + + + +createDocument02 +NIST + + The "createDocument(namespaceURI,qualifiedName,doctype)" method for a + DOMImplementation should raise NAMESPACE_ERR DOMException + if qualifiedName has a prefix and namespaceURI is null. + + Invoke method createDocument(namespaceURI,qualifiedName,doctype) on + this domimplementation with namespaceURI being null and qualifiedName + equals "k:local". Method should raise NAMESPACE_ERR DOMException. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/createDocument03.xml b/test/testcases/tests/level2/core/createDocument03.xml new file mode 100644 index 0000000..d3a42b2 --- /dev/null +++ b/test/testcases/tests/level2/core/createDocument03.xml @@ -0,0 +1,51 @@ + + + + + + +createDocument03 +NIST + + The "createDocument(namespaceURI,qualifiedName,doctype)" method for a + DOMImplementation should raise WRONG_DOCUMENT_ERR DOMException + if parameter doctype has been used with a different document. + + Invoke method createDocument(namespaceURI,qualifiedName,doctype) on + this domimplementation where doctype is the type of this document. + Method should raise WRONG_DOCUMENT_ERR DOMException. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/createDocument04.xml b/test/testcases/tests/level2/core/createDocument04.xml new file mode 100644 index 0000000..c686b47 --- /dev/null +++ b/test/testcases/tests/level2/core/createDocument04.xml @@ -0,0 +1,53 @@ + + + + + + +createDocument04 +NIST + + The "createDocument(namespaceURI,qualifiedName,doctype)" method for a + DOMImplementation should raise WRONG_DOCUMENT_ERR DOMException + if parameter doctype was created from a different implementation. + + Invoke method createDocument(namespaceURI,qualifiedName,doctype) on + a domimplementation that is different from this domimplementation. + Doctype is the type of this document. + Method should raise WRONG_DOCUMENT_ERR DOMException. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/createDocument05.xml b/test/testcases/tests/level2/core/createDocument05.xml new file mode 100644 index 0000000..cbdae7b --- /dev/null +++ b/test/testcases/tests/level2/core/createDocument05.xml @@ -0,0 +1,82 @@ + + + + + + +createDocument05 +NIST + + The "createDocument(namespaceURI,qualifiedName,doctype)" method for a + DOMImplementation should raise INVALID_CHARACTER_ERR DOMException + if parameter qualifiedName contains an illegal character. + + Invoke method createDocument(namespaceURI,qualifiedName,doctype) on + this domimplementation with namespaceURI equals "http://www.ecommerce.org/schema", + doctype is null and qualifiedName contains an illegal character from + illegalChars[]. Method should raise INVALID_CHARACTER_ERR DOMException + for all characters in illegalChars[]. + +Mary Brady +2001-08-17 + + + + + + + + + + +"namespaceURI:{" +"namespaceURI:}" +"namespaceURI:~" +"namespaceURI:'" +"namespaceURI:!" +"namespaceURI:@" +"namespaceURI:#" +"namespaceURI:$" +"namespaceURI:%" +"namespaceURI:^" +"namespaceURI:&" +"namespaceURI:*" +"namespaceURI:(" +"namespaceURI:)" +"namespaceURI:+" +"namespaceURI:=" +"namespaceURI:[" +"namespaceURI:]" +"namespaceURI:\\" +"namespaceURI:/" +"namespaceURI:;" +"namespaceURI:`" +"namespaceURI:<" +"namespaceURI:>" +"namespaceURI:," +"namespaceURI:a " +"namespaceURI:\"" + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/createDocument06.xml b/test/testcases/tests/level2/core/createDocument06.xml new file mode 100644 index 0000000..30000ee --- /dev/null +++ b/test/testcases/tests/level2/core/createDocument06.xml @@ -0,0 +1,54 @@ + + + + + + +createDocument06 +NIST + + The "createDocument(namespaceURI,qualifiedName,doctype)" method for a + DOMImplementation should raise NAMESPACE_ERR DOMException + if qualifiedName has the "xml" prefix and namespaceURI different from + "http://www.w3.org/XML/1998/namespace" + + Invoke method createDocument(namespaceURI,qualifiedName,doctype) on + this domimplementation with qualifiedName "xml:local" + and namespaceURI as the string + "http://www.ecommerce.org/schema" (which is different from the required + "http://www.w3.org/XML/1998/namespace"). Method should raise + NAMESPACE_ERR DOMException. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/createDocument07.xml b/test/testcases/tests/level2/core/createDocument07.xml new file mode 100644 index 0000000..76b1b69 --- /dev/null +++ b/test/testcases/tests/level2/core/createDocument07.xml @@ -0,0 +1,52 @@ + + + + + + +createDocument07 +NIST + + The "createDocument(namespaceURI,qualifiedName,doctype)" method for a + DOMImplementation should return a new xml Document object of the + specified type with its document element given that all parameters are + valid and correctly formed. + + Invoke method createDocument(namespaceURI,qualifiedName,doctype) on + this domimplementation. namespaceURI is "http://www.ecommerce.org/schema" + qualifiedName is "y:x" and doctype is null. + Method should return a new xml Document as specified by the listed parameters. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/createDocument08.xml b/test/testcases/tests/level2/core/createDocument08.xml new file mode 100644 index 0000000..efe7cd7 --- /dev/null +++ b/test/testcases/tests/level2/core/createDocument08.xml @@ -0,0 +1,40 @@ + + + + + + +createDocument08 +Curt Arnold + +DOMImplementation.createDocument with an empty qualified name should cause an INVALID_CHARACTER_ERR. + +2004-03-09 + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/createDocumentType01.xml b/test/testcases/tests/level2/core/createDocumentType01.xml new file mode 100644 index 0000000..618c975 --- /dev/null +++ b/test/testcases/tests/level2/core/createDocumentType01.xml @@ -0,0 +1,52 @@ + + + + + + +createDocumentType01 +NIST + + The "createDocumentType(qualifiedName,publicId,systemId)" method for a + DOMImplementation should raise NAMESPACE_ERR DOMException if + qualifiedName is malformed. + + Retrieve the DOMImplementation on the XMLNS Document. + Invoke method createDocumentType(qualifiedName,publicId,systemId) + on the retrieved DOMImplementation with qualifiedName being the literal + string "prefix::local", publicId as "STAFF", and systemId as "staff". + Method should raise NAMESPACE_ERR DOMException. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/createDocumentType02.xml b/test/testcases/tests/level2/core/createDocumentType02.xml new file mode 100644 index 0000000..a64f1c1 --- /dev/null +++ b/test/testcases/tests/level2/core/createDocumentType02.xml @@ -0,0 +1,81 @@ + + + + + + +createDocumentType02 +NIST + + The "createDocumentType(qualifiedName,publicId,systemId)" method for a + DOMImplementation should raise INVALID_CHARACTER_ERR DOMException if + qualifiedName contains an illegal character. + + Invoke method createDocumentType(qualifiedName,publicId,systemId) on + this domimplementation with qualifiedName containing an illegal character + from illegalChars[]. Method should raise INVALID_CHARACTER_ERR + DOMException for all characters in illegalChars[]. + +Mary Brady +2001-08-17 + + + + + + + + + + +"edi:{" +"edi:}" +"edi:~" +"edi:'" +"edi:!" +"edi:@" +"edi:#" +"edi:$" +"edi:%" +"edi:^" +"edi:&" +"edi:*" +"edi:(" +"edi:)" +"edi:+" +"edi:=" +"edi:[" +"edi:]" +"edi:\\" +"edi:/" +"edi:;" +"edi:`" +"edi:<" +"edi:>" +"edi:," +"edi:a " +"edi:\"" + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/createDocumentType03.xml b/test/testcases/tests/level2/core/createDocumentType03.xml new file mode 100644 index 0000000..45f4a81 --- /dev/null +++ b/test/testcases/tests/level2/core/createDocumentType03.xml @@ -0,0 +1,51 @@ + + + + + + +createDocumentType03 +NIST + + The "createDocumentType(qualifiedName,publicId,systemId)" method for a + DOMImplementation should return a new DocumentType node + given that qualifiedName is valid and correctly formed. + + Invoke method createDocumentType(qualifiedName,publicId,systemId) on + this domimplementation with qualifiedName "prefix:myDoc". + Method should return a new DocumentType node. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/createDocumentType04.xml b/test/testcases/tests/level2/core/createDocumentType04.xml new file mode 100644 index 0000000..59f1b98 --- /dev/null +++ b/test/testcases/tests/level2/core/createDocumentType04.xml @@ -0,0 +1,41 @@ + + + + + + +createDocumentType04 +Curt Arnold + +DOMImplementation.createDocumentType with an empty name should cause an INVALID_CHARACTER_ERR. + +2004-03-09 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/createElementNS01.xml b/test/testcases/tests/level2/core/createElementNS01.xml new file mode 100644 index 0000000..624971b --- /dev/null +++ b/test/testcases/tests/level2/core/createElementNS01.xml @@ -0,0 +1,48 @@ + + + + + + +createElementNS01 +NIST + + The "createElementNS(namespaceURI,qualifiedName)" method for a + Document should raise NAMESPACE_ERR DOMException if + qualifiedName is malformed. + + Invoke method createElementNS(namespaceURI,qualifiedName) on + the XMLNS Document with namespaceURI being the literal string + "http://www.ecommerce.org/", and qualifiedName as "prefix::local". + Method should raise NAMESPACE_ERR DOMException. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/createElementNS02.xml b/test/testcases/tests/level2/core/createElementNS02.xml new file mode 100644 index 0000000..239d277 --- /dev/null +++ b/test/testcases/tests/level2/core/createElementNS02.xml @@ -0,0 +1,47 @@ + + + + + + +createElementNS02 +NIST + + The "createElementNS(namespaceURI,qualifiedName)" method for a + Document should raise NAMESPACE_ERR DOMException if + qualifiedName has a prefix and namespaceURI is null. + + Invoke method createElementNS(namespaceURI,qualifiedName) on this document + with namespaceURI being null and qualifiedName being "elem:attr1". + Method should raise NAMESPACE_ERR DOMException. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/createElementNS03.xml b/test/testcases/tests/level2/core/createElementNS03.xml new file mode 100644 index 0000000..dc83604 --- /dev/null +++ b/test/testcases/tests/level2/core/createElementNS03.xml @@ -0,0 +1,80 @@ + + + + + + +createElementNS03 +NIST + + The "createElementNS(namespaceURI,qualifiedName)" method for a + Document should raise INVALID_CHARACTER_ERR DOMException if + qualifiedName contains an illegal character. + + Invoke method createElementNS(namespaceURI,qualifiedName) on this document + with qualifiedName containing an illegal character from illegalChars[]. + Method should raise INVALID_CHARACTER_ERR DOMException for all characters + in illegalChars[]. + +Mary Brady +2001-08-17 + + + + + + + + + + +"person:{" +"person:}" +"person:~" +"person:'" +"person:!" +"person:@" +"person:#" +"person:$" +"person:%" +"person:^" +"person:&" +"person:*" +"person:(" +"person:)" +"person:+" +"person:=" +"person:[" +"person:]" +"person:\\" +"person:/" +"person:;" +"person:`" +"person:<" +"person:>" +"person:," +"person:a " +"person:\"" + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/createElementNS04.xml b/test/testcases/tests/level2/core/createElementNS04.xml new file mode 100644 index 0000000..9a09210 --- /dev/null +++ b/test/testcases/tests/level2/core/createElementNS04.xml @@ -0,0 +1,50 @@ + + + + + + +createElementNS04 +NIST + + The "createElementNS(namespaceURI,qualifiedName") method for + a Document should raise NAMESPACE_ERR DOMException if the + qualifiedName has an "xml" prefix and the namespaceURI is different + from http://www.w3.org/XML/1998/namespace". + + Invoke method createElementNS(namespaceURI,qualifiedName) on this document + with qualifiedName being "xml:element1" and namespaceURI equals the string + "http://www.w3.org/XML/1997/namespace" (which differs from the required + string "http://www.w3.org/XML/1998/namespace"). + Method should raise NAMESPACE_ERR DOMException. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/createElementNS05.xml b/test/testcases/tests/level2/core/createElementNS05.xml new file mode 100644 index 0000000..75c62fb --- /dev/null +++ b/test/testcases/tests/level2/core/createElementNS05.xml @@ -0,0 +1,44 @@ + + + + + + +createElementNS05 +NIST + + The "createElementNS(namespaceURI,qualifiedName)" method for a + Document should return a new Element object given that all parameters + are valid and correctly formed. + + Invoke method createElementNS(namespaceURI,qualifiedName on this document + with namespaceURI as "http://www.nist.gov" and qualifiedName as "gov:faculty". + Method should return a new Element object whose name is "gov:faculty". + +Mary Brady +2001-08-17 + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/createElementNS06.xml b/test/testcases/tests/level2/core/createElementNS06.xml new file mode 100644 index 0000000..03ad058 --- /dev/null +++ b/test/testcases/tests/level2/core/createElementNS06.xml @@ -0,0 +1,42 @@ + + + + + + +createElementNS06 +Curt Arnold + +Document.createElementNS with an empty qualified name should cause an INVALID_CHARACTER_ERR. + +2004-03-09 + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/documentcreateattributeNS01.xml b/test/testcases/tests/level2/core/documentcreateattributeNS01.xml new file mode 100644 index 0000000..b6c76f9 --- /dev/null +++ b/test/testcases/tests/level2/core/documentcreateattributeNS01.xml @@ -0,0 +1,47 @@ + + + + + + + +documentcreateattributeNS01 +IBM + + The method createAttributeNS creates an attribute of the given qualified name and namespace URI + + Invoke the createAttributeNS method on this Document object with a null + namespaceURI, and a qualifiedName without a prefix. This should return a valid Attr + node object. + +Neil Delima +2002-04-30 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/documentcreateattributeNS02.xml b/test/testcases/tests/level2/core/documentcreateattributeNS02.xml new file mode 100644 index 0000000..dcfa674 --- /dev/null +++ b/test/testcases/tests/level2/core/documentcreateattributeNS02.xml @@ -0,0 +1,65 @@ + + + + + + + +documentcreateattributeNS02 +IBM + + The method createAttributeNS creates an attribute of the given qualified name and namespace URI + + Invoke the createAttributeNS method on this Document object with a valid values for + namespaceURI, and a qualifiedName as below. This should return a valid Attr node. + +Neil Delima +2002-04-30 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/documentcreateattributeNS03.xml b/test/testcases/tests/level2/core/documentcreateattributeNS03.xml new file mode 100644 index 0000000..ec1f785 --- /dev/null +++ b/test/testcases/tests/level2/core/documentcreateattributeNS03.xml @@ -0,0 +1,59 @@ + + + + + + + +documentcreateattributeNS03 +IBM + + The method createAttributeNS raises an INVALID_CHARACTER_ERR if the specified + qualified name contains an illegal character + + Invoke the createAttributeNS method on this Document object with a valid value for + namespaceURI, and qualifiedNames that contain illegal characters. Check if the an + INVALID_CHARACTER_ERR was thrown. + +Neil Delima +2002-04-30 + + + + + + + + +"/" +"//" +"\\" +";" +"&" +"*" +"]]" +">" +"<" + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/documentcreateattributeNS04.xml b/test/testcases/tests/level2/core/documentcreateattributeNS04.xml new file mode 100644 index 0000000..bb9fcc4 --- /dev/null +++ b/test/testcases/tests/level2/core/documentcreateattributeNS04.xml @@ -0,0 +1,54 @@ + + + + + + + +documentcreateattributeNS04 +IBM + + The method createAttributeNS raises a NAMESPACE_ERR if the specified qualified name + is malformed. + + Invoke the createAttributeNS method on this Document object with a valid value for + namespaceURI, and malformed qualifiedNames. Check if the a NAMESPACE_ERR was thrown. + +Neil Delima +2002-04-30 + + + + + + + + +"_:" +":0a" +":" +"a:b:c" +"_::a" + + + + + + + + + + \ No newline at end of file diff --git a/test/testcases/tests/level2/core/documentcreateattributeNS05.xml b/test/testcases/tests/level2/core/documentcreateattributeNS05.xml new file mode 100644 index 0000000..cf4063e --- /dev/null +++ b/test/testcases/tests/level2/core/documentcreateattributeNS05.xml @@ -0,0 +1,49 @@ + + + + + + + +documentcreateattributeNS05 +IBM + + The method createAttributeNS raises a NAMESPACE_ERR if the qualifiedName has a prefix and + the namespaceURI is null. + + Invoke the createAttributeNS method on a new Document object with a null value for + namespaceURI, and a valid qualifiedName. Check if a NAMESPACE_ERR is thrown. + +Neil Delima +2002-04-30 + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/documentcreateattributeNS06.xml b/test/testcases/tests/level2/core/documentcreateattributeNS06.xml new file mode 100644 index 0000000..6b96e7c --- /dev/null +++ b/test/testcases/tests/level2/core/documentcreateattributeNS06.xml @@ -0,0 +1,50 @@ + + + + + + + +documentcreateattributeNS06 +IBM + + The method createAttributeNS raises a NAMESPACE_ERR if the qualifiedName has a prefix that + is "xml" and the namespaceURI is different from "http://www.w3.org/XML/1998/namespace". + + Invoke the createAttributeNS method on a new DOMImplementation object with the qualifiedName + as xml:root and namespaceURI as http://www.w3.org/XML/1998 /namespace. + Check if the NAMESPACE_ERR exception is thrown. + +Neil Delima +2002-04-30 + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/documentcreateattributeNS07.xml b/test/testcases/tests/level2/core/documentcreateattributeNS07.xml new file mode 100644 index 0000000..a8eaa41 --- /dev/null +++ b/test/testcases/tests/level2/core/documentcreateattributeNS07.xml @@ -0,0 +1,45 @@ + + + + + + + +documentcreateattributeNS07 +IBM + + The method createAttributeNS raises a NAMESPACE_ERR if the qualifiedName is xmlns and + the namespaceURI is different from http://www.w3.org/2000/xmlns + + Invoke the createAttributeNS method on this DOMImplementation object with + the qualifiedName as xmlns and namespaceURI as http://www.W3.org/2000/xmlns. + Check if the NAMESPACE_ERR exception is thrown. + +Neil Delima +2002-04-30 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/documentcreateelementNS01.xml b/test/testcases/tests/level2/core/documentcreateelementNS01.xml new file mode 100644 index 0000000..ad9cb2b --- /dev/null +++ b/test/testcases/tests/level2/core/documentcreateelementNS01.xml @@ -0,0 +1,55 @@ + + + + + + + +documentcreateelementNS01 +IBM + + The method createElementNS creates an element of the given valid qualifiedName and NamespaceURI. + + Invoke the createElementNS method on this Document object with a valid namespaceURI + and qualifiedName. Check if a valid Element object is returned with the same node attributes. + +Neil Delima +2002-04-30 + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/documentcreateelementNS02.xml b/test/testcases/tests/level2/core/documentcreateelementNS02.xml new file mode 100644 index 0000000..32f14ae --- /dev/null +++ b/test/testcases/tests/level2/core/documentcreateelementNS02.xml @@ -0,0 +1,44 @@ + + + + + + + +documentcreateelementNS02 +IBM + + The method createElementNS creates an element of the given valid qualifiedName and NamespaceURI. + + Invoke the createElementNS method on this Document object with null values for namespaceURI, + and a qualifiedName with an invalid character and check if an INVALID_CHARACTER_ERR is thrown. + +Neil Delima +2002-04-30 + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/documentcreateelementNS05.xml b/test/testcases/tests/level2/core/documentcreateelementNS05.xml new file mode 100644 index 0000000..42e43b3 --- /dev/null +++ b/test/testcases/tests/level2/core/documentcreateelementNS05.xml @@ -0,0 +1,44 @@ + + + + + + + +documentcreateelementNS05 +IBM + + The method createElementNS raises a NAMESPACE_ERR if the qualifiedName has a prefix and + the namespaceURI is null. + + Invoke the createElementNS method on a new Document object with a null value for + namespaceURI, and a valid qualifiedName. Check if a NAMESPACE_ERR is thrown. + +Neil Delima +2002-04-30 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/documentcreateelementNS06.xml b/test/testcases/tests/level2/core/documentcreateelementNS06.xml new file mode 100644 index 0000000..415bcde --- /dev/null +++ b/test/testcases/tests/level2/core/documentcreateelementNS06.xml @@ -0,0 +1,51 @@ + + + + + + + +documentcreateelementNS06 +IBM + + The method createElementNS raises a NAMESPACE_ERR if the qualifiedName + has a prefix that is "xml" and the namespaceURI is different + from http://www.w3.org/XML/1998/namespace + + Invoke the createElementNS method on this DOMImplementation object with + the qualifiedName as xml:root and namespaceURI as http://www.w3.org/xml/1998/namespace + Check if the NAMESPACE_ERR exception is thrown. + +Neil Delima +2002-04-30 + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/documentgetelementbyid01.xml b/test/testcases/tests/level2/core/documentgetelementbyid01.xml new file mode 100644 index 0000000..3c51695 --- /dev/null +++ b/test/testcases/tests/level2/core/documentgetelementbyid01.xml @@ -0,0 +1,41 @@ + + + + + + + +documentgetelementbyid01 +IBM + + The method getElementById returns the element whose ID is given by elementId. + If not such element exists, returns null. + + Invoke the getElementById method on this Document object with an invalid elementId. + This should return a null element. + +Neil Delima +2002-04-30 + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/documentgetelementsbytagnameNS01.xml b/test/testcases/tests/level2/core/documentgetelementsbytagnameNS01.xml new file mode 100644 index 0000000..402335c --- /dev/null +++ b/test/testcases/tests/level2/core/documentgetelementsbytagnameNS01.xml @@ -0,0 +1,48 @@ + + + + + + + +documentgetelementsbytagnameNS01 +IBM + + The method getElementsByTagNameNS returns a NodeList of all the Elements with + a given local name and namespace URI in the order in which they are encountered + in a preorder traversal of the Document tree. + + Invoke the getElementsByTagNameNS method on a new Document object with the values of + namespaceURI=* and localName=*. This should return a nodeList of 1 item. + +Neil Delima +2002-04-30 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/documentgetelementsbytagnameNS02.xml b/test/testcases/tests/level2/core/documentgetelementsbytagnameNS02.xml new file mode 100644 index 0000000..89d8b51 --- /dev/null +++ b/test/testcases/tests/level2/core/documentgetelementsbytagnameNS02.xml @@ -0,0 +1,51 @@ + + + + + + + +documentgetelementsbytagnameNS02 +IBM + + The method getElementsByTagNameNS returns a NodeList of all the Elements with + a given local name and namespace URI in the order in which they are encountered + in a preorder traversal of the Document tree. + + + Create a new element having a local name="employeeId" belonging to the namespace "test" + and append it to this document. Invoke the getElementsByTagNameNS method on a this + Document object with the values of namespaceURI=* and localName="elementId". This + should return a nodeList of 6 item. Check the length of the nodeList returned. + +Neil Delima +2002-04-30 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/documentgetelementsbytagnameNS03.xml b/test/testcases/tests/level2/core/documentgetelementsbytagnameNS03.xml new file mode 100644 index 0000000..bc08125 --- /dev/null +++ b/test/testcases/tests/level2/core/documentgetelementsbytagnameNS03.xml @@ -0,0 +1,41 @@ + + + + + + + +documentgetelementsbytagnameNS03 +IBM + + The method getElementsByTagNameNS returns a NodeList of all the Elements with + a given local name and namespace URI in the order in which they are encountered + in a preorder traversal of the Document tree. + + Invoke the getElementsByTagNameNS method on a new Document object with the values of + namespaceURI=** and localName=**. This should return a nodeList of 0 items. + +Neil Delima +2002-04-30 + + + + + + + + + diff --git a/test/testcases/tests/level2/core/documentgetelementsbytagnameNS04.xml b/test/testcases/tests/level2/core/documentgetelementsbytagnameNS04.xml new file mode 100644 index 0000000..13278e4 --- /dev/null +++ b/test/testcases/tests/level2/core/documentgetelementsbytagnameNS04.xml @@ -0,0 +1,44 @@ + + + + + + + +documentgetelementsbytagnameNS04 +IBM + + The method getElementsByTagNameNS returns a NodeList of all the Elements with + a given local name and namespace URI in the order in which they are encountered + in a preorder traversal of the Document tree. + + Invoke the getElementsByTagNameNS method on a new Document object with the values of + namespaceURI="null" and localName="0". This should return a nodeList of 0 items. + +Neil Delima +2002-04-30 + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/documentgetelementsbytagnameNS05.xml b/test/testcases/tests/level2/core/documentgetelementsbytagnameNS05.xml new file mode 100644 index 0000000..c9a4245 --- /dev/null +++ b/test/testcases/tests/level2/core/documentgetelementsbytagnameNS05.xml @@ -0,0 +1,43 @@ + + + + + + + +documentgetelementsbytagnameNS05 +IBM + + The method getElementsByTagNameNS returns a NodeList of all the Elements with + a given local name and namespace URI in the order in which they are encountered + in a preorder traversal of the Document tree. + + + Invoke the getElementsByTagNameNS method on a this Document object with the + values of namespaceURI=null and localName="elementId". This + should return a nodeList of 0 item. Check the length of the nodeList returned. + +Neil Delima +2002-04-30 + + + + + + + + + diff --git a/test/testcases/tests/level2/core/documentimportnode01.xml b/test/testcases/tests/level2/core/documentimportnode01.xml new file mode 100644 index 0000000..9678051 --- /dev/null +++ b/test/testcases/tests/level2/core/documentimportnode01.xml @@ -0,0 +1,64 @@ + + + + + + + +documentimportnode01 +IBM + + The importNode method imports a node from another document to this document. + The returned node has no parent; (parentNode is null). The source node is not + altered or removed from the original document but a new copy of the source node + is created. + + Using the method importNode with deep=true, import the attribute, "street" of the second + element node, from a list of nodes whose local names are "address" and namespaceURI + "http://www.nist.gov" into the same document. Check the parentNode, nodeName, + nodeType and nodeValue of the imported node to verify if it has been imported correctly. + +Neil Delima +2002-04-30 + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/documentimportnode02.xml b/test/testcases/tests/level2/core/documentimportnode02.xml new file mode 100644 index 0000000..807f1d4 --- /dev/null +++ b/test/testcases/tests/level2/core/documentimportnode02.xml @@ -0,0 +1,65 @@ + + + + + + +documentimportnode02 +IBM + + The importNode method imports a node from another document to this document. + The returned node has no parent; (parentNode is null). The source node is not + altered or removed from the original document but a new copy of the source node + is created. + + Using the method importNode with deep=false, import the attribute, "emp:zone" of the + element node which is retreived by its elementId="CANADA", into the another document. + Check the parentNode, nodeName, nodeType and nodeValue of the imported node to + verify if it has been imported correctly. + +Neil Delima +2002-04-30 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/documentimportnode03.xml b/test/testcases/tests/level2/core/documentimportnode03.xml new file mode 100644 index 0000000..6bc2bd1 --- /dev/null +++ b/test/testcases/tests/level2/core/documentimportnode03.xml @@ -0,0 +1,62 @@ + + + + + + + +documentimportnode03 +IBM + + The importNode method imports a node from another document to this document. + The returned node has no parent; (parentNode is null). The source node is not + altered or removed from the original document but a new copy of the source node + is created. + + Using the method importNode with deep=false, import the default Attribute attribute, + "defaultAttr" of the second element node whose namespaceURI="http://www.nist.gov" and + localName="defaultAttr", into the same document. + Check the parentNode, nodeName, nodeType and nodeValue of the imported node to + verify if it has been imported correctly. +Neil Delima +2002-04-30 + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/documentimportnode04.xml b/test/testcases/tests/level2/core/documentimportnode04.xml new file mode 100644 index 0000000..ade2c9b --- /dev/null +++ b/test/testcases/tests/level2/core/documentimportnode04.xml @@ -0,0 +1,67 @@ + + + + + + + +documentimportnode04 +IBM + + The importNode method imports a node from another document to this document. + The returned node has no parent; (parentNode is null). The source node is not + altered or removed from the original document but a new copy of the source node + is created. + + Using the method importNode with deep=true, import the default Attribute attribute, + "defaultAttr" of the second element node whose namespaceURI="http://www.nist.gov" and + localName="defaultAttr", into a new document. + Check the parentNode, nodeName, nodeType and nodeValue of the imported node to + verify if it has been imported correctly. + +Neil Delima +2002-04-30 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/documentimportnode05.xml b/test/testcases/tests/level2/core/documentimportnode05.xml new file mode 100644 index 0000000..8721cf4 --- /dev/null +++ b/test/testcases/tests/level2/core/documentimportnode05.xml @@ -0,0 +1,62 @@ + + + + + + + +documentimportnode05 +IBM + + The importNode method imports a node from another document to this document. + The returned node has no parent; (parentNode is null). The source node is not + altered or removed from the original document but a new copy of the source node + is created. + + Using the method importNode with deep=false, import a newly created attribute node, + into the another document. + Check the nodeName, nodeType and nodeValue namespaceURI of the imported node to + verify if it has been imported correctly. + +Neil Delima +2002-04-30 + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/documentimportnode06.xml b/test/testcases/tests/level2/core/documentimportnode06.xml new file mode 100644 index 0000000..e2b185d --- /dev/null +++ b/test/testcases/tests/level2/core/documentimportnode06.xml @@ -0,0 +1,45 @@ + + + + + + + +documentimportnode06 +IBM + + The importNode method imports a node from another document to this document. + A NOT_SUPPORTED_ERR is raised if the type of node being imported is + not supported + + Using the method importNode with deep=false, try to import this document object to itself. + Since Document nodes cannot be imported, a NOT_SUPPORTED_ERR should be raised. + +Neil Delima +2002-04-30 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/documentimportnode07.xml b/test/testcases/tests/level2/core/documentimportnode07.xml new file mode 100644 index 0000000..87d650e --- /dev/null +++ b/test/testcases/tests/level2/core/documentimportnode07.xml @@ -0,0 +1,48 @@ + + + + + + + +documentimportnode07 +IBM + + The importNode method imports a node from another document to this document. + A NOT_SUPPORTED_ERR is raised if the type of node being imported is + not supported + + Using the method importNode with deep=true, try to import this Document's + DocumentType object. Since DocumentType nodes cannot be imported, a + NOT_SUPPORTED_ERR should be raised. + +Neil Delima +2002-04-30 + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/documentimportnode08.xml b/test/testcases/tests/level2/core/documentimportnode08.xml new file mode 100644 index 0000000..f2787da --- /dev/null +++ b/test/testcases/tests/level2/core/documentimportnode08.xml @@ -0,0 +1,51 @@ + + + + + + + +documentimportnode08 +IBM + + The importNode method imports a node from another document to this document. + A NOT_SUPPORTED_ERR is raised if the type of node being imported is + not supported + + Using the method importNode with deep=true, try to import a newly created DOcumentType + node. Since DocumentType nodes cannot be imported, a NOT_SUPPORTED_ERR should be raised. + +Neil Delima +2002-04-30 + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/documentimportnode09.xml b/test/testcases/tests/level2/core/documentimportnode09.xml new file mode 100644 index 0000000..1e457c3 --- /dev/null +++ b/test/testcases/tests/level2/core/documentimportnode09.xml @@ -0,0 +1,54 @@ + + + + + + + +documentimportnode09 +IBM + + The importNode method imports a node from another document to this document. + The returned node has no parent; (parentNode is null). The source node is not + altered or removed from the original document but a new copy of the source node + is created. + + Using the method importNode with deep=false, import a newly created DocumentFragment node + with the first address element from this Document appended to it into this document. + Since deep=false, an empty DocumentFragment should be returned + +Neil Delima +2002-04-30 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test/testcases/tests/level2/core/documentimportnode10.xml b/test/testcases/tests/level2/core/documentimportnode10.xml new file mode 100644 index 0000000..8b66b65 --- /dev/null +++ b/test/testcases/tests/level2/core/documentimportnode10.xml @@ -0,0 +1,54 @@ + + + + + + + +documentimportnode10 +IBM + + The importNode method imports a node from another document to this document. + The returned node has no parent; (parentNode is null). The source node is not + altered or removed from the original document but a new copy of the source node + is created. + + Using the method importNode with deep=false, import a newly created DocumentFragment node + with the first address element from this Document appended to it into this document. + Since deep=true, a DocumentFragment with its child should be returned + +Neil Delima +2002-04-30 + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test/testcases/tests/level2/core/documentimportnode11.xml b/test/testcases/tests/level2/core/documentimportnode11.xml new file mode 100644 index 0000000..0a43bb6 --- /dev/null +++ b/test/testcases/tests/level2/core/documentimportnode11.xml @@ -0,0 +1,53 @@ + + + + + + + +documentimportnode11 +IBM + + The importNode method imports a node from another document to this document. + The returned node has no parent; (parentNode is null). The source node is not + altered or removed from the original document but a new copy of the source node + is created. + + Using the method importNode with deep=false, import this Document's documentElement + node. Verify if the node has been imported correctly by its nodeName atttribute and + if the original document is not altered by checking if hasChildNodes returns false. + +Neil Delima +2002-04-30 + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test/testcases/tests/level2/core/documentimportnode12.xml b/test/testcases/tests/level2/core/documentimportnode12.xml new file mode 100644 index 0000000..b2eea21 --- /dev/null +++ b/test/testcases/tests/level2/core/documentimportnode12.xml @@ -0,0 +1,56 @@ + + + + + + + +documentimportnode12 +IBM + + The importNode method imports a node from another document to this document. + The returned node has no parent; (parentNode is null). The source node is not + altered or removed from the original document but a new copy of the source node + is created. + + Using the method importNode with deep=true, import the first address element node of this + Document. Verify if the node has been imported correctly by checking the length of the + this elements childNode list before and after the import. + +Neil Delima +2002-04-30 + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test/testcases/tests/level2/core/documentimportnode13.xml b/test/testcases/tests/level2/core/documentimportnode13.xml new file mode 100644 index 0000000..40ee506 --- /dev/null +++ b/test/testcases/tests/level2/core/documentimportnode13.xml @@ -0,0 +1,52 @@ + + + + + + + +documentimportnode13 +IBM + + The importNode method imports a node from another document to this document. + The returned node has no parent; (parentNode is null). The source node is not + altered or removed from the original document but a new copy of the source node + is created. + + Using the method importNode with deep=false, import the first employee element node of this + Document. Verify if the node has been imported correctly by checking the length of the + this elements childNode list before and after the import. + +Neil Delima +2002-04-30 + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test/testcases/tests/level2/core/documentimportnode14.xml b/test/testcases/tests/level2/core/documentimportnode14.xml new file mode 100644 index 0000000..85f471c --- /dev/null +++ b/test/testcases/tests/level2/core/documentimportnode14.xml @@ -0,0 +1,61 @@ + + + + + + + +documentimportnode14 +IBM + + Using the method importNode with deep=true, import the fourth employee element node of this + Document. Verify if the node has been imported correctly by checking + if the default attribute present on this node has not been imported + and an explicit attribute has been imported. + +Neil Delima +2002-04-30 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/documentimportnode15.xml b/test/testcases/tests/level2/core/documentimportnode15.xml new file mode 100644 index 0000000..a32299d --- /dev/null +++ b/test/testcases/tests/level2/core/documentimportnode15.xml @@ -0,0 +1,50 @@ + + + + + + + +documentimportnode15 +IBM + + The importNode method imports a node from another document to this document. + The returned node has no parent; (parentNode is null). The source node is not + altered or removed from the original document but a new copy of the source node + is created. + + Using the method importNode with deep=true, import a newly created Text node for this + Document. Verify if the node has been imported correctly by checking the value of the + imported text node. + +Neil Delima +2002-04-30 + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test/testcases/tests/level2/core/documentimportnode17.xml b/test/testcases/tests/level2/core/documentimportnode17.xml new file mode 100644 index 0000000..e74611c --- /dev/null +++ b/test/testcases/tests/level2/core/documentimportnode17.xml @@ -0,0 +1,50 @@ + + + + + + + +documentimportnode17 +IBM + + The importNode method imports a node from another document to this document. + The returned node has no parent; (parentNode is null). The source node is not + altered or removed from the original document but a new copy of the source node + is created. + + Using the method importNode with deep=true, import a newly created Comment node for this + Document. Verify if the node has been imported correctly by checking the value of the + imported Comment node. + +Neil Delima +2002-04-30 + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test/testcases/tests/level2/core/documentimportnode18.xml b/test/testcases/tests/level2/core/documentimportnode18.xml new file mode 100644 index 0000000..3c73bd8 --- /dev/null +++ b/test/testcases/tests/level2/core/documentimportnode18.xml @@ -0,0 +1,53 @@ + + + + + + + +documentimportnode18 +IBM + + The importNode method imports a node from another document to this document. + The returned node has no parent; (parentNode is null). The source node is not + altered or removed from the original document but a new copy of the source node + is created. + + Using the method importNode with deep=true, import a newly created PI node for this + Document. Verify if the node has been imported correctly by checking the PITarget and + PIData values of the imported PI node. + +Neil Delima +2002-04-30 + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test/testcases/tests/level2/core/documentimportnode19.xml b/test/testcases/tests/level2/core/documentimportnode19.xml new file mode 100644 index 0000000..0ef04b9 --- /dev/null +++ b/test/testcases/tests/level2/core/documentimportnode19.xml @@ -0,0 +1,83 @@ + + + + + + + +documentimportnode19 +IBM + + The importNode method imports a node from another document to this document. + The returned node has no parent; (parentNode is null). The source node is not + altered or removed from the original document but a new copy of the source node + is created. + + Using the method importNode with deep=true/false, import a entity nodes ent2 and ent6 + from this document to a new document object. Verify if the nodes have been + imported correctly by checking the nodeNames of the imported nodes and public and system ids. + +Neil Delima +2002-04-30 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test/testcases/tests/level2/core/documentimportnode20.xml b/test/testcases/tests/level2/core/documentimportnode20.xml new file mode 100644 index 0000000..ea342cd --- /dev/null +++ b/test/testcases/tests/level2/core/documentimportnode20.xml @@ -0,0 +1,81 @@ + + + + + + + +documentimportnode20 +IBM + + The importNode method imports a node from another document to this document. + The returned node has no parent; (parentNode is null). The source node is not + altered or removed from the original document but a new copy of the source node + is created. + + Using the method importNode with deep=true, import a entity node ent4 + from this document to a new document object. The replacement text of this entity is an element + node, a cdata node and a pi. Verify if the nodes have been + imported correctly by checking the nodeNames of the imported element node, the data for the + cdata nodes and the PItarget and PIData for the pi nodes. + +Neil Delima +2002-04-30 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test/testcases/tests/level2/core/documentimportnode21.xml b/test/testcases/tests/level2/core/documentimportnode21.xml new file mode 100644 index 0000000..cf5dedb --- /dev/null +++ b/test/testcases/tests/level2/core/documentimportnode21.xml @@ -0,0 +1,91 @@ + + + + + + + +documentimportnode21 +IBM + + The importNode method imports a node from another document to this document. + The returned node has no parent; (parentNode is null). The source node is not + altered or removed from the original document but a new copy of the source node + is created. + + Using the method importNode with deep=true, retreive the entity refs present in the + second element node whose tagName is address and import these nodes into another document. + Verify if the nodes have been imported correctly by checking the nodeNames of the + imported nodes, since they are imported into a new document which doesnot have thes defined, + the imported nodes should not have any children. + Now import the entityRef nodes into the same document and verify if the nodes have been + imported correctly by checking the nodeNames of the imported nodes, and by checking the + value of the replacement text of the imported nodes. + +Neil Delima +2002-04-30 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test/testcases/tests/level2/core/documentimportnode22.xml b/test/testcases/tests/level2/core/documentimportnode22.xml new file mode 100644 index 0000000..2164ae0 --- /dev/null +++ b/test/testcases/tests/level2/core/documentimportnode22.xml @@ -0,0 +1,92 @@ + + + + + + + +documentimportnode21 +IBM + + The importNode method imports a node from another document to this document. + The returned node has no parent; (parentNode is null). The source node is not + altered or removed from the original document but a new copy of the source node + is created. + + Using the method importNode with deep=true/false, import two notaiton nodes into the + same and different documnet objects. In each case check if valid public and systemids + are returned if any and if none, check if a null value was returned. + +Neil Delima +2002-04-30 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test/testcases/tests/level2/core/documenttypeinternalSubset01.xml b/test/testcases/tests/level2/core/documenttypeinternalSubset01.xml new file mode 100644 index 0000000..daf291e --- /dev/null +++ b/test/testcases/tests/level2/core/documenttypeinternalSubset01.xml @@ -0,0 +1,43 @@ + + + + + + +documenttypeinternalSubset01 +IBM + + The method getInternalSubset() returns the internal subset as a string. + + Create a new DocumentType node with null values for publicId and systemId. + Verify that its internal subset is null. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/documenttypepublicid01.xml b/test/testcases/tests/level2/core/documenttypepublicid01.xml new file mode 100644 index 0000000..0c9e511 --- /dev/null +++ b/test/testcases/tests/level2/core/documenttypepublicid01.xml @@ -0,0 +1,43 @@ + + + + + + +documenttypepublicid01 +IBM + + The method getInternalSubset() returns the public identifier of the external subset. + + Create a new DocumentType node with the value "PUB" for its publicId. + Check the value of the publicId attribute using getPublicId(). + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/documenttypesystemid01.xml b/test/testcases/tests/level2/core/documenttypesystemid01.xml new file mode 100644 index 0000000..9cad9d8 --- /dev/null +++ b/test/testcases/tests/level2/core/documenttypesystemid01.xml @@ -0,0 +1,44 @@ + + + + + + +documenttypesystemid01 +IBM + + The method getInternalSubset() returns the public identifier of the external subset. + + Create a new DocumentType node with the value "SYS" for its systemId and PUB for + its publicId. Check the value of the systemId and pbulicId attributes. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/domimplementationcreatedocument03.xml b/test/testcases/tests/level2/core/domimplementationcreatedocument03.xml new file mode 100644 index 0000000..201d71a --- /dev/null +++ b/test/testcases/tests/level2/core/domimplementationcreatedocument03.xml @@ -0,0 +1,60 @@ + + + + + + + +domimplementationcreatedocument03 +IBM + + The createDocument method with valid arguments, should create a DOM Document of + the specified type. + + Call the createDocument on this DOMImplementation with + createDocument ("http://www.w3.org/DOMTest/L2",see the array below for valid QNames,null). + Check if the returned Document object is is empty with no Document Element. + +Neil Delima +2002-04-24 + + + + + + + + + + +"_:_" +"_:h0" +"_:test" +"l_:_" +"ns:_0" +"ns:a0" +"ns0:test" +"a.b:c" +"a-b:c" +"a-b:c" + + + + + + + + diff --git a/test/testcases/tests/level2/core/domimplementationcreatedocument04.xml b/test/testcases/tests/level2/core/domimplementationcreatedocument04.xml new file mode 100644 index 0000000..ee02789 --- /dev/null +++ b/test/testcases/tests/level2/core/domimplementationcreatedocument04.xml @@ -0,0 +1,49 @@ + + + + + + + +domimplementationcreatedocument04 +IBM + + The createDocument method should throw a NAMESPACE_ERR if the qualifiedName has + a prefix and the namespaceURI is null. + + Call the createDocument on this DOMImplementation with null namespaceURI and a + qualifiedName that has a namespace prefix using this DOMImplementation. + Check if the NAMESPACE_ERR is thrown. + +Neil Delima +2002-04-24 + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/domimplementationcreatedocument05.xml b/test/testcases/tests/level2/core/domimplementationcreatedocument05.xml new file mode 100644 index 0000000..2be6ad4 --- /dev/null +++ b/test/testcases/tests/level2/core/domimplementationcreatedocument05.xml @@ -0,0 +1,49 @@ + + + + + + + +domimplementationcreatedocument05 +IBM + + The createDocument method should throw a NAMESPACE_ERR if the qualifiedName has + a prefix that is xml and the namespaceURI is different from + http://www..w3.org/XML/1998/namespace. + + Call the createDocument on this DOMImplementation with namespaceURI that is + http://www.w3.org/xml/1998/namespace and a qualifiedName that has the prefix xml + Check if the NAMESPACE_ERR is thrown. + +Neil Delima +2002-04-24 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/domimplementationcreatedocument07.xml b/test/testcases/tests/level2/core/domimplementationcreatedocument07.xml new file mode 100644 index 0000000..926285a --- /dev/null +++ b/test/testcases/tests/level2/core/domimplementationcreatedocument07.xml @@ -0,0 +1,46 @@ + + + + + + + +domimplementationcreatedocument07 +IBM + + The createDocument method should raise a NAMESPACE_ERR if the qualifiedName is malformed + + Invoke the createDocument method on this DOMImplementation object with null values + for namespaceURI and docType and a malformed qualifiedName. + The NAMESPACE_ERR should be raised. + +Neil Delima +2002-04-24 + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/domimplementationcreatedocumenttype01.xml b/test/testcases/tests/level2/core/domimplementationcreatedocumenttype01.xml new file mode 100644 index 0000000..14a3ce8 --- /dev/null +++ b/test/testcases/tests/level2/core/domimplementationcreatedocumenttype01.xml @@ -0,0 +1,60 @@ + + + + + + + +domimplementationcreatedocumenttype01 +IBM + + The method createDocumentType with valid values for qualifiedName, publicId and + systemId should create an empty DocumentType node. + + Invoke createDocument on this DOMImplementation with a valid qualifiedName and different + publicIds and systemIds. Check if the the DocumentType node was created with its + ownerDocument attribute set to null. + +Neil Delima +2002-04-24 + + + + + + + + + + +"1234" +"test" + + +"" +"test" + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/domimplementationcreatedocumenttype02.xml b/test/testcases/tests/level2/core/domimplementationcreatedocumenttype02.xml new file mode 100644 index 0000000..e534b13 --- /dev/null +++ b/test/testcases/tests/level2/core/domimplementationcreatedocumenttype02.xml @@ -0,0 +1,66 @@ + + + + + + + +domimplementationcreatedocumenttype02 +IBM + + The method createDocumentType with valid values for qualifiedName, publicId and + systemId should create an empty DocumentType node. + + Invoke createDocument on this DOMImplementation with a different valid qualifiedNames + and a valid publicId and systemId. Check if the the DocumentType node was created + with its ownerDocument attribute set to null. + +Neil Delima +2002-04-24 + + + + + + + + + + +"_:_" +"_:h0" +"_:test" +"_:_." +"_:a-" +"l_:_" +"ns:_0" +"ns:a0" +"ns0:test" +"ns:EEE." +"ns:_-" +"a.b:c" +"a-b:c.j" +"a-b:c" + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/domimplementationcreatedocumenttype04.xml b/test/testcases/tests/level2/core/domimplementationcreatedocumenttype04.xml new file mode 100644 index 0000000..c65414a --- /dev/null +++ b/test/testcases/tests/level2/core/domimplementationcreatedocumenttype04.xml @@ -0,0 +1,65 @@ + + + + + + + +domimplementationcreatedocumenttype04 +IBM + + The method createDocumentType should raise a INVALID_CHARACTER_ERR if the qualifiedName + contains an illegal characters. + + Invoke createDocument on this DOMImplementation with qualifiedNames having illegal characters. + Check if an INVALID_CHARACTER_ERR is raised in each case. + +Neil Delima +2002-04-24 + + + + + + + + + +"{" +"}" +"'" +"~" +"`" +"@" +"#" +"$" +"%" +"^" +"&" +"*" +"(" +")" + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/domimplementationfeaturecore.xml b/test/testcases/tests/level2/core/domimplementationfeaturecore.xml new file mode 100644 index 0000000..360ad4f --- /dev/null +++ b/test/testcases/tests/level2/core/domimplementationfeaturecore.xml @@ -0,0 +1,44 @@ + + + + + + domimplementationFeaturecore + NIST + + The "feature" parameter in the + "hasFeature(feature,version)" method is the package name + of the feature. Legal values are XML and HTML and CORE. + (Test for feature core, lower case) + + Retrieve the entire DOM document and invoke its + "getImplementation()" method. This should create a + DOMImplementation object whose "hasFeature(feature, + version)" method is invoked with feature equal to "core". + The method should return a boolean "true". + + Mary Brady + 2001-08-17 + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/domimplementationfeaturexmlversion2.xml b/test/testcases/tests/level2/core/domimplementationfeaturexmlversion2.xml new file mode 100644 index 0000000..4f817e2 --- /dev/null +++ b/test/testcases/tests/level2/core/domimplementationfeaturexmlversion2.xml @@ -0,0 +1,45 @@ + + + + + + +domimplementationFeaturexmlVersion2 +NIST + + The "feature" parameter in the + "hasFeature(feature,version)" method is the package name + of the feature. Legal values are XML and HTML. + (Test for feature "xml" and version "2.0") + + Retrieve the entire DOM document and invoke its + "getImplementation()" method. This should create a + DOMImplementation object whose "hasFeature(feature, + version)" method is invoked with "feature" equal to "xml". + The method should return a boolean "true". + +Mary Brady +2001-08-17 + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/domimplementationhasfeature01.xml b/test/testcases/tests/level2/core/domimplementationhasfeature01.xml new file mode 100644 index 0000000..476c4fc --- /dev/null +++ b/test/testcases/tests/level2/core/domimplementationhasfeature01.xml @@ -0,0 +1,70 @@ + + + + + + + +domimplementationhasfeature01 +IBM + + The method "hasFeature(feature,version)" tests if the DOMImplementation implements + a specific feature and if so returns true. + + Call the hasFeature method on this DOMImplementation with a combination of features + versions as below. Valid feature names are case insensitive and versions "2.0", + "1.0" and if the version is not specified, supporting any version of the feature + should return true. Check if the value returned value was true. + +Neil Delima +2002-04-24 + + + + + + + + + + + +"XML" +"xmL" + + +"Core" +"CORE" + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/domimplementationhasfeature02.xml b/test/testcases/tests/level2/core/domimplementationhasfeature02.xml new file mode 100644 index 0000000..5ab08a3 --- /dev/null +++ b/test/testcases/tests/level2/core/domimplementationhasfeature02.xml @@ -0,0 +1,41 @@ + + + + + + + +domimplementationhasfeature02 +IBM + + The method "hasFeature(feature,version)" tests if the DOMImplementation implements + a specific feature and if not returns false. + + Call the hasFeature method on this DOMImplementation with a unfimiliar values for + feature and version. Check if the value returned was false. + +Neil Delima +2002-04-24 + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/elementgetattributenodens01.xml b/test/testcases/tests/level2/core/elementgetattributenodens01.xml new file mode 100644 index 0000000..8700a69 --- /dev/null +++ b/test/testcases/tests/level2/core/elementgetattributenodens01.xml @@ -0,0 +1,67 @@ + + + + + + + + elementgetattributenodens01 + IBM + + The method getAttributeNodeNS retrieves an Attr node by local name and namespace URI. + Create a new element node and add 2 new attribute nodes to it that have the same + local name but different namespaceURIs and prefixes. + Retrieve an attribute using namespace and localname and check its value, name and + namespaceURI. + + Neil Delima + 2002-04-28 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/elementgetattributenodens02.xml b/test/testcases/tests/level2/core/elementgetattributenodens02.xml new file mode 100644 index 0000000..a360258 --- /dev/null +++ b/test/testcases/tests/level2/core/elementgetattributenodens02.xml @@ -0,0 +1,48 @@ + + + + + + + + elementgetattributenodens02 + IBM + + The method getAttributeNodeNS retrieves an Attr node by local name and namespace URI. + Create a new element node and add a new attribute node to it. Using the getAttributeNodeNS, + retrieve the newly added attribute node and check its value. + + Neil Delima + 2002-04-28 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/elementgetattributenodens03.xml b/test/testcases/tests/level2/core/elementgetattributenodens03.xml new file mode 100644 index 0000000..6e87ae0 --- /dev/null +++ b/test/testcases/tests/level2/core/elementgetattributenodens03.xml @@ -0,0 +1,48 @@ + + + + + + + elementgetattributenodens03 + IBM + + The method getAttributeNodeNS retrieves an Attr node by local name and namespace URI. + Using the getAttributeNodeNS, retrieve and verify the value of the default + attribute node. + + Neil Delima + 2002-04-28 + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/elementgetattributens02.xml b/test/testcases/tests/level2/core/elementgetattributens02.xml new file mode 100644 index 0000000..23a00d2 --- /dev/null +++ b/test/testcases/tests/level2/core/elementgetattributens02.xml @@ -0,0 +1,45 @@ + + + + + + + elementgetattributens02 + IBM + + The method getAttributeNS retrieves an attribute value by local name and namespace URI. + Using the getAttributeNodeNS, retreive and verify the value of the default + attribute node. + + Neil Delima + 2002-04-28 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/elementgetelementsbytagnamens02.xml b/test/testcases/tests/level2/core/elementgetelementsbytagnamens02.xml new file mode 100644 index 0000000..c070334 --- /dev/null +++ b/test/testcases/tests/level2/core/elementgetelementsbytagnamens02.xml @@ -0,0 +1,42 @@ + + + + + + + elementgetelementsbytagnamens02 + IBM + + The method getElementsByTagNameNS returns a NodeList of all the Elements with a given local + name and namespace URI in the order in which they are encountered in a preorder traversal + of the Document tree. + Invoke getElementsByTagNameNS on the documentElement with values for namespaceURI '*' and + localName '*'. Verify if this returns a nodeList of 0 elements. + + Neil Delima + 2002-04-28 + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/elementgetelementsbytagnamens04.xml b/test/testcases/tests/level2/core/elementgetelementsbytagnamens04.xml new file mode 100644 index 0000000..6e3add6 --- /dev/null +++ b/test/testcases/tests/level2/core/elementgetelementsbytagnamens04.xml @@ -0,0 +1,63 @@ + + + + + + + elementgetelementsbytagnamens04 + IBM + + Returns a NodeList of all the Elements with a given local name and namespace URI in the + order in which they are encountered in a preorder traversal of the Document tree. + Create a new element node ('root') and append three newly created child nodes (all have + local name 'child' and defined in different namespaces). + Test 1: invoke getElementsByTagNameNS to retrieve one of the children. + Test 2: invoke getElementsByTagNameNS with the value of namespace equals to '*', and + verify that the node list has length of 3. + + Neil Delima + 2002-04-28 + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/elementgetelementsbytagnamens05.xml b/test/testcases/tests/level2/core/elementgetelementsbytagnamens05.xml new file mode 100644 index 0000000..ff3abc5 --- /dev/null +++ b/test/testcases/tests/level2/core/elementgetelementsbytagnamens05.xml @@ -0,0 +1,43 @@ + + + + + + + elementgetelementsbytagnamens05 + IBM + + Returns a NodeList of all the Elements with a given local name and namespace URI in the + order in which they are encountered in a preorder traversal of the Document tree. + Invoke getElementsByTagNameNS on the documentElement with the following values: + namespaceURI: 'http://www.altavista.com' + localName: '*'. + Verify if this returns a nodeList of 1 elements. + + Neil Delima + 2002-04-28 + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/elementhasattribute01.xml b/test/testcases/tests/level2/core/elementhasattribute01.xml new file mode 100644 index 0000000..a56ab42 --- /dev/null +++ b/test/testcases/tests/level2/core/elementhasattribute01.xml @@ -0,0 +1,39 @@ + + + + + + + elementhasattribute01 + IBM + + The method hasAttribute returns true when an attribute with a given name is specified + on this element or has a default value, false otherwise + Invoke the hasAttribute method to check if the documentElement has attributres. + + Neil Delima + 2002-04-28 + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/elementhasattribute02.xml b/test/testcases/tests/level2/core/elementhasattribute02.xml new file mode 100644 index 0000000..559458c --- /dev/null +++ b/test/testcases/tests/level2/core/elementhasattribute02.xml @@ -0,0 +1,44 @@ + + + + + + + elementhasattribute02 + IBM + + The method hasAttribute returns true when an attribute with a given name is specified + on this element or has a default value, false otherwise + Invoke the hasAttribute method to on an element with default attributes and verify if it + returns true. + + Neil Delima + 2002-04-28 + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/elementhasattribute03.xml b/test/testcases/tests/level2/core/elementhasattribute03.xml new file mode 100644 index 0000000..c86d2ab --- /dev/null +++ b/test/testcases/tests/level2/core/elementhasattribute03.xml @@ -0,0 +1,47 @@ + + + + + + + elementhasattribute03 + IBM + + The method hasAttribute returns true when an attribute with a given name is specified + on this element or has a default value, false otherwise. + + Create an element Node and an attribute Node. Invoke hasAttribute method + to verify that there is no attribute. Append the attribute node to the element node. + Invoke the hasAttribute method on the element and verify if it returns true. + + Neil Delima + 2002-04-28 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/elementhasattribute04.xml b/test/testcases/tests/level2/core/elementhasattribute04.xml new file mode 100644 index 0000000..d0dd75d --- /dev/null +++ b/test/testcases/tests/level2/core/elementhasattribute04.xml @@ -0,0 +1,44 @@ + + + + + + + elementhasattribute04 + IBM + + The method hasAttribute returns true when an attribute with a given name is specified + on this element or has a default value, false otherwise. + + Create an element Node and an attribute Node and add the attribute node to the element. + Invoke the hasAttribute method on the element and verify if the method returns true. + + Neil Delima + 2002-04-28 + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/elementhasattributens01.xml b/test/testcases/tests/level2/core/elementhasattributens01.xml new file mode 100644 index 0000000..14d33f6 --- /dev/null +++ b/test/testcases/tests/level2/core/elementhasattributens01.xml @@ -0,0 +1,45 @@ + + + + + + + elementhasattributens01 + IBM + + The method hasAttributeNS returns true when an attribute with a given local name + and namespace + URI is specified on this element or has a default value, false otherwise. + + Retreive the first employee element node. Invoke the hasAttributeNS method to check if it + has the xmlns attribute that belongs to the namespace http://www.w3.org/2000/xmlns/. + + Neil Delima + 2002-04-28 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/elementhasattributens02.xml b/test/testcases/tests/level2/core/elementhasattributens02.xml new file mode 100644 index 0000000..e75c142 --- /dev/null +++ b/test/testcases/tests/level2/core/elementhasattributens02.xml @@ -0,0 +1,51 @@ + + + + + + + elementhasattributens02 + IBM + + The method hasAttributeNS returns true when an attribute with a given local + name and namespace URI is specified on this element or has a default value, + false otherwise. + + Create a new element and attribute node that belong to the same namespace. + Add the attribute node to the element node. Check if the newly created element + node has an attribute by invoking the hasAttributeNS method with appropriate + values for the namespaceURI and localName parameters. + + Neil Delima + 2002-04-28 + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/elementhasattributens03.xml b/test/testcases/tests/level2/core/elementhasattributens03.xml new file mode 100644 index 0000000..4579ae6 --- /dev/null +++ b/test/testcases/tests/level2/core/elementhasattributens03.xml @@ -0,0 +1,52 @@ + + + + + + + elementhasattributens03 + IBM + + The method hasAttributeNS returns true when an attribute with a given local name + and namespace URI is specified on this element or has a default value, + false otherwise. + + Create a new element and an attribute node that has an empty namespace. + Add the attribute node to the element node. Check if the newly created element + node has an attribute by invoking the hasAttributeNS method with appropriate + values for the namespaceURI and localName parameters. + + Neil Delima + 2002-04-28 + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/elementremoveattributens01.xml b/test/testcases/tests/level2/core/elementremoveattributens01.xml new file mode 100644 index 0000000..ce40dfc --- /dev/null +++ b/test/testcases/tests/level2/core/elementremoveattributens01.xml @@ -0,0 +1,50 @@ + + + + + + + elementremoveattributens01 + IBM + + The method removeAttributeNS removes an attribute by local name and namespace URI. + Create a new element and add a new attribute node to it. + Remove the attribute node using the removeAttributeNodeNS method. + Check if the attribute was remove by invoking the hasAttributeNS + method on the element and check if it returns false. + + Neil Delima + 2002-04-28 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/elementsetattributenodens01.xml b/test/testcases/tests/level2/core/elementsetattributenodens01.xml new file mode 100644 index 0000000..ef953a4 --- /dev/null +++ b/test/testcases/tests/level2/core/elementsetattributenodens01.xml @@ -0,0 +1,78 @@ + + + + + + + elementsetattributenodens01 + IBM + + Testing Element.setAttributeNodeNS: If an attribute with that local name + and that namespace URI is already present in the element, it is replaced + by the new one. + + Create a new element and two new attribute nodes (in the same namespace + and same localNames). + Add the two new attribute nodes to the element node using the + setAttributeNodeNS method. Check that only one attribute is added, check + the value of this attribute. + + Neil Delima + 2002-04-28 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/elementsetattributenodens02.xml b/test/testcases/tests/level2/core/elementsetattributenodens02.xml new file mode 100644 index 0000000..d4c9711 --- /dev/null +++ b/test/testcases/tests/level2/core/elementsetattributenodens02.xml @@ -0,0 +1,63 @@ + + + + + + + elementsetattributenodens02 + IBM + + Test the setAttributeNodeNS method. + Retreive the street attribute from the second address element node. + Clone it and add it to the first address node. The INUSE_ATTRIBUTE_ERR exception + should not be thrown. Check the name and value of the newly added node. + + Neil Delima + 2002-04-28 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/elementsetattributenodens03.xml b/test/testcases/tests/level2/core/elementsetattributenodens03.xml new file mode 100644 index 0000000..a3fe92d --- /dev/null +++ b/test/testcases/tests/level2/core/elementsetattributenodens03.xml @@ -0,0 +1,57 @@ + + + + + + + elementsetattributenodens03 + IBM + + The method setAttributeNodeNS adds a new attribute and raises the + INUSE_ATTRIBUTE_ERR exception if the newAttr is already an attribute of + another Element object. + + Retreive an attribute node of an existing element node. Attempt to add it to an another + element node. Check if the INUSE_ATTRIBUTE_ERR exception is thrown. + + Neil Delima + 2002-04-28 + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/elementsetattributenodens04.xml b/test/testcases/tests/level2/core/elementsetattributenodens04.xml new file mode 100644 index 0000000..43fafe6 --- /dev/null +++ b/test/testcases/tests/level2/core/elementsetattributenodens04.xml @@ -0,0 +1,53 @@ + + + + + + + elementsetattributenodens04 + IBM + + The method setAttributeNodeNS Adds a new attribute and raises an INUSE_ATTRIBUTE_ERR + if newAttr is already an attribute of another Element object. + + Create two new element nodes and a new attribute node. Attempt to add the same attribute + node to the same two element nodes. + Check if an INUSE_ATTRIBUTE_ERR is thrown. + + Neil Delima + 2002-04-28 + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/elementsetattributenodens05.xml b/test/testcases/tests/level2/core/elementsetattributenodens05.xml new file mode 100644 index 0000000..7ab0f7a --- /dev/null +++ b/test/testcases/tests/level2/core/elementsetattributenodens05.xml @@ -0,0 +1,53 @@ + + + + + + + elementsetattributenodens05 + IBM + + The method setAttributeNodeNS Adds a new attribute and raises + an WRONG_DOCUMENT_ERR if newAttr was created from a different document + than the one that created the element. + Create new element and attribute nodes in different documents. + Attempt to add the attribute node to the element node. + Check if an WRONG_DOCUMENT_ERR is thrown. + + Neil Delima + 2002-04-28 + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/elementsetattributenodens06.xml b/test/testcases/tests/level2/core/elementsetattributenodens06.xml new file mode 100644 index 0000000..186fcf2 --- /dev/null +++ b/test/testcases/tests/level2/core/elementsetattributenodens06.xml @@ -0,0 +1,57 @@ + + + + + + +elementsetattributenodens06 +IBM + + The method setAttributeNodeNS Adds a new attribute and raises an WRONG_DOCUMENT_ERR if this node + is readonly. + + Attempt to add an attribute node to an element node which is part of the replacement text of + a read-only EntityReference node. + Check if a NO_MODIFICATION_ALLOWED_ERR is thrown. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/elementsetattributens01.xml b/test/testcases/tests/level2/core/elementsetattributens01.xml new file mode 100644 index 0000000..ab8e3c2 --- /dev/null +++ b/test/testcases/tests/level2/core/elementsetattributens01.xml @@ -0,0 +1,51 @@ + + + + + + + elementsetattributens01 + IBM + + The method setAttributeNS adds a new attribute. + Create a new element and add a new attribute node to it using the setAttributeNS method. + Check if the attribute was correctly set by invoking the getAttributeNodeNS method + and checking the nodeName and nodeValue of the returned nodes. + + Neil Delima + 2002-04-28 + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/elementsetattributens02.xml b/test/testcases/tests/level2/core/elementsetattributens02.xml new file mode 100644 index 0000000..b7105f6 --- /dev/null +++ b/test/testcases/tests/level2/core/elementsetattributens02.xml @@ -0,0 +1,53 @@ + + + + + + + elementsetattributens02 + IBM + + The method setAttributeNS adds a new attribute. + + Retrieve an existing element node with attributes and add a new attribute node to it using + the setAttributeNS method. Check if the attribute was correctly set by invoking the + getAttributeNodeNS method and checking the nodeName and nodeValue of the returned nodes. + + Neil Delima + 2002-04-28 + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/elementsetattributens03.xml b/test/testcases/tests/level2/core/elementsetattributens03.xml new file mode 100644 index 0000000..968500c --- /dev/null +++ b/test/testcases/tests/level2/core/elementsetattributens03.xml @@ -0,0 +1,57 @@ + + + + + + + elementsetattributens03 + IBM + + The method setAttributeNS adds a new attribute. + Retreive an existing element node with a default attribute node and + add two new attribute nodes that have the same local name as the + default attribute but different namespaceURI to it using the setAttributeNS method. + Check if the attribute was correctly set by invoking the getAttributeNodeNS method + and checking the nodeName and nodeValue of the returned nodes. + + Neil Delima + 2002-04-28 + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/elementsetattributens04.xml b/test/testcases/tests/level2/core/elementsetattributens04.xml new file mode 100644 index 0000000..1c31860 --- /dev/null +++ b/test/testcases/tests/level2/core/elementsetattributens04.xml @@ -0,0 +1,60 @@ + + + + + + + elementsetattributens04 + IBM + + The method setAttributeNS adds a new attribute and raises a INVALID_CHARACTER_ERR if + the specified qualified name contains an illegal character. + Invoke the setAttributeNS method on this Element object with a valid value for + namespaceURI, and qualifiedNames that contain illegal characters. Check if the an + INVALID_CHARACTER_ERR was thrown. + + Neil Delima + 2002-04-28 + + + + + + + "/" + "//" + "\\" + ";" + "&" + "*" + "]]" + ">" + "<" + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/elementsetattributens05.xml b/test/testcases/tests/level2/core/elementsetattributens05.xml new file mode 100644 index 0000000..0f32689 --- /dev/null +++ b/test/testcases/tests/level2/core/elementsetattributens05.xml @@ -0,0 +1,46 @@ + + + + + + + elementsetattributens05 + IBM + + The method setAttributeNS adds a new attribute and raises a NAMESPACE_ERR if the + qualifiedName has a prefix and the namespaceURI is null. + Invoke the setAttributeNS method on a new Element object with null namespaceURI and a + qualifiedName that has a namespace prefix. Check if the NAMESPACE_ERR was thrown. + + Neil Delima + 2002-04-28 + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/elementsetattributens08.xml b/test/testcases/tests/level2/core/elementsetattributens08.xml new file mode 100644 index 0000000..17fcccb --- /dev/null +++ b/test/testcases/tests/level2/core/elementsetattributens08.xml @@ -0,0 +1,56 @@ + + + + + + + elementsetattributens08 + IBM + + The method setAttributeNS adds a new attribute and raises a NAMESPACE_ERR + if the qualifiedName, or its prefix, is "xmlns" and the namespaceURI is + different from "http://www.w3.org/2000/xmlns/". + + Invoke the setAttributeNS method on a new Element object with namespaceURI that is + http://www.w3.org/DOMTest/level2 and a qualifiedName that has the prefix xmlns and once + again with a qualifiedName that is xmlns. + Check if the NAMESPACE_ERR was thrown. + + Neil Delima + 2002-04-28 + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/elementsetattributensurinull.xml b/test/testcases/tests/level2/core/elementsetattributensurinull.xml new file mode 100644 index 0000000..e7568fe --- /dev/null +++ b/test/testcases/tests/level2/core/elementsetattributensurinull.xml @@ -0,0 +1,49 @@ + + + + + + +elementSetAttributeNSURINull +NIST + + The "setAttributeNS(namespaceURI,qualifiedName,value)" method raises a + NAMESPACE_ERR DOMException if the specified + qualifiedName has a prefix and the namespaceURI is null. + + Attempt to add a new attribute on the first employee node. + An exception should be raised since the "qualifiedName" has a + prefix and the namespaceURI is null. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/files/.cvsignore b/test/testcases/tests/level2/core/files/.cvsignore new file mode 100644 index 0000000..e69de29 diff --git a/test/testcases/tests/level2/core/files/CVS/Entries b/test/testcases/tests/level2/core/files/CVS/Entries new file mode 100644 index 0000000..891b62c --- /dev/null +++ b/test/testcases/tests/level2/core/files/CVS/Entries @@ -0,0 +1,21 @@ +/.cvsignore/1.2/Fri Apr 3 02:47:56 2009// +/hc_staff.html/1.6/Fri Apr 3 02:47:56 2009// +/hc_staff.svg/1.4/Fri Apr 3 02:47:56 2009// +/hc_staff.xhtml/1.6/Fri Apr 3 02:47:56 2009// +/hc_staff.xml/1.6/Fri Apr 3 02:47:56 2009// +/internalSubset01.js/1.1/Fri Apr 3 02:47:56 2009/-kb/ +/nodtdstaff.svg/1.2/Fri Apr 3 02:47:56 2009// +/nodtdstaff.xml/1.1/Fri Apr 3 02:47:56 2009// +/staff.dtd/1.1/Fri Apr 3 02:47:56 2009// +/staff.svg/1.2/Fri Apr 3 02:47:56 2009// +/staff.xml/1.1/Fri Apr 3 02:47:56 2009// +/staff2.dtd/1.2/Fri Apr 3 02:47:56 2009// +/staff2.svg/1.1/Fri Apr 3 02:47:56 2009/-kb/ +/staff2.xml/1.1/Fri Apr 3 02:47:56 2009// +/staffNS.dtd/1.1/Fri Apr 3 02:47:56 2009// +/staffNS.svg/1.3/Fri Apr 3 02:47:56 2009// +/staffNS.xml/1.2/Fri Apr 3 02:47:56 2009// +/svgtest.js/1.2/Fri Apr 3 02:47:56 2009/-kb/ +/svgunit.js/1.2/Fri Apr 3 02:47:56 2009/-kb/ +/xhtml1-strict.dtd/1.5/Fri Apr 3 02:47:56 2009/-kb/ +D diff --git a/test/testcases/tests/level2/core/files/CVS/Repository b/test/testcases/tests/level2/core/files/CVS/Repository new file mode 100644 index 0000000..f7019ed --- /dev/null +++ b/test/testcases/tests/level2/core/files/CVS/Repository @@ -0,0 +1 @@ +2001/DOM-Test-Suite/tests/level2/core/files diff --git a/test/testcases/tests/level2/core/files/CVS/Root b/test/testcases/tests/level2/core/files/CVS/Root new file mode 100644 index 0000000..3c7177e --- /dev/null +++ b/test/testcases/tests/level2/core/files/CVS/Root @@ -0,0 +1 @@ +:pserver:anonymous@dev.w3.org:/sources/public diff --git a/test/testcases/tests/level2/core/files/CVS/Template b/test/testcases/tests/level2/core/files/CVS/Template new file mode 100644 index 0000000..e69de29 diff --git a/test/testcases/tests/level2/core/files/hc_staff.html b/test/testcases/tests/level2/core/files/hc_staff.html new file mode 100644 index 0000000..9acf750 --- /dev/null +++ b/test/testcases/tests/level2/core/files/hc_staff.html @@ -0,0 +1,48 @@ + + +hc_staff +

+ EMP0001 + Margaret Martin + Accountant + 56,000 + Female + 1230 North Ave. Dallas, Texas 98551 +

+

+ EMP0002 + Martha RaynoldsThis is a CDATASection with EntityReference number 2 &ent2; +This is an adjacent CDATASection with a reference to a tab &tab; + Secretary + 35,000 + Female + β Dallas, γ + 98554 +

+

+ EMP0003 + Roger + Jones + Department Manager + 100,000 + δ + PO Box 27 Irving, texas 98553 +

+

+ EMP0004 + Jeny Oconnor + Personnel Director + 95,000 + Female + 27 South Road. Dallas, Texas 98556 +

+

+ EMP0005 + Robert Myers + Computer Specialist + 90,000 + male + 1821 Nordic. Road, Irving Texas 98558 +

+ diff --git a/test/testcases/tests/level2/core/files/hc_staff.svg b/test/testcases/tests/level2/core/files/hc_staff.svg new file mode 100644 index 0000000..cd0cc47 --- /dev/null +++ b/test/testcases/tests/level2/core/files/hc_staff.svg @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + +]> + +hc_staff +

+ EMP0001 + Margaret Martin + Accountant + 56,000 + Female + 1230 North Ave. Dallas, Texas 98551 +

+

+ EMP0002 + Martha RaynoldsThis is a CDATASection with EntityReference number 2 &ent2; +This is an adjacent CDATASection with a reference to a tab &tab; + Secretary + 35,000 + Female + β Dallas, γ + 98554 +

+

+ EMP0003 + Roger + Jones + Department Manager + 100,000 + δ + PO Box 27 Irving, texas 98553 +

+

+ EMP0004 + Jeny Oconnor + Personnel Director + 95,000 + Female + 27 South Road. Dallas, Texas 98556 +

+

+ EMP0005 + Robert Myers + Computer Specialist + 90,000 + male + 1821 Nordic. Road, Irving Texas 98558 +

+ diff --git a/test/testcases/tests/level2/core/files/hc_staff.xhtml b/test/testcases/tests/level2/core/files/hc_staff.xhtml new file mode 100644 index 0000000..2df9a74 --- /dev/null +++ b/test/testcases/tests/level2/core/files/hc_staff.xhtml @@ -0,0 +1,60 @@ + + + + + + + + + + +]> + +hc_staff +

+ EMP0001 + Margaret Martin + Accountant + 56,000 + Female + 1230 North Ave. Dallas, Texas 98551 +

+

+ EMP0002 + Martha RaynoldsThis is a CDATASection with EntityReference number 2 &ent2; +This is an adjacent CDATASection with a reference to a tab &tab; + Secretary + 35,000 + Female + β Dallas, γ + 98554 +

+

+ EMP0003 + Roger + Jones + Department Manager + 100,000 + δ + PO Box 27 Irving, texas 98553 +

+

+ EMP0004 + Jeny Oconnor + Personnel Director + 95,000 + Female + 27 South Road. Dallas, Texas 98556 +

+

+ EMP0005 + Robert Myers + Computer Specialist + 90,000 + male + 1821 Nordic. Road, Irving Texas 98558 +

+ diff --git a/test/testcases/tests/level2/core/files/hc_staff.xml b/test/testcases/tests/level2/core/files/hc_staff.xml new file mode 100644 index 0000000..2df9a74 --- /dev/null +++ b/test/testcases/tests/level2/core/files/hc_staff.xml @@ -0,0 +1,60 @@ + + + + + + + + + + +]> + +hc_staff +

+ EMP0001 + Margaret Martin + Accountant + 56,000 + Female + 1230 North Ave. Dallas, Texas 98551 +

+

+ EMP0002 + Martha RaynoldsThis is a CDATASection with EntityReference number 2 &ent2; +This is an adjacent CDATASection with a reference to a tab &tab; + Secretary + 35,000 + Female + β Dallas, γ + 98554 +

+

+ EMP0003 + Roger + Jones + Department Manager + 100,000 + δ + PO Box 27 Irving, texas 98553 +

+

+ EMP0004 + Jeny Oconnor + Personnel Director + 95,000 + Female + 27 South Road. Dallas, Texas 98556 +

+

+ EMP0005 + Robert Myers + Computer Specialist + 90,000 + male + 1821 Nordic. Road, Irving Texas 98558 +

+ diff --git a/test/testcases/tests/level2/core/files/internalSubset01.js b/test/testcases/tests/level2/core/files/internalSubset01.js new file mode 100644 index 0000000..e69de29 diff --git a/test/testcases/tests/level2/core/files/nodtdstaff.svg b/test/testcases/tests/level2/core/files/nodtdstaff.svg new file mode 100644 index 0000000..01aa823 --- /dev/null +++ b/test/testcases/tests/level2/core/files/nodtdstaff.svg @@ -0,0 +1,11 @@ + + + + EMP0001 + Margaret Martin + Accountant + 56,000 + Female +
1230 North Ave. Dallas, Texas 98551
+
+
diff --git a/test/testcases/tests/level2/core/files/nodtdstaff.xml b/test/testcases/tests/level2/core/files/nodtdstaff.xml new file mode 100644 index 0000000..054a5e1 --- /dev/null +++ b/test/testcases/tests/level2/core/files/nodtdstaff.xml @@ -0,0 +1,11 @@ + + + + EMP0001 + Margaret Martin + Accountant + 56,000 + Female +
1230 North Ave. Dallas, Texas 98551
+
+
diff --git a/test/testcases/tests/level2/core/files/staff.dtd b/test/testcases/tests/level2/core/files/staff.dtd new file mode 100644 index 0000000..02a994d --- /dev/null +++ b/test/testcases/tests/level2/core/files/staff.dtd @@ -0,0 +1,17 @@ + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/files/staff.svg b/test/testcases/tests/level2/core/files/staff.svg new file mode 100644 index 0000000..fd67323 --- /dev/null +++ b/test/testcases/tests/level2/core/files/staff.svg @@ -0,0 +1,72 @@ + + + + + Element data"> + + + + + + + + + + + + + +]> + + + + EMP0001 + Margaret Martin + Accountant + 56,000 + Female +
1230 North Ave. Dallas, Texas 98551
+
+ + EMP0002 + Martha RaynoldsThis is a CDATASection with EntityReference number 2 &ent2; +This is an adjacent CDATASection with a reference to a tab &tab; + Secretary + 35,000 + Female +
&ent2; Dallas, &ent3; + 98554
+
+ + EMP0003 + Roger + Jones + Department Manager + 100,000 + &ent4; +
PO Box 27 Irving, texas 98553
+
+ + EMP0004 + Jeny Oconnor + Personnel Director + 95,000 + Female +
27 South Road. Dallas, Texas 98556
+
+ + EMP0005 + Robert Myers + Computer Specialist + 90,000 + male +
1821 Nordic. Road, Irving Texas 98558
+
+
diff --git a/test/testcases/tests/level2/core/files/staff.xml b/test/testcases/tests/level2/core/files/staff.xml new file mode 100644 index 0000000..f89c510 --- /dev/null +++ b/test/testcases/tests/level2/core/files/staff.xml @@ -0,0 +1,57 @@ + + + + + Element data"> + + + + +]> + + + + EMP0001 + Margaret Martin + Accountant + 56,000 + Female +
1230 North Ave. Dallas, Texas 98551
+
+ + EMP0002 + Martha Raynolds + + Secretary + 35,000 + Female +
&ent2; Dallas, &ent3; + 98554
+
+ + EMP0003 + Roger + Jones + Department Manager + 100,000 + &ent4; +
PO Box 27 Irving, texas 98553
+
+ + EMP0004 + Jeny Oconnor + Personnel Director + 95,000 + Female +
27 South Road. Dallas, Texas 98556
+
+ + EMP0005 + Robert Myers + Computer Specialist + 90,000 + male +
1821 Nordic. Road, Irving Texas 98558
+
+
diff --git a/test/testcases/tests/level2/core/files/staff2.dtd b/test/testcases/tests/level2/core/files/staff2.dtd new file mode 100644 index 0000000..0bac8f2 --- /dev/null +++ b/test/testcases/tests/level2/core/files/staff2.dtd @@ -0,0 +1,24 @@ + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/files/staff2.svg b/test/testcases/tests/level2/core/files/staff2.svg new file mode 100644 index 0000000..6f89dad --- /dev/null +++ b/test/testcases/tests/level2/core/files/staff2.svg @@ -0,0 +1,13 @@ + + + + + + EMP0001 + Margaret Martin + Accountant + 56,000 + Female +
1230 North Ave. Dallas, Texas 98551
+
+
diff --git a/test/testcases/tests/level2/core/files/staff2.xml b/test/testcases/tests/level2/core/files/staff2.xml new file mode 100644 index 0000000..d3d9a13 --- /dev/null +++ b/test/testcases/tests/level2/core/files/staff2.xml @@ -0,0 +1,13 @@ + + + + + + EMP0001 + Margaret Martin + Accountant + 56,000 + Female +
1230 North Ave. Dallas, Texas 98551
+
+
diff --git a/test/testcases/tests/level2/core/files/staffNS.dtd b/test/testcases/tests/level2/core/files/staffNS.dtd new file mode 100644 index 0000000..7643773 --- /dev/null +++ b/test/testcases/tests/level2/core/files/staffNS.dtd @@ -0,0 +1,45 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/files/staffNS.svg b/test/testcases/tests/level2/core/files/staffNS.svg new file mode 100644 index 0000000..7a7c26e --- /dev/null +++ b/test/testcases/tests/level2/core/files/staffNS.svg @@ -0,0 +1,73 @@ + + + + + Element data"> + + + + + + + + + + + + + +]> + + + + EMP0001 + Margaret Martin + Accountant + 56,000 + Female +
1230 North Ave. Dallas, Texas 98551
+
+ + EMP0002 + Martha Raynolds +This is a CDATASection with EntityReference number 2 &ent2; +This is an adjacent CDATASection with a reference to a tab &tab; + Secretary + 35,000 + Female +
&ent2; Dallas, &ent3; + 98554
+
+ + EMP0003 + Roger + Jones + Department Manager + 100,000 + &ent4; +
PO Box 27 Irving, texas 98553
+
+ EMP0004 + Jeny Oconnor + Personnel Director + 95,000 + Female + 27 South Road. Dallas, texas 98556 + + + EMP0005 + Robert Myers + Computer Specialist + 90,000 + male +
1821 Nordic. Road, Irving Texas 98558
+
+
diff --git a/test/testcases/tests/level2/core/files/staffNS.xml b/test/testcases/tests/level2/core/files/staffNS.xml new file mode 100644 index 0000000..1cb1459 --- /dev/null +++ b/test/testcases/tests/level2/core/files/staffNS.xml @@ -0,0 +1,59 @@ + + + + + Element data"> + + + + + +]> + + + + EMP0001 + Margaret Martin + Accountant + 56,000 + Female +
1230 North Ave. Dallas, Texas 98551
+
+ + EMP0002 + Martha Raynolds + + + Secretary + 35,000 + Female +
&ent2; Dallas, &ent3; + 98554
+
+ + EMP0003 + Roger + Jones + Department Manager + 100,000 + &ent4; +
PO Box 27 Irving, texas 98553
+
+ EMP0004 + Jeny Oconnor + Personnel Director + 95,000 + Female + 27 South Road. Dallas, texas 98556 + + + EMP0005 + Robert Myers + Computer Specialist + 90,000 + male +
1821 Nordic. Road, Irving Texas 98558
+
+
diff --git a/test/testcases/tests/level2/core/files/svgtest.js b/test/testcases/tests/level2/core/files/svgtest.js new file mode 100644 index 0000000..e69de29 diff --git a/test/testcases/tests/level2/core/files/svgunit.js b/test/testcases/tests/level2/core/files/svgunit.js new file mode 100644 index 0000000..e69de29 diff --git a/test/testcases/tests/level2/core/files/xhtml1-strict.dtd b/test/testcases/tests/level2/core/files/xhtml1-strict.dtd new file mode 100644 index 0000000..fefb77f --- /dev/null +++ b/test/testcases/tests/level2/core/files/xhtml1-strict.dtd @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/getAttributeNS01.xml b/test/testcases/tests/level2/core/getAttributeNS01.xml new file mode 100644 index 0000000..347f967 --- /dev/null +++ b/test/testcases/tests/level2/core/getAttributeNS01.xml @@ -0,0 +1,50 @@ + + + + + + +getAttributeNS01 +NIST + + The "getAttributeNS(namespaceURI,localName)" method retrieves an + attribute value by local name and NamespaceURI. + + Retrieve the first "emp:address" element. + The value returned by the "getAttributeNS()" method should be the + value "DISTRICT" since the attribute has a default value. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/getAttributeNS02.xml b/test/testcases/tests/level2/core/getAttributeNS02.xml new file mode 100644 index 0000000..bc7c65f --- /dev/null +++ b/test/testcases/tests/level2/core/getAttributeNS02.xml @@ -0,0 +1,55 @@ + + + + + + +getAttributeNS02 +NIST + + The "getAttributeNS(namespaceURI,localName)" method retrieves an + attribute value by local name and NamespaceURI. + + Retrieve the first "emp:address" element. + Create a new attribute with the "createAttributeNS()" method. + Add the new attribute with the "setAttributeNS()" method. + The value returned by the "getAttributeNS()" method should be the + empty string since the attribute does not have a default value. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/getAttributeNS03.xml b/test/testcases/tests/level2/core/getAttributeNS03.xml new file mode 100644 index 0000000..4e24f22 --- /dev/null +++ b/test/testcases/tests/level2/core/getAttributeNS03.xml @@ -0,0 +1,48 @@ + + + + + + +getAttributeNS03 +NIST + + The "getAttributeNS(namespaceURI,localName)" method retrieves an + attribute value by local name and NamespaceURI. + + Retrieve the first "emp:address" element. + The value returned by the "getAttributeNS()" method for the emp:domestic attribute + should be the empty string since the attribute does not have a specified value + because it was removed by the "removeAttributeNS()" method. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/getAttributeNS04.xml b/test/testcases/tests/level2/core/getAttributeNS04.xml new file mode 100644 index 0000000..8d6c7ad --- /dev/null +++ b/test/testcases/tests/level2/core/getAttributeNS04.xml @@ -0,0 +1,53 @@ + + + + + + +getAttributeNS04 +NIST + + The "getAttributeNS(namespaceURI,localName)" method retrieves an + attribute value by local name and NamespaceURI. + + Retrieve the first "emp:address" element. + Create a new attribute with the "createAttributeNS()" method. + Add the new attribute and value with the "setAttributeNS()" method. + The value returned by the "getAttributeNS()" method should be + the string "NewValue" since the attribute had a specified value. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/getAttributeNS05.xml b/test/testcases/tests/level2/core/getAttributeNS05.xml new file mode 100644 index 0000000..54265fc --- /dev/null +++ b/test/testcases/tests/level2/core/getAttributeNS05.xml @@ -0,0 +1,47 @@ + + + + + + +getAttributeNS05 +NIST + + The "getAttributeNS(namespaceURI,localName)" method retrieves an + attribute value by local name and NamespaceURI. + + Retrieve the first emp:address element node + and retrieve the emp:domestic attribute. The method returns an + Attr value as a string, the "value" can be examined to ensure the + proper attribute value was retrieved. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/getAttributeNodeNS01.xml b/test/testcases/tests/level2/core/getAttributeNodeNS01.xml new file mode 100644 index 0000000..9ab3e7a --- /dev/null +++ b/test/testcases/tests/level2/core/getAttributeNodeNS01.xml @@ -0,0 +1,48 @@ + + + + + + +getAttributeNodeNS01 +NIST + + The "getAttributeNodeNS(namespaceURI,localName)" method retrieves an + attribute node by local name and NamespaceURI. + + Retrieve the first emp:address element node. + The getAttributeNodeNS method returns an + Attr node, the "value" can be examined to ensure the + proper attribute node was retrieved. This attribute + value should be null since there is no such attribute. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/getAttributeNodeNS02.xml b/test/testcases/tests/level2/core/getAttributeNodeNS02.xml new file mode 100644 index 0000000..86dfb38 --- /dev/null +++ b/test/testcases/tests/level2/core/getAttributeNodeNS02.xml @@ -0,0 +1,49 @@ + + + + + + +getAttributeNodeNS02 +NIST + + The "getAttributeNodeNS(namespaceURI,localName)" method retrieves an + attribute node by local name and NamespaceURI. + + Retrieve the first emp:address element node. + The getAttributeNodeNS method returns an + Attr node, the "value" can be examined to ensure the + proper attribute node was retrieved. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/getElementById01.xml b/test/testcases/tests/level2/core/getElementById01.xml new file mode 100644 index 0000000..8992311 --- /dev/null +++ b/test/testcases/tests/level2/core/getElementById01.xml @@ -0,0 +1,45 @@ + + + + + + +getElementById01 +NIST + + The "getElementById(elementId)" method for a + Document should return an element whose ID matches elementId. + + Invoke method getElementById(elementId) on this document + with elementId equals "CANADA". Method should return an element + whose tag name is "emp:address". + +Mary Brady +2001-08-17 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/getElementById02.xml b/test/testcases/tests/level2/core/getElementById02.xml new file mode 100644 index 0000000..8fe1eb2 --- /dev/null +++ b/test/testcases/tests/level2/core/getElementById02.xml @@ -0,0 +1,40 @@ + + + + + + +getElementById02 +NIST + + + The "getElementById(elementId)" method for a + Document should return null if elementId does not identify any + elements in this document. + + Invoke method getElementById(elementId) on this document + with elementId equals "Cancun". Method should return null. + +Mary Brady +2001-08-17 + + + + + + + + diff --git a/test/testcases/tests/level2/core/getElementsByTagNameNS01.xml b/test/testcases/tests/level2/core/getElementsByTagNameNS01.xml new file mode 100644 index 0000000..68e93ac --- /dev/null +++ b/test/testcases/tests/level2/core/getElementsByTagNameNS01.xml @@ -0,0 +1,42 @@ + + + + + + +getElementsByTagNameNS01 +NIST + + Invoke method getElementsByTagNameNS(namespaceURI,localName) on this document + with namespaceURI and localName as "*" and check size of returned node list. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/getElementsByTagNameNS02.xml b/test/testcases/tests/level2/core/getElementsByTagNameNS02.xml new file mode 100644 index 0000000..31aee93 --- /dev/null +++ b/test/testcases/tests/level2/core/getElementsByTagNameNS02.xml @@ -0,0 +1,52 @@ + + + + + + +getElementsByTagNameNS02 +NIST + + The "getElementsByTagNameNS(namespaceURI,localName)" method for a + Document should return a new NodeList of all Elements with a given + localName and namespaceURI in the order they were encountered in a preorder + traversal of the document tree. + + Invoke method getElementsByTagNameNS(namespaceURI,localName) on this document + with namespaceURI being " " and localName is "employee". + Method should return a new NodeList containing five Elements. + Retrieve the FOURTH element whose name should be "emp:employee". + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/getElementsByTagNameNS03.xml b/test/testcases/tests/level2/core/getElementsByTagNameNS03.xml new file mode 100644 index 0000000..0040ddc --- /dev/null +++ b/test/testcases/tests/level2/core/getElementsByTagNameNS03.xml @@ -0,0 +1,67 @@ + + + + + + +getElementsByTagNameNS03 +NIST + + The "getElementsByTagNameNS(namespaceURI,localName)" method returns a NodeList + of all descendant Elements with a given local name and namespace URI in the + order in which they are encountered in a preorder traversal of this Element tree. + + Create a NodeList of all the descendant elements + using the "http://www.nist.gov" as the namespaceURI and the special value " " as the + localName. + The method should return a NodeList of elements that have "http://www.nist.gov + as a namespace URI. + +Mary Brady +2001-08-17 + + + + + + + + + + +"employee" +"employeeId" +"name" +"position" +"salary" +"gender" +"address" +"emp:employee" +"emp:employeeId" +"emp:position" +"emp:salary" +"emp:gender" +"emp:address" +"address" + + + + + + + + + diff --git a/test/testcases/tests/level2/core/getElementsByTagNameNS04.xml b/test/testcases/tests/level2/core/getElementsByTagNameNS04.xml new file mode 100644 index 0000000..1c440d5 --- /dev/null +++ b/test/testcases/tests/level2/core/getElementsByTagNameNS04.xml @@ -0,0 +1,57 @@ + + + + + + +getElementsByTagNameNS04 +NIST + + The "getElementsByTagNameNS(namespaceURI,localName)" method returns a NodeList + of all descendant Elements with a given local name and namespace URI in the + order in which they are encountered in a preorder traversal of this Element tree. + + Create a NodeList of all the descendant elements + using the special value " " as the namespaceURI and "address" as the + localName. + The method should return a NodeList of Elements that have + "address" as the local name. + +Mary Brady +2001-08-17 + + + + + + + + + +"address" +"address" +"address" +"emp:address" +"address" + + + + + + + + + diff --git a/test/testcases/tests/level2/core/getElementsByTagNameNS05.xml b/test/testcases/tests/level2/core/getElementsByTagNameNS05.xml new file mode 100644 index 0000000..db45514 --- /dev/null +++ b/test/testcases/tests/level2/core/getElementsByTagNameNS05.xml @@ -0,0 +1,44 @@ + + + + + + +getElementsByTagNameNS05 +NIST + + The "getElementsByTagNameNS(namespaceURI,localName)" method returns a NodeList + of all descendant Elements with a given local name and namespace URI in the + order in which they are encountered in a preorder traversal of this Element tree. + + Create a NodeList of all the descendant elements + using the "http://www.nist.gov" as the namespaceURI and "nomatch" as the + localName. + The method should return a NodeList whose length is + "0". + +Mary Brady +2001-08-17 + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/getElementsByTagNameNS06.xml b/test/testcases/tests/level2/core/getElementsByTagNameNS06.xml new file mode 100644 index 0000000..3d72c88 --- /dev/null +++ b/test/testcases/tests/level2/core/getElementsByTagNameNS06.xml @@ -0,0 +1,44 @@ + + + + + + +getElementsByTagNameNS06 +NIST + + The "getElementsByTagNameNS(namespaceURI,localName)" method returns a NodeList + of all descendant Elements with a given local name and namespace URI in the + order in which they are encountered in a preorder traversal of this Element tree. + + Create a NodeList of all the descendant elements + using the "http://www.nomatch.com" as the namespaceURI and "address" as the + localName. + The method should return a NodeList whose length is + "0". + +Mary Brady +2001-08-17 + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/getElementsByTagNameNS07.xml b/test/testcases/tests/level2/core/getElementsByTagNameNS07.xml new file mode 100644 index 0000000..28e5323 --- /dev/null +++ b/test/testcases/tests/level2/core/getElementsByTagNameNS07.xml @@ -0,0 +1,43 @@ + + + + + + +getElementsByTagNameNS07 +NIST + + The "getElementsByTagNameNS(namespaceURI,localName)" method returns a NodeList + of all descendant Elements with a given local name and namespace URI in the + order in which they are encountered in a preorder traversal of this Element tree. + + Create a NodeList of all the descendant elements + using the string "http://www.nist.gov" as the namespaceURI and "address" as the + localName. + The method should return a NodeList whose length is + "3". + +Mary Brady +2001-08-17 + + + + + + + + + diff --git a/test/testcases/tests/level2/core/getElementsByTagNameNS08.xml b/test/testcases/tests/level2/core/getElementsByTagNameNS08.xml new file mode 100644 index 0000000..0b42bb4 --- /dev/null +++ b/test/testcases/tests/level2/core/getElementsByTagNameNS08.xml @@ -0,0 +1,47 @@ + + + + + + + +getElementsByTagNameNS08 +Curt Arnold + + Element.getElementsByTagNameNS('*','*') should return all child + elements. There is some contention on whether this should match + unqualified elements, this test reflects the interpretation that + '*' should match elements in all namespaces and unqualified elements. + + Derived from getElementsByTagNameNS01 which tests similar functionality + on the Document interface. + +2001-02-28 + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/getElementsByTagNameNS09.xml b/test/testcases/tests/level2/core/getElementsByTagNameNS09.xml new file mode 100644 index 0000000..7fcee81 --- /dev/null +++ b/test/testcases/tests/level2/core/getElementsByTagNameNS09.xml @@ -0,0 +1,58 @@ + + + + + + + +getElementsByTagNameNS09 +Curt Arnold + + The "getElementsByTagNameNS(namespaceURI,localName)" method for a + Element should return a new NodeList of all descendant Elements with a given + localName and namespaceURI in the order they were encountered in a preorder + traversal of the document tree. + + Invoke method getElementsByTagNameNS(namespaceURI,localName) on the document + element with namespaceURI being "*" and localName is "employee". + Method should return a new NodeList containing five Elements. + Retrieve the FOURTH element whose name should be "emp:employee". + + Derived from getElementsByTagNameNS02 and reflects its interpretation + that namespace="*" matches namespace unqualified tagnames. + +Curt Arnold +2001-02-28 + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/getElementsByTagNameNS10.xml b/test/testcases/tests/level2/core/getElementsByTagNameNS10.xml new file mode 100644 index 0000000..956e965 --- /dev/null +++ b/test/testcases/tests/level2/core/getElementsByTagNameNS10.xml @@ -0,0 +1,72 @@ + + + + + + + +getElementsByTagNameNS10 +Curt Arnold + + The "getElementsByTagNameNS(namespaceURI,localName)" method returns a NodeList + of all descendant Elements with a given local name and namespace URI in the + order in which they are encountered in a preorder traversal of this Element tree. + + Create a NodeList of all the descendant elements of the document element + using the "http://www.nist.gov" as the namespaceURI and the special value "*" as the + localName. + The method should return a NodeList of elements that have "http://www.nist.gov + as a namespace URI. + + Derived from getElementsByTagNameNS03 + +Curt Arnold +2002-02-28 + + + + + + + + + + + +"employee" +"employeeId" +"name" +"position" +"salary" +"gender" +"address" +"emp:employee" +"emp:employeeId" +"emp:position" +"emp:salary" +"emp:gender" +"emp:address" +"address" + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/getElementsByTagNameNS11.xml b/test/testcases/tests/level2/core/getElementsByTagNameNS11.xml new file mode 100644 index 0000000..3dd2c36 --- /dev/null +++ b/test/testcases/tests/level2/core/getElementsByTagNameNS11.xml @@ -0,0 +1,61 @@ + + + + + + + +getElementsByTagNameNS11 +Curt Arnold + + The "getElementsByTagNameNS(namespaceURI,localName)" method returns a NodeList + of all descendant Elements with a given local name and namespace URI in the + order in which they are encountered in a preorder traversal of this Element tree. + + Create a NodeList of all the descendant elements + using the special value "*" as the namespaceURI and "address" as the + localName. + The method should return a NodeList of Elements that have + "address" as the local name. + + This test is derived from getElementsByTagNameNS04 + +2002-02-28 + + + + + + + + + + +"address" +"address" +"address" +"emp:address" +"address" + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/getElementsByTagNameNS12.xml b/test/testcases/tests/level2/core/getElementsByTagNameNS12.xml new file mode 100644 index 0000000..705ee6f --- /dev/null +++ b/test/testcases/tests/level2/core/getElementsByTagNameNS12.xml @@ -0,0 +1,45 @@ + + + + + + + +getElementsByTagNameNS12 +Curt Arnold + + The "getElementsByTagNameNS(namespaceURI,localName)" method returns a NodeList + of all descendant Elements with a given local name and namespace URI in the + order in which they are encountered in a preorder traversal of this Element tree. + + Create a NodeList of all the descendant elements + using the "http://www.nist.gov" as the namespaceURI and "nomatch" as the + localName. + The method should return a NodeList whose length is "0". + + This test is a modification of getElementsByTagName05 + +2001-02-28 + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/getElementsByTagNameNS13.xml b/test/testcases/tests/level2/core/getElementsByTagNameNS13.xml new file mode 100644 index 0000000..f806876 --- /dev/null +++ b/test/testcases/tests/level2/core/getElementsByTagNameNS13.xml @@ -0,0 +1,46 @@ + + + + + + + +getElementsByTagNameNS13 +Curt Arnold + + The "getElementsByTagNameNS(namespaceURI,localName)" method returns a NodeList + of all descendant Elements with a given local name and namespace URI in the + order in which they are encountered in a preorder traversal of this Element tree. + + Create a NodeList of all the descendant elements + using the "http://www.nomatch.com" as the namespaceURI and "address" as the + localName. + The method should return a NodeList whose length is + "0". + +2001-02-28 + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/getElementsByTagNameNS14.xml b/test/testcases/tests/level2/core/getElementsByTagNameNS14.xml new file mode 100644 index 0000000..bd6ed47 --- /dev/null +++ b/test/testcases/tests/level2/core/getElementsByTagNameNS14.xml @@ -0,0 +1,45 @@ + + + + + + + +getElementsByTagNameNS14 +Curt Arnold + + The "getElementsByTagNameNS(namespaceURI,localName)" method returns a NodeList + of all descendant Elements with a given local name and namespace URI in the + order in which they are encountered in a preorder traversal of this Element tree. + + Create a NodeList of all the descendant elements + using the string "http://www.nist.gov" as the namespaceURI and "address" as the + localName. + The method should return a NodeList whose length is + "3". + +2002-02-28 + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/getNamedItemNS01.xml b/test/testcases/tests/level2/core/getNamedItemNS01.xml new file mode 100644 index 0000000..aaecc27 --- /dev/null +++ b/test/testcases/tests/level2/core/getNamedItemNS01.xml @@ -0,0 +1,51 @@ + + + + + + +getNamedItemNS01 +NIST + + The "getNamedItemNS(namespaceURI,localName)" method for a + NamedNodeMap should return a node specified by localName and namespaceURI + + Retrieve a list of elements with tag name "address". + Access the second element from the list and get its attributes. + Try to retrieve the attribute node with local name "domestic" + and namespace uri "http://www.usa.com" with + method getNamedItemNS(namespaceURI,localName). + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/getNamedItemNS02.xml b/test/testcases/tests/level2/core/getNamedItemNS02.xml new file mode 100644 index 0000000..33347d4 --- /dev/null +++ b/test/testcases/tests/level2/core/getNamedItemNS02.xml @@ -0,0 +1,51 @@ + + + + + + +getNamedItemNS02 +NIST + + The "getNamedItemNS(namespaceURI,localName)" method for a + NamedNodeMap should return null + if parameters do not identify any node in this map. + + Retrieve a list of elements with tag name "address". + Access the second element from the list and get its attributes. + Try to retrieve an attribute node with local name "domest" + and namespace uri "http://www.usa.com" with + method getNamedItemNS(namespaceURI,localName). + This should return null because "domest" does not match any local names in this map. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/getNamedItemNS03.xml b/test/testcases/tests/level2/core/getNamedItemNS03.xml new file mode 100644 index 0000000..e3a993a --- /dev/null +++ b/test/testcases/tests/level2/core/getNamedItemNS03.xml @@ -0,0 +1,43 @@ + + + + + + + +getNamedItemNS03 +Curt Arnold + +Entity nodes are not namespaced and should not be retrievable using +getNamedItemNS. + +Curt Arnold +2003-11-26 + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/getNamedItemNS04.xml b/test/testcases/tests/level2/core/getNamedItemNS04.xml new file mode 100644 index 0000000..cf38dba --- /dev/null +++ b/test/testcases/tests/level2/core/getNamedItemNS04.xml @@ -0,0 +1,43 @@ + + + + + + + +getNamedItemNS04 +Curt Arnold + +Notation nodes are not namespaced and should not be retrievable using +getNamedItemNS. + +Curt Arnold +2003-11-26 + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/hasAttribute01.xml b/test/testcases/tests/level2/core/hasAttribute01.xml new file mode 100644 index 0000000..1a2e35e --- /dev/null +++ b/test/testcases/tests/level2/core/hasAttribute01.xml @@ -0,0 +1,42 @@ + + + + + + +hasAttribute01 +NIST + + The "hasAttribute()" method for an Element should + return true if the element has an attribute with the given name. + + Retrieve the first "address" element and the "hasAttribute()" method + should return false since the element does not have a default value. + +Mary Brady +2001-08-17 + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/hasAttribute02.xml b/test/testcases/tests/level2/core/hasAttribute02.xml new file mode 100644 index 0000000..431a898 --- /dev/null +++ b/test/testcases/tests/level2/core/hasAttribute02.xml @@ -0,0 +1,45 @@ + + + + + + +hasAttribute02 +NIST + + The "hasAttribute()" method for an Element should + return true if the element has an attribute with the given name. + + Retrieve the first "address" element and the "hasAttribute()" method + should return true since the attribute "street" has a default value. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/hasAttribute03.xml b/test/testcases/tests/level2/core/hasAttribute03.xml new file mode 100644 index 0000000..44f39c1 --- /dev/null +++ b/test/testcases/tests/level2/core/hasAttribute03.xml @@ -0,0 +1,42 @@ + + + + + + +hasAttribute03 +NIST + + The "hasAttribute()" method for an Element should + return false if the element does not have an attribute with the given name. + + Retrieve the first "address" element and the "hasAttribute()" method + should return false since the element does not have "nomatch" as an attribute. + +Mary Brady +2001-08-17 + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/hasAttribute04.xml b/test/testcases/tests/level2/core/hasAttribute04.xml new file mode 100644 index 0000000..df58285 --- /dev/null +++ b/test/testcases/tests/level2/core/hasAttribute04.xml @@ -0,0 +1,45 @@ + + + + + + +hasAttribute04 +NIST + + The "hasAttribute()" method for an Element should + return true if the element has an attribute with the given name. + + Retrieve the first "address" element and the "hasAttribute()" method + should return true since the element has "domestic" as an attribute. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/hasAttributeNS01.xml b/test/testcases/tests/level2/core/hasAttributeNS01.xml new file mode 100644 index 0000000..bbf2a74 --- /dev/null +++ b/test/testcases/tests/level2/core/hasAttributeNS01.xml @@ -0,0 +1,47 @@ + + + + + + +hasAttributeNS01 +NIST + + + The "hasAttributeNS()" method for an Element should + return false if the element does not have an attribute with the given local name + and/or a namespace URI specified on this element or does not have a default value. + + Retrieve the first "address" element and the "hasAttributeNS()" method + should return false since the element has "nomatch" as the local name + and "http://www.usa.com" as the namespace URI. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/hasAttributeNS02.xml b/test/testcases/tests/level2/core/hasAttributeNS02.xml new file mode 100644 index 0000000..7eee70b --- /dev/null +++ b/test/testcases/tests/level2/core/hasAttributeNS02.xml @@ -0,0 +1,46 @@ + + + + + + +hasAttributeNS02 +NIST + + The "hasAttributeNS()" method for an Element should + return false if the element does not have an attribute with the given local name + and/or namespace URI specified on this element or does not have a default value. + + Retrieve the first "address" element and the "hasAttributeNS()" method + should return false since the element has "domestic" as the local name + and "http://www.nomatch.com" as the namespace URI. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/hasAttributeNS03.xml b/test/testcases/tests/level2/core/hasAttributeNS03.xml new file mode 100644 index 0000000..a7ea952 --- /dev/null +++ b/test/testcases/tests/level2/core/hasAttributeNS03.xml @@ -0,0 +1,47 @@ + + + + + + +hasAttributeNS03 +NIST + + The "hasAttributeNS()" method for an Element should + return false if the element does not have an attribute with the given local name + and/or namespace URI specified on this element or does not have a default value. + + Retrieve the first "emp:address" element. + The boolean value returned by the "hasAttributeNS()" should be false + since the attribute does not have a default value. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/hasAttributeNS04.xml b/test/testcases/tests/level2/core/hasAttributeNS04.xml new file mode 100644 index 0000000..dd3362f --- /dev/null +++ b/test/testcases/tests/level2/core/hasAttributeNS04.xml @@ -0,0 +1,50 @@ + + + + + + +hasAttributeNS04 +NIST + + The "hasAttributeNS()" method for an Element should + return true if the attribute with the given local name + and namespace URI has a default value. + + Retrieve the first "emp:address" element. + The boolean value returned by the "hasAttributeNS()" should be true + since the attribute has a default value. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/hasAttributeNS05.xml b/test/testcases/tests/level2/core/hasAttributeNS05.xml new file mode 100644 index 0000000..b94bae7 --- /dev/null +++ b/test/testcases/tests/level2/core/hasAttributeNS05.xml @@ -0,0 +1,48 @@ + + + + + + +hasAttributeNS05 +NIST + + The "hasAttributeNS()" method for an Element should + return true if the element has an attribute with the given local name + and the namespace URI is specified on this element or has a default value. + + Retrieve the first "address" element and the "hasAttributeNS()" method + should return true since the element has "domestic" as the local name + and "http://www.usa.com" as the namespace URI. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/hasAttributes01.xml b/test/testcases/tests/level2/core/hasAttributes01.xml new file mode 100644 index 0000000..c653e89 --- /dev/null +++ b/test/testcases/tests/level2/core/hasAttributes01.xml @@ -0,0 +1,42 @@ + + + + + + +hasAttributes01 +NIST + + The "hasAttributes()" method for a node should + return false if the node does not have an attribute. + + Retrieve the first "name" node and invoke the "hasAttributes()" method. + The method should return false since the node does not have an attribute. + +Mary Brady +2001-08-17 + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/hasAttributes02.xml b/test/testcases/tests/level2/core/hasAttributes02.xml new file mode 100644 index 0000000..86c647e --- /dev/null +++ b/test/testcases/tests/level2/core/hasAttributes02.xml @@ -0,0 +1,42 @@ + + + + + + +hasAttributes02 +NIST + + The "hasAttributes()" method for a node should + return true if the node has attributes. + + Retrieve the first address node and the "hasAttributes()" method + should return true since the node has "domestic" as an attribute. + +Mary Brady +2001-08-17 + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/hc_entitiesremovenameditemns1.xml b/test/testcases/tests/level2/core/hc_entitiesremovenameditemns1.xml new file mode 100644 index 0000000..0a7a944 --- /dev/null +++ b/test/testcases/tests/level2/core/hc_entitiesremovenameditemns1.xml @@ -0,0 +1,47 @@ + + + + + +hc_entitiesremovenameditemns1 +Curt Arnold + +An attempt to add remove an entity using removeNamedItemNS should result in +a NO_MODIFICATION_ERR or a NOT_FOUND_ERR. + +2004-01-11 + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/hc_entitiessetnameditemns1.xml b/test/testcases/tests/level2/core/hc_entitiessetnameditemns1.xml new file mode 100644 index 0000000..9a446d7 --- /dev/null +++ b/test/testcases/tests/level2/core/hc_entitiessetnameditemns1.xml @@ -0,0 +1,49 @@ + + + + + +hc_entitiessetnameditemns1 +Curt Arnold + +An attempt to add an element to the named node map returned by entities should +result in a NO_MODIFICATION_ERR or HIERARCHY_REQUEST_ERR. + +2004-01-11 + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/hc_namednodemapinvalidtype1.xml b/test/testcases/tests/level2/core/hc_namednodemapinvalidtype1.xml new file mode 100644 index 0000000..d7f33df --- /dev/null +++ b/test/testcases/tests/level2/core/hc_namednodemapinvalidtype1.xml @@ -0,0 +1,42 @@ + + + + + +hc_namednodemapinvalidtype1 +Curt Arnold + +Attempt to insert an element into an attribute list, +should raise a HIERARCHY_REQUEST_ERR. + + +2004-01-09 + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/hc_nodedocumentfragmentnormalize1.xml b/test/testcases/tests/level2/core/hc_nodedocumentfragmentnormalize1.xml new file mode 100644 index 0000000..af0a505 --- /dev/null +++ b/test/testcases/tests/level2/core/hc_nodedocumentfragmentnormalize1.xml @@ -0,0 +1,44 @@ + + + + + +hc_nodedocumentfragmentnormalize1 +Curt Arnold + +Create a document fragment with two adjacent text nodes, normalize and see if the text nodes +were combined. + + +2004-01-10 + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/hc_nodedocumentfragmentnormalize2.xml b/test/testcases/tests/level2/core/hc_nodedocumentfragmentnormalize2.xml new file mode 100644 index 0000000..12dbfb5 --- /dev/null +++ b/test/testcases/tests/level2/core/hc_nodedocumentfragmentnormalize2.xml @@ -0,0 +1,39 @@ + + + + + +hc_nodedocumentfragmentnormalize1 +Curt Arnold + +Create a document fragment with an empty text node, after normalization there should be no child nodes. +were combined. + + +2004-01-10 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/hc_notationsremovenameditemns1.xml b/test/testcases/tests/level2/core/hc_notationsremovenameditemns1.xml new file mode 100644 index 0000000..3268481 --- /dev/null +++ b/test/testcases/tests/level2/core/hc_notationsremovenameditemns1.xml @@ -0,0 +1,47 @@ + + + + + +hc_notationsremovenameditemns1 +Curt Arnold + +An attempt to add remove an notation using removeNamedItemNS should result in +a NO_MODIFICATION_ERR or a NOT_FOUND_ERR. + +2004-01-11 + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/hc_notationssetnameditemns1.xml b/test/testcases/tests/level2/core/hc_notationssetnameditemns1.xml new file mode 100644 index 0000000..354401b --- /dev/null +++ b/test/testcases/tests/level2/core/hc_notationssetnameditemns1.xml @@ -0,0 +1,49 @@ + + + + + +hc_notationssetnameditemns1 +Curt Arnold + +An attempt to add an element to the named node map returned by notations should +result in a NO_MODIFICATION_ERR or HIERARCHY_REQUEST_ERR. + +2004-01-11 + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/importNode01.xml b/test/testcases/tests/level2/core/importNode01.xml new file mode 100644 index 0000000..007170d --- /dev/null +++ b/test/testcases/tests/level2/core/importNode01.xml @@ -0,0 +1,82 @@ + + + + + + +importNode01 +NIST + + The "importNode(importedNode,deep)" method for a + Document should import the given importedNode into that Document. + The importedNode is of type Attr. + The ownerElement is set to null. Specified flag is set to true. + Children is imported. + + Create a new attribute whose name is "elem:attr1" in a different document. + Create a child Text node with value "importedText" for the attribute node above. + Invoke method importNode(importedNode,deep) on this document with + importedNode being the newly created attribute. + Method should return a node whose name matches "elem:attr1" and a child node + whose value equals "importedText". + The returned node should belong to this document whose systemId is "staff.dtd" + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + +"elem:attr1" +"importedText" + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/importNode02.xml b/test/testcases/tests/level2/core/importNode02.xml new file mode 100644 index 0000000..7ec1b19 --- /dev/null +++ b/test/testcases/tests/level2/core/importNode02.xml @@ -0,0 +1,55 @@ + + + + + + +importNode02 +NIST + + The "importNode(importedNode,deep)" method for a + Document should import the given importedNode into that Document. + The importedNode is of type CData_Section. + + Create a CDATASection node with value being the string "this is CDATASection data" in + a different document. Invoke method importNode(importedNode,deep) on + this document. Method should return a CDATASection node whose value matches + the above string. The returned node should belong to this document whose systemId is "staff.dtd" + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/importNode03.xml b/test/testcases/tests/level2/core/importNode03.xml new file mode 100644 index 0000000..630e3ff --- /dev/null +++ b/test/testcases/tests/level2/core/importNode03.xml @@ -0,0 +1,56 @@ + + + + + + +importNode03 +NIST + + The "importNode(importedNode,deep)" method for a + Document should import the given importedNode into that Document. + The importedNode is of type Comment. + + Create a comment node with value being the string "this is a comment" in + a different document. Invoke method importNode(importedNode,deep) on + this document. Method should return a comment node whose value matches + the above string. The returned node should belong to this document whose + systemId is "staff.dtd" + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/importNode04.xml b/test/testcases/tests/level2/core/importNode04.xml new file mode 100644 index 0000000..69e12e9 --- /dev/null +++ b/test/testcases/tests/level2/core/importNode04.xml @@ -0,0 +1,57 @@ + + + + + + +importNode04 +NIST + + The "importNode(importedNode,deep)" method for a + Document should import the given importedNode into that Document. + The importedNode is of type Document_Fragment. + + Create a DocumentFragment in a different document. + Create a Comment child node for the Document Fragment. + Invoke method importNode(importedNode,deep) on this document + with importedNode being the newly created DocumentFragment. + Method should return a node of type DocumentFragment whose child has + comment value "descendant1". + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/importNode05.xml b/test/testcases/tests/level2/core/importNode05.xml new file mode 100644 index 0000000..2cd83de --- /dev/null +++ b/test/testcases/tests/level2/core/importNode05.xml @@ -0,0 +1,62 @@ + + + + + + +importNode05 +NIST + + The "importNode(importedNode,deep)" method for a + Document should import the given importedNode into that Document. + The importedNode is of type Element. + + Retrieve element "emp:address" from staffNS.xml document. + Invoke method importNode(importedNode,deep) on this document + with importedNode being the element from above and deep is false. + Method should return an element node whose name matches "emp:address" + and whose children are not imported. The returned node should + belong to this document whose systemId is "staff.dtd" + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/importNode06.xml b/test/testcases/tests/level2/core/importNode06.xml new file mode 100644 index 0000000..c7999ad --- /dev/null +++ b/test/testcases/tests/level2/core/importNode06.xml @@ -0,0 +1,59 @@ + + + + + + +importNode06 +NIST + + The "importNode(importedNode,deep)" method for a + Document should import the given importedNode into that Document. + The importedNode is of type Element. + + Retrieve element "emp:address" from staffNS.xml document. + Invoke method importNode(importedNode,deep) on this document + with importedNode being the element from above and deep is true. + Method should return an element node whose name matches "emp:address" and + whose descendant is imported. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/importNode07.xml b/test/testcases/tests/level2/core/importNode07.xml new file mode 100644 index 0000000..fb2e562 --- /dev/null +++ b/test/testcases/tests/level2/core/importNode07.xml @@ -0,0 +1,62 @@ + + + + + + +importNode07 +NIST + + The "importNode(importedNode,deep)" method for a + Document should import the given importedNode into that Document. + The importedNode is of type Element. + If this document defines default attributes for this element name (importedNode), + those default attributes are assigned. + + Create an element whose name is "emp:employee" in a different document. + Invoke method importNode(importedNode,deep) on this document which + defines default attribute for the element name "emp:employee". + Method should return an the imported element with an assigned default attribute. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/importNode08.xml b/test/testcases/tests/level2/core/importNode08.xml new file mode 100644 index 0000000..626de46 --- /dev/null +++ b/test/testcases/tests/level2/core/importNode08.xml @@ -0,0 +1,56 @@ + + + + + + +importNode08 +NIST + + The "importNode(importedNode,deep)" method for a + Document should import the given importedNode into that Document. + The importedNode is of type Document_Fragment. + + Create a DocumentFragment in a different document. + Invoke method importNode(importedNode,deep) on this document + with importedNode being the newly created DocumentFragment. + Method should return an empty DocumentFragment that belongs + to this document whose systemId is "staff.dtd" + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/importNode09.xml b/test/testcases/tests/level2/core/importNode09.xml new file mode 100644 index 0000000..5d07022 --- /dev/null +++ b/test/testcases/tests/level2/core/importNode09.xml @@ -0,0 +1,68 @@ + + + + + + +importNode09 +NIST + + The "importNode(importedNode,deep)" method for a + Document should import the given importedNode into that Document. + The importedNode is of type Entity. + + Retrieve entity "ent6" from staffNS.xml document. + Invoke method importNode(importedNode,deep) on this document. + Method should return a node of type Entity whose publicId, systemId and + notationName attributes are copied. + The returned node should belong to this document whose systemId is "staff.dtd" + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/importNode10.xml b/test/testcases/tests/level2/core/importNode10.xml new file mode 100644 index 0000000..1e5de0f --- /dev/null +++ b/test/testcases/tests/level2/core/importNode10.xml @@ -0,0 +1,59 @@ + + + + + + +importNode10 +NIST + + The "importNode(importedNode,deep)" method for a + Document should import the given importedNode into that Document. + The importedNode is of type Entity_Reference. + Only the EntityReference is copied, regardless of deep's value. + + Create an entity reference whose name is "entRef1" in a different document. + Give it value "entRef1Value". + Invoke method importNode(importedNode,deep) on this document with importedNode + being "entRef1". + Method should return a node of type Entity_Reference (whose value is null) that + belongs to this document whose systemId is "staff.dtd". + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/importNode11.xml b/test/testcases/tests/level2/core/importNode11.xml new file mode 100644 index 0000000..68ea4fb --- /dev/null +++ b/test/testcases/tests/level2/core/importNode11.xml @@ -0,0 +1,57 @@ + + + + + + +importNode11 +NIST + + The "importNode(importedNode,deep)" method for a + Document should import the given importedNode into that Document. + The importedNode is of type Entity_Reference. + Only the EntityReference is copied, regardless of deep's value. + If the Document provides a definition for the entity name, its value is assigned. + + Create an entity reference whose name is "ent3" in a different document. + Invoke method importNode(importedNode,deep) on this document with importedNode + being "ent3". + Method should return a node of type Entity_Reference whose first child's value is "Texas" as defined + in this document. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/importNode12.xml b/test/testcases/tests/level2/core/importNode12.xml new file mode 100644 index 0000000..b5522b1 --- /dev/null +++ b/test/testcases/tests/level2/core/importNode12.xml @@ -0,0 +1,65 @@ + + + + + + +importNode12 +NIST + + The "importNode(importedNode,deep)" method for a + Document should import the given importedNode into that Document. + The importedNode is of type Entity. + + Retrieve entity "ent4" from staffNS.xml document. + Invoke method importNode(importedNode,deep) on this document with deep as false. + Method should return a node of type Entity whose descendant is copied. + The returned node should belong to this document whose systemId is "staffNS.dtd" + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/importNode13.xml b/test/testcases/tests/level2/core/importNode13.xml new file mode 100644 index 0000000..e60e4e4 --- /dev/null +++ b/test/testcases/tests/level2/core/importNode13.xml @@ -0,0 +1,62 @@ + + + + + + +importNode13 +NIST + + The "importNode(importedNode,deep)" method for a + Document should import the given importedNode into that Document. + The importedNode is of type Notation. + + Retrieve notation named "notation1" from document staffNS.xml. + Invoke method importNode(importedNode,deep) where importedNode + contains the retrieved notation and deep is false. Method should + return a node of type notation whose name is "notation1". + The returned node should belong to this document whose systemId is "staff.dtd" + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/importNode14.xml b/test/testcases/tests/level2/core/importNode14.xml new file mode 100644 index 0000000..995d107 --- /dev/null +++ b/test/testcases/tests/level2/core/importNode14.xml @@ -0,0 +1,59 @@ + + + + + + +importNode14 +NIST + + The "importNode(importedNode,deep)" method for a + Document should import the given importedNode into that Document. + The importedNode is of type Processing Instruction. + + Create a processing instruction with target as "target1" and data as "data1" + in a different document. Invoke method importNode(importedNode,deep) on this document. + Method should return a processing instruction whose target and data match the given + parameters. The returned PI should belong to this document whose systemId is "staff.dtd". + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/importNode15.xml b/test/testcases/tests/level2/core/importNode15.xml new file mode 100644 index 0000000..fd157aa --- /dev/null +++ b/test/testcases/tests/level2/core/importNode15.xml @@ -0,0 +1,56 @@ + + + + + + +importNode15 +NIST + + The "importNode(importedNode,deep)" method for a + Document should import the given importedNode into that Document. + The importedNode is of type Text. + + Create a text node with value being the string "this is text data" in + a different document. Invoke method importNode(importedNode,deep) on + this document. Method should return a text node whose value matches + the above string. The returned node should belong to this document + whose systemId is "staff.dtd" + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/importNode16.xml b/test/testcases/tests/level2/core/importNode16.xml new file mode 100644 index 0000000..b0522c4 --- /dev/null +++ b/test/testcases/tests/level2/core/importNode16.xml @@ -0,0 +1,50 @@ + + + + + + +importNode16 +NIST + + The "importNode(importedNode,deep)" method for a + Document should raise NOT_SUPPORTED_ERR DOMException if + the type of node being imported is DocumentType. + + Retrieve document staff.xml and get its type. + Invoke method importNode(importedNode,deep) where importedNode + contains the document type of the staff.xml. + Method should raise NOT_SUPPORT_ERR DOMException. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/importNode17.xml b/test/testcases/tests/level2/core/importNode17.xml new file mode 100644 index 0000000..954735f --- /dev/null +++ b/test/testcases/tests/level2/core/importNode17.xml @@ -0,0 +1,48 @@ + + + + + + +importNode17 +NIST + + The "importNode(importedNode,deep)" method for a + Document should raise NOT_SUPPORTED_ERR DOMException if + the type of node being imported is Document. + + Retrieve staff.xml document. + Invoke method importNode(importedNode,deep) where importedNode + contains staff.xml and deep is true. + Method should raise NOT_SUPPORTED_ERR DOMException. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/internalSubset01.xml b/test/testcases/tests/level2/core/internalSubset01.xml new file mode 100644 index 0000000..59902c5 --- /dev/null +++ b/test/testcases/tests/level2/core/internalSubset01.xml @@ -0,0 +1,42 @@ + + + + + + +internalSubset01 +NIST + + The "getInternalSubset()" method returns + the internal subset as a string or null if there is none. + This does not contain the delimiting brackets. + + Retrieve the documenttype. + Apply the "getInternalSubset()" method. Null is returned since there + is not an internal subset. + +Mary Brady +2001-07-02 + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/isSupported01.xml b/test/testcases/tests/level2/core/isSupported01.xml new file mode 100644 index 0000000..9d31d1f --- /dev/null +++ b/test/testcases/tests/level2/core/isSupported01.xml @@ -0,0 +1,46 @@ + + + + + + +isSupported01 +NIST + + The "feature" parameter in the + isSupported(feature,version)" method is the name + of the feature and the version is the version number of the + feature to test. XXX is NOT a legal value for the feature parameter. + The method should return "false" since XXX is not a valid feature. + + Retrieve the root node of the DOM document by invoking + the "getDocumentElement()" method. This should create a + node object on which the "isSupported(feature,version)" + method is invoked with "feature" equal to "XXX" and version to "1.0". + The method should return a boolean "false" since XXX is not a valid feature. + +Mary Brady +2001-08-17 + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/isSupported02.xml b/test/testcases/tests/level2/core/isSupported02.xml new file mode 100644 index 0000000..3d7444d --- /dev/null +++ b/test/testcases/tests/level2/core/isSupported02.xml @@ -0,0 +1,46 @@ + + + + + + +isSupported02 +NIST + + The "feature" parameter in the + isSupported(feature,version)" method is the name + of the feature and the version is the version number of the + feature to test. XML is a legal value for the feature parameter. + The method should return "false" since 9.0 is not a valid version. + + Retrieve the root node of the DOM document by invoking + the "getDocumentElement()" method. This should create a + node object on which the "isSupported(feature,version)" + method is invoked with "feature" equal to "XML" and version to "9.0". + The method should return a boolean "false" since 9.0 is not a valid version. + +Mary Brady +2001-08-17 + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/isSupported04.xml b/test/testcases/tests/level2/core/isSupported04.xml new file mode 100644 index 0000000..18dfd28 --- /dev/null +++ b/test/testcases/tests/level2/core/isSupported04.xml @@ -0,0 +1,48 @@ + + + + + + +isSupported04 +NIST + + The "feature" parameter in the + isSupported(feature,version)" method is the name + of the feature and the version is the version number of the + feature to test. XML is a legal value for the feature parameter + (Test for xml, lower case). + Legal values for the version parameter are 1.0 and 2.0 + (Test for 1.0). + + Retrieve the root node of the DOM document by invoking + the "getDocumentElement()" method. This should create a + node object on which the "isSupported(feature,version)" + method is invoked with "feature" equal to "xml" and the version equal to 1.0. + The method should return a boolean "true". + +Mary Brady +2001-08-17 + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/isSupported05.xml b/test/testcases/tests/level2/core/isSupported05.xml new file mode 100644 index 0000000..0339f8f --- /dev/null +++ b/test/testcases/tests/level2/core/isSupported05.xml @@ -0,0 +1,48 @@ + + + + + + +isSupported05 +NIST + + The "feature" parameter in the + isSupported(feature,version)" method is the name + of the feature and the version is the version number of the + feature to test. Core is a legal value for the feature parameter + (Test for core, lower case). + Legal values for the version parameter are 1.0 and 2.0 + (Test for 2.0). + + Retrieve the root node of the DOM document by invoking + the "getDocumentElement()" method. This should create a + node object on which the "isSupported(feature,version)" + method is invoked with "feature" equal to "core" and the version equal to 2.0. + The method should return a boolean "true". + +Mary Brady +2001-08-17 + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/isSupported06.xml b/test/testcases/tests/level2/core/isSupported06.xml new file mode 100644 index 0000000..23a2063 --- /dev/null +++ b/test/testcases/tests/level2/core/isSupported06.xml @@ -0,0 +1,48 @@ + + + + + + +isSupported06 +NIST + + The "feature" parameter in the + isSupported(feature,version)" method is the name + of the feature and the version is the version number of the + feature to test. XML is a legal value for the feature parameter + (Test for xml, lower case). + Legal values for the version parameter are 1.0 and 2.0 + (Test for 2.0). + + Retrieve the root node of the DOM document by invoking + the "getDocumentElement()" method. This should create a + node object on which the "isSupported(feature,version)" + method is invoked with "feature" equal to "xml" and the version equal to 2.0. + The method should return a boolean "true". + +Mary Brady +2001-08-17 + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/isSupported07.xml b/test/testcases/tests/level2/core/isSupported07.xml new file mode 100644 index 0000000..21f8ccb --- /dev/null +++ b/test/testcases/tests/level2/core/isSupported07.xml @@ -0,0 +1,48 @@ + + + + + + +isSupported07 +NIST + + The "feature" parameter in the + isSupported(feature,version)" method is the name + of the feature and the version is the version number of the + feature to test. XML is a legal value for the feature parameter + (Test for XML). + If the version is not specified, supporting any version of the + method to return true. + + Retrieve the root node of the DOM document by invoking + the "getDocumentElement()" method. This should create a + node object on which the "isSupported(feature,version)" + method is invoked with "feature" equal to "XML" and the version equal blank. + The method should return a boolean "true". + +Mary Brady +2001-08-17 + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/isSupported09.xml b/test/testcases/tests/level2/core/isSupported09.xml new file mode 100644 index 0000000..f7c4685 --- /dev/null +++ b/test/testcases/tests/level2/core/isSupported09.xml @@ -0,0 +1,48 @@ + + + + + + +isSupported09 +NIST + + The "feature" parameter in the + isSupported(feature,version)" method is the name + of the feature and the version is the version number of the + feature to test. XML is a legal value for the feature parameter + (Test for XML, upper case). + Legal values for the version parameter are 1.0 and 2.0 + (Test for 1.0). + + Retrieve the root node of the DOM document by invoking + the "getDocumentElement()" method. This should create a + node object on which the "isSupported(feature,version)" + method is invoked with "feature" equal to "XML" and the version equal to 1.0. + The method should return a boolean "true". + +Mary Brady +2001-08-17 + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/isSupported10.xml b/test/testcases/tests/level2/core/isSupported10.xml new file mode 100644 index 0000000..8cfc69d --- /dev/null +++ b/test/testcases/tests/level2/core/isSupported10.xml @@ -0,0 +1,48 @@ + + + + + + +isSupported10 +NIST + + The "feature" parameter in the + isSupported(feature,version)" method is the name + of the feature and the version is the version number of the + feature to test. CORE is a legal value for the feature parameter + (Test for CORE, upper case). + Legal values for the version parameter are 1.0 and 2.0 + (Test for 2.0). + + Retrieve the root node of the DOM document by invoking + the "getDocumentElement()" method. This should create a + node object on which the "isSupported(feature,version)" + method is invoked with "feature" equal to "CORE" and the version equal to 2.0. + The method should return a boolean "true". + +Mary Brady +2001-08-17 + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/isSupported11.xml b/test/testcases/tests/level2/core/isSupported11.xml new file mode 100644 index 0000000..fb9f90c --- /dev/null +++ b/test/testcases/tests/level2/core/isSupported11.xml @@ -0,0 +1,48 @@ + + + + + + +isSupported11 +NIST + + The "feature" parameter in the + isSupported(feature,version)" method is the name + of the feature and the version is the version number of the + feature to test. XML is a legal value for the feature parameter + (Test for XML, upper case). + Legal values for the version parameter are 1.0 and 2.0 + (Test for 2.0). + + Retrieve the root node of the DOM document by invoking + the "getDocumentElement()" method. This should create a + node object on which the "isSupported(feature,version)" + method is invoked with "feature" equal to "XML" and the version equal to 2.0. + The method should return a boolean "true". + +Mary Brady +2001-08-17 + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/isSupported12.xml b/test/testcases/tests/level2/core/isSupported12.xml new file mode 100644 index 0000000..11d737e --- /dev/null +++ b/test/testcases/tests/level2/core/isSupported12.xml @@ -0,0 +1,73 @@ + + + + + + +isSupported12 +NIST + + The "feature" parameter in the + isSupported(feature,version)" method is the name + of the feature and the version is the version number of the + feature to test. CORE is a legal value for the feature parameter + (Test for CORE, upper case). + Legal values for the version parameter are 1.0 and 2.0 + (Test for 1.0). + + Retrieve the root node of the DOM document by invoking + the "getDocumentElement()" method. This should create a + node object on which the "isSupported(feature,version)" + method is invoked with "feature" equal to "CORE" and the version equal to 1.0. + The method should return a boolean "true". + +Mary Brady +2001-08-17 + + + +"Core" +"XML" +"HTML" +"Views" +"StyleSheets" +"CSS" +"CSS2" +"Events" +"UIEvents" +"MouseEvents" +"MutationEvents" +"HTMLEvents" +"Range" +"Traversal" +"bogus.bogus.bogus" + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/isSupported13.xml b/test/testcases/tests/level2/core/isSupported13.xml new file mode 100644 index 0000000..6327f17 --- /dev/null +++ b/test/testcases/tests/level2/core/isSupported13.xml @@ -0,0 +1,36 @@ + + + + + + +isSupported13 +Curt Arnold + +Calls isSupported("Core","") should return true for all implementations (by extension of core-14). + +2001-11-27 + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/isSupported14.xml b/test/testcases/tests/level2/core/isSupported14.xml new file mode 100644 index 0000000..eef6601 --- /dev/null +++ b/test/testcases/tests/level2/core/isSupported14.xml @@ -0,0 +1,37 @@ + + + + + + +isSupported14 +Curt Arnold + +Calls isSupported("Core",null) should return true for all implementations (by extension of core-14). + +2001-11-27 + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/localName01.xml b/test/testcases/tests/level2/core/localName01.xml new file mode 100644 index 0000000..053feb4 --- /dev/null +++ b/test/testcases/tests/level2/core/localName01.xml @@ -0,0 +1,50 @@ + + + + + + +localName01 +NIST + + The "getLocalName()" method for a Node + returns the local part of the qualified name of this node, + and for nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE + and nodes created with a DOM Level 1 method, this is null. + + Retrieve the first emp:address node and get the attributes of this node." + Then apply the getLocalName() method to the emp:domestic attribute. + The method should return "domestic". + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/localName02.xml b/test/testcases/tests/level2/core/localName02.xml new file mode 100644 index 0000000..8eba945 --- /dev/null +++ b/test/testcases/tests/level2/core/localName02.xml @@ -0,0 +1,43 @@ + + + + + + +localName02 +NIST + + The "getLocalName()" method for a Node + returns the local part of the qualified name of this node, + and for nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE + and nodes created with a DOM Level 1 method, this is null. + + Create an new Element with the createElement() method. + Invoke the "getLocalName()" method on the newly created element + node will cause "null" to be returned. + +Mary Brady +2001-08-17 + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/localName03.xml b/test/testcases/tests/level2/core/localName03.xml new file mode 100644 index 0000000..42fcebe --- /dev/null +++ b/test/testcases/tests/level2/core/localName03.xml @@ -0,0 +1,47 @@ + + + + + + +localName03 +NIST + + The "getLocalName()" method for a Node + returns the local part of the qualified name of this node, + and for nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE + and nodes created with a DOM Level 1 method, this is null. + + Retrieve the first employeeId node and get the first child of this node. + Since the first child is Text node invoking the "getLocalName()" + method will cause "null" to be returned. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/localName04.xml b/test/testcases/tests/level2/core/localName04.xml new file mode 100644 index 0000000..a0016ee --- /dev/null +++ b/test/testcases/tests/level2/core/localName04.xml @@ -0,0 +1,46 @@ + + + + + + +localName04 +NIST + + The "getLocalName()" method for a Node + returns the local part of the qualified name of this node, + and for nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE + and nodes created with a DOM Level 1 method, this is null. + + Retrieve the first employee node and invoke the "getLocalName()" + method. The method should return "employee". + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/metadata.xml b/test/testcases/tests/level2/core/metadata.xml new file mode 100644 index 0000000..63bac43 --- /dev/null +++ b/test/testcases/tests/level2/core/metadata.xml @@ -0,0 +1,18 @@ + + + + + + + diff --git a/test/testcases/tests/level2/core/namednodemapgetnameditemns01.xml b/test/testcases/tests/level2/core/namednodemapgetnameditemns01.xml new file mode 100644 index 0000000..8cd23ff --- /dev/null +++ b/test/testcases/tests/level2/core/namednodemapgetnameditemns01.xml @@ -0,0 +1,54 @@ + + + + + + +namednodemapgetnameditemns01 +IBM + + Using the method getNamedItemNS, retreive the entity "ent1" and notation "notation1" + from a NamedNodeMap of this DocumentTypes entities and notations. + Both should be null since entities and notations are not namespaced. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/namednodemapgetnameditemns02.xml b/test/testcases/tests/level2/core/namednodemapgetnameditemns02.xml new file mode 100644 index 0000000..3c778d3 --- /dev/null +++ b/test/testcases/tests/level2/core/namednodemapgetnameditemns02.xml @@ -0,0 +1,48 @@ + + + + + + +namednodemapgetnameditemns02 +IBM + + The method getNamedItemNS retrieves a node specified by local name and namespace URI. + + Using the method getNamedItemNS, retreive an attribute node having namespaceURI=http://www.nist.gov + and localName=domestic, from a NamedNodeMap of attribute nodes, for the second element + whose namespaceURI=http://www.nist.gov and localName=address. Verify if the attr node + has been retreived successfully by checking its nodeName atttribute. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/namednodemapgetnameditemns03.xml b/test/testcases/tests/level2/core/namednodemapgetnameditemns03.xml new file mode 100644 index 0000000..6dd138b --- /dev/null +++ b/test/testcases/tests/level2/core/namednodemapgetnameditemns03.xml @@ -0,0 +1,52 @@ + + + + + + +namednodemapgetnameditemns03 +IBM + + The method getNamedItemNS retrieves a node specified by local name and namespace URI. + + Create a new Element node and add 2 new attribute nodes having the same local name but different + namespace names and namespace prefixes to it. Using the getNamedItemNS retreive the second attribute node. + Verify if the attr node has been retreived successfully by checking its nodeName atttribute. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/namednodemapgetnameditemns04.xml b/test/testcases/tests/level2/core/namednodemapgetnameditemns04.xml new file mode 100644 index 0000000..16eac08 --- /dev/null +++ b/test/testcases/tests/level2/core/namednodemapgetnameditemns04.xml @@ -0,0 +1,53 @@ + + + + + + +namednodemapgetnameditemns04 +IBM + + The method getNamedItemNS retrieves a node specified by local name and namespace URI. + + Retreive the second address element node having localName=adrress. + Create a new attribute node having the same name as an existing node but different namespaceURI + and add it to this element. Using the getNamedItemNS retreive the newly created attribute + node from a nodemap of attributes of the retreive element node. + Verify if the attr node has been retreived successfully by checking its nodeName atttribute. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/namednodemapgetnameditemns05.xml b/test/testcases/tests/level2/core/namednodemapgetnameditemns05.xml new file mode 100644 index 0000000..402f464 --- /dev/null +++ b/test/testcases/tests/level2/core/namednodemapgetnameditemns05.xml @@ -0,0 +1,46 @@ + + + + + + +namednodemapgetnameditemns05 +IBM + + The method getNamedItemNS retrieves a node specified by local name and namespace URI. + + Retreieve the second address element and its attribute into a named node map. + Try retreiving the street attribute from the namednodemap using the + default namespace uri and the street attribute name. Since the default + namespace doesnot apply to attributes this should return null. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/namednodemapgetnameditemns06.xml b/test/testcases/tests/level2/core/namednodemapgetnameditemns06.xml new file mode 100644 index 0000000..d72ffef --- /dev/null +++ b/test/testcases/tests/level2/core/namednodemapgetnameditemns06.xml @@ -0,0 +1,56 @@ + + + + + + +namednodemapgetnameditemns06 +IBM + + Retreive the second address element node having localName=adrress. Retreive the attributes + of this element into 2 nodemaps. Create a new attribute node and add it to this element. + Since NamedNodeMaps are live each one should get updated, using the getNamedItemNS retreive + the newly created attribute from each node map. + Verify if the attr node has been retreived successfully by checking its nodeName atttribute. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test/testcases/tests/level2/core/namednodemapremovenameditemns01.xml b/test/testcases/tests/level2/core/namednodemapremovenameditemns01.xml new file mode 100644 index 0000000..c16ccf4 --- /dev/null +++ b/test/testcases/tests/level2/core/namednodemapremovenameditemns01.xml @@ -0,0 +1,45 @@ + + + + + + +namednodemapremovenameditemns01 +IBM + + The method removeNamedItemNS removes a node specified by local name and namespace + + Retreive an attribute node and then remove from the NamedNodeMap. Verify if the attribute + node was actually remove from the node map. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/namednodemapremovenameditemns02.xml b/test/testcases/tests/level2/core/namednodemapremovenameditemns02.xml new file mode 100644 index 0000000..3ba6e08 --- /dev/null +++ b/test/testcases/tests/level2/core/namednodemapremovenameditemns02.xml @@ -0,0 +1,55 @@ + + + + + + +namednodemapremovenameditemns02 +IBM + + The method removeNamedItemNS removes a node specified by local name and namespace + A removed attribute may be known to have a default value when this map contains the + attributes attached to an element, as returned by the attributes attribute of the Node + interface. If so, an attribute immediately appears containing the default value as well + as the corresponding namespace URI, local name, and prefix when applicable. + + Retreive a default attribute node. Remove it from the NodeMap. Check if a new one immediately + appears containing the default value. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/namednodemapremovenameditemns03.xml b/test/testcases/tests/level2/core/namednodemapremovenameditemns03.xml new file mode 100644 index 0000000..0eae40f --- /dev/null +++ b/test/testcases/tests/level2/core/namednodemapremovenameditemns03.xml @@ -0,0 +1,53 @@ + + + + + + +namednodemapremovenameditemns03 +IBM + + The method removeNamedItemNS removes a node specified by local name and namespace + + Create a new element node and add 2 new attribute nodes to it that have the same localName + but different namespaceURI's. Remove the first attribute node from the namedNodeMap of the + new element node and check to see that the second attribute still exists. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/namednodemapremovenameditemns04.xml b/test/testcases/tests/level2/core/namednodemapremovenameditemns04.xml new file mode 100644 index 0000000..c1c3fc8 --- /dev/null +++ b/test/testcases/tests/level2/core/namednodemapremovenameditemns04.xml @@ -0,0 +1,49 @@ + + + + + + +namednodemapremovenameditemns04 +IBM + + The method removeNamedItemNS removes a node specified by local name and namespace + + Attempt to remove the xmlns and dmstc attributes of the first element node with the localName + employee. Verify if the 2 attributes were successfully removed. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/namednodemapremovenameditemns05.xml b/test/testcases/tests/level2/core/namednodemapremovenameditemns05.xml new file mode 100644 index 0000000..70ac0e4 --- /dev/null +++ b/test/testcases/tests/level2/core/namednodemapremovenameditemns05.xml @@ -0,0 +1,63 @@ + + + + + + +namednodemapremovenameditemns05 +IBM + + Retreive an entity and notation node and remove the first notation from the + entity node map and first entity node from the notation map. Since both these + maps are readonly, a NO_MODIFICATION_ALLOWED_ERR should be raised. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/namednodemapremovenameditemns06.xml b/test/testcases/tests/level2/core/namednodemapremovenameditemns06.xml new file mode 100644 index 0000000..1333e6d --- /dev/null +++ b/test/testcases/tests/level2/core/namednodemapremovenameditemns06.xml @@ -0,0 +1,49 @@ + + + + + + +namednodemapremovenameditemns06 +IBM + + The method removeNamedItemNS removes a node using its namespaceURI and localName and + raises a NOT_FOUND_ERR if there is no node with the specified namespaceURI and + localName in this map + + Retreive an attribute node into a namednodemap. While removing it from the map specify + an incorrect namespaceURI. This should raise a NOT_FOUND_ERR. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/namednodemapremovenameditemns07.xml b/test/testcases/tests/level2/core/namednodemapremovenameditemns07.xml new file mode 100644 index 0000000..267c2c9 --- /dev/null +++ b/test/testcases/tests/level2/core/namednodemapremovenameditemns07.xml @@ -0,0 +1,49 @@ + + + + + + +namednodemapremovenameditemns07 +IBM + + The method removeNamedItemNS removes a node using its namespaceURI and localName and + raises a NOT_FOUND_ERR if there is no node with the specified namespaceURI and + localName in this map + + Retreive an attribute node from a namednodemap. While removing it from the map specify + an incorrect localName. This should raise a NOT_FOUND_ERR. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/namednodemapremovenameditemns08.xml b/test/testcases/tests/level2/core/namednodemapremovenameditemns08.xml new file mode 100644 index 0000000..2fc5041 --- /dev/null +++ b/test/testcases/tests/level2/core/namednodemapremovenameditemns08.xml @@ -0,0 +1,52 @@ + + + + + + +namednodemapremovenameditemns08 +IBM + + The method removeNamedItemNS removes a node using its namespaceURI and localName and + raises a NOT_FOUND_ERR if there is no node with the specified namespaceURI and + localName in this map + + Retreive an attribute node from a namednodemap. Remove the attribute node from the document + object. Since NamedNodeMaps are live it should also automatically get removed from + the node map. And so if an attempt is made to remove it using removeAttributeNS, this should + raise a NOT_FOUND_ERR. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/namednodemapremovenameditemns09.xml b/test/testcases/tests/level2/core/namednodemapremovenameditemns09.xml new file mode 100644 index 0000000..b903957 --- /dev/null +++ b/test/testcases/tests/level2/core/namednodemapremovenameditemns09.xml @@ -0,0 +1,49 @@ + + + + + + +namednodemapremovenameditemns09 +IBM + + The method removeNamedItemNS removes a node using its namespaceURI and localName and + raises a NOT_FOUND_ERR if there is no node with the specified namespaceURI and + localName in this map + + Retreive an attribute node. Remove the attribute node from the node map. + Check the element object to ensure that the attribute node has been removed from it. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/namednodemapsetnameditemns01.xml b/test/testcases/tests/level2/core/namednodemapsetnameditemns01.xml new file mode 100644 index 0000000..421d99e --- /dev/null +++ b/test/testcases/tests/level2/core/namednodemapsetnameditemns01.xml @@ -0,0 +1,54 @@ + + + + + + +namednodemapsetnameditemns01 +IBM + + The method setNamedItemNS adds a node using its namespaceURI and localName. If a node with + that namespace URI and that local name is already present in this map, it is replaced + by the new one. + + Retreive the first element whose localName is address and namespaceURI http://www.nist.gov", + and put its attributes into a named node map. Create a new attribute node and add it to this map. + Verify if the attr node was successfully added by checking the nodeName of the retreived atttribute. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/test/testcases/tests/level2/core/namednodemapsetnameditemns02.xml b/test/testcases/tests/level2/core/namednodemapsetnameditemns02.xml new file mode 100644 index 0000000..95198f5 --- /dev/null +++ b/test/testcases/tests/level2/core/namednodemapsetnameditemns02.xml @@ -0,0 +1,52 @@ + + + + + + +namednodemapsetnameditemns02 +IBM + + The method setNamedItemNS adds a node using its namespaceURI and localName. If a node with + that namespace URI and that local name is already present in this map, it is replaced + by the new one. + + Create a new element and attribute Node and add the newly created attribute node to the elements + NamedNodeMap. Verify if the new attr node has been successfully added to the map by checking + the nodeName of the retreived atttribute from the list of attribute nodes in this map. + + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/namednodemapsetnameditemns03.xml b/test/testcases/tests/level2/core/namednodemapsetnameditemns03.xml new file mode 100644 index 0000000..c2dbf8d --- /dev/null +++ b/test/testcases/tests/level2/core/namednodemapsetnameditemns03.xml @@ -0,0 +1,65 @@ + + + + + + +namednodemapsetnameditemns03 +IBM + + The method setNamedItemNS adds a node using its namespaceURI and localName and + raises a WRONG_DOCUMENT_ERR if arg was created from a different document than the + one that created this map. + + Retreieve the second element whose local name is address and its attribute into a named node map. + Do the same for another document and retreive its street attribute. Call the setNamedItemNS + using the first namedNodeMap and the retreive street attribute of the second. This should + raise a WRONG_DOCUMENT_ERR. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/namednodemapsetnameditemns04.xml b/test/testcases/tests/level2/core/namednodemapsetnameditemns04.xml new file mode 100644 index 0000000..fce15ba --- /dev/null +++ b/test/testcases/tests/level2/core/namednodemapsetnameditemns04.xml @@ -0,0 +1,60 @@ + + + + + + +namednodemapsetnameditemns04 +IBM + + The method setNamedItemNS adds a node using its namespaceURI and localName and + raises a WRONG_DOCUMENT_ERR if arg was created from a different document than the + one that created this map. + + Retreieve the second element whose local name is address and its attribute into a named node map. + Create a new document and a new attribute node in it. Call the setNamedItemNS using the first + namedNodeMap and the new attribute node attribute of the new document. This should + raise a WRONG_DOCUMENT_ERR. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/namednodemapsetnameditemns05.xml b/test/testcases/tests/level2/core/namednodemapsetnameditemns05.xml new file mode 100644 index 0000000..287e525 --- /dev/null +++ b/test/testcases/tests/level2/core/namednodemapsetnameditemns05.xml @@ -0,0 +1,61 @@ + + + + + + +namednodemapsetnameditemns05 +IBM + + Retreive an entity and notation node and add the first notation to the + notation node map and first entity node to the entity map. Since both these + maps are for readonly node, a NO_MODIFICATION_ALLOWED_ERR should be raised. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/namednodemapsetnameditemns06.xml b/test/testcases/tests/level2/core/namednodemapsetnameditemns06.xml new file mode 100644 index 0000000..ddfb0c1 --- /dev/null +++ b/test/testcases/tests/level2/core/namednodemapsetnameditemns06.xml @@ -0,0 +1,53 @@ + + + + + + +namednodemapsetnameditemns06 +IBM + + Retreieve the first element whose localName is address and its attributes into a named node map. + Retreiving the domestic attribute from the namednodemap. + Retreieve the second element whose localName is address and its attributes into a named node map. + Invoke setNamedItemNS on the second NamedNodeMap specifying the first domestic attribute from + the first map. This should raise an INUSE_ATTRIBIUTE_ERR. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/namednodemapsetnameditemns07.xml b/test/testcases/tests/level2/core/namednodemapsetnameditemns07.xml new file mode 100644 index 0000000..bfa41ac --- /dev/null +++ b/test/testcases/tests/level2/core/namednodemapsetnameditemns07.xml @@ -0,0 +1,62 @@ + + + + + + +namednodemapsetnameditemns07 +IBM + + The method setNamedItemNS adds a node using its namespaceURI and localName and + raises a INUSE_ATTRIBUTE_ERR Raised if arg is an Attr that is already an + attribute of another Element object. + + Retreieve the attributes of first element whose localName is address into a named node map. + Retreive the attribute whose namespaceURI=http://www.usa.com and localName=domestic + from the NamedNodeMap. Retreieve the attributes of second element whose localName is address + into a named node map. Call the setNamedItemNS method on the second nodemap with the domestic + attribute that was retreived and removed from the first nodeMap as an argument. + Assuming that when an attribute is removed from a nodemap, it still remains in the domtree + his should raise an INUSE_ATTRIBIUTE_ERR. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/namednodemapsetnameditemns08.xml b/test/testcases/tests/level2/core/namednodemapsetnameditemns08.xml new file mode 100644 index 0000000..d0b0026 --- /dev/null +++ b/test/testcases/tests/level2/core/namednodemapsetnameditemns08.xml @@ -0,0 +1,62 @@ + + + + + + +namednodemapsetnameditemns08 +IBM + + raises a INUSE_ATTRIBUTE_ERR Raised if arg is an Attr that is already an + attribute of another Element object. + + Retreieve the first element whose localName is address and its attributes into a named node map. + Retreiving the domestic attribute from the namednodemap. Retreieve the second element whose + localName is address and its attributes into a named node map. Invoke setNamedItemNS on the + second NamedNodeMap specifying the attribute from the first map. + This should raise an INUSE_ATTRIBIUTE_ERR. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/namednodemapsetnameditemns09.xml b/test/testcases/tests/level2/core/namednodemapsetnameditemns09.xml new file mode 100644 index 0000000..6c1c445 --- /dev/null +++ b/test/testcases/tests/level2/core/namednodemapsetnameditemns09.xml @@ -0,0 +1,55 @@ + + + + + + +namednodemapsetnameditemns09 +IBM + + The method setNamedItemNS adds a node using its namespaceURI and localName and + raises a NO_MODIFICATION_ALLOWED_ERR if this map is readonly. + + Create a new attribute node and attempt to add it to the nodemap of entities and notations + for this documenttype. This should reaise a NO_MODIFICATION_ALLOWED_ERR. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/namednodemapsetnameditemns10.xml b/test/testcases/tests/level2/core/namednodemapsetnameditemns10.xml new file mode 100644 index 0000000..328cb79 --- /dev/null +++ b/test/testcases/tests/level2/core/namednodemapsetnameditemns10.xml @@ -0,0 +1,59 @@ + + + + + + +namednodemapsetnameditemns10 +IBM + + The method setNamedItemNS adds a node using its namespaceURI and localName and + raises a HIERARCHY_REQUEST_ERR if an attempt is made to add a node doesn't belong + in this NamedNodeMap. + + Attempt to add an entity to a NamedNodeMap of attribute nodes, + Since nodes of this type cannot be added to the attribute node map a HIERARCHY_REQUEST_ERR + should be raised. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/namednodemapsetnameditemns11.xml b/test/testcases/tests/level2/core/namednodemapsetnameditemns11.xml new file mode 100644 index 0000000..63b994a --- /dev/null +++ b/test/testcases/tests/level2/core/namednodemapsetnameditemns11.xml @@ -0,0 +1,59 @@ + + + + + + +namednodemapsetnameditemns11 +IBM + + The method setNamedItemNS adds a node using its namespaceURI and localName and + raises a HIERARCHY_REQUEST_ERR if an attempt is made to add a node doesn't belong + in this NamedNodeMap. + + Attempt to add a notation node to a NamedNodeMap of attribute nodes, + Since notations nodes do not belong in the attribute node map a HIERARCHY_REQUEST_ERR + should be raised. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/namespaceURI01.xml b/test/testcases/tests/level2/core/namespaceURI01.xml new file mode 100644 index 0000000..e31ed6c --- /dev/null +++ b/test/testcases/tests/level2/core/namespaceURI01.xml @@ -0,0 +1,50 @@ + + + + + + +namespaceURI01 +NIST + + The "getNamespaceURI()" method for an Attribute + returns the namespace URI of this node, or null if unspecified. + + Retrieve the first "emp:address" node which has an attribute of "emp:district" + that is specified in the DTD. + Invoke the "getNamespaceURI()" method on the attribute. + The method should return "http://www.nist.gov". + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/namespaceURI02.xml b/test/testcases/tests/level2/core/namespaceURI02.xml new file mode 100644 index 0000000..1a87501 --- /dev/null +++ b/test/testcases/tests/level2/core/namespaceURI02.xml @@ -0,0 +1,48 @@ + + + + + + +namespaceURI02 +NIST + + The "getNamespaceURI()" method for an Attribute + returns the namespace URI of this node, or null if unspecified. + + Retrieve the first emp:address node and get the emp:domestic attribute. + Invoke the "getNamespaceURI()" method on the attribute. + The method should return "http://www.nist.gov". + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/namespaceURI03.xml b/test/testcases/tests/level2/core/namespaceURI03.xml new file mode 100644 index 0000000..ac058ab --- /dev/null +++ b/test/testcases/tests/level2/core/namespaceURI03.xml @@ -0,0 +1,45 @@ + + + + + + +namespaceURI03 +NIST + + The "getNamespaceURI()" method for a Node + returns the namespace URI of this node, or null if unspecified. + + Retrieve the first employee node and invoke the "getNamespaceURI()" + method. The method should return "http://www.nist.gov". + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/namespaceURI04.xml b/test/testcases/tests/level2/core/namespaceURI04.xml new file mode 100644 index 0000000..52a824b --- /dev/null +++ b/test/testcases/tests/level2/core/namespaceURI04.xml @@ -0,0 +1,54 @@ + + + + + + +namespaceURI04 +NIST + + Retrieve the second employee node and invoke the "getNamespaceURI()" + method. The method should return "null". + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/nodegetlocalname03.xml b/test/testcases/tests/level2/core/nodegetlocalname03.xml new file mode 100644 index 0000000..76d8ad7 --- /dev/null +++ b/test/testcases/tests/level2/core/nodegetlocalname03.xml @@ -0,0 +1,56 @@ + + + + + + +nodegetlocalname03 +IBM + + The method getLocalName returns the local part of the qualified name of this node. + + Ceate two new element nodes and atribute nodes, with and without namespace prefixes. + Retreive the local part of their qualified names using getLocalName and verrify + if it is correct. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/nodegetnamespaceuri03.xml b/test/testcases/tests/level2/core/nodegetnamespaceuri03.xml new file mode 100644 index 0000000..a993d3a --- /dev/null +++ b/test/testcases/tests/level2/core/nodegetnamespaceuri03.xml @@ -0,0 +1,59 @@ + + + + + + +nodegetnamespaceuri03 +IBM + + The method getNamespaceURI returns the namespace URI of this node, or null if it is unspecified + For nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE and nodes created with + a DOM Level 1 method, such as createElement from the Document interface, this is always null. + + Ceate two new element nodes and atribute nodes, with and without namespace prefixes. + Retreive their namespaceURI's using getNamespaceURI and verrify if it is correct. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/nodegetownerdocument01.xml b/test/testcases/tests/level2/core/nodegetownerdocument01.xml new file mode 100644 index 0000000..51e6f06 --- /dev/null +++ b/test/testcases/tests/level2/core/nodegetownerdocument01.xml @@ -0,0 +1,44 @@ + + + + + + +nodegetownerdocument01 +IBM + + The method getOwnerDocument returns the Document object associated with this node + + Create a new DocumentType node. Since this node is not used with any Document yet + verify if the ownerDocument is null. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/nodegetownerdocument02.xml b/test/testcases/tests/level2/core/nodegetownerdocument02.xml new file mode 100644 index 0000000..ef66fdc --- /dev/null +++ b/test/testcases/tests/level2/core/nodegetownerdocument02.xml @@ -0,0 +1,52 @@ + + + + + + +nodegetownerdocument02 +IBM + + The method getOwnerDocument returns the Document object associated with this node + + Create a new Document node. Since this node is not used with any Document yet + verify if the ownerDocument is null. Create a new element Node on the new Document + object. Check the ownerDocument of the new element node. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/nodegetprefix03.xml b/test/testcases/tests/level2/core/nodegetprefix03.xml new file mode 100644 index 0000000..3eec6d9 --- /dev/null +++ b/test/testcases/tests/level2/core/nodegetprefix03.xml @@ -0,0 +1,56 @@ + + + + + + +nodegetprefix03 +IBM + + The method getPrefix returns the namespace prefix of this node, or null if it is unspecified. + + Ceate two new element nodes and atribute nodes, with and without namespace prefixes. + Retreive the prefix part of their qualified names using getPrefix and verify + if it is correct. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/nodehasattributes01.xml b/test/testcases/tests/level2/core/nodehasattributes01.xml new file mode 100644 index 0000000..017da0c --- /dev/null +++ b/test/testcases/tests/level2/core/nodehasattributes01.xml @@ -0,0 +1,45 @@ + + + + + + +nodehasattributes01 +IBM + + The method hasAttributes returns whether this node (if it is an element) has any attributes. + + Retreive an element node without attributes. Verify if hasAttributes returns false. + Retreive another element node with attributes. Verify if hasAttributes returns true. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/nodehasattributes02.xml b/test/testcases/tests/level2/core/nodehasattributes02.xml new file mode 100644 index 0000000..5fb47fa --- /dev/null +++ b/test/testcases/tests/level2/core/nodehasattributes02.xml @@ -0,0 +1,39 @@ + + + + + + +nodehasattributes02 +IBM + + The method hasAttributes returns whether this node (if it is an element) has any attributes. + + Retrieve the docType node. Since this is not an element node check if hasAttributes returns + null. + +Neil Delima +2002-04-28 + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/nodehasattributes03.xml b/test/testcases/tests/level2/core/nodehasattributes03.xml new file mode 100644 index 0000000..55850bb --- /dev/null +++ b/test/testcases/tests/level2/core/nodehasattributes03.xml @@ -0,0 +1,41 @@ + + + + + + +nodehasattributes03 +IBM + + The method hasAttributes returns whether this node (if it is an element) has any attributes. + + Retreive an element node with a default attributes. Verify if hasAttributes returns true. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/nodehasattributes04.xml b/test/testcases/tests/level2/core/nodehasattributes04.xml new file mode 100644 index 0000000..00e14ff --- /dev/null +++ b/test/testcases/tests/level2/core/nodehasattributes04.xml @@ -0,0 +1,58 @@ + + + + + + +nodehasattributes04 +IBM + + The method hasAttributes returns whether this node (if it is an element) has any attributes. + + Create a new Document, Element and Attr node. Add the Attr to the Element and append the + Element to the Document. Retreive the newly created element node from the document and check + if it has attributes using hasAttributes. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/nodeissupported01.xml b/test/testcases/tests/level2/core/nodeissupported01.xml new file mode 100644 index 0000000..4d5b406 --- /dev/null +++ b/test/testcases/tests/level2/core/nodeissupported01.xml @@ -0,0 +1,70 @@ + + + + + + + +nodeissupported01 +IBM + + The method "isSupported(feature,version)" Tests whether the DOM implementation + implements a specific feature and that feature is supported by this node. + + Call the isSupported method on the document element node with a combination of features + versions and versions as below. Valid feature names are case insensitive and versions + "2.0", "1.0" and if the version is not specified, supporting any version of the feature + should return true. Check if the value returned value was true. + +Neil Delima +2002-04-24 + + + + + + + + + + + +"XML" +"xmL" + + +"Core" +"CORE" + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/nodeissupported02.xml b/test/testcases/tests/level2/core/nodeissupported02.xml new file mode 100644 index 0000000..4634873 --- /dev/null +++ b/test/testcases/tests/level2/core/nodeissupported02.xml @@ -0,0 +1,70 @@ + + + + + + + +nodeissupported02 +IBM + + The method "isSupported(feature,version)" Tests whether the DOM implementation + implements a specific feature and that feature is supported by this node. + + Call the isSupported method on a new attribute node with a combination of features + versions and versions as below. Valid feature names are case insensitive and versions + "2.0", "1.0" and if the version is not specified, supporting any version of the feature + should return true. Check if the value returned value was true. + +Neil Delima +2002-04-24 + + + + + + + + + + + +"XML" +"xmL" + + +"Core" +"CORE" + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/nodeissupported03.xml b/test/testcases/tests/level2/core/nodeissupported03.xml new file mode 100644 index 0000000..8437cce --- /dev/null +++ b/test/testcases/tests/level2/core/nodeissupported03.xml @@ -0,0 +1,41 @@ + + + + + + + +nodeissupported03 +IBM + + The method "isSupported(feature,version)" Tests whether the DOM implementation + implements a specific feature and that feature is supported by this node. + + Call the isSupported method specifying empty strings for feature and version on a docType + Node. Check if the value returned value was false. + +Neil Delima +2002-04-24 + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/nodeissupported04.xml b/test/testcases/tests/level2/core/nodeissupported04.xml new file mode 100644 index 0000000..68ee69f --- /dev/null +++ b/test/testcases/tests/level2/core/nodeissupported04.xml @@ -0,0 +1,42 @@ + + + + + + + +nodeissupported04 +IBM + + The method "isSupported(feature,version)" Tests whether the DOM implementation + implements a specific feature and that feature is supported by this node. + + Call the isSupported method specifying empty strings for feature and version on a + new EntityReference node. Check if the value returned value was false. + +Neil Delima +2002-04-24 + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/nodeissupported05.xml b/test/testcases/tests/level2/core/nodeissupported05.xml new file mode 100644 index 0000000..56b816f --- /dev/null +++ b/test/testcases/tests/level2/core/nodeissupported05.xml @@ -0,0 +1,41 @@ + + + + + + + +nodeissupported05 +IBM + + The method "isSupported(feature,version)" Tests whether the DOM implementation + implements a specific feature and that feature is supported by this node. + + Call the isSupported method specifying bad values for feature and version on a new + Processing Instruction node. Check if the value returned from this method value was false. + +Neil Delima +2002-04-24 + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/nodenormalize01.xml b/test/testcases/tests/level2/core/nodenormalize01.xml new file mode 100644 index 0000000..94f5b64 --- /dev/null +++ b/test/testcases/tests/level2/core/nodenormalize01.xml @@ -0,0 +1,153 @@ + + + + + + + +nodenormalize01 +IBM + + The method "normalize" puts all Text nodes in the full depth of the sub-tree underneath + this Node, including attribute nodes, into a "normal" form where only structure + (e.g., elements, comments, processing instructions, CDATA sections, and entity references) + separates Text nodes, i.e., there are neither adjacent Text nodes nor empty Text nodes. + + Create a dom tree consisting of elements, comments, processing instructions, CDATA sections, + and entity references nodes seperated by text nodes. Check the length of the node list of each + before and after normalize has been called. + +Neil Delima +2002-04-24 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/nodesetprefix01.xml b/test/testcases/tests/level2/core/nodesetprefix01.xml new file mode 100644 index 0000000..a3817cc --- /dev/null +++ b/test/testcases/tests/level2/core/nodesetprefix01.xml @@ -0,0 +1,50 @@ + + + + + + +nodesetprefix01 +IBM + + The method setPrefix sets the namespace prefix of this node. Note that setting this attribute, + when permitted, changes the nodeName attribute, which holds the qualified name, as well as the + tagName and name attributes of the Element and Attr interfaces, when applicable. + + Create a new element node with a namespace prefix. Add it to a new DocumentFragment Node without + a prefix. Call setPrefix on the elemen node. Check if the prefix was set correctly on the element. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/nodesetprefix02.xml b/test/testcases/tests/level2/core/nodesetprefix02.xml new file mode 100644 index 0000000..7e86db2 --- /dev/null +++ b/test/testcases/tests/level2/core/nodesetprefix02.xml @@ -0,0 +1,56 @@ + + + + + + +nodesetprefix02 +IBM + + The method setPrefix sets the namespace prefix of this node. Note that setting this attribute, + when permitted, changes the nodeName attribute, which holds the qualified name, as well as the + tagName and name attributes of the Element and Attr interfaces, when applicable. + + Create a new attribute node and add it to an element node with an existing attribute having + the same localName as this attribute but different namespaceURI. Change the prefix of the + newly created attribute using setPrefix. Check if the new attribute nodeName has changed + and the existing attribute is the same. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/nodesetprefix03.xml b/test/testcases/tests/level2/core/nodesetprefix03.xml new file mode 100644 index 0000000..eaa0739 --- /dev/null +++ b/test/testcases/tests/level2/core/nodesetprefix03.xml @@ -0,0 +1,42 @@ + + + + + + +nodesetprefix03 +IBM + + The method setPrefix raises a NAMESPACE_ERR if the namespaceURI of this node is null. + + Create a new element node without a namespace prefix. Call setPrefix on the newly created elemenent node. + Check if a NAMESPACE_ERR is thrown. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/nodesetprefix04.xml b/test/testcases/tests/level2/core/nodesetprefix04.xml new file mode 100644 index 0000000..f81523d --- /dev/null +++ b/test/testcases/tests/level2/core/nodesetprefix04.xml @@ -0,0 +1,51 @@ + + + + + + +nodesetprefix04 +IBM + + The method setPrefix raises a NAMESPACE_ERR if the namespaceURI of this node is null. + + Retreive the a default Attribute node which does not have a namespace prefix. Call the setPrefix + method on it. Check if a NAMESPACE_ERR is thrown. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/nodesetprefix05.xml b/test/testcases/tests/level2/core/nodesetprefix05.xml new file mode 100644 index 0000000..7e8fd89 --- /dev/null +++ b/test/testcases/tests/level2/core/nodesetprefix05.xml @@ -0,0 +1,53 @@ + + + + + + +nodesetprefix05 +IBM + + The method setPrefix raises a NAMESPACE_ERR if the specified prefix is malformed. + + Create a new namespace aware element node and call the setPrefix method on it with several malformed + prefix values. Check if a NAMESPACE_ERR is thrown. + +Neil Delima +2002-04-28 + + + + + + + +"_:" +":0" +":" +"_::" +"a:0:c" + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/nodesetprefix06.xml b/test/testcases/tests/level2/core/nodesetprefix06.xml new file mode 100644 index 0000000..ac4fcf4 --- /dev/null +++ b/test/testcases/tests/level2/core/nodesetprefix06.xml @@ -0,0 +1,43 @@ + + + + + + +nodesetprefix06 +IBM + + The method setPrefix raises a NAMESPACE_ERR if the specified prefix is "xml" and the namespaceURI + of this node is different from "http://www.w3.org/XML/1998/namespace". + + Invoke the setPrefix method on this Element object with namespaceURI that is different from + http://www..w3.org/xml/1998/namespace and a prefix whose values is xml. + Check if the NAMESPACE_ERR was thrown. + +Neil Delima +2002-04-28 + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/nodesetprefix07.xml b/test/testcases/tests/level2/core/nodesetprefix07.xml new file mode 100644 index 0000000..f8e2b47 --- /dev/null +++ b/test/testcases/tests/level2/core/nodesetprefix07.xml @@ -0,0 +1,44 @@ + + + + + + +nodesetprefix07 +IBM + + The method setPrefix raises a NAMESPACE_ERR if this node is an attribute and the specified + prefix is "xmlns" and the namespaceURI of this node is different from + "http://www.w3.org/2000/xmlns/". + + Create a new attribute node whose namespaceURI is different form "http://www.w3.org/2000/xmlns/" + and node prefix is "xmlns". + Check if the NAMESPACE_ERR was thrown. + +Neil Delima +2002-04-28 + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/nodesetprefix08.xml b/test/testcases/tests/level2/core/nodesetprefix08.xml new file mode 100644 index 0000000..bec9ebb --- /dev/null +++ b/test/testcases/tests/level2/core/nodesetprefix08.xml @@ -0,0 +1,46 @@ + + + + + + +nodesetprefix08 +IBM + + The method setPrefix raises a NAMESPACE_ERR if this node is an attribute and the qualifiedName + of this node is "xmlns + + Retreive an attribute node whose qualifiedName is xmlns. Try setting a prefix on this node. + Check if the NAMESPACE_ERR was thrown. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/nodesetprefix09.xml b/test/testcases/tests/level2/core/nodesetprefix09.xml new file mode 100644 index 0000000..1c61f3b --- /dev/null +++ b/test/testcases/tests/level2/core/nodesetprefix09.xml @@ -0,0 +1,42 @@ + + + + + + +nodesetprefix09 +IBM + + The method setPrefix raises a INVALID_CHARACTER_ERR if the specified prefix contains an illegal character. + + Create a new namespace aware element node and call the setPrefix method on it with a prefix having + an invalid character. Check if a NAMESPACE_ERR is thrown. + +Neil Delima +2002-04-28 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/normalize01.xml b/test/testcases/tests/level2/core/normalize01.xml new file mode 100644 index 0000000..7cf5c7d --- /dev/null +++ b/test/testcases/tests/level2/core/normalize01.xml @@ -0,0 +1,55 @@ + + + + + + +normalize01 +NIST + + The "normalize()" method puts all the nodes in the full + depth of the sub-tree underneath this element into a + "normal" form. + + Retrieve the third employee and access its second child. + This child contains a block of text that is spread + across multiple lines. The content of the "name" child + should be parsed and treated as a single Text node. + + This appears to be a duplicate of elementnormalize.xml in DOM L1 Test Suite + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/ownerDocument01.xml b/test/testcases/tests/level2/core/ownerDocument01.xml new file mode 100644 index 0000000..03c054a --- /dev/null +++ b/test/testcases/tests/level2/core/ownerDocument01.xml @@ -0,0 +1,38 @@ + + + + + + +ownerDocument01 +NIST + + 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. + +Mary Brady +2001-08-17 + + + + + + + + diff --git a/test/testcases/tests/level2/core/ownerElement01.xml b/test/testcases/tests/level2/core/ownerElement01.xml new file mode 100644 index 0000000..78cb0c3 --- /dev/null +++ b/test/testcases/tests/level2/core/ownerElement01.xml @@ -0,0 +1,48 @@ + + + + + + +ownerElement01 +NIST + + The "getOwnerElement()" will return the Element node this attribute + is attached to or null if this attribute is not in use. + Get the "domestic" attribute from the first "address" node. + Apply the "getOwnerElement()" method to get the Element associated + with the attribute. The value returned should be "address". + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/ownerElement02.xml b/test/testcases/tests/level2/core/ownerElement02.xml new file mode 100644 index 0000000..7a600c2 --- /dev/null +++ b/test/testcases/tests/level2/core/ownerElement02.xml @@ -0,0 +1,41 @@ + + + + + + +ownerElement02 +NIST + + The "getOwnerElement()" will return the Element node this attribute + is attached to or null if this attribute is not in use. + Create a new attribute. + Apply the "getOwnerElement()" method to get the Element associated + with the attribute. The value returned should be "null" since this + attribute is not in use. + +Mary Brady +2001-08-17 + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/prefix01.xml b/test/testcases/tests/level2/core/prefix01.xml new file mode 100644 index 0000000..dd85d18 --- /dev/null +++ b/test/testcases/tests/level2/core/prefix01.xml @@ -0,0 +1,43 @@ + + + + + + +prefix01 +NIST + + The "getPrefix()" method for a Node + returns the namespace prefix of the node, + and for nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE + and nodes created with a DOM Level 1 method, this is null. + + Create an new Element with the createElement() method. + Invoke the "getPrefix()" method on the newly created element + node will cause "null" to be returned. + +Mary Brady +2001-08-17 + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/prefix02.xml b/test/testcases/tests/level2/core/prefix02.xml new file mode 100644 index 0000000..68744e4 --- /dev/null +++ b/test/testcases/tests/level2/core/prefix02.xml @@ -0,0 +1,48 @@ + + + + + + +prefix02 +NIST + + The "getPrefix()" method + returns the namespace prefix of this node, or null if unspecified. + For nodes of any type other than ELEMENT_NODE and ATTRIBUTE_NODE, + this is always null. + + Retrieve the first emp:employeeId node and get the first child of this node. + Since the first child is Text node invoking the "getPrefix()" + method will cause "null" to be returned. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/prefix03.xml b/test/testcases/tests/level2/core/prefix03.xml new file mode 100644 index 0000000..b467034 --- /dev/null +++ b/test/testcases/tests/level2/core/prefix03.xml @@ -0,0 +1,44 @@ + + + + + + +prefix03 +NIST + + The "getPrefix()" method for a node + returns the namespace prefix of this node, or null if it is unspecified. + + Retrieve the first emp:employee node and invoke the getPrefix() method." + The method should return "emp". + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/prefix04.xml b/test/testcases/tests/level2/core/prefix04.xml new file mode 100644 index 0000000..6e1ed3f --- /dev/null +++ b/test/testcases/tests/level2/core/prefix04.xml @@ -0,0 +1,42 @@ + + + + + + +prefix04 +NIST + + The "getPrefix()" method for a node + returns the namespace prefix of this node, or null if it is unspecified. + + Retrieve the first employee node and invoke the getPrefix() method." + The method should return "null". + +Mary Brady +2001-08-17 + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/prefix05.xml b/test/testcases/tests/level2/core/prefix05.xml new file mode 100644 index 0000000..ca5c48a --- /dev/null +++ b/test/testcases/tests/level2/core/prefix05.xml @@ -0,0 +1,53 @@ + + + + + + +prefix05 +NIST + + The "setPrefix(prefix)" method raises a + NAMESPACE_ERR DOMException if the specified node is an attribute + and the specified prefix is xmlns and the namespaceURI is different from + http://www.w3.org/2000/xmlns. + + Attempt to insert "xmlns" as the new namespace prefix on the emp:domestic + attribute within the emp:address node. + An exception should be raised since the namespaceURI of this node is not + http://www.w3.org/2000/xmlns. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/prefix06.xml b/test/testcases/tests/level2/core/prefix06.xml new file mode 100644 index 0000000..8a725d9 --- /dev/null +++ b/test/testcases/tests/level2/core/prefix06.xml @@ -0,0 +1,49 @@ + + + + + + +prefix06 +NIST + + The "setPrefix(prefix)" method raises a + INVALID_CHARACTER_ERR DOMException if the specified + prefix contains an illegal character. + + Attempt to insert a new namespace prefix on the first employee node. + An exception should be raised since the namespace prefix has an invalid + character. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/prefix07.xml b/test/testcases/tests/level2/core/prefix07.xml new file mode 100644 index 0000000..c498b33 --- /dev/null +++ b/test/testcases/tests/level2/core/prefix07.xml @@ -0,0 +1,47 @@ + + + + + + +prefix07 +NIST + + The "setPrefix(prefix)" method raises a + NAMESPACE_ERR DOMException if the specified + prefix if malformed. + + Attempt to insert a new namespace prefix on the second employee node. + An exception should be raised since the namespace prefix is malformed. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/prefix08.xml b/test/testcases/tests/level2/core/prefix08.xml new file mode 100644 index 0000000..69a1481 --- /dev/null +++ b/test/testcases/tests/level2/core/prefix08.xml @@ -0,0 +1,63 @@ + + + + + + +prefix08 +NIST + + The "setPrefix(prefix)" method causes the + DOMException NO_MODIFICATION_ALLOWED_ERR to be raised + if the node is readonly. + + Obtain the children of the THIRD "gender" element. The elements + content is an entity reference. Get the FIRST item + from the entity reference and execute the "setPrefix(prefix)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/prefix09.xml b/test/testcases/tests/level2/core/prefix09.xml new file mode 100644 index 0000000..f4d671f --- /dev/null +++ b/test/testcases/tests/level2/core/prefix09.xml @@ -0,0 +1,53 @@ + + + + + + +prefix09 +NIST + + The "setPrefix(prefix)" method raises a + NAMESPACE_ERR DOMException if the specified node is an attribute + and the qualifiedName of this node is xmlns. + + Attempt to set the prefix on the xmlns attribute within the fourth address + element. + An exception should be raised since the qualifiedName of this attribute + is "xmlns". + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/prefix10.xml b/test/testcases/tests/level2/core/prefix10.xml new file mode 100644 index 0000000..b9c3154 --- /dev/null +++ b/test/testcases/tests/level2/core/prefix10.xml @@ -0,0 +1,49 @@ + + + + + + +prefix10 +NIST + + The "setPrefix(prefix)" method raises a + NAMESPACE_ERR DOMException if the specified + prefix is xml and the namespaceURI is different from + http://www.w3.org/XML/1998/namespace. + + Attempt to insert "xml" as the new namespace prefix on the first employee node. + An exception should be raised since the namespaceURI of this node is not + http://www.w3.org/XML/1998/namespace. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/prefix11.xml b/test/testcases/tests/level2/core/prefix11.xml new file mode 100644 index 0000000..187f9bc --- /dev/null +++ b/test/testcases/tests/level2/core/prefix11.xml @@ -0,0 +1,57 @@ + + + + + + +prefix11 +NIST + + The "setPrefix(prefix)" method raises a + NAMESPACE_ERR DOMException if the specified + prefix is set on a node with a namespaceURI that is null. + + Attempt to insert a new namespace prefix on the second employee node. + An exception should be raised since the namespace prefix is set + on a node whose namespaceURI is null. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/publicId01.xml b/test/testcases/tests/level2/core/publicId01.xml new file mode 100644 index 0000000..4e70f3c --- /dev/null +++ b/test/testcases/tests/level2/core/publicId01.xml @@ -0,0 +1,41 @@ + + + + + + +publicId01 +NIST + + The "getPublicId()" method of a documenttype node contains + the public identifier associated with the external subset. + + Retrieve the documenttype. + Apply the "getPublicId()" method. The string "STAFF" should be + returned. + +Mary Brady +2001-08-17 + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/removeAttributeNS01.xml b/test/testcases/tests/level2/core/removeAttributeNS01.xml new file mode 100644 index 0000000..e054ccb --- /dev/null +++ b/test/testcases/tests/level2/core/removeAttributeNS01.xml @@ -0,0 +1,64 @@ + + + + + + +removeAttributeNS01 +NIST + + The "removeAttributeNS(namespaceURI,localName)" method for an attribute causes the + DOMException NO_MODIFICATION_ALLOWED_ERR to be raised + if the node is readonly. + + Obtain the children of the THIRD "gender" element. The elements + content is an entity reference. Try to remove an attribute + from the entity reference by executing the + "removeAttributeNS(namespaceURI,localName)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/removeAttributeNS02.xml b/test/testcases/tests/level2/core/removeAttributeNS02.xml new file mode 100644 index 0000000..880e7da --- /dev/null +++ b/test/testcases/tests/level2/core/removeAttributeNS02.xml @@ -0,0 +1,66 @@ + + + + + + +removeAttributeNS02 +NIST + + The "removeAttributeNS(namespaceURI,localName)" removes an attribute by + local name and namespace URI. If the removed attribute has a + default value it is immediately replaced. The replacing attribute has the same + namespace URI and local name, as well as the original prefix. + + Retrieve the attribute named "emp:local" from emp:address + node, then remove the "emp:local" + attribute by invoking the "removeAttributeNS(namespaceURI,localName)" method. + The "emp:local" attribute has a default value defined in the + DTD file, that value should immediately replace the old + value. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/removeNamedItemNS01.xml b/test/testcases/tests/level2/core/removeNamedItemNS01.xml new file mode 100644 index 0000000..6ac9efe --- /dev/null +++ b/test/testcases/tests/level2/core/removeNamedItemNS01.xml @@ -0,0 +1,52 @@ + + + + + + +removeNamedItemNS01 +NIST + + The "removeNamedItemNS(namespaceURI,localName)" method for a + NamedNodeMap should remove a node specified by localName and namespaceURI. + + Retrieve a list of elements with tag name "address". + Access the second element from the list and get its attributes. + Try to remove the attribute node with local name "domestic" + and namespace uri "http://www.usa.com" with + method removeNamedItemNS(namespaceURI,localName). + Check to see if the node has been removed. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/removeNamedItemNS02.xml b/test/testcases/tests/level2/core/removeNamedItemNS02.xml new file mode 100644 index 0000000..35915fb --- /dev/null +++ b/test/testcases/tests/level2/core/removeNamedItemNS02.xml @@ -0,0 +1,56 @@ + + + + + + +removeNamedItemNS02 +NIST + + The "removeNamedItemNS(namespaceURI,localName)" method for a + NamedNodeMap should raise NOT_FOUND_ERR DOMException if + there is no node with the specified namespaceURI and localName in this map. + + Retrieve a list of elements with tag name "address". + Access the second element from the list and get its attributes. + Try to remove an attribute node with local name "domest" + and namespace uri "http://www.usa.com" with + method removeNamedItemNS(namespaceURI,localName). + This should raise NOT_FOUND_ERR DOMException. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/removeNamedItemNS03.xml b/test/testcases/tests/level2/core/removeNamedItemNS03.xml new file mode 100644 index 0000000..43bc0c0 --- /dev/null +++ b/test/testcases/tests/level2/core/removeNamedItemNS03.xml @@ -0,0 +1,71 @@ + + + + + + +removeNamedItemNS03 +NIST + + The "removeNamedItemNS(namespaceURI,localName)" method for a + NamedNodeMap should raise NO_MODIFICATION_ALLOWED_ERR DOMException if + this map is readonly. + + Retrieve a list of "gender" elements. Get access to the THIRD element + which contains an ENTITY_REFERENCE child node. Try to remove the attribute + in the node's map with method removeNamedItemNS(namespaceURI,localName). + This should result in NO_MODIFICATION_ALLOWED_ERR + DOMException. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/setAttributeNS01.xml b/test/testcases/tests/level2/core/setAttributeNS01.xml new file mode 100644 index 0000000..7892549 --- /dev/null +++ b/test/testcases/tests/level2/core/setAttributeNS01.xml @@ -0,0 +1,50 @@ + + + + + + +setAttributeNS01 +NIST + + The "setAttributeNS(namespaceURI,qualifiedName,Value)" method raises a + INVALID_CHARACTER_ERR DOMException if the specified + prefix contains an illegal character. + + Attempt to add a new attribute on the first employee node. + An exception should be raised since the "qualifiedName" has an invalid + character. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/setAttributeNS02.xml b/test/testcases/tests/level2/core/setAttributeNS02.xml new file mode 100644 index 0000000..8eca054 --- /dev/null +++ b/test/testcases/tests/level2/core/setAttributeNS02.xml @@ -0,0 +1,49 @@ + + + + + + +setAttributeNS02 +NIST + + The "setAttributeNS(namespaceURI,qualifiedName,value)" method raises a + NAMESPACE_ERR DOMException if the specified + qualifiedName if malformed. + + Attempt to add a new attribute on the second employee node. + An exception should be raised since the "qualifiedName" is malformed. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/setAttributeNS03.xml b/test/testcases/tests/level2/core/setAttributeNS03.xml new file mode 100644 index 0000000..e63e35b --- /dev/null +++ b/test/testcases/tests/level2/core/setAttributeNS03.xml @@ -0,0 +1,67 @@ + + + + + + +setAttributeNS03 +NIST + + The "setAttributeNS(namespaceURI,qualifiedName,value)" method for an attribute causes the + DOMException NO_MODIFICATION_ALLOWED_ERR to be raised + if the node is readonly. + + Obtain the children of the THIRD "gender" element. The elements + content is an entity reference. Try to set an attribute + in the entity reference by executing the + "setAttributeNS(namespaceURI,qualifiedName,value)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/setAttributeNS04.xml b/test/testcases/tests/level2/core/setAttributeNS04.xml new file mode 100644 index 0000000..0544e46 --- /dev/null +++ b/test/testcases/tests/level2/core/setAttributeNS04.xml @@ -0,0 +1,63 @@ + + + + + + +setAttributeNS04 +NIST + + The "setAttributeNS(namespaceURI,qualifiedName,value)" method adds a new attribute. + If an attribute with the same local name and namespace URI is already present + on the element, its prefix is changed to be the prefix part of the "qualifiedName", + and its vale is changed to be the "value" paramter. + null value if no previously existing Attr node with the + same name was replaced. + + Add a new attribute to the "emp:address" element. + Check to see if the new attribute has been successfully added to the document + by getting the attributes value, namespace URI, local Name and prefix. + The prefix will be changed to the prefix part of the "qualifiedName" + and its value changed to the "value" parameter. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/setAttributeNS05.xml b/test/testcases/tests/level2/core/setAttributeNS05.xml new file mode 100644 index 0000000..3d1174f --- /dev/null +++ b/test/testcases/tests/level2/core/setAttributeNS05.xml @@ -0,0 +1,54 @@ + + + + + + +setAttributeNS05 +NIST + + The "setAttributeNS(namespaceURI,qualifiedName,value)" method adds a new attribute. + If an attribute with the same local name and namespace URI is already present + on the element, its prefix is changed to be the prefix part of the "qualifiedName", + and its vale is changed to be the "value" paramter. + null value if no previously existing Attr node with the + same name was replaced. + + Add a new attribute to the "emp:address" element. + Check to see if the new attribute has been successfully added to the document. + The new attribute "<newValue>" contains markup and therefore is escaped + by the implementation. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/setAttributeNS06.xml b/test/testcases/tests/level2/core/setAttributeNS06.xml new file mode 100644 index 0000000..3d42470 --- /dev/null +++ b/test/testcases/tests/level2/core/setAttributeNS06.xml @@ -0,0 +1,51 @@ + + + + + + +setAttributeNS06 +NIST + + The "setAttributeNS(namespaceURI,localName,value)" method raises a + NAMESPACE_ERR DOMException if the "qualifiedName" has a + prefix of "xml" and the namespaceURI is different from + http://www.w3.org/XML/1998/namespace. + + Attempt to add an attribute with a prefix of "xml" as the on the first employee node. + An exception should be raised since the namespaceURI of this node is not + http://www.w3.org/XML/1998/namespace. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/setAttributeNS07.xml b/test/testcases/tests/level2/core/setAttributeNS07.xml new file mode 100644 index 0000000..8a2e5b7 --- /dev/null +++ b/test/testcases/tests/level2/core/setAttributeNS07.xml @@ -0,0 +1,52 @@ + + + + + + +setAttributeNS07 +NIST + + The "setAttributeNS(namespaceURI,localName,value)" method raises a + NAMESPACE_ERR DOMException if the "qualifiedName" has a + value of "xmlns" and the namespaceURI is different from + http://www.w3.org/2000/xmlns. + + Attempt to add an attribute with a "qualifiedName" of "xmlns" as the + on the first employee node. + An exception should be raised since the namespaceURI of this node is not + http://www.w3.org/2000/xmlns. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/setAttributeNS09.xml b/test/testcases/tests/level2/core/setAttributeNS09.xml new file mode 100644 index 0000000..a1205ea --- /dev/null +++ b/test/testcases/tests/level2/core/setAttributeNS09.xml @@ -0,0 +1,63 @@ + + + + + + +setAttributeNS09 +NIST + + The "setAttributeNS(namespaceURI,qualifiedName,value)" method adds a new attribute. + If an attribute with the same local name and namespace URI is already present + on the element, its prefix is changed to be the prefix part of the "qualifiedName", + and its vale is changed to be the "value" paramter. + null value if no previously existing Attr node with the + same name was replaced. + + Add a new attribute to the "emp:address" element. + Check to see if the new attribute has been successfully added to the document + by getting the attributes value, namespace URI, local Name and prefix. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/setAttributeNS10.xml b/test/testcases/tests/level2/core/setAttributeNS10.xml new file mode 100644 index 0000000..6c27217 --- /dev/null +++ b/test/testcases/tests/level2/core/setAttributeNS10.xml @@ -0,0 +1,43 @@ + + + + + + +setAttributeNS10 +Curt Arnold + +Element.setAttributeNS with an empty qualified name should cause an INVALID_CHARACTER_ERR. + +2004-03-09 + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/setAttributeNodeNS01.xml b/test/testcases/tests/level2/core/setAttributeNodeNS01.xml new file mode 100644 index 0000000..8239fab --- /dev/null +++ b/test/testcases/tests/level2/core/setAttributeNodeNS01.xml @@ -0,0 +1,65 @@ + + + + + + +setAttributeNodeNS01 +NIST + + The "setAttributeNode(newAttr)" method raises an + "INUSE_ATTRIBUTE_ERR DOMException if the "newAttr" + is already an attribute of another element. + + Retrieve the first emp:address and append + a newly created element. The "createAttributeNS(namespaceURI,qualifiedName)" + and "setAttributeNodeNS(newAttr)" methods are invoked + to create and add a new attribute to the newly created + Element. The "setAttributeNodeNS(newAttr)" method is + once again called to add the new attribute causing an + exception to be raised since the attribute is already + an attribute of another element. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/setAttributeNodeNS02.xml b/test/testcases/tests/level2/core/setAttributeNodeNS02.xml new file mode 100644 index 0000000..3b70fb9 --- /dev/null +++ b/test/testcases/tests/level2/core/setAttributeNodeNS02.xml @@ -0,0 +1,69 @@ + + + + + + +setAttributeNodeNS01 +NIST + + The "setAttributeNodeNS(namespaceURI,qualifiedName,value)" method for an attribute causes the + DOMException NO_MODIFICATION_ALLOWED_ERR to be raised + if the node is readonly. + + Obtain the children of the THIRD "gender" element. The elements + content is an entity reference. Try to set an attribute + in the entity reference by executing the + "setAttributeNodeNS(newAttr)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/setAttributeNodeNS03.xml b/test/testcases/tests/level2/core/setAttributeNodeNS03.xml new file mode 100644 index 0000000..0b4f368 --- /dev/null +++ b/test/testcases/tests/level2/core/setAttributeNodeNS03.xml @@ -0,0 +1,52 @@ + + + + + + +setAttributeNodeNS03 +NIST + + The "setAttributeNodeNS(newAttr)" adds a new attribute. + If an attribute with that local name and that namespaceURI is already + present in the element, it is replaced by the new one. + + Retrieve the first emp:address element and add a new attribute + to the element. Since an attribute with the same local name + and namespaceURI as the newly created attribute does not exist + the value "null" is returned. + This test uses the "createAttributeNS(namespaceURI,localName) + method from the Document interface to create the new attribute to add. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/setAttributeNodeNS04.xml b/test/testcases/tests/level2/core/setAttributeNodeNS04.xml new file mode 100644 index 0000000..86ccd12 --- /dev/null +++ b/test/testcases/tests/level2/core/setAttributeNodeNS04.xml @@ -0,0 +1,54 @@ + + + + + + +setAttributeNodeNS04 +NIST + + The "setAttributeNodeNS(newAttr)" adds a new attribute. + If an attribute with that local name and that namespaceURI is already + present in the element, it is replaced by the new one. + + Retrieve the first emp:address element and add a new attribute + to the element. Since an attribute with the same local name + and namespaceURI already exists, it is replaced by the new one and + returns the replaced "Attr" node. + This test uses the "createAttributeNS(namespaceURI,localName) + method from the Document interface to create the new attribute to add. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/setAttributeNodeNS05.xml b/test/testcases/tests/level2/core/setAttributeNodeNS05.xml new file mode 100644 index 0000000..f00fc54 --- /dev/null +++ b/test/testcases/tests/level2/core/setAttributeNodeNS05.xml @@ -0,0 +1,60 @@ + + + + + + +setAttributeNodeNS05 +NIST + + The "setAttributeNodeNS(newAttr)" method raises an + "WRONG_DOCUMENT_ERR DOMException if the "newAttr" + was created from a different document than the one that + created this document. + + Retrieve the first emp:address and attempt to set a new + attribute node. The new + attribute was created from a document other than the + one that created this element, therefore a + WRONG_DOCUMENT_ERR DOMException should be raised. + This test uses the "createAttributeNS(newAttr)" method + from the Document interface. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/setNamedItemNS01.xml b/test/testcases/tests/level2/core/setNamedItemNS01.xml new file mode 100644 index 0000000..cbd98b9 --- /dev/null +++ b/test/testcases/tests/level2/core/setNamedItemNS01.xml @@ -0,0 +1,61 @@ + + + + + + +setNamedItemNS01 +NIST + + The "setNamedItemNS(arg)" method for a + NamedNodeMap should raise INUSE_ATTRIBUTE_ERR DOMException if + arg is an Attr that is already an attribute of another Element object. + + Retrieve an attr node from the third "address" element whose local name + is "domestic" and namespaceURI is "http://www.netzero.com". + Invoke method setNamedItemNS(arg) on the map of the first "address" element with + arg being the attr node from above. Method should raise + INUSE_ATTRIBUTE_ERR DOMException. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/setNamedItemNS02.xml b/test/testcases/tests/level2/core/setNamedItemNS02.xml new file mode 100644 index 0000000..a1761bb --- /dev/null +++ b/test/testcases/tests/level2/core/setNamedItemNS02.xml @@ -0,0 +1,60 @@ + + + + + + +setNamedItemNS02 +NIST + + The "setNamedItemNS(arg)" method for a + NamedNodeMap should raise WRONG_DOCUMENT_ERR DOMException if arg was + created from a different document than the one that created this map. + + Create an attr node in a different document with qualifiedName equals + "dmstc:domestic" and namespaceURI is "http://www.usa.com". + Access the namednodemap of the first "address" element in this document. + Invoke method setNamedItemNS(arg) with arg being the attr node from above. + Method should raise WRONG_DOCUMENT_ERR DOMException. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/setNamedItemNS03.xml b/test/testcases/tests/level2/core/setNamedItemNS03.xml new file mode 100644 index 0000000..77e08eb --- /dev/null +++ b/test/testcases/tests/level2/core/setNamedItemNS03.xml @@ -0,0 +1,57 @@ + + + + + + +setNamedItemNS03 +NIST + + The "setNamedItemNS(arg)" method for a + NamedNodeMap should add a node using its namespaceURI and localName given that + there is no existing node with the same namespaceURI and localName in the map. + + Create an attr node with namespaceURI "http://www.nist.gov",qualifiedName + "prefix:newAttr" and value "newValue". + Invoke method setNamedItemNS(arg) on the map of the first "address" + element where arg is identified by the namespaceURI and qualifiedName + from above. Method should return the newly added attr node. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/setNamedItemNS04.xml b/test/testcases/tests/level2/core/setNamedItemNS04.xml new file mode 100644 index 0000000..c6076ce --- /dev/null +++ b/test/testcases/tests/level2/core/setNamedItemNS04.xml @@ -0,0 +1,73 @@ + + + + + + +setNamedItemNS04 +NIST + + The "setNamedItemNS(arg)" method for a + NamedNodeMap should raise NO_MODIFICATION_ALLOWED_ERR DOMException if + this map is readonly. + + Retrieve a list of "gender" elements. Get access to the THIRD element + which contains an ENTITY_REFERENCE child node. Get access to the node's + map. Try to add an attribute node specified by arg with + method setNamedItemNS(arg). This should result in NO_MODIFICATION_ALLOWED_ERR + DOMException. + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/setNamedItemNS05.xml b/test/testcases/tests/level2/core/setNamedItemNS05.xml new file mode 100644 index 0000000..5d1ccfc --- /dev/null +++ b/test/testcases/tests/level2/core/setNamedItemNS05.xml @@ -0,0 +1,55 @@ + + + + + + +setNamedItemNS05 +NIST + + The "setNamedItemNS(arg)" method for a + NamedNodeMap should replace an existing node n1 found in the map with arg if n1 + has the same namespaceURI and localName as arg and return n1. + + Create an attribute node in with namespaceURI "http://www.usa.com" + and qualifiedName "dmstc:domestic" whose value is "newVal". + Invoke method setNamedItemNS(arg) on the map of the first "address" + element. Method should return the old attribute node identified + by namespaceURI and qualifiedName from above,whose value is "Yes". + +Mary Brady +2001-08-17 + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/core/systemId01.xml b/test/testcases/tests/level2/core/systemId01.xml new file mode 100644 index 0000000..96d9c65 --- /dev/null +++ b/test/testcases/tests/level2/core/systemId01.xml @@ -0,0 +1,42 @@ + + + + + + +systemId01 +NIST + + The "getSystemId()" method of a documenttype node contains + the system identifier associated with the external subset. + + Retrieve the documenttype. + Apply the "getSystemId()" method. The string "staffNS.dtd" should be + returned. + +Mary Brady +2001-08-17 + + + + + + + + + + + diff --git a/test/testcases/tests/level2/events/.cvsignore b/test/testcases/tests/level2/events/.cvsignore new file mode 100644 index 0000000..cc87140 --- /dev/null +++ b/test/testcases/tests/level2/events/.cvsignore @@ -0,0 +1,2 @@ +dom2.dtd +dom2.xsd diff --git a/test/testcases/tests/level2/events/CVS/Entries b/test/testcases/tests/level2/events/CVS/Entries new file mode 100644 index 0000000..278f226 --- /dev/null +++ b/test/testcases/tests/level2/events/CVS/Entries @@ -0,0 +1,30 @@ +D/files//// +/.cvsignore/1.2/Fri Apr 3 02:47:56 2009// +/DocumentEventCast01.xml/1.2/Fri Apr 3 02:47:56 2009// +/EventTargetCast01.xml/1.1/Fri Apr 3 02:47:56 2009// +/alltests.xml/1.5/Fri Apr 3 02:47:56 2009// +/createEvent01.xml/1.2/Fri Apr 3 02:47:56 2009// +/createEvent02.xml/1.2/Fri Apr 3 02:47:56 2009// +/createEvent03.xml/1.2/Fri Apr 3 02:47:56 2009// +/createEvent04.xml/1.2/Fri Apr 3 02:47:56 2009// +/createEvent05.xml/1.2/Fri Apr 3 02:47:56 2009// +/dispatchEvent01.xml/1.2/Fri Apr 3 02:47:56 2009// +/dispatchEvent02.xml/1.2/Fri Apr 3 02:47:56 2009// +/dispatchEvent03.xml/1.2/Fri Apr 3 02:47:56 2009// +/dispatchEvent04.xml/1.2/Fri Apr 3 02:47:56 2009// +/dispatchEvent05.xml/1.2/Fri Apr 3 02:47:56 2009// +/dispatchEvent06.xml/1.2/Fri Apr 3 02:47:56 2009// +/dispatchEvent07.xml/1.2/Fri Apr 3 02:47:56 2009// +/dispatchEvent08.xml/1.2/Fri Apr 3 02:47:56 2009// +/dispatchEvent09.xml/1.2/Fri Apr 3 02:47:56 2009// +/dispatchEvent10.xml/1.2/Fri Apr 3 02:47:56 2009// +/dispatchEvent11.xml/1.2/Fri Apr 3 02:47:56 2009// +/dispatchEvent12.xml/1.3/Fri Apr 3 02:47:56 2009// +/dispatchEvent13.xml/1.3/Fri Apr 3 02:47:56 2009// +/initEvent01.xml/1.2/Fri Apr 3 02:47:56 2009// +/initEvent02.xml/1.2/Fri Apr 3 02:47:56 2009// +/initEvent03.xml/1.2/Fri Apr 3 02:47:56 2009// +/initEvent04.xml/1.2/Fri Apr 3 02:47:56 2009// +/initEvent05.xml/1.2/Fri Apr 3 02:47:56 2009// +/initEvent06.xml/1.2/Fri Apr 3 02:47:56 2009// +/metadata.xml/1.1/Fri Apr 3 02:47:56 2009// diff --git a/test/testcases/tests/level2/events/CVS/Repository b/test/testcases/tests/level2/events/CVS/Repository new file mode 100644 index 0000000..bb9fbb7 --- /dev/null +++ b/test/testcases/tests/level2/events/CVS/Repository @@ -0,0 +1 @@ +2001/DOM-Test-Suite/tests/level2/events diff --git a/test/testcases/tests/level2/events/CVS/Root b/test/testcases/tests/level2/events/CVS/Root new file mode 100644 index 0000000..3c7177e --- /dev/null +++ b/test/testcases/tests/level2/events/CVS/Root @@ -0,0 +1 @@ +:pserver:anonymous@dev.w3.org:/sources/public diff --git a/test/testcases/tests/level2/events/CVS/Template b/test/testcases/tests/level2/events/CVS/Template new file mode 100644 index 0000000..e69de29 diff --git a/test/testcases/tests/level2/events/DocumentEventCast01.xml b/test/testcases/tests/level2/events/DocumentEventCast01.xml new file mode 100644 index 0000000..9071c55 --- /dev/null +++ b/test/testcases/tests/level2/events/DocumentEventCast01.xml @@ -0,0 +1,33 @@ + + + + + + +DocumentEventCast01 +Curt Arnold + +A document is created using implementation.createDocument and +cast to a DocumentEvent interface. + +2002-04-21 + + + + + + + diff --git a/test/testcases/tests/level2/events/EventTargetCast01.xml b/test/testcases/tests/level2/events/EventTargetCast01.xml new file mode 100644 index 0000000..3361b1a --- /dev/null +++ b/test/testcases/tests/level2/events/EventTargetCast01.xml @@ -0,0 +1,33 @@ + + + + + + +EventTargetCast01 +Curt Arnold + +A document is created using implementation.createDocument and +cast to a EventTarget interface. + +2002-04-21 + + + + + + + diff --git a/test/testcases/tests/level2/events/alltests.xml b/test/testcases/tests/level2/events/alltests.xml new file mode 100644 index 0000000..ede05f3 --- /dev/null +++ b/test/testcases/tests/level2/events/alltests.xml @@ -0,0 +1,46 @@ + + + + + + +DOM Level 2 Events Test Suite +DOM Test Suite Project + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/events/createEvent01.xml b/test/testcases/tests/level2/events/createEvent01.xml new file mode 100644 index 0000000..c22986a --- /dev/null +++ b/test/testcases/tests/level2/events/createEvent01.xml @@ -0,0 +1,34 @@ + + + + + + +createEvent01 +Curt Arnold + +An object implementing the Event interface is created by using +DocumentEvent.createEvent method with eventType equals "Events". + +2002-04-21 + + + + + + + + diff --git a/test/testcases/tests/level2/events/createEvent02.xml b/test/testcases/tests/level2/events/createEvent02.xml new file mode 100644 index 0000000..59a3bd4 --- /dev/null +++ b/test/testcases/tests/level2/events/createEvent02.xml @@ -0,0 +1,36 @@ + + + + + + +createEvent02 +Curt Arnold + +An object implementing the Event interface is created by using +DocumentEvent.createEvent method with eventType equals "MutationEvents". +Only applicable if implementation supports MutationEvents. + +2002-04-21 + + + + + + + + + diff --git a/test/testcases/tests/level2/events/createEvent03.xml b/test/testcases/tests/level2/events/createEvent03.xml new file mode 100644 index 0000000..e1fb15f --- /dev/null +++ b/test/testcases/tests/level2/events/createEvent03.xml @@ -0,0 +1,36 @@ + + + + + + +createEvent03 +Curt Arnold + +An object implementing the Event interface is created by using +DocumentEvent.createEvent method with eventType equals "UIEvents". +Only applicable if implementation supports the "UIEvents" feature. + +2002-04-21 + + + + + + + + + diff --git a/test/testcases/tests/level2/events/createEvent04.xml b/test/testcases/tests/level2/events/createEvent04.xml new file mode 100644 index 0000000..a5fd90c --- /dev/null +++ b/test/testcases/tests/level2/events/createEvent04.xml @@ -0,0 +1,36 @@ + + + + + + +createEvent04 +Curt Arnold + +An object implementing the Event interface is created by using +DocumentEvent.createEvent method with eventType equals "UIEvents". +Only applicable if implementation supports the "UIEvents" feature. + +2002-04-21 + + + + + + + + + diff --git a/test/testcases/tests/level2/events/createEvent05.xml b/test/testcases/tests/level2/events/createEvent05.xml new file mode 100644 index 0000000..b76c592 --- /dev/null +++ b/test/testcases/tests/level2/events/createEvent05.xml @@ -0,0 +1,36 @@ + + + + + + +createEvent05 +Curt Arnold + +An object implementing the Event interface is created by using +DocumentEvent.createEvent method with eventType equals "HTMLEvents". +Only applicable if implementation supports the "HTMLEvents" feature. + +2002-04-21 + + + + + + + + + diff --git a/test/testcases/tests/level2/events/dispatchEvent01.xml b/test/testcases/tests/level2/events/dispatchEvent01.xml new file mode 100644 index 0000000..d4d5704 --- /dev/null +++ b/test/testcases/tests/level2/events/dispatchEvent01.xml @@ -0,0 +1,38 @@ + + + + + + +dispatchEvent01 +Curt Arnold + +A null reference is passed to EventTarget.dispatchEvent(), should raise implementation +or platform exception. + +2002-05-30 + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/events/dispatchEvent02.xml b/test/testcases/tests/level2/events/dispatchEvent02.xml new file mode 100644 index 0000000..57af4fd --- /dev/null +++ b/test/testcases/tests/level2/events/dispatchEvent02.xml @@ -0,0 +1,41 @@ + + + + + + +dispatchEvent02 +Curt Arnold + +An created but not initialized event is passed to EventTarget.dispatchEvent(). Should raise +UNSPECIFIED_EVENT_TYPE_ERR EventException. + +2002-05-30 + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/events/dispatchEvent03.xml b/test/testcases/tests/level2/events/dispatchEvent03.xml new file mode 100644 index 0000000..4009609 --- /dev/null +++ b/test/testcases/tests/level2/events/dispatchEvent03.xml @@ -0,0 +1,42 @@ + + + + + + +dispatchEvent03 +Curt Arnold + +An created but not initialized event is passed to EventTarget.dispatchEvent(). Should raise +UNSPECIFIED_EVENT_TYPE_ERR EventException. + +2002-05-30 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/events/dispatchEvent04.xml b/test/testcases/tests/level2/events/dispatchEvent04.xml new file mode 100644 index 0000000..4c5eacf --- /dev/null +++ b/test/testcases/tests/level2/events/dispatchEvent04.xml @@ -0,0 +1,42 @@ + + + + + + +dispatchEvent04 +Curt Arnold + +An created but not initialized event is passed to EventTarget.dispatchEvent(). Should raise +UNSPECIFIED_EVENT_TYPE_ERR EventException. + +2002-05-30 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/events/dispatchEvent05.xml b/test/testcases/tests/level2/events/dispatchEvent05.xml new file mode 100644 index 0000000..918e9fa --- /dev/null +++ b/test/testcases/tests/level2/events/dispatchEvent05.xml @@ -0,0 +1,42 @@ + + + + + + +dispatchEvent05 +Curt Arnold + +An created but not initialized event is passed to EventTarget.dispatchEvent(). Should raise +UNSPECIFIED_EVENT_TYPE_ERR EventException. + +2002-05-30 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/events/dispatchEvent06.xml b/test/testcases/tests/level2/events/dispatchEvent06.xml new file mode 100644 index 0000000..074dd7b --- /dev/null +++ b/test/testcases/tests/level2/events/dispatchEvent06.xml @@ -0,0 +1,42 @@ + + + + + + +dispatchEvent06 +Curt Arnold + +An created but not initialized event is passed to EventTarget.dispatchEvent(). Should raise +UNSPECIFIED_EVENT_TYPE_ERR EventException. + +2002-05-30 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/events/dispatchEvent07.xml b/test/testcases/tests/level2/events/dispatchEvent07.xml new file mode 100644 index 0000000..7710e06 --- /dev/null +++ b/test/testcases/tests/level2/events/dispatchEvent07.xml @@ -0,0 +1,42 @@ + + + + + + +dispatchEvent07 +Curt Arnold + +An Event initialized with a empty name is passed to EventTarget.dispatchEvent(). Should raise +UNSPECIFIED_EVENT_TYPE_ERR EventException. + +2002-05-30 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/events/dispatchEvent08.xml b/test/testcases/tests/level2/events/dispatchEvent08.xml new file mode 100644 index 0000000..708dbf6 --- /dev/null +++ b/test/testcases/tests/level2/events/dispatchEvent08.xml @@ -0,0 +1,49 @@ + + + + + + +dispatchEvent08 +Curt Arnold + +An EventListener registered on the target node with capture false, should +recieve any event fired on that node. + +2002-05-30 + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/events/dispatchEvent09.xml b/test/testcases/tests/level2/events/dispatchEvent09.xml new file mode 100644 index 0000000..62c69c0 --- /dev/null +++ b/test/testcases/tests/level2/events/dispatchEvent09.xml @@ -0,0 +1,49 @@ + + + + + + +dispatchEvent09 +Curt Arnold + +An event is dispatched to the document with a capture listener attached. +A capturing EventListener will not be triggered by events dispatched directly to the EventTarget upon which it is registered. + +2002-05-30 + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/events/dispatchEvent10.xml b/test/testcases/tests/level2/events/dispatchEvent10.xml new file mode 100644 index 0000000..879a3bd --- /dev/null +++ b/test/testcases/tests/level2/events/dispatchEvent10.xml @@ -0,0 +1,50 @@ + + + + + + +dispatchEvent10 +Curt Arnold + +The same monitor is registered twice and an event is dispatched. The monitor should +recieve only one handleEvent call. + +2002-05-30 + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/events/dispatchEvent11.xml b/test/testcases/tests/level2/events/dispatchEvent11.xml new file mode 100644 index 0000000..e3086f7 --- /dev/null +++ b/test/testcases/tests/level2/events/dispatchEvent11.xml @@ -0,0 +1,45 @@ + + + + + + +dispatchEvent11 +Curt Arnold + +The same monitor is registered twice, removed once, and an event is dispatched. +The monitor should recieve only no handleEvent calls. + +2002-05-30 + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/events/dispatchEvent12.xml b/test/testcases/tests/level2/events/dispatchEvent12.xml new file mode 100644 index 0000000..c266030 --- /dev/null +++ b/test/testcases/tests/level2/events/dispatchEvent12.xml @@ -0,0 +1,50 @@ + + + + + + +dispatchEvent12 +Curt Arnold + +A monitor is added, multiple calls to removeEventListener +are mde with similar but not identical arguments, and an event is dispatched. +The monitor should recieve handleEvent calls. + +2002-05-30 + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/events/dispatchEvent13.xml b/test/testcases/tests/level2/events/dispatchEvent13.xml new file mode 100644 index 0000000..f1b2d84 --- /dev/null +++ b/test/testcases/tests/level2/events/dispatchEvent13.xml @@ -0,0 +1,84 @@ + + + + + + +dispatchEvent13 +Curt Arnold + +Two listeners are registered on the same target, each of which will remove both itself and +the other on the first event. Only one should see the event since event listeners +can never be invoked after being removed. + +2002-05-30 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/events/files/.cvsignore b/test/testcases/tests/level2/events/files/.cvsignore new file mode 100644 index 0000000..e69de29 diff --git a/test/testcases/tests/level2/events/files/CVS/Entries b/test/testcases/tests/level2/events/files/CVS/Entries new file mode 100644 index 0000000..471089a --- /dev/null +++ b/test/testcases/tests/level2/events/files/CVS/Entries @@ -0,0 +1,10 @@ +/.cvsignore/1.2/Fri Apr 3 02:47:56 2009// +/hc_staff.html/1.5/Fri Apr 3 02:47:56 2009// +/hc_staff.svg/1.2/Fri Apr 3 02:47:56 2009/-kb/ +/hc_staff.xhtml/1.5/Fri Apr 3 02:47:56 2009/-kb/ +/hc_staff.xml/1.6/Fri Apr 3 02:47:56 2009// +/staff.dtd/1.1/Fri Apr 3 02:47:56 2009// +/svgtest.js/1.1/Fri Apr 3 02:47:56 2009/-kb/ +/svgunit.js/1.1/Fri Apr 3 02:47:56 2009/-kb/ +/xhtml1-strict.dtd/1.5/Fri Apr 3 02:47:56 2009/-kb/ +D diff --git a/test/testcases/tests/level2/events/files/CVS/Repository b/test/testcases/tests/level2/events/files/CVS/Repository new file mode 100644 index 0000000..1bc2aa7 --- /dev/null +++ b/test/testcases/tests/level2/events/files/CVS/Repository @@ -0,0 +1 @@ +2001/DOM-Test-Suite/tests/level2/events/files diff --git a/test/testcases/tests/level2/events/files/CVS/Root b/test/testcases/tests/level2/events/files/CVS/Root new file mode 100644 index 0000000..3c7177e --- /dev/null +++ b/test/testcases/tests/level2/events/files/CVS/Root @@ -0,0 +1 @@ +:pserver:anonymous@dev.w3.org:/sources/public diff --git a/test/testcases/tests/level2/events/files/CVS/Template b/test/testcases/tests/level2/events/files/CVS/Template new file mode 100644 index 0000000..e69de29 diff --git a/test/testcases/tests/level2/events/files/hc_staff.html b/test/testcases/tests/level2/events/files/hc_staff.html new file mode 100644 index 0000000..33ccec5 --- /dev/null +++ b/test/testcases/tests/level2/events/files/hc_staff.html @@ -0,0 +1,48 @@ + + +hc_staff +

+ EMP0001 + Margaret Martin + Accountant + 56,000 + Female + 1230 North Ave. Dallas, Texas 98551 +

+

+ EMP0002 + Martha RaynoldsThis is a CDATASection with EntityReference number 2 &ent2; +This is an adjacent CDATASection with a reference to a tab &tab; + Secretary + 35,000 + Female + β Dallas, γ + 98554 +

+

+ EMP0003 + Roger + Jones + Department Manager + 100,000 + δ + PO Box 27 Irving, texas 98553 +

+

+ EMP0004 + Jeny Oconnor + Personnel Director + 95,000 + Female + 27 South Road. Dallas, Texas 98556 +

+

+ EMP0005 + Robert Myers + Computer Specialist + 90,000 + male + 1821 Nordic. Road, Irving Texas 98558 +

+ diff --git a/test/testcases/tests/level2/events/files/hc_staff.svg b/test/testcases/tests/level2/events/files/hc_staff.svg new file mode 100644 index 0000000..5efa959 --- /dev/null +++ b/test/testcases/tests/level2/events/files/hc_staff.svg @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + + + + + +]> + +hc_staff +

+ EMP0001 + Margaret Martin + Accountant + 56,000 + Female + 1230 North Ave. Dallas, Texas 98551 +

+

+ EMP0002 + Martha RaynoldsThis is a CDATASection with EntityReference number 2 &ent2; +This is an adjacent CDATASection with a reference to a tab &tab; + Secretary + 35,000 + Female + β Dallas, γ + 98554 +

+

+ EMP0003 + Roger + Jones + Department Manager + 100,000 + δ + PO Box 27 Irving, texas 98553 +

+

+ EMP0004 + Jeny Oconnor + Personnel Director + 95,000 + Female + 27 South Road. Dallas, Texas 98556 +

+

+ EMP0005 + Robert Myers + Computer Specialist + 90,000 + male + 1821 Nordic. Road, Irving Texas 98558 +

+ diff --git a/test/testcases/tests/level2/events/files/hc_staff.xhtml b/test/testcases/tests/level2/events/files/hc_staff.xhtml new file mode 100644 index 0000000..32f8af9 --- /dev/null +++ b/test/testcases/tests/level2/events/files/hc_staff.xhtml @@ -0,0 +1,60 @@ + + + + + + + + + + +]> + +hc_staff +

+ EMP0001 + Margaret Martin + Accountant + 56,000 + Female + 1230 North Ave. Dallas, Texas 98551 +

+

+ EMP0002 + Martha RaynoldsThis is a CDATASection with EntityReference number 2 &ent2; +This is an adjacent CDATASection with a reference to a tab &tab; + Secretary + 35,000 + Female + β Dallas, γ + 98554 +

+

+ EMP0003 + Roger + Jones + Department Manager + 100,000 + δ + PO Box 27 Irving, texas 98553 +

+

+ EMP0004 + Jeny Oconnor + Personnel Director + 95,000 + Female + 27 South Road. Dallas, Texas 98556 +

+

+ EMP0005 + Robert Myers + Computer Specialist + 90,000 + male + 1821 Nordic. Road, Irving Texas 98558 +

+ diff --git a/test/testcases/tests/level2/events/files/hc_staff.xml b/test/testcases/tests/level2/events/files/hc_staff.xml new file mode 100644 index 0000000..923fd0d --- /dev/null +++ b/test/testcases/tests/level2/events/files/hc_staff.xml @@ -0,0 +1,60 @@ + + + + + + + + + + +]> + +hc_staff +

+ EMP0001 + Margaret Martin + Accountant + 56,000 + Female + 1230 North Ave. Dallas, Texas 98551 +

+

+ EMP0002 + Martha RaynoldsThis is a CDATASection with EntityReference number 2 &ent2; +This is an adjacent CDATASection with a reference to a tab &tab; + Secretary + 35,000 + Female + β Dallas, γ + 98554 +

+

+ EMP0003 + Roger + Jones + Department Manager + 100,000 + δ + PO Box 27 Irving, texas 98553 +

+

+ EMP0004 + Jeny Oconnor + Personnel Director + 95,000 + Female + 27 South Road. Dallas, Texas 98556 +

+

+ EMP0005 + Robert Myers + Computer Specialist + 90,000 + male + 1821 Nordic. Road, Irving Texas 98558 +

+ diff --git a/test/testcases/tests/level2/events/files/staff.dtd b/test/testcases/tests/level2/events/files/staff.dtd new file mode 100644 index 0000000..02a994d --- /dev/null +++ b/test/testcases/tests/level2/events/files/staff.dtd @@ -0,0 +1,17 @@ + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/events/files/svgtest.js b/test/testcases/tests/level2/events/files/svgtest.js new file mode 100644 index 0000000..e69de29 diff --git a/test/testcases/tests/level2/events/files/svgunit.js b/test/testcases/tests/level2/events/files/svgunit.js new file mode 100644 index 0000000..e69de29 diff --git a/test/testcases/tests/level2/events/files/xhtml1-strict.dtd b/test/testcases/tests/level2/events/files/xhtml1-strict.dtd new file mode 100644 index 0000000..7ba5dd7 --- /dev/null +++ b/test/testcases/tests/level2/events/files/xhtml1-strict.dtd @@ -0,0 +1,65 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/events/initEvent01.xml b/test/testcases/tests/level2/events/initEvent01.xml new file mode 100644 index 0000000..5e21a36 --- /dev/null +++ b/test/testcases/tests/level2/events/initEvent01.xml @@ -0,0 +1,48 @@ + + + + + + +initEvent01 +Curt Arnold + +The Event.initEvent method is called for event returned by DocumentEvent.createEvent("events") +and the state is checked to see if it reflects the parameters. + +2002-04-22 + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/events/initEvent02.xml b/test/testcases/tests/level2/events/initEvent02.xml new file mode 100644 index 0000000..79576fd --- /dev/null +++ b/test/testcases/tests/level2/events/initEvent02.xml @@ -0,0 +1,48 @@ + + + + + + +initEvent02 +Curt Arnold + +The Event.initEvent method is called for event returned by DocumentEvent.createEvent("events") +and the state is checked to see if it reflects the parameters. + +2002-04-22 + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/events/initEvent03.xml b/test/testcases/tests/level2/events/initEvent03.xml new file mode 100644 index 0000000..91a3025 --- /dev/null +++ b/test/testcases/tests/level2/events/initEvent03.xml @@ -0,0 +1,55 @@ + + + + + + +initEvent03 +Curt Arnold + +The Event.initEvent method is called for event returned by DocumentEvent.createEvent("events") +and the state is checked to see if it reflects the parameters. initEvent may be +called multiple times and the last time is definitive. + +2002-04-22 + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/events/initEvent04.xml b/test/testcases/tests/level2/events/initEvent04.xml new file mode 100644 index 0000000..705e0fb --- /dev/null +++ b/test/testcases/tests/level2/events/initEvent04.xml @@ -0,0 +1,50 @@ + + + + + + +initEvent04 +Curt Arnold + +The Event.initEvent method is called for event returned by +DocumentEvent.createEvent("MutationEvents") +and the state is checked to see if it reflects the parameters. + +2002-04-22 + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/events/initEvent05.xml b/test/testcases/tests/level2/events/initEvent05.xml new file mode 100644 index 0000000..5d039a9 --- /dev/null +++ b/test/testcases/tests/level2/events/initEvent05.xml @@ -0,0 +1,50 @@ + + + + + + +initEvent05 +Curt Arnold + +The Event.initEvent method is called for event returned by +DocumentEvent.createEvent("MutationEvents") +and the state is checked to see if it reflects the parameters. + +2002-04-22 + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/events/initEvent06.xml b/test/testcases/tests/level2/events/initEvent06.xml new file mode 100644 index 0000000..b6b550c --- /dev/null +++ b/test/testcases/tests/level2/events/initEvent06.xml @@ -0,0 +1,57 @@ + + + + + + +initEvent06 +Curt Arnold + +The Event.initEvent method is called for event returned by +DocumentEvent.createEvent("MutationEvents") +and the state is checked to see if it reflects the parameters. initEvent may be +called multiple times and the last time is definitive. + +2002-04-22 + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/events/metadata.xml b/test/testcases/tests/level2/events/metadata.xml new file mode 100644 index 0000000..f52c030 --- /dev/null +++ b/test/testcases/tests/level2/events/metadata.xml @@ -0,0 +1,20 @@ + + + + + + + + diff --git a/test/testcases/tests/level2/html/.cvsignore b/test/testcases/tests/level2/html/.cvsignore new file mode 100644 index 0000000..cc87140 --- /dev/null +++ b/test/testcases/tests/level2/html/.cvsignore @@ -0,0 +1,2 @@ +dom2.dtd +dom2.xsd diff --git a/test/testcases/tests/level2/html/CVS/Entries b/test/testcases/tests/level2/html/CVS/Entries new file mode 100644 index 0000000..2a070d9 --- /dev/null +++ b/test/testcases/tests/level2/html/CVS/Entries @@ -0,0 +1,65 @@ +D/files//// +/.cvsignore/1.2/Fri Apr 3 02:47:56 2009// +/HTMLAppletElement07.xml/1.4/Fri Apr 3 02:47:56 2009// +/HTMLAppletElement09.xml/1.5/Fri Apr 3 02:47:56 2009// +/HTMLBaseFontElement03.xml/1.6/Fri Apr 3 02:47:56 2009// +/HTMLBodyElement07.xml/1.2/Fri Apr 3 02:47:56 2009// +/HTMLBodyElement08.xml/1.2/Fri Apr 3 02:47:55 2009// +/HTMLBodyElement09.xml/1.2/Fri Apr 3 02:47:56 2009// +/HTMLBodyElement10.xml/1.2/Fri Apr 3 02:47:56 2009// +/HTMLBodyElement11.xml/1.2/Fri Apr 3 02:47:56 2009// +/HTMLBodyElement12.xml/1.2/Fri Apr 3 02:47:56 2009// +/HTMLDocument22.xml/1.2/Fri Apr 3 02:47:56 2009// +/HTMLDocument23.xml/1.2/Fri Apr 3 02:47:56 2009// +/HTMLDocument24.xml/1.2/Fri Apr 3 02:47:56 2009// +/HTMLDocument25.xml/1.2/Fri Apr 3 02:47:56 2009// +/HTMLDocument26.xml/1.2/Fri Apr 3 02:47:56 2009// +/HTMLDocument27.xml/1.2/Fri Apr 3 02:47:56 2009// +/HTMLFrameElement09.xml/1.2/Fri Apr 3 02:47:56 2009// +/HTMLIFrameElement11.xml/1.3/Fri Apr 3 02:47:56 2009// +/HTMLImageElement05.xml/1.3/Fri Apr 3 02:47:56 2009// +/HTMLImageElement06.xml/1.3/Fri Apr 3 02:47:56 2009// +/HTMLImageElement11.xml/1.3/Fri Apr 3 02:47:56 2009// +/HTMLImageElement12.xml/1.3/Fri Apr 3 02:47:55 2009// +/HTMLInputElement13.xml/1.4/Fri Apr 3 02:47:56 2009// +/HTMLObjectElement11.xml/1.4/Fri Apr 3 02:47:56 2009// +/HTMLObjectElement16.xml/1.4/Fri Apr 3 02:47:56 2009// +/HTMLObjectElement20.xml/1.1/Fri Apr 3 02:47:55 2009// +/HTMLOptionsCollection01.xml/1.1/Fri Apr 3 02:47:56 2009// +/HTMLOptionsCollection02.xml/1.1/Fri Apr 3 02:47:56 2009// +/HTMLOptionsCollection03.xml/1.1/Fri Apr 3 02:47:56 2009// +/HTMLOptionsCollection04.xml/1.1/Fri Apr 3 02:47:56 2009// +/HTMLOptionsCollection05.xml/1.1/Fri Apr 3 02:47:56 2009// +/HTMLOptionsCollection06.xml/1.1/Fri Apr 3 02:47:56 2009// +/HTMLOptionsCollection07.xml/1.1/Fri Apr 3 02:47:56 2009// +/HTMLSelectElement20.xml/1.1/Fri Apr 3 02:47:56 2009// +/HTMLTableElement34.xml/1.1/Fri Apr 3 02:47:56 2009// +/HTMLTableElement35.xml/1.1/Fri Apr 3 02:47:56 2009// +/HTMLTableElement36.xml/1.1/Fri Apr 3 02:47:56 2009// +/HTMLTableElement37.xml/1.1/Fri Apr 3 02:47:56 2009// +/HTMLTableElement38.xml/1.1/Fri Apr 3 02:47:56 2009// +/HTMLTableElement39.xml/1.1/Fri Apr 3 02:47:55 2009// +/HTMLTableElement40.xml/1.1/Fri Apr 3 02:47:56 2009// +/HTMLTableRowElement15.xml/1.1/Fri Apr 3 02:47:56 2009// +/HTMLTableRowElement16.xml/1.2/Fri Apr 3 02:47:56 2009// +/HTMLTableRowElement17.xml/1.2/Fri Apr 3 02:47:56 2009// +/HTMLTableRowElement18.xml/1.2/Fri Apr 3 02:47:56 2009// +/HTMLTableRowElement19.xml/1.2/Fri Apr 3 02:47:56 2009// +/HTMLTableRowElement20.xml/1.1/Fri Apr 3 02:47:56 2009// +/HTMLTableRowElement21.xml/1.1/Fri Apr 3 02:47:56 2009// +/HTMLTableSectionElement25.xml/1.1/Fri Apr 3 02:47:56 2009// +/HTMLTableSectionElement26.xml/1.1/Fri Apr 3 02:47:55 2009// +/HTMLTableSectionElement27.xml/1.1/Fri Apr 3 02:47:56 2009// +/HTMLTableSectionElement28.xml/1.1/Fri Apr 3 02:47:56 2009// +/HTMLTableSectionElement29.xml/1.1/Fri Apr 3 02:47:56 2009// +/HTMLTableSectionElement30.xml/1.1/Fri Apr 3 02:47:56 2009// +/HTMLTableSectionElement31.xml/1.1/Fri Apr 3 02:47:56 2009// +/alltests.xml/1.19/Fri Apr 3 02:47:56 2009// +/hasFeature02.xml/1.1/Fri Apr 3 02:47:56 2009// +/hasFeature03.xml/1.1/Fri Apr 3 02:47:56 2009// +/hasFeature04.xml/1.1/Fri Apr 3 02:47:56 2009// +/hasFeature05.xml/1.1/Fri Apr 3 02:47:56 2009// +/hasFeature06.xml/1.1/Fri Apr 3 02:47:56 2009// +/metadata.xml/1.1/Fri Apr 3 02:47:55 2009// +/object08.xml/1.2/Fri Apr 3 02:47:56 2009// +/object13.xml/1.2/Fri Apr 3 02:47:56 2009// diff --git a/test/testcases/tests/level2/html/CVS/Repository b/test/testcases/tests/level2/html/CVS/Repository new file mode 100644 index 0000000..8bf1363 --- /dev/null +++ b/test/testcases/tests/level2/html/CVS/Repository @@ -0,0 +1 @@ +2001/DOM-Test-Suite/tests/level2/html diff --git a/test/testcases/tests/level2/html/CVS/Root b/test/testcases/tests/level2/html/CVS/Root new file mode 100644 index 0000000..3c7177e --- /dev/null +++ b/test/testcases/tests/level2/html/CVS/Root @@ -0,0 +1 @@ +:pserver:anonymous@dev.w3.org:/sources/public diff --git a/test/testcases/tests/level2/html/CVS/Template b/test/testcases/tests/level2/html/CVS/Template new file mode 100644 index 0000000..e69de29 diff --git a/test/testcases/tests/level2/html/HTMLAppletElement07.xml b/test/testcases/tests/level2/html/HTMLAppletElement07.xml new file mode 100644 index 0000000..07a6c0d --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLAppletElement07.xml @@ -0,0 +1,42 @@ + + + + + + +HTMLAppletElement07 +NIST + + The hspace attribute specifies the horizontal space to the left + and right of this image, applet, or object. + + Retrieve the hspace attribute and examine it's value. + +Mary Brady +2001-12-03 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLAppletElement09.xml b/test/testcases/tests/level2/html/HTMLAppletElement09.xml new file mode 100644 index 0000000..b602397 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLAppletElement09.xml @@ -0,0 +1,42 @@ + + + + + + +HTMLAppletElement09 +NIST + + The vspace attribute specifies the vertical space above and below + this image, applet or object. + + Retrieve the vspace attribute and examine it's value. + +Mary Brady +2001-12-03 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLBaseFontElement03.xml b/test/testcases/tests/level2/html/HTMLBaseFontElement03.xml new file mode 100644 index 0000000..b743fb0 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLBaseFontElement03.xml @@ -0,0 +1,41 @@ + + + + + + +HTMLBaseFontElement03 +NIST + + The size attribute specifies the base font's size. + + Retrieve the size attribute and examine it's value. + +Mary Brady +2001-12-03 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLBodyElement07.xml b/test/testcases/tests/level2/html/HTMLBodyElement07.xml new file mode 100644 index 0000000..2c759f8 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLBodyElement07.xml @@ -0,0 +1,38 @@ + + + + + + + +HTMLBodyElement07 +Curt Arnold + +Checks that Node.isSupported("hTmL", null) returns true. + +2002-03-18 + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLBodyElement08.xml b/test/testcases/tests/level2/html/HTMLBodyElement08.xml new file mode 100644 index 0000000..50b411d --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLBodyElement08.xml @@ -0,0 +1,38 @@ + + + + + + + +HTMLBodyElement08 +Curt Arnold + +Checks that Node.isSupported("hTmL", "2.0") returns true. + +2002-03-18 + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLBodyElement09.xml b/test/testcases/tests/level2/html/HTMLBodyElement09.xml new file mode 100644 index 0000000..150b4a8 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLBodyElement09.xml @@ -0,0 +1,40 @@ + + + + + + + +HTMLBodyElement09 +Curt Arnold + +Checks that Node.isSupported("xhTmL", null) returns true if hasFeature("XML", null) is true. + +2002-03-18 + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLBodyElement10.xml b/test/testcases/tests/level2/html/HTMLBodyElement10.xml new file mode 100644 index 0000000..691739e --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLBodyElement10.xml @@ -0,0 +1,40 @@ + + + + + + + +HTMLBodyElement10 +Curt Arnold + +Checks that Node.isSupported("xhTmL", "2.0") returns true if hasFeature("XML", "2.0") is true. + +2002-03-18 + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLBodyElement11.xml b/test/testcases/tests/level2/html/HTMLBodyElement11.xml new file mode 100644 index 0000000..3c83437 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLBodyElement11.xml @@ -0,0 +1,38 @@ + + + + + + + +HTMLBodyElement11 +Curt Arnold + +Checks that Node.isSupported("cOrE", null) returns true. + +2002-03-18 + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLBodyElement12.xml b/test/testcases/tests/level2/html/HTMLBodyElement12.xml new file mode 100644 index 0000000..6255dbb --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLBodyElement12.xml @@ -0,0 +1,38 @@ + + + + + + + +HTMLBodyElement12 +Curt Arnold + +Checks that Node.isSupported("cOrE", "2.0") returns true. + +2002-03-18 + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLDocument22.xml b/test/testcases/tests/level2/html/HTMLDocument22.xml new file mode 100644 index 0000000..414f065 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLDocument22.xml @@ -0,0 +1,36 @@ + + + + + + + +HTMLDocument22 +Curt Arnold + +Checks that Node.isSupported("hTmL", null) returns true. + +2002-03-18 + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLDocument23.xml b/test/testcases/tests/level2/html/HTMLDocument23.xml new file mode 100644 index 0000000..7896dbd --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLDocument23.xml @@ -0,0 +1,36 @@ + + + + + + + +HTMLDocument23 +Curt Arnold + +Checks that Node.isSupported("hTmL", "2.0") returns true. + +2002-03-18 + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLDocument24.xml b/test/testcases/tests/level2/html/HTMLDocument24.xml new file mode 100644 index 0000000..186062d --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLDocument24.xml @@ -0,0 +1,38 @@ + + + + + + + +HTMLDocument24 +Curt Arnold + +Checks that Node.isSupported("xhTmL", null) returns true if hasFeature("XML", null) is true. + +2002-03-18 + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLDocument25.xml b/test/testcases/tests/level2/html/HTMLDocument25.xml new file mode 100644 index 0000000..42a1996 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLDocument25.xml @@ -0,0 +1,38 @@ + + + + + + + +HTMLDocument25 +Curt Arnold + +Checks that Node.isSupported("xhTmL", "2.0") returns true if hasFeature("XML", "2.0") is true. + +2002-03-18 + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLDocument26.xml b/test/testcases/tests/level2/html/HTMLDocument26.xml new file mode 100644 index 0000000..032cead --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLDocument26.xml @@ -0,0 +1,36 @@ + + + + + + + +HTMLDocument26 +Curt Arnold + +Checks that Node.isSupported("cOrE", null) returns true. + +2002-03-18 + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLDocument27.xml b/test/testcases/tests/level2/html/HTMLDocument27.xml new file mode 100644 index 0000000..fa2b184 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLDocument27.xml @@ -0,0 +1,36 @@ + + + + + + + +HTMLDocument27 +Curt Arnold + +Checks that Node.isSupported("cOrE", "2.0") returns true. + +2002-03-18 + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLFrameElement09.xml b/test/testcases/tests/level2/html/HTMLFrameElement09.xml new file mode 100644 index 0000000..d6fc5cc --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLFrameElement09.xml @@ -0,0 +1,42 @@ + + + + + + +HTMLFrameElement09 +NIST + + The contentDocument attribute specifies the document this frame contains, + if there is any and it is available, or null otherwise. + + Retrieve the contentDocument attribute of the first FRAME element + and examine its TITLE value. + +Rick Rivello +2002-07-03 + + + + + + + + + + +<assertEquals actual="vtitle" expected='"NIST DOM HTML Test - FRAMESET"' id="titleLink" ignoreCase="false" /> +</test> diff --git a/test/testcases/tests/level2/html/HTMLIFrameElement11.xml b/test/testcases/tests/level2/html/HTMLIFrameElement11.xml new file mode 100644 index 0000000..c77d2f4 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLIFrameElement11.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + +Copyright (c) 2001-2004 World Wide Web Consortium, +(Massachusetts Institute of Technology, Institut National de +Recherche en Informatique et en Automatique, Keio University). All +Rights Reserved. This program is distributed under the W3C's Software +Intellectual Property License. This program is distributed in the +hope that it will be useful, but WITHOUT ANY WARRANTY; without even +the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +PURPOSE. + +See W3C License http://www.w3.org/Consortium/Legal/ for more details. + +--> +<!DOCTYPE test SYSTEM "dom2.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="HTMLIFrameElement11"> +<metadata> +<title>HTMLIFrameElement11 +NIST + + Retrieve the contentDocument attribute of the second IFRAME element + and examine its title. + +Rick Rivello +2002-07-03 + + + + + + + + + + +<assertEquals actual="vtitle" expected='"NIST DOM HTML Test - FRAME"' id="titleLink" ignoreCase="false" /> +</test> diff --git a/test/testcases/tests/level2/html/HTMLImageElement05.xml b/test/testcases/tests/level2/html/HTMLImageElement05.xml new file mode 100644 index 0000000..92e536b --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLImageElement05.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- + +Copyright (c) 2001 World Wide Web Consortium, +(Massachusetts Institute of Technology, Institut National de +Recherche en Informatique et en Automatique, Keio University). All +Rights Reserved. This program is distributed under the W3C's Software +Intellectual Property License. This program is distributed in the +hope that it will be useful, but WITHOUT ANY WARRANTY; without even +the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +PURPOSE. + +See W3C License http://www.w3.org/Consortium/Legal/ for more details. + +--> +<!DOCTYPE test SYSTEM "dom2.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="HTMLImageElement05"> +<metadata> +<title>HTMLImageElement05 +NIST + + The height attribute overrides the natural "height" of the image. + + Retrieve the height attribute and examine it's value. + +Mary Brady +2001-12-26 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLImageElement06.xml b/test/testcases/tests/level2/html/HTMLImageElement06.xml new file mode 100644 index 0000000..19fb7b0 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLImageElement06.xml @@ -0,0 +1,42 @@ + + + + + + +HTMLImageElement06 +NIST + + The hspace attribute specifies the horizontal space to the left and + right of this image. + + Retrieve the hspace attribute and examine it's value. + +Mary Brady +2001-12-26 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLImageElement11.xml b/test/testcases/tests/level2/html/HTMLImageElement11.xml new file mode 100644 index 0000000..10f3608 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLImageElement11.xml @@ -0,0 +1,42 @@ + + + + + + +HTMLImageElement11 +NIST + + The vspace attribute specifies the vertical space above and below this + image. + + Retrieve the vspace attribute and examine it's value. + +Mary Brady +2001-12-26 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLImageElement12.xml b/test/testcases/tests/level2/html/HTMLImageElement12.xml new file mode 100644 index 0000000..738f1c3 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLImageElement12.xml @@ -0,0 +1,41 @@ + + + + + + +HTMLImageElement12 +NIST + + The width attribute overrides the natural "width" of the image. + + Retrieve the width attribute and examine it's value. + +Mary Brady +2001-12-07 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLInputElement13.xml b/test/testcases/tests/level2/html/HTMLInputElement13.xml new file mode 100644 index 0000000..e243035 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLInputElement13.xml @@ -0,0 +1,43 @@ + + + + + + +HTMLInputElement13 +NIST + + The size attribute contains the size information. Its precise meaning + is specific to each type of field. + + Retrieve the size attribute of the 1st INPUT element and examine + its value. + +Mary Brady +2001-12-26 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLObjectElement11.xml b/test/testcases/tests/level2/html/HTMLObjectElement11.xml new file mode 100644 index 0000000..b4f172b --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLObjectElement11.xml @@ -0,0 +1,43 @@ + + + + + + +HTMLObjectElement11 +NIST + + The hspace attribute specifies the horizontal space to the left and right + of this image, applet or object. + + Retrieve the hspace attribute of the first OBJECT element and examine + it's value. + +Mary Brady +2002-01-02 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLObjectElement16.xml b/test/testcases/tests/level2/html/HTMLObjectElement16.xml new file mode 100644 index 0000000..e849620 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLObjectElement16.xml @@ -0,0 +1,43 @@ + + + + + + +HTMLObjectElement16 +NIST + + The vspace attribute specifies the vertical space above or below this + image, applet or object. + + Retrieve the vspace attribute of the first OBJECT element and examine + it's value. + +Mary Brady +2002-01-02 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLObjectElement20.xml b/test/testcases/tests/level2/html/HTMLObjectElement20.xml new file mode 100644 index 0000000..5694760 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLObjectElement20.xml @@ -0,0 +1,40 @@ + + + + + + +HTMLObjectElement20 +NIST + + The contentDocument attribute specifies the document this object contains, + if there is any and it is available, or null otherwise. + +Rick Rivello +2002-07-03 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLOptionsCollection01.xml b/test/testcases/tests/level2/html/HTMLOptionsCollection01.xml new file mode 100644 index 0000000..80df1a3 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLOptionsCollection01.xml @@ -0,0 +1,46 @@ + + + + + + +HTMLOptionsCollection01 +NIST + + An HTMLOptionsCollection is a list of nodes representing HTML option + element. + The length attribute specifies the length or size of the list. + + Retrieve the first SELECT element and create a HTMLOptionsCollection + of the OPTION elements. Check the size of the length of OPTION elements. + +Rick Rivello +2002-08-01 + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLOptionsCollection02.xml b/test/testcases/tests/level2/html/HTMLOptionsCollection02.xml new file mode 100644 index 0000000..44b5431 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLOptionsCollection02.xml @@ -0,0 +1,54 @@ + + + + + + +HTMLOptionsCollection02 +NIST + + An HTMLOptionsCollection is a list of nodes representing HTML option + element. + An individual node may be accessed by either ordinal index, the node's + name or id attributes. (Test ordinal index=3). + The item() method retrieves a node specified by ordinal index. + Nodes are numbered in tree order. The index origin is 0. + + Retrieve the first SELECT element. Create a HTMLOptionsCollection. + Retrieve the fourth item in the list and examine its firstChild's + nodeValue. + +Rick Rivello +2002-08-01 + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLOptionsCollection03.xml b/test/testcases/tests/level2/html/HTMLOptionsCollection03.xml new file mode 100644 index 0000000..280b2bf --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLOptionsCollection03.xml @@ -0,0 +1,54 @@ + + + + + + +HTMLOptionsCollection03 +NIST + + An HTMLOptionsCollection is a list of nodes representing HTML option + element. + An individual node may be accessed by either ordinal index, the node's + name or id attributes. (Test node name). + The namedItem method retrieves a Node using a name. It first searches + for a node with a matching id attribute. If it doesn't find one, it + then searches for a Node with a matching name attribute, but only + those elements that are allowed a name attribute. + + Retrieve the first FORM element. Create a HTMLCollection of the elements. + Search for an element that has select1 as the value for the name attribute. + Get the nodeName of that element. + +Rick Rivello +2002-08-01 + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLOptionsCollection04.xml b/test/testcases/tests/level2/html/HTMLOptionsCollection04.xml new file mode 100644 index 0000000..83e59d3 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLOptionsCollection04.xml @@ -0,0 +1,54 @@ + + + + + + +HTMLOptionsCollection04 +NIST + + An HTMLOptionsCollection is a list of nodes representing HTML option + element. + An individual node may be accessed by either ordinal index, the node's + name or id attributes. (Test node name). + The namedItem method retrieves a Node using a name. It first searches + for a node with a matching id attribute. If it doesn't find one, it + then searches for a Node with a matching name attribute, but only + those elements that are allowed a name attribute. + + Retrieve the first FORM element. Create a HTMLCollection of the elements. + Search for an element that has selectId as the value for the id attribute. + Get the nodeName of that element. + +Rick Rivello +2002-08-01 + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLOptionsCollection05.xml b/test/testcases/tests/level2/html/HTMLOptionsCollection05.xml new file mode 100644 index 0000000..d2f44d7 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLOptionsCollection05.xml @@ -0,0 +1,55 @@ + + + + + + +HTMLOptionsCollection05 +NIST + + An HTMLOptionsCollection is a list of nodes representing HTML option + element. + An individual node may be accessed by either ordinal index, the node's + name or id attributes. (Test node name). + The namedItem method retrieves a Node using a name. It first searches + for a node with a matching id attribute. If it doesn't find one, it + then searches for a Node with a matching name attribute, but only + those elements that are allowed a name attribute. Upon failure(e.q., no + node with this name exists), returns null. + + Retrieve the first FORM element. Create a HTMLCollection of the elements. + Search for an element that has select9 as the value for the name attribute. + Null should be returned since there is not any name or id attribute with + select9 as a value. + +Rick Rivello +2002-08-01 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLOptionsCollection06.xml b/test/testcases/tests/level2/html/HTMLOptionsCollection06.xml new file mode 100644 index 0000000..fbde429 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLOptionsCollection06.xml @@ -0,0 +1,52 @@ + + + + + + +HTMLOptionsCollection06 +NIST + + An HTMLOptionsCollection is a list of nodes representing HTML option + element. + An individual node may be accessed by either ordinal index, the node's + name or id attributes. (Test ordinal index). + The item() method retrieves a node specified by ordinal index. + A value of null is returned if the index is out of range. + + Retrieve the first SELECT element. Create a HTMLOptionsCollection. + Retrieve the tenth item in the list - null should be returned since + there are not 10 items in the list. + +Rick Rivello +2002-08-01 + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLOptionsCollection07.xml b/test/testcases/tests/level2/html/HTMLOptionsCollection07.xml new file mode 100644 index 0000000..a2731e5 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLOptionsCollection07.xml @@ -0,0 +1,54 @@ + + + + + + +HTMLOptionsCollection07 +NIST + + An HTMLOptionsCollection is a list of nodes representing HTML option + element. + An individual node may be accessed by either ordinal index, the node's + name or id attributes. (Test ordinal index=0). + The item() method retrieves a node specified by ordinal index. Nodes + are numbered in tree order. The index origin is 0. + + Retrieve the first SELECT element. Create a HTMLOptionsCollection. + Retrieve the first item in the list and examine its firstChild's + nodeValue. + +Rick Rivello +2002-08-01 + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLSelectElement20.xml b/test/testcases/tests/level2/html/HTMLSelectElement20.xml new file mode 100644 index 0000000..ddbe2f7 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLSelectElement20.xml @@ -0,0 +1,56 @@ + + + + + + + +HTMLSelectElement20 +Curt Arnold + +Attempting to add an new option using HTMLSelectElement.add before a node that is not a child of the select +element should raise a NOT_FOUND_ERR. + +2004-03-18 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLTableElement34.xml b/test/testcases/tests/level2/html/HTMLTableElement34.xml new file mode 100644 index 0000000..d774498 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLTableElement34.xml @@ -0,0 +1,48 @@ + + + + + + +HTMLTableElement34 +NIST + + The insertRow() method throws a INDEX_SIZE_ERR DOMException + if the specified index is greater than the number of rows. + + Retrieve the second TABLE element which has four rows. Try + to insert a new row using an index of five. This should throw + a INDEX_SIZE_ERR DOMException since there are only four rows. + +Rick Rivello +2002-05-02 + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLTableElement35.xml b/test/testcases/tests/level2/html/HTMLTableElement35.xml new file mode 100644 index 0000000..6410e89 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLTableElement35.xml @@ -0,0 +1,48 @@ + + + + + + +HTMLTableElement35 +NIST + + The insertRow() method throws a INDEX_SIZE_ERR DOMException + if the specified index is negative. + + Retrieve the second TABLE element which has four rows. Try + to insert a new row using an index of negative five. This should throw + a INDEX_SIZE_ERR DOMException since the index is negative. + +Rick Rivello +2002-05-02 + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLTableElement36.xml b/test/testcases/tests/level2/html/HTMLTableElement36.xml new file mode 100644 index 0000000..7a514e5 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLTableElement36.xml @@ -0,0 +1,47 @@ + + + + + + +HTMLTableElement36 +NIST + + The deleteRow() method throws a INDEX_SIZE_ERR DOMException + if the specified index is greater than the number of rows. + + Retrieve the second TABLE element which has four rows. Try + to delete a new row using an index of five. This should throw + a INDEX_SIZE_ERR DOMException since there are only four rows. + +Rick Rivello +2002-05-02 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLTableElement37.xml b/test/testcases/tests/level2/html/HTMLTableElement37.xml new file mode 100644 index 0000000..097deb1 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLTableElement37.xml @@ -0,0 +1,48 @@ + + + + + + +HTMLTableElement37 +NIST + + The deleteRow() method throws a INDEX_SIZE_ERR DOMException + if the specified index is equal the number of rows. + + Retrieve the second TABLE element which has four rows. Try + to delete a new row using an index of four. This should throw + a INDEX_SIZE_ERR DOMException since the index is equal to the + number of rows. + +Rick Rivello +2002-05-02 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLTableElement38.xml b/test/testcases/tests/level2/html/HTMLTableElement38.xml new file mode 100644 index 0000000..0f5bccd --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLTableElement38.xml @@ -0,0 +1,47 @@ + + + + + + +HTMLTableElement38 +NIST + + The deleteRow() method throws a INDEX_SIZE_ERR DOMException + if the specified index is negative. + + Retrieve the second TABLE element which has four rows. Try + to delete a new row using an index of negative five. This should throw + a INDEX_SIZE_ERR DOMException since the index is negative. + +Rick Rivello +2002-05-02 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLTableElement39.xml b/test/testcases/tests/level2/html/HTMLTableElement39.xml new file mode 100644 index 0000000..6631584 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLTableElement39.xml @@ -0,0 +1,62 @@ + + + + + + +HTMLTableElement39 +NIST + + The insertRow() method inserts a new empty table row. + If index is -1 or equal to the number of rows, the new row + is appended. + + Retrieve the second TABLE element and invoke the insertRow() method + with an index of negative one. + The number of rows in the TBODY section before insertion with an index + of negative one is two. After the new row is inserted the number + of rows in the TBODY section is three. + +Rick Rivello +2002-11-07 + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLTableElement40.xml b/test/testcases/tests/level2/html/HTMLTableElement40.xml new file mode 100644 index 0000000..154b348 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLTableElement40.xml @@ -0,0 +1,50 @@ + + + + + + +HTMLTableElement40 +NIST + + The deleteRow() method deletes a table row. If the index is -1 + the last row of the table is deleted. + + Retrieve the second TABLE element and invoke the deleteRow() method + with an index of negative one. Currently there are four rows in the + table. The deleteRow() method is called and now there should be three. + +Rick Rivello +2002-11-02 + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLTableRowElement15.xml b/test/testcases/tests/level2/html/HTMLTableRowElement15.xml new file mode 100644 index 0000000..9e89674 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLTableRowElement15.xml @@ -0,0 +1,48 @@ + + + + + + +HTMLTableRowElement15 +NIST + + The insertCell() method throws a INDEX_SIZE_ERR DOMException + if the specified index is greater than the number of cells. + + Retrieve the fourth TR element which has six cells. Try + to insert a cell using an index of seven. This should throw + a INDEX_SIZE_ERR DOMException since there are only six cells. + +Rick Rivello +2002-05-02 + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLTableRowElement16.xml b/test/testcases/tests/level2/html/HTMLTableRowElement16.xml new file mode 100644 index 0000000..8471a2b --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLTableRowElement16.xml @@ -0,0 +1,48 @@ + + + + + + +HTMLTableRowElement16 +NIST + + The insertCell() method throws a INDEX_SIZE_ERR DOMException + if the specified index is negative. + + Retrieve the fourth TR element which has six cells. Try + to insert a cell using an index of negative seven. This should throw + a INDEX_SIZE_ERR DOMException since the index is negative. + +Rick Rivello +2002-05-02 + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLTableRowElement17.xml b/test/testcases/tests/level2/html/HTMLTableRowElement17.xml new file mode 100644 index 0000000..b469470 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLTableRowElement17.xml @@ -0,0 +1,47 @@ + + + + + + +HTMLTableRowElement17 +NIST + + The deleteCell() method throws a INDEX_SIZE_ERR DOMException + if the specified index is greater than the number of cells. + + Retrieve the fourth TR element which has six cells. Try + to delete a cell using an index of seven. This should throw + a INDEX_SIZE_ERR DOMException since there are only six cells. + +Rick Rivello +2002-05-02 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLTableRowElement18.xml b/test/testcases/tests/level2/html/HTMLTableRowElement18.xml new file mode 100644 index 0000000..f296086 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLTableRowElement18.xml @@ -0,0 +1,47 @@ + + + + + + +HTMLTableRowElement18 +NIST + + The deleteCell() method throws a INDEX_SIZE_ERR DOMException + if the specified index is equal to the number of cells. + + Retrieve the fourth TR element which has six cells. Try + to delete a cell using an index of six. This should throw + a INDEX_SIZE_ERR DOMException since there are only six cells. + +Rick Rivello +2002-05-02 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLTableRowElement19.xml b/test/testcases/tests/level2/html/HTMLTableRowElement19.xml new file mode 100644 index 0000000..9a111f3 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLTableRowElement19.xml @@ -0,0 +1,47 @@ + + + + + + +HTMLTableRowElement19 +NIST + + The deleteCell() method throws a INDEX_SIZE_ERR DOMException + if the specified index is negative. + + Retrieve the fourth TR element which has six cells. Try + to delete a cell using an index of negative six. This should throw + a INDEX_SIZE_ERR DOMException since the index is negative. + +Rick Rivello +2002-05-02 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLTableRowElement20.xml b/test/testcases/tests/level2/html/HTMLTableRowElement20.xml new file mode 100644 index 0000000..a879e13 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLTableRowElement20.xml @@ -0,0 +1,68 @@ + + + + + + +HTMLTableRowElement20 +NIST + + The insertCell() method inserts an empty TD cell into this row. + If index is -1 or equal to the number of cells, the new cell is + appended. + + + Retrieve the fourth TR element and examine the value of + the cells length attribute which should be set to six. + Check the value of the last TD element. Invoke the + insertCell() with an index of negative one + which will append the empty cell to the end of the list. + Check the value of the newly created cell and make sure it is null + and also the numbers of cells should now be seven. + +Rick Rivello +2002-11-07 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLTableRowElement21.xml b/test/testcases/tests/level2/html/HTMLTableRowElement21.xml new file mode 100644 index 0000000..9d5a598 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLTableRowElement21.xml @@ -0,0 +1,67 @@ + + + + + + +HTMLTableRowElement21 +NIST + + The deleteCell() method deletes a cell from the currtent row. If + the index is -1 the last cell in the row is deleted. + + + Retrieve the fourth TR element and examine the value of + the cells length attribute which should be set to six. + Check the value of the last TD element. Invoke the + deleteCell() with an index of negative one + which will delete the last cell in the row. + Check the value of the of the last cell + and also the numbers of cells should now be five. + +Rick Rivello +2002-11-07 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLTableSectionElement25.xml b/test/testcases/tests/level2/html/HTMLTableSectionElement25.xml new file mode 100644 index 0000000..8fbd1c2 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLTableSectionElement25.xml @@ -0,0 +1,48 @@ + + + + + + +HTMLTableSectionElement25 +NIST + + The insertRow() method throws a INDEX_SIZE_ERR DOMException + if the specified index is greater than the number of rows. + + Retrieve the first THEAD element which has one row. Try + to insert a new row using an index of two. This should throw + a INDEX_SIZE_ERR DOMException since there is only one row. + +Rick Rivello +2002-05-02 + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLTableSectionElement26.xml b/test/testcases/tests/level2/html/HTMLTableSectionElement26.xml new file mode 100644 index 0000000..206d91f --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLTableSectionElement26.xml @@ -0,0 +1,48 @@ + + + + + + +HTMLTableSectionElement26 +NIST + + The insertRow() method throws a INDEX_SIZE_ERR DOMException + if the specified index is negative. + + Retrieve the first THEAD element which has one row. Try + to insert a new row using an index of negative two. This should throw + a INDEX_SIZE_ERR DOMException since the index is negative. + +Rick Rivello +2002-05-02 + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLTableSectionElement27.xml b/test/testcases/tests/level2/html/HTMLTableSectionElement27.xml new file mode 100644 index 0000000..3ab35a5 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLTableSectionElement27.xml @@ -0,0 +1,48 @@ + + + + + + +HTMLTableSectionElement27 +NIST + + The deleteRow() method throws a INDEX_SIZE_ERR DOMException + if the specified index is greater than the number of rows. + + Retrieve the first THEAD element which has one row. Try + to delete a row using an index of two. This should throw + a INDEX_SIZE_ERR DOMException since the index is greater than the + number of rows. + +Rick Rivello +2002-05-02 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLTableSectionElement28.xml b/test/testcases/tests/level2/html/HTMLTableSectionElement28.xml new file mode 100644 index 0000000..5578ba5 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLTableSectionElement28.xml @@ -0,0 +1,48 @@ + + + + + + +HTMLTableSectionElement28 +NIST + + The deleteRow() method throws a INDEX_SIZE_ERR DOMException + if the specified index is equal to the number of rows. + + Retrieve the first THEAD element which has one row. Try + to delete a row using an index of 1. This should throw + a INDEX_SIZE_ERR DOMException since the index is equal to the + number of rows. + +Rick Rivello +2002-05-02 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLTableSectionElement29.xml b/test/testcases/tests/level2/html/HTMLTableSectionElement29.xml new file mode 100644 index 0000000..0ddd852 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLTableSectionElement29.xml @@ -0,0 +1,47 @@ + + + + + + +HTMLTableSectionElement29 +NIST + + The deleteRow() method throws a INDEX_SIZE_ERR DOMException + if the specified index is negative. + + Retrieve the first THEAD element which has one row. Try + to delete a row using an index of negative two. This should throw + a INDEX_SIZE_ERR DOMException since the index is negative. + +Rick Rivello +2002-05-02 + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLTableSectionElement30.xml b/test/testcases/tests/level2/html/HTMLTableSectionElement30.xml new file mode 100644 index 0000000..8fd17c2 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLTableSectionElement30.xml @@ -0,0 +1,55 @@ + + + + + + +HTMLTableSectionElement30 +NIST + + The insertRow() method inserts a new empty table row. The new + row is inserted immediately before the current indexth row in this + section. If index is -1 or equal to the number of rows in this section, + the new row is appended. + + Retrieve the first THEAD element and invoke the insertRow() method + with an index of negative one. Since the index is negative one the + new row is appended. + After the new row is appended the number of rows in the THEAD + section is two. + +Rick Rivello +2002-11-07 + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/HTMLTableSectionElement31.xml b/test/testcases/tests/level2/html/HTMLTableSectionElement31.xml new file mode 100644 index 0000000..55464e2 --- /dev/null +++ b/test/testcases/tests/level2/html/HTMLTableSectionElement31.xml @@ -0,0 +1,53 @@ + + + + + + +HTMLTableSectionElement31 +NIST + + The deleteRow() method deletes a row from this section. The index + starts from 0 and is relative only to the rows contained inside + this section, not all the rows in the table. If the index is -1 + the last row will be deleted. + + Retrieve the second TBODY element and invoke the deleteRow() method + with an index of -1. The nuber of rows in the THEAD section before + the deletion of the row is two. After the row is deleted the number + of rows in the TBODY section is one. + +Rick Rivello +2002-11-07 + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/alltests.xml b/test/testcases/tests/level2/html/alltests.xml new file mode 100644 index 0000000..db40cd4 --- /dev/null +++ b/test/testcases/tests/level2/html/alltests.xml @@ -0,0 +1,707 @@ + + + + + +DOM Level 2 HTML Test Suite +DOM Test Suite Project + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/files/.cvsignore b/test/testcases/tests/level2/html/files/.cvsignore new file mode 100644 index 0000000..30d6772 --- /dev/null +++ b/test/testcases/tests/level2/html/files/.cvsignore @@ -0,0 +1,6 @@ +xhtml1-frameset.dtd +xhtml1-strict.dtd +xhtml1-transitional.dtd +xhtml-lat1.ent +xhtml-special.ent +xhtml-symbol.ent diff --git a/test/testcases/tests/level2/html/files/CVS/Entries b/test/testcases/tests/level2/html/files/CVS/Entries new file mode 100644 index 0000000..b5780ce --- /dev/null +++ b/test/testcases/tests/level2/html/files/CVS/Entries @@ -0,0 +1,11 @@ +/.cvsignore/1.1/Fri Apr 3 02:47:56 2009// +/frame2.html/1.3/Fri Apr 3 02:47:56 2009// +/frame2.xhtml/1.4/Fri Apr 3 02:47:56 2009/-kb/ +/frame2.xml/1.4/Fri Apr 3 02:47:55 2009// +/iframe2.html/1.4/Fri Apr 3 02:47:56 2009// +/iframe2.xhtml/1.4/Fri Apr 3 02:47:56 2009/-kb/ +/iframe2.xml/1.4/Fri Apr 3 02:47:56 2009// +/optionscollection.html/1.2/Fri Apr 3 02:47:56 2009// +/optionscollection.xhtml/1.2/Fri Apr 3 02:47:56 2009/-kb/ +/optionscollection.xml/1.2/Fri Apr 3 02:47:56 2009// +D diff --git a/test/testcases/tests/level2/html/files/CVS/Repository b/test/testcases/tests/level2/html/files/CVS/Repository new file mode 100644 index 0000000..f200009 --- /dev/null +++ b/test/testcases/tests/level2/html/files/CVS/Repository @@ -0,0 +1 @@ +2001/DOM-Test-Suite/tests/level2/html/files diff --git a/test/testcases/tests/level2/html/files/CVS/Root b/test/testcases/tests/level2/html/files/CVS/Root new file mode 100644 index 0000000..3c7177e --- /dev/null +++ b/test/testcases/tests/level2/html/files/CVS/Root @@ -0,0 +1 @@ +:pserver:anonymous@dev.w3.org:/sources/public diff --git a/test/testcases/tests/level2/html/files/CVS/Template b/test/testcases/tests/level2/html/files/CVS/Template new file mode 100644 index 0000000..e69de29 diff --git a/test/testcases/tests/level2/html/files/frame2.html b/test/testcases/tests/level2/html/files/frame2.html new file mode 100644 index 0000000..6030ec5 --- /dev/null +++ b/test/testcases/tests/level2/html/files/frame2.html @@ -0,0 +1,16 @@ + + + + +NIST DOM HTML Test - FRAME2 + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/files/frame2.xhtml b/test/testcases/tests/level2/html/files/frame2.xhtml new file mode 100644 index 0000000..09008eb --- /dev/null +++ b/test/testcases/tests/level2/html/files/frame2.xhtml @@ -0,0 +1,17 @@ + + + + +NIST DOM HTML Test - FRAME2 + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/files/frame2.xml b/test/testcases/tests/level2/html/files/frame2.xml new file mode 100644 index 0000000..615f234 --- /dev/null +++ b/test/testcases/tests/level2/html/files/frame2.xml @@ -0,0 +1,16 @@ + + + + +NIST DOM HTML Test - FRAME2 + + + + + + + + + diff --git a/test/testcases/tests/level2/html/files/iframe2.html b/test/testcases/tests/level2/html/files/iframe2.html new file mode 100644 index 0000000..7f302b8 --- /dev/null +++ b/test/testcases/tests/level2/html/files/iframe2.html @@ -0,0 +1,13 @@ + + + + +NIST DOM HTML Test - IFRAME2 + + + + + + + + diff --git a/test/testcases/tests/level2/html/files/iframe2.xhtml b/test/testcases/tests/level2/html/files/iframe2.xhtml new file mode 100644 index 0000000..a1b1011 --- /dev/null +++ b/test/testcases/tests/level2/html/files/iframe2.xhtml @@ -0,0 +1,15 @@ + + + + +NIST DOM HTML Test - IFRAME2 + + + + + + + + diff --git a/test/testcases/tests/level2/html/files/iframe2.xml b/test/testcases/tests/level2/html/files/iframe2.xml new file mode 100644 index 0000000..a1b1011 --- /dev/null +++ b/test/testcases/tests/level2/html/files/iframe2.xml @@ -0,0 +1,15 @@ + + + + +NIST DOM HTML Test - IFRAME2 + + + + + + + + diff --git a/test/testcases/tests/level2/html/files/optionscollection.html b/test/testcases/tests/level2/html/files/optionscollection.html new file mode 100644 index 0000000..d1e8743 --- /dev/null +++ b/test/testcases/tests/level2/html/files/optionscollection.html @@ -0,0 +1,36 @@ + + + + +NIST DOM HTML Test - OPTIONSCOLLECTION + + +
+

+ +

+
+

+ +

+ + + + + + + + + diff --git a/test/testcases/tests/level2/html/files/optionscollection.xhtml b/test/testcases/tests/level2/html/files/optionscollection.xhtml new file mode 100644 index 0000000..3f04194 --- /dev/null +++ b/test/testcases/tests/level2/html/files/optionscollection.xhtml @@ -0,0 +1,33 @@ + + + + +NIST DOM HTML Test - OPTIONSCOLLECTION + + +
+

+ +

+
+

+ +

+ + + + diff --git a/test/testcases/tests/level2/html/files/optionscollection.xml b/test/testcases/tests/level2/html/files/optionscollection.xml new file mode 100644 index 0000000..3f04194 --- /dev/null +++ b/test/testcases/tests/level2/html/files/optionscollection.xml @@ -0,0 +1,33 @@ + + + + +NIST DOM HTML Test - OPTIONSCOLLECTION + + +
+

+ +

+
+

+ +

+ + + + diff --git a/test/testcases/tests/level2/html/hasFeature02.xml b/test/testcases/tests/level2/html/hasFeature02.xml new file mode 100644 index 0000000..560a60c --- /dev/null +++ b/test/testcases/tests/level2/html/hasFeature02.xml @@ -0,0 +1,31 @@ + + + + + +hasFeature02 +Curt Arnold + +hasFeature("hTmL", "2.0") should return true. + +2004-03-18 + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/hasFeature03.xml b/test/testcases/tests/level2/html/hasFeature03.xml new file mode 100644 index 0000000..49fb3b5 --- /dev/null +++ b/test/testcases/tests/level2/html/hasFeature03.xml @@ -0,0 +1,33 @@ + + + + + +hasFeature03 +Curt Arnold + +hasFeature("xhTmL", null) should return true if hasFeature("XML", null) returns true. + +2004-03-18 + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/hasFeature04.xml b/test/testcases/tests/level2/html/hasFeature04.xml new file mode 100644 index 0000000..077b913 --- /dev/null +++ b/test/testcases/tests/level2/html/hasFeature04.xml @@ -0,0 +1,33 @@ + + + + + +hasFeature04 +Curt Arnold + +hasFeature("xhTmL", "2.0") should return true if hasFeature("XML", "2.0") returns true. + +2004-03-18 + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/hasFeature05.xml b/test/testcases/tests/level2/html/hasFeature05.xml new file mode 100644 index 0000000..c79f90b --- /dev/null +++ b/test/testcases/tests/level2/html/hasFeature05.xml @@ -0,0 +1,31 @@ + + + + + +hasFeature05 +Curt Arnold + +hasFeature("cOrE", null) should return true. + +2004-03-18 + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/hasFeature06.xml b/test/testcases/tests/level2/html/hasFeature06.xml new file mode 100644 index 0000000..162e5cf --- /dev/null +++ b/test/testcases/tests/level2/html/hasFeature06.xml @@ -0,0 +1,31 @@ + + + + + +hasFeature06 +Curt Arnold + +hasFeature("cOrE", "2.0") should return true. + +2004-03-18 + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/metadata.xml b/test/testcases/tests/level2/html/metadata.xml new file mode 100644 index 0000000..be6715a --- /dev/null +++ b/test/testcases/tests/level2/html/metadata.xml @@ -0,0 +1,15 @@ + + + + + diff --git a/test/testcases/tests/level2/html/object08.xml b/test/testcases/tests/level2/html/object08.xml new file mode 100644 index 0000000..32d32cf --- /dev/null +++ b/test/testcases/tests/level2/html/object08.xml @@ -0,0 +1,40 @@ + + + + + + +object08 +Netscape + +Horizontal space to the left and right of this image, applet, or object. +The value of attribute hspace of the object element is read and checked against the expected value. + +Sivakiran Tummala +2002-02-15 + + + + + + + + + + + + + diff --git a/test/testcases/tests/level2/html/object13.xml b/test/testcases/tests/level2/html/object13.xml new file mode 100644 index 0000000..a3a603a --- /dev/null +++ b/test/testcases/tests/level2/html/object13.xml @@ -0,0 +1,40 @@ + + + + + + +object13 +Netscape + +Vertical space above and below this image, applet, or object. +The value of attribute vspace of the object element is read and checked against the expected value. + +Sivakiran Tummala +2002-02-15 + + + + + + + + + + + + + -- cgit v1.2.3