diff options
Diffstat (limited to 'test/testcases/tests/level1')
1402 files changed, 61390 insertions, 0 deletions
diff --git a/test/testcases/tests/level1/CVS/Entries b/test/testcases/tests/level1/CVS/Entries new file mode 100644 index 0000000..1254121 --- /dev/null +++ b/test/testcases/tests/level1/CVS/Entries @@ -0,0 +1,2 @@ +D/core//// +D/html//// diff --git a/test/testcases/tests/level1/CVS/Repository b/test/testcases/tests/level1/CVS/Repository new file mode 100644 index 0000000..ffe8b1f --- /dev/null +++ b/test/testcases/tests/level1/CVS/Repository @@ -0,0 +1 @@ +2001/DOM-Test-Suite/tests/level1 diff --git a/test/testcases/tests/level1/CVS/Root b/test/testcases/tests/level1/CVS/Root new file mode 100644 index 0000000..3c7177e --- /dev/null +++ b/test/testcases/tests/level1/CVS/Root @@ -0,0 +1 @@ +:pserver:anonymous@dev.w3.org:/sources/public diff --git a/test/testcases/tests/level1/CVS/Template b/test/testcases/tests/level1/CVS/Template new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/testcases/tests/level1/CVS/Template diff --git a/test/testcases/tests/level1/core/.cvsignore b/test/testcases/tests/level1/core/.cvsignore new file mode 100644 index 0000000..46fbb92 --- /dev/null +++ b/test/testcases/tests/level1/core/.cvsignore @@ -0,0 +1,2 @@ +dom1.dtd +dom1.xsd diff --git a/test/testcases/tests/level1/core/.nodeappendchild.xml.swp b/test/testcases/tests/level1/core/.nodeappendchild.xml.swp Binary files differnew file mode 100644 index 0000000..1611a6e --- /dev/null +++ b/test/testcases/tests/level1/core/.nodeappendchild.xml.swp diff --git a/test/testcases/tests/level1/core/CVS/Entries b/test/testcases/tests/level1/core/CVS/Entries new file mode 100644 index 0000000..7b3371c --- /dev/null +++ b/test/testcases/tests/level1/core/CVS/Entries @@ -0,0 +1,531 @@ +D/files//// +/.cvsignore/1.1/Fri Apr 3 02:48:04 2009// +/alltests.xml/1.22/Fri Apr 3 02:48:03 2009// +/attrcreatedocumentfragment.xml/1.9/Fri Apr 3 02:48:04 2009// +/attrcreatetextnode.xml/1.9/Fri Apr 3 02:48:03 2009// +/attrcreatetextnode2.xml/1.5/Fri Apr 3 02:48:03 2009// +/attrdefaultvalue.xml/1.7/Fri Apr 3 02:48:03 2009// +/attreffectivevalue.xml/1.6/Fri Apr 3 02:48:03 2009// +/attrentityreplacement.xml/1.7/Fri Apr 3 02:48:04 2009// +/attrname.xml/1.6/Fri Apr 3 02:48:04 2009// +/attrnextsiblingnull.xml/1.7/Fri Apr 3 02:48:04 2009// +/attrnotspecifiedvalue.xml/1.8/Fri Apr 3 02:48:03 2009// +/attrparentnodenull.xml/1.7/Fri Apr 3 02:48:04 2009// +/attrprevioussiblingnull.xml/1.7/Fri Apr 3 02:48:04 2009// +/attrremovechild1.xml/1.3/Fri Apr 3 02:48:04 2009// +/attrreplacechild1.xml/1.3/Fri Apr 3 02:48:04 2009// +/attrsetvaluenomodificationallowederr.xml/1.9/Fri Apr 3 02:48:04 2009// +/attrsetvaluenomodificationallowederrEE.xml/1.9/Fri Apr 3 02:48:03 2009// +/attrspecifiedvalue.xml/1.6/Fri Apr 3 02:48:03 2009// +/attrspecifiedvaluechanged.xml/1.6/Fri Apr 3 02:48:04 2009// +/attrspecifiedvalueremove.xml/1.8/Fri Apr 3 02:48:04 2009// +/cdatasectiongetdata.xml/1.13/Fri Apr 3 02:48:03 2009// +/cdatasectionnormalize.xml/1.11/Fri Apr 3 02:48:03 2009// +/characterdataappenddata.xml/1.6/Fri Apr 3 02:48:03 2009// +/characterdataappenddatagetdata.xml/1.7/Fri Apr 3 02:48:04 2009// +/characterdataappenddatanomodificationallowederr.xml/1.12/Fri Apr 3 02:48:04 2009// +/characterdataappenddatanomodificationallowederrEE.xml/1.8/Fri Apr 3 02:48:04 2009// +/characterdatadeletedatabegining.xml/1.8/Fri Apr 3 02:48:04 2009// +/characterdatadeletedataend.xml/1.7/Fri Apr 3 02:48:04 2009// +/characterdatadeletedataexceedslength.xml/1.7/Fri Apr 3 02:48:04 2009// +/characterdatadeletedatagetlengthanddata.xml/1.8/Fri Apr 3 02:48:03 2009// +/characterdatadeletedatamiddle.xml/1.7/Fri Apr 3 02:48:04 2009// +/characterdatadeletedatanomodificationallowederr.xml/1.12/Fri Apr 3 02:48:04 2009// +/characterdatadeletedatanomodificationallowederrEE.xml/1.8/Fri Apr 3 02:48:04 2009// +/characterdatagetdata.xml/1.7/Fri Apr 3 02:48:03 2009// +/characterdatagetlength.xml/1.6/Fri Apr 3 02:48:03 2009// +/characterdataindexsizeerrdeletedatacountnegative.xml/1.9/Fri Apr 3 02:48:03 2009// +/characterdataindexsizeerrdeletedataoffsetgreater.xml/1.7/Fri Apr 3 02:48:03 2009// +/characterdataindexsizeerrdeletedataoffsetnegative.xml/1.7/Fri Apr 3 02:48:04 2009// +/characterdataindexsizeerrinsertdataoffsetgreater.xml/1.9/Fri Apr 3 02:48:04 2009// +/characterdataindexsizeerrinsertdataoffsetnegative.xml/1.9/Fri Apr 3 02:48:04 2009// +/characterdataindexsizeerrreplacedatacountnegative.xml/1.9/Fri Apr 3 02:48:03 2009// +/characterdataindexsizeerrreplacedataoffsetgreater.xml/1.9/Fri Apr 3 02:48:04 2009// +/characterdataindexsizeerrreplacedataoffsetnegative.xml/1.7/Fri Apr 3 02:48:04 2009// +/characterdataindexsizeerrsubstringcountnegative.xml/1.8/Fri Apr 3 02:48:03 2009// +/characterdataindexsizeerrsubstringnegativeoffset.xml/1.8/Fri Apr 3 02:48:03 2009// +/characterdataindexsizeerrsubstringoffsetgreater.xml/1.8/Fri Apr 3 02:48:03 2009// +/characterdatainsertdatabeginning.xml/1.8/Fri Apr 3 02:48:03 2009// +/characterdatainsertdataend.xml/1.7/Fri Apr 3 02:48:04 2009// +/characterdatainsertdatamiddle.xml/1.7/Fri Apr 3 02:48:04 2009// +/characterdatainsertdatanomodificationallowederr.xml/1.12/Fri Apr 3 02:48:04 2009// +/characterdatainsertdatanomodificationallowederrEE.xml/1.8/Fri Apr 3 02:48:04 2009// +/characterdatareplacedatabegining.xml/1.8/Fri Apr 3 02:48:04 2009// +/characterdatareplacedataend.xml/1.7/Fri Apr 3 02:48:04 2009// +/characterdatareplacedataexceedslengthofarg.xml/1.7/Fri Apr 3 02:48:03 2009// +/characterdatareplacedataexceedslengthofdata.xml/1.7/Fri Apr 3 02:48:03 2009// +/characterdatareplacedatamiddle.xml/1.7/Fri Apr 3 02:48:04 2009// +/characterdatareplacedatanomodificationallowederr.xml/1.13/Fri Apr 3 02:48:03 2009// +/characterdatareplacedatanomodificationallowederrEE.xml/1.8/Fri Apr 3 02:48:04 2009// +/characterdatasetdatanomodificationallowederr.xml/1.11/Fri Apr 3 02:48:04 2009// +/characterdatasetdatanomodificationallowederrEE.xml/1.8/Fri Apr 3 02:48:04 2009// +/characterdatasetnodevalue.xml/1.4/Fri Apr 3 02:48:03 2009// +/characterdatasubstringexceedsvalue.xml/1.7/Fri Apr 3 02:48:03 2009// +/characterdatasubstringvalue.xml/1.7/Fri Apr 3 02:48:04 2009// +/commentgetcomment.xml/1.6/Fri Apr 3 02:48:04 2009// +/documentcreateattribute.xml/1.8/Fri Apr 3 02:48:03 2009// +/documentcreatecdatasection.xml/1.12/Fri Apr 3 02:48:04 2009// +/documentcreatecomment.xml/1.8/Fri Apr 3 02:48:04 2009// +/documentcreatedocumentfragment.xml/1.8/Fri Apr 3 02:48:04 2009// +/documentcreateelement.xml/1.10/Fri Apr 3 02:48:03 2009// +/documentcreateelementcasesensitive.xml/1.7/Fri Apr 3 02:48:04 2009// +/documentcreateelementdefaultattr.xml/1.10/Fri Apr 3 02:48:03 2009// +/documentcreateentityreference.xml/1.15/Fri Apr 3 02:48:04 2009// +/documentcreateentityreferenceknown.xml/1.14/Fri Apr 3 02:48:04 2009// +/documentcreateprocessinginstruction.xml/1.12/Fri Apr 3 02:48:03 2009// +/documentcreatetextnode.xml/1.8/Fri Apr 3 02:48:03 2009// +/documentgetdoctype.xml/1.13/Fri Apr 3 02:48:04 2009// +/documentgetdoctypenodtd.xml/1.10/Fri Apr 3 02:48:04 2009// +/documentgetelementsbytagnamelength.xml/1.6/Fri Apr 3 02:48:04 2009// +/documentgetelementsbytagnametotallength.xml/1.7/Fri Apr 3 02:48:04 2009// +/documentgetelementsbytagnamevalue.xml/1.7/Fri Apr 3 02:48:03 2009// +/documentgetimplementation.xml/1.6/Fri Apr 3 02:48:04 2009// +/documentgetrootnode.xml/1.8/Fri Apr 3 02:48:04 2009// +/documentinvalidcharacterexceptioncreateattribute.xml/1.8/Fri Apr 3 02:48:04 2009// +/documentinvalidcharacterexceptioncreateelement.xml/1.8/Fri Apr 3 02:48:03 2009// +/documentinvalidcharacterexceptioncreateentref.xml/1.13/Fri Apr 3 02:48:04 2009// +/documentinvalidcharacterexceptioncreateentref1.xml/1.3/Fri Apr 3 02:48:04 2009// +/documentinvalidcharacterexceptioncreatepi.xml/1.13/Fri Apr 3 02:48:03 2009// +/documentinvalidcharacterexceptioncreatepi1.xml/1.3/Fri Apr 3 02:48:03 2009// +/documenttypegetdoctype.xml/1.10/Fri Apr 3 02:48:03 2009// +/documenttypegetentities.xml/1.13/Fri Apr 3 02:48:03 2009// +/documenttypegetentitieslength.xml/1.9/Fri Apr 3 02:48:03 2009// +/documenttypegetentitiestype.xml/1.9/Fri Apr 3 02:48:04 2009// +/documenttypegetnotations.xml/1.10/Fri Apr 3 02:48:04 2009// +/documenttypegetnotationstype.xml/1.8/Fri Apr 3 02:48:03 2009// +/domimplementationfeaturenoversion.xml/1.7/Fri Apr 3 02:48:04 2009// +/domimplementationfeaturenull.xml/1.5/Fri Apr 3 02:48:03 2009// +/domimplementationfeaturexml.xml/1.7/Fri Apr 3 02:48:04 2009// +/elementaddnewattribute.xml/1.6/Fri Apr 3 02:48:04 2009// +/elementassociatedattribute.xml/1.6/Fri Apr 3 02:48:04 2009// +/elementchangeattributevalue.xml/1.6/Fri Apr 3 02:48:03 2009// +/elementcreatenewattribute.xml/1.7/Fri Apr 3 02:48:03 2009// +/elementgetattributenode.xml/1.6/Fri Apr 3 02:48:04 2009// +/elementgetattributenodenull.xml/1.5/Fri Apr 3 02:48:04 2009// +/elementgetelementempty.xml/1.6/Fri Apr 3 02:48:04 2009// +/elementgetelementsbytagname.xml/1.6/Fri Apr 3 02:48:03 2009// +/elementgetelementsbytagnameaccessnodelist.xml/1.10/Fri Apr 3 02:48:03 2009// +/elementgetelementsbytagnamenomatch.xml/1.6/Fri Apr 3 02:48:03 2009// +/elementgetelementsbytagnamespecialvalue.xml/1.8/Fri Apr 3 02:48:04 2009// +/elementgettagname.xml/1.8/Fri Apr 3 02:48:04 2009// +/elementinuseattributeerr.xml/1.9/Fri Apr 3 02:48:04 2009// +/elementinvalidcharacterexception.xml/1.6/Fri Apr 3 02:48:04 2009// +/elementnormalize.xml/1.7/Fri Apr 3 02:48:04 2009// +/elementnotfounderr.xml/1.7/Fri Apr 3 02:48:04 2009// +/elementremoveattribute.xml/1.8/Fri Apr 3 02:48:04 2009// +/elementremoveattributeaftercreate.xml/1.6/Fri Apr 3 02:48:03 2009// +/elementremoveattributenode.xml/1.6/Fri Apr 3 02:48:03 2009// +/elementremoveattributenodenomodificationallowederr.xml/1.9/Fri Apr 3 02:48:04 2009// +/elementremoveattributenodenomodificationallowederrEE.xml/1.10/Fri Apr 3 02:48:03 2009// +/elementremoveattributenomodificationallowederr.xml/1.8/Fri Apr 3 02:48:04 2009// +/elementremoveattributenomodificationallowederrEE.xml/1.10/Fri Apr 3 02:48:03 2009// +/elementremoveattributerestoredefaultvalue.xml/1.9/Fri Apr 3 02:48:04 2009// +/elementreplaceattributewithself.xml/1.3/Fri Apr 3 02:48:04 2009// +/elementreplaceexistingattribute.xml/1.6/Fri Apr 3 02:48:04 2009// +/elementreplaceexistingattributegevalue.xml/1.8/Fri Apr 3 02:48:04 2009// +/elementretrieveallattributes.xml/1.7/Fri Apr 3 02:48:04 2009// +/elementretrieveattrvalue.xml/1.7/Fri Apr 3 02:48:03 2009// +/elementretrievetagname.xml/1.6/Fri Apr 3 02:48:04 2009// +/elementsetattributenodenomodificationallowederr.xml/1.12/Fri Apr 3 02:48:03 2009// +/elementsetattributenodenomodificationallowederrEE.xml/1.9/Fri Apr 3 02:48:03 2009// +/elementsetattributenodenull.xml/1.5/Fri Apr 3 02:48:04 2009// +/elementsetattributenomodificationallowederr.xml/1.10/Fri Apr 3 02:48:03 2009// +/elementsetattributenomodificationallowederrEE.xml/1.8/Fri Apr 3 02:48:03 2009// +/elementwrongdocumenterr.xml/1.6/Fri Apr 3 02:48:03 2009// +/entitygetentityname.xml/1.10/Fri Apr 3 02:48:03 2009// +/entitygetpublicid.xml/1.12/Fri Apr 3 02:48:03 2009// +/entitygetpublicidnull.xml/1.10/Fri Apr 3 02:48:03 2009// +/hc_attrappendchild1.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_attrappendchild2.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_attrappendchild3.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_attrappendchild4.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_attrappendchild5.xml/1.1/Fri Apr 3 02:48:03 2009// +/hc_attrappendchild6.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_attrchildnodes1.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_attrchildnodes2.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_attrclonenode1.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_attrcreatedocumentfragment.xml/1.5/Fri Apr 3 02:48:03 2009// +/hc_attrcreatetextnode.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_attrcreatetextnode2.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_attreffectivevalue.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_attrfirstchild.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_attrgetvalue1.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_attrgetvalue2.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_attrhaschildnodes.xml/1.1/Fri Apr 3 02:48:03 2009// +/hc_attrinsertbefore1.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_attrinsertbefore2.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_attrinsertbefore3.xml/1.1/Fri Apr 3 02:48:03 2009// +/hc_attrinsertbefore4.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_attrinsertbefore5.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_attrinsertbefore6.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_attrinsertbefore7.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_attrlastchild.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_attrname.xml/1.5/Fri Apr 3 02:48:04 2009// +/hc_attrnextsiblingnull.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_attrnormalize.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_attrparentnodenull.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_attrprevioussiblingnull.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_attrremovechild1.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_attrremovechild2.xml/1.1/Fri Apr 3 02:48:03 2009// +/hc_attrreplacechild1.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_attrreplacechild2.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_attrsetvalue1.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_attrsetvalue2.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_attrspecifiedvalue.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_attrspecifiedvaluechanged.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_characterdataappenddata.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_characterdataappenddatagetdata.xml/1.1/Fri Apr 3 02:48:03 2009// +/hc_characterdatadeletedatabegining.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_characterdatadeletedataend.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_characterdatadeletedataexceedslength.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_characterdatadeletedatagetlengthanddata.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_characterdatadeletedatamiddle.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_characterdatagetdata.xml/1.1/Fri Apr 3 02:48:03 2009// +/hc_characterdatagetlength.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_characterdataindexsizeerrdeletedatacountnegative.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_characterdataindexsizeerrdeletedataoffsetgreater.xml/1.3/Fri Apr 3 02:48:03 2009// +/hc_characterdataindexsizeerrdeletedataoffsetnegative.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_characterdataindexsizeerrinsertdataoffsetgreater.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_characterdataindexsizeerrinsertdataoffsetnegative.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_characterdataindexsizeerrreplacedatacountnegative.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_characterdataindexsizeerrreplacedataoffsetgreater.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_characterdataindexsizeerrreplacedataoffsetnegative.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_characterdataindexsizeerrsubstringcountnegative.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_characterdataindexsizeerrsubstringnegativeoffset.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_characterdataindexsizeerrsubstringoffsetgreater.xml/1.4/Fri Apr 3 02:48:04 2009// +/hc_characterdatainsertdatabeginning.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_characterdatainsertdataend.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_characterdatainsertdatamiddle.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_characterdatareplacedatabegining.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_characterdatareplacedataend.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_characterdatareplacedataexceedslengthofarg.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_characterdatareplacedataexceedslengthofdata.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_characterdatareplacedatamiddle.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_characterdatasetnodevalue.xml/1.1/Fri Apr 3 02:48:03 2009// +/hc_characterdatasubstringexceedsvalue.xml/1.1/Fri Apr 3 02:48:03 2009// +/hc_characterdatasubstringvalue.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_commentgetcomment.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_documentcreateattribute.xml/1.5/Fri Apr 3 02:48:03 2009// +/hc_documentcreatecomment.xml/1.1/Fri Apr 3 02:48:03 2009// +/hc_documentcreatedocumentfragment.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_documentcreateelement.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_documentcreateelementcasesensitive.xml/1.5/Fri Apr 3 02:48:04 2009// +/hc_documentcreatetextnode.xml/1.1/Fri Apr 3 02:48:03 2009// +/hc_documentgetdoctype.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_documentgetelementsbytagnamelength.xml/1.1/Fri Apr 3 02:48:03 2009// +/hc_documentgetelementsbytagnametotallength.xml/1.8/Fri Apr 3 02:48:03 2009// +/hc_documentgetelementsbytagnamevalue.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_documentgetimplementation.xml/1.3/Fri Apr 3 02:48:03 2009// +/hc_documentgetrootnode.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_documentinvalidcharacterexceptioncreateattribute.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_documentinvalidcharacterexceptioncreateattribute1.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_documentinvalidcharacterexceptioncreateelement.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_documentinvalidcharacterexceptioncreateelement1.xml/1.1/Fri Apr 3 02:48:03 2009// +/hc_domimplementationfeaturenoversion.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_domimplementationfeaturenull.xml/1.3/Fri Apr 3 02:48:03 2009// +/hc_domimplementationfeaturexml.xml/1.3/Fri Apr 3 02:48:03 2009// +/hc_elementaddnewattribute.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_elementassociatedattribute.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_elementchangeattributevalue.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_elementcreatenewattribute.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_elementgetattributenode.xml/1.4/Fri Apr 3 02:48:04 2009// +/hc_elementgetattributenodenull.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_elementgetelementempty.xml/1.3/Fri Apr 3 02:48:03 2009// +/hc_elementgetelementsbytagname.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_elementgetelementsbytagnameaccessnodelist.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_elementgetelementsbytagnamenomatch.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_elementgetelementsbytagnamespecialvalue.xml/1.5/Fri Apr 3 02:48:03 2009// +/hc_elementgettagname.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_elementinuseattributeerr.xml/1.4/Fri Apr 3 02:48:03 2009// +/hc_elementinvalidcharacterexception.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_elementinvalidcharacterexception1.xml/1.1/Fri Apr 3 02:48:03 2009// +/hc_elementnormalize.xml/1.3/Fri Apr 3 02:48:03 2009// +/hc_elementnormalize2.xml/1.4/Fri Apr 3 02:48:04 2009// +/hc_elementnotfounderr.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_elementremoveattribute.xml/1.3/Fri Apr 3 02:48:03 2009// +/hc_elementremoveattributeaftercreate.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_elementremoveattributenode.xml/1.3/Fri Apr 3 02:48:03 2009// +/hc_elementreplaceattributewithself.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_elementreplaceexistingattribute.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_elementreplaceexistingattributegevalue.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_elementretrieveallattributes.xml/1.6/Fri Apr 3 02:48:03 2009// +/hc_elementretrieveattrvalue.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_elementretrievetagname.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_elementsetattributenodenull.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_elementwrongdocumenterr.xml/1.3/Fri Apr 3 02:48:03 2009// +/hc_entitiesremovenameditem1.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_entitiessetnameditem1.xml/1.3/Fri Apr 3 02:48:03 2009// +/hc_namednodemapchildnoderange.xml/1.5/Fri Apr 3 02:48:04 2009// +/hc_namednodemapgetnameditem.xml/1.4/Fri Apr 3 02:48:04 2009// +/hc_namednodemapinuseattributeerr.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_namednodemapnotfounderr.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_namednodemapnumberofnodes.xml/1.5/Fri Apr 3 02:48:03 2009// +/hc_namednodemapremovenameditem.xml/1.3/Fri Apr 3 02:48:03 2009// +/hc_namednodemapreturnattrnode.xml/1.5/Fri Apr 3 02:48:04 2009// +/hc_namednodemapreturnfirstitem.xml/1.5/Fri Apr 3 02:48:03 2009// +/hc_namednodemapreturnlastitem.xml/1.5/Fri Apr 3 02:48:04 2009// +/hc_namednodemapreturnnull.xml/1.4/Fri Apr 3 02:48:04 2009// +/hc_namednodemapsetnameditem.xml/1.4/Fri Apr 3 02:48:03 2009// +/hc_namednodemapsetnameditemreturnvalue.xml/1.3/Fri Apr 3 02:48:03 2009// +/hc_namednodemapsetnameditemthatexists.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_namednodemapsetnameditemwithnewvalue.xml/1.3/Fri Apr 3 02:48:03 2009// +/hc_namednodemapwrongdocumenterr.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_nodeappendchild.xml/1.3/Fri Apr 3 02:48:03 2009// +/hc_nodeappendchildchildexists.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_nodeappendchilddocfragment.xml/1.5/Fri Apr 3 02:48:03 2009// +/hc_nodeappendchildgetnodename.xml/1.3/Fri Apr 3 02:48:03 2009// +/hc_nodeappendchildinvalidnodetype.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_nodeappendchildnewchilddiffdocument.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_nodeappendchildnodeancestor.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_nodeattributenodeattribute.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_nodeattributenodename.xml/1.4/Fri Apr 3 02:48:03 2009// +/hc_nodeattributenodetype.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_nodeattributenodevalue.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_nodechildnodes.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_nodechildnodesappendchild.xml/1.3/Fri Apr 3 02:48:03 2009// +/hc_nodechildnodesempty.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_nodecloneattributescopied.xml/1.7/Fri Apr 3 02:48:03 2009// +/hc_nodeclonefalsenocopytext.xml/1.1/Fri Apr 3 02:48:03 2009// +/hc_nodeclonegetparentnull.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_nodeclonenodefalse.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_nodeclonenodetrue.xml/1.5/Fri Apr 3 02:48:03 2009// +/hc_nodeclonetruecopytext.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_nodecommentnodeattributes.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_nodecommentnodename.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_nodecommentnodetype.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_nodecommentnodevalue.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_nodedocumentfragmentnodename.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_nodedocumentfragmentnodetype.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_nodedocumentfragmentnodevalue.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_nodedocumentnodeattribute.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_nodedocumentnodename.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_nodedocumentnodetype.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_nodedocumentnodevalue.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_nodeelementnodeattributes.xml/1.6/Fri Apr 3 02:48:03 2009// +/hc_nodeelementnodename.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_nodeelementnodetype.xml/1.1/Fri Apr 3 02:48:03 2009// +/hc_nodeelementnodevalue.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_nodegetfirstchild.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_nodegetfirstchildnull.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_nodegetlastchild.xml/1.1/Fri Apr 3 02:48:03 2009// +/hc_nodegetlastchildnull.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_nodegetnextsibling.xml/1.1/Fri Apr 3 02:48:03 2009// +/hc_nodegetnextsiblingnull.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_nodegetownerdocument.xml/1.4/Fri Apr 3 02:48:04 2009// +/hc_nodegetownerdocumentnull.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_nodegetprevioussibling.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_nodegetprevioussiblingnull.xml/1.1/Fri Apr 3 02:48:03 2009// +/hc_nodehaschildnodes.xml/1.1/Fri Apr 3 02:48:03 2009// +/hc_nodehaschildnodesfalse.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_nodeinsertbefore.xml/1.6/Fri Apr 3 02:48:04 2009// +/hc_nodeinsertbeforedocfragment.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_nodeinsertbeforeinvalidnodetype.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_nodeinsertbeforenewchilddiffdocument.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_nodeinsertbeforenewchildexists.xml/1.4/Fri Apr 3 02:48:04 2009// +/hc_nodeinsertbeforenodeancestor.xml/1.1/Fri Apr 3 02:48:03 2009// +/hc_nodeinsertbeforenodename.xml/1.3/Fri Apr 3 02:48:03 2009// +/hc_nodeinsertbeforerefchildnonexistent.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_nodeinsertbeforerefchildnull.xml/1.3/Fri Apr 3 02:48:03 2009// +/hc_nodelistindexequalzero.xml/1.3/Fri Apr 3 02:48:03 2009// +/hc_nodelistindexgetlength.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_nodelistindexgetlengthofemptylist.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_nodelistindexnotzero.xml/1.4/Fri Apr 3 02:48:03 2009// +/hc_nodelistreturnfirstitem.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_nodelistreturnlastitem.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_nodelisttraverselist.xml/1.4/Fri Apr 3 02:48:04 2009// +/hc_nodeparentnode.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_nodeparentnodenull.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_noderemovechild.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_noderemovechildgetnodename.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_noderemovechildnode.xml/1.5/Fri Apr 3 02:48:04 2009// +/hc_noderemovechildoldchildnonexistent.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_nodereplacechild.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_nodereplacechildinvalidnodetype.xml/1.3/Fri Apr 3 02:48:03 2009// +/hc_nodereplacechildnewchilddiffdocument.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_nodereplacechildnewchildexists.xml/1.4/Fri Apr 3 02:48:03 2009// +/hc_nodereplacechildnodeancestor.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_nodereplacechildnodename.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_nodereplacechildoldchildnonexistent.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_nodetextnodeattribute.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_nodetextnodename.xml/1.3/Fri Apr 3 02:48:03 2009// +/hc_nodetextnodetype.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_nodetextnodevalue.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_nodevalue01.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_nodevalue02.xml/1.1/Fri Apr 3 02:48:03 2009// +/hc_nodevalue03.xml/1.5/Fri Apr 3 02:48:03 2009// +/hc_nodevalue04.xml/1.5/Fri Apr 3 02:48:03 2009// +/hc_nodevalue05.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_nodevalue06.xml/1.1/Fri Apr 3 02:48:03 2009// +/hc_nodevalue07.xml/1.5/Fri Apr 3 02:48:04 2009// +/hc_nodevalue08.xml/1.5/Fri Apr 3 02:48:04 2009// +/hc_notationsremovenameditem1.xml/1.3/Fri Apr 3 02:48:04 2009// +/hc_notationssetnameditem1.xml/1.3/Fri Apr 3 02:48:03 2009// +/hc_textindexsizeerrnegativeoffset.xml/1.1/Fri Apr 3 02:48:04 2009// +/hc_textindexsizeerroffsetoutofbounds.xml/1.2/Fri Apr 3 02:48:04 2009// +/hc_textparseintolistofelements.xml/1.4/Fri Apr 3 02:48:03 2009// +/hc_textsplittextfour.xml/1.2/Fri Apr 3 02:48:03 2009// +/hc_textsplittextone.xml/1.1/Fri Apr 3 02:48:03 2009// +/hc_textsplittextthree.xml/1.1/Fri Apr 3 02:48:03 2009// +/hc_textsplittexttwo.xml/1.1/Fri Apr 3 02:48:03 2009// +/hc_textwithnomarkup.xml/1.1/Fri Apr 3 02:48:04 2009// +/metadata.xml/1.2/Fri Apr 3 02:48:03 2009// +/namednodemapchildnoderange.xml/1.7/Fri Apr 3 02:48:03 2009// +/namednodemapgetnameditem.xml/1.6/Fri Apr 3 02:48:04 2009// +/namednodemapinuseattributeerr.xml/1.8/Fri Apr 3 02:48:03 2009// +/namednodemapnotfounderr.xml/1.8/Fri Apr 3 02:48:04 2009// +/namednodemapnumberofnodes.xml/1.6/Fri Apr 3 02:48:03 2009// +/namednodemapremovenameditem.xml/1.9/Fri Apr 3 02:48:04 2009// +/namednodemapremovenameditemgetvalue.xml/1.8/Fri Apr 3 02:48:03 2009// +/namednodemapremovenameditemreturnnodevalue.xml/1.6/Fri Apr 3 02:48:03 2009// +/namednodemapreturnattrnode.xml/1.6/Fri Apr 3 02:48:04 2009// +/namednodemapreturnfirstitem.xml/1.6/Fri Apr 3 02:48:04 2009// +/namednodemapreturnlastitem.xml/1.6/Fri Apr 3 02:48:04 2009// +/namednodemapreturnnull.xml/1.5/Fri Apr 3 02:48:04 2009// +/namednodemapsetnameditem.xml/1.6/Fri Apr 3 02:48:04 2009// +/namednodemapsetnameditemreturnvalue.xml/1.8/Fri Apr 3 02:48:04 2009// +/namednodemapsetnameditemthatexists.xml/1.7/Fri Apr 3 02:48:04 2009// +/namednodemapsetnameditemwithnewvalue.xml/1.6/Fri Apr 3 02:48:03 2009// +/namednodemapwrongdocumenterr.xml/1.8/Fri Apr 3 02:48:03 2009// +/nodeappendchild.xml/1.7/Fri Apr 3 02:48:04 2009// +/nodeappendchildchildexists.xml/1.10/Fri Apr 3 02:48:04 2009// +/nodeappendchilddocfragment.xml/1.9/Fri Apr 3 02:48:03 2009// +/nodeappendchildgetnodename.xml/1.6/Fri Apr 3 02:48:04 2009// +/nodeappendchildinvalidnodetype.xml/1.7/Fri Apr 3 02:48:03 2009// +/nodeappendchildnewchilddiffdocument.xml/1.7/Fri Apr 3 02:48:04 2009// +/nodeappendchildnodeancestor.xml/1.8/Fri Apr 3 02:48:04 2009// +/nodeappendchildnomodificationallowederr.xml/1.10/Fri Apr 3 02:48:04 2009// +/nodeappendchildnomodificationallowederrEE.xml/1.6/Fri Apr 3 02:48:04 2009// +/nodeattributenodeattribute.xml/1.7/Fri Apr 3 02:48:03 2009// +/nodeattributenodename.xml/1.6/Fri Apr 3 02:48:03 2009// +/nodeattributenodetype.xml/1.6/Fri Apr 3 02:48:04 2009// +/nodeattributenodevalue.xml/1.6/Fri Apr 3 02:48:04 2009// +/nodecdatasectionnodeattribute.xml/1.8/Fri Apr 3 02:48:04 2009// +/nodecdatasectionnodename.xml/1.9/Fri Apr 3 02:48:03 2009// +/nodecdatasectionnodetype.xml/1.8/Fri Apr 3 02:48:04 2009// +/nodecdatasectionnodevalue.xml/1.9/Fri Apr 3 02:48:03 2009// +/nodechildnodes.xml/1.8/Fri Apr 3 02:48:03 2009// +/nodechildnodesappendchild.xml/1.9/Fri Apr 3 02:48:03 2009// +/nodechildnodesempty.xml/1.8/Fri Apr 3 02:48:03 2009// +/nodecloneattributescopied.xml/1.9/Fri Apr 3 02:48:03 2009// +/nodeclonefalsenocopytext.xml/1.8/Fri Apr 3 02:48:04 2009// +/nodeclonegetparentnull.xml/1.7/Fri Apr 3 02:48:04 2009// +/nodeclonenodefalse.xml/1.8/Fri Apr 3 02:48:04 2009// +/nodeclonenodetrue.xml/1.10/Fri Apr 3 02:48:04 2009// +/nodeclonetruecopytext.xml/1.10/Fri Apr 3 02:48:03 2009// +/nodecommentnodeattributes.xml/1.5/Fri Apr 3 02:48:04 2009// +/nodecommentnodename.xml/1.9/Fri Apr 3 02:48:04 2009// +/nodecommentnodetype.xml/1.6/Fri Apr 3 02:48:03 2009// +/nodecommentnodevalue.xml/1.8/Fri Apr 3 02:48:03 2009// +/nodedocumentfragmentnodename.xml/1.7/Fri Apr 3 02:48:03 2009// +/nodedocumentfragmentnodetype.xml/1.6/Fri Apr 3 02:48:04 2009// +/nodedocumentfragmentnodevalue.xml/1.8/Fri Apr 3 02:48:03 2009// +/nodedocumentnodeattribute.xml/1.6/Fri Apr 3 02:48:04 2009// +/nodedocumentnodename.xml/1.7/Fri Apr 3 02:48:04 2009// +/nodedocumentnodetype.xml/1.5/Fri Apr 3 02:48:04 2009// +/nodedocumentnodevalue.xml/1.7/Fri Apr 3 02:48:03 2009// +/nodedocumenttypenodename.xml/1.10/Fri Apr 3 02:48:04 2009// +/nodedocumenttypenodetype.xml/1.8/Fri Apr 3 02:48:03 2009// +/nodedocumenttypenodevalue.xml/1.8/Fri Apr 3 02:48:03 2009// +/nodeelementnodeattributes.xml/1.7/Fri Apr 3 02:48:04 2009// +/nodeelementnodename.xml/1.8/Fri Apr 3 02:48:03 2009// +/nodeelementnodetype.xml/1.6/Fri Apr 3 02:48:04 2009// +/nodeelementnodevalue.xml/1.7/Fri Apr 3 02:48:03 2009// +/nodeentitynodeattributes.xml/1.9/Fri Apr 3 02:48:03 2009// +/nodeentitynodename.xml/1.11/Fri Apr 3 02:48:04 2009// +/nodeentitynodetype.xml/1.9/Fri Apr 3 02:48:04 2009// +/nodeentitynodevalue.xml/1.10/Fri Apr 3 02:48:03 2009// +/nodeentityreferencenodeattributes.xml/1.12/Fri Apr 3 02:48:04 2009// +/nodeentityreferencenodename.xml/1.12/Fri Apr 3 02:48:03 2009// +/nodeentityreferencenodetype.xml/1.12/Fri Apr 3 02:48:04 2009// +/nodeentityreferencenodevalue.xml/1.12/Fri Apr 3 02:48:04 2009// +/nodeentitysetnodevalue.xml/1.6/Fri Apr 3 02:48:04 2009// +/nodegetfirstchild.xml/1.9/Fri Apr 3 02:48:03 2009// +/nodegetfirstchildnull.xml/1.6/Fri Apr 3 02:48:03 2009// +/nodegetlastchild.xml/1.9/Fri Apr 3 02:48:04 2009// +/nodegetlastchildnull.xml/1.6/Fri Apr 3 02:48:04 2009// +/nodegetnextsibling.xml/1.10/Fri Apr 3 02:48:04 2009// +/nodegetnextsiblingnull.xml/1.6/Fri Apr 3 02:48:04 2009// +/nodegetownerdocument.xml/1.8/Fri Apr 3 02:48:04 2009// +/nodegetownerdocumentnull.xml/1.6/Fri Apr 3 02:48:03 2009// +/nodegetprevioussibling.xml/1.9/Fri Apr 3 02:48:03 2009// +/nodegetprevioussiblingnull.xml/1.6/Fri Apr 3 02:48:03 2009// +/nodehaschildnodes.xml/1.5/Fri Apr 3 02:48:03 2009// +/nodehaschildnodesfalse.xml/1.6/Fri Apr 3 02:48:04 2009// +/nodeinsertbefore.xml/1.10/Fri Apr 3 02:48:04 2009// +/nodeinsertbeforedocfragment.xml/1.7/Fri Apr 3 02:48:03 2009// +/nodeinsertbeforeinvalidnodetype.xml/1.7/Fri Apr 3 02:48:04 2009// +/nodeinsertbeforenewchilddiffdocument.xml/1.7/Fri Apr 3 02:48:04 2009// +/nodeinsertbeforenewchildexists.xml/1.10/Fri Apr 3 02:48:04 2009// +/nodeinsertbeforenodeancestor.xml/1.7/Fri Apr 3 02:48:04 2009// +/nodeinsertbeforenodename.xml/1.6/Fri Apr 3 02:48:03 2009// +/nodeinsertbeforenomodificationallowederr.xml/1.11/Fri Apr 3 02:48:03 2009// +/nodeinsertbeforenomodificationallowederrEE.xml/1.6/Fri Apr 3 02:48:03 2009// +/nodeinsertbeforerefchildnonexistent.xml/1.7/Fri Apr 3 02:48:03 2009// +/nodeinsertbeforerefchildnull.xml/1.7/Fri Apr 3 02:48:03 2009// +/nodelistindexequalzero.xml/1.8/Fri Apr 3 02:48:04 2009// +/nodelistindexgetlength.xml/1.7/Fri Apr 3 02:48:04 2009// +/nodelistindexgetlengthofemptylist.xml/1.6/Fri Apr 3 02:48:04 2009// +/nodelistindexnotzero.xml/1.8/Fri Apr 3 02:48:03 2009// +/nodelistreturnfirstitem.xml/1.8/Fri Apr 3 02:48:03 2009// +/nodelistreturnlastitem.xml/1.8/Fri Apr 3 02:48:03 2009// +/nodelisttraverselist.xml/1.9/Fri Apr 3 02:48:04 2009// +/nodenotationnodeattributes.xml/1.8/Fri Apr 3 02:48:04 2009// +/nodenotationnodename.xml/1.9/Fri Apr 3 02:48:03 2009// +/nodenotationnodetype.xml/1.8/Fri Apr 3 02:48:04 2009// +/nodenotationnodevalue.xml/1.10/Fri Apr 3 02:48:03 2009// +/nodeparentnode.xml/1.9/Fri Apr 3 02:48:03 2009// +/nodeparentnodenull.xml/1.7/Fri Apr 3 02:48:03 2009// +/nodeprocessinginstructionnodeattributes.xml/1.5/Fri Apr 3 02:48:03 2009// +/nodeprocessinginstructionnodename.xml/1.6/Fri Apr 3 02:48:04 2009// +/nodeprocessinginstructionnodetype.xml/1.5/Fri Apr 3 02:48:04 2009// +/nodeprocessinginstructionnodevalue.xml/1.7/Fri Apr 3 02:48:04 2009// +/nodeprocessinginstructionsetnodevalue.xml/1.3/Fri Apr 3 02:48:03 2009// +/noderemovechild.xml/1.6/Fri Apr 3 02:48:03 2009// +/noderemovechildgetnodename.xml/1.10/Fri Apr 3 02:48:03 2009// +/noderemovechildnode.xml/1.8/Fri Apr 3 02:48:04 2009// +/noderemovechildnomodificationallowederr.xml/1.11/Fri Apr 3 02:48:04 2009// +/noderemovechildnomodificationallowederrEE.xml/1.9/Fri Apr 3 02:48:04 2009// +/noderemovechildoldchildnonexistent.xml/1.7/Fri Apr 3 02:48:03 2009// +/nodereplacechild.xml/1.7/Fri Apr 3 02:48:03 2009// +/nodereplacechildinvalidnodetype.xml/1.7/Fri Apr 3 02:48:04 2009// +/nodereplacechildnewchilddiffdocument.xml/1.7/Fri Apr 3 02:48:04 2009// +/nodereplacechildnewchildexists.xml/1.11/Fri Apr 3 02:48:04 2009// +/nodereplacechildnodeancestor.xml/1.7/Fri Apr 3 02:48:04 2009// +/nodereplacechildnodename.xml/1.8/Fri Apr 3 02:48:03 2009// +/nodereplacechildnomodificationallowederr.xml/1.9/Fri Apr 3 02:48:04 2009// +/nodereplacechildnomodificationallowederrEE.xml/1.9/Fri Apr 3 02:48:03 2009// +/nodereplacechildoldchildnonexistent.xml/1.7/Fri Apr 3 02:48:04 2009// +/nodesetnodevaluenomodificationallowederr.xml/1.12/Fri Apr 3 02:48:03 2009// +/nodesetnodevaluenomodificationallowederrEE.xml/1.9/Fri Apr 3 02:48:03 2009// +/nodetextnodeattribute.xml/1.7/Fri Apr 3 02:48:04 2009// +/nodetextnodename.xml/1.7/Fri Apr 3 02:48:04 2009// +/nodetextnodetype.xml/1.6/Fri Apr 3 02:48:03 2009// +/nodetextnodevalue.xml/1.6/Fri Apr 3 02:48:04 2009// +/nodevalue01.xml/1.2/Fri Apr 3 02:48:03 2009// +/nodevalue02.xml/1.3/Fri Apr 3 02:48:03 2009// +/nodevalue03.xml/1.6/Fri Apr 3 02:48:04 2009// +/nodevalue04.xml/1.5/Fri Apr 3 02:48:04 2009// +/nodevalue05.xml/1.3/Fri Apr 3 02:48:04 2009// +/nodevalue06.xml/1.2/Fri Apr 3 02:48:03 2009// +/nodevalue07.xml/1.5/Fri Apr 3 02:48:04 2009// +/nodevalue08.xml/1.5/Fri Apr 3 02:48:03 2009// +/nodevalue09.xml/1.2/Fri Apr 3 02:48:03 2009// +/notationgetnotationname.xml/1.9/Fri Apr 3 02:48:04 2009// +/notationgetpublicid.xml/1.8/Fri Apr 3 02:48:04 2009// +/notationgetpublicidnull.xml/1.8/Fri Apr 3 02:48:03 2009// +/notationgetsystemid.xml/1.11/Fri Apr 3 02:48:03 2009// +/notationgetsystemidnull.xml/1.8/Fri Apr 3 02:48:03 2009// +/processinginstructiongetdata.xml/1.8/Fri Apr 3 02:48:04 2009// +/processinginstructiongettarget.xml/1.9/Fri Apr 3 02:48:04 2009// +/processinginstructionsetdatanomodificationallowederr.xml/1.12/Fri Apr 3 02:48:04 2009// +/processinginstructionsetdatanomodificationallowederrEE.xml/1.10/Fri Apr 3 02:48:04 2009// +/textindexsizeerrnegativeoffset.xml/1.6/Fri Apr 3 02:48:03 2009// +/textindexsizeerroffsetoutofbounds.xml/1.6/Fri Apr 3 02:48:04 2009// +/textparseintolistofelements.xml/1.11/Fri Apr 3 02:48:03 2009// +/textsplittextfour.xml/1.7/Fri Apr 3 02:48:04 2009// +/textsplittextnomodificationallowederr.xml/1.11/Fri Apr 3 02:48:04 2009// +/textsplittextnomodificationallowederrEE.xml/1.9/Fri Apr 3 02:48:04 2009// +/textsplittextone.xml/1.7/Fri Apr 3 02:48:04 2009// +/textsplittextthree.xml/1.7/Fri Apr 3 02:48:04 2009// +/textsplittexttwo.xml/1.7/Fri Apr 3 02:48:03 2009// +/textwithnomarkup.xml/1.8/Fri Apr 3 02:48:03 2009// diff --git a/test/testcases/tests/level1/core/CVS/Repository b/test/testcases/tests/level1/core/CVS/Repository new file mode 100644 index 0000000..3ef90d0 --- /dev/null +++ b/test/testcases/tests/level1/core/CVS/Repository @@ -0,0 +1 @@ +2001/DOM-Test-Suite/tests/level1/core diff --git a/test/testcases/tests/level1/core/CVS/Root b/test/testcases/tests/level1/core/CVS/Root new file mode 100644 index 0000000..3c7177e --- /dev/null +++ b/test/testcases/tests/level1/core/CVS/Root @@ -0,0 +1 @@ +:pserver:anonymous@dev.w3.org:/sources/public diff --git a/test/testcases/tests/level1/core/CVS/Template b/test/testcases/tests/level1/core/CVS/Template new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/testcases/tests/level1/core/CVS/Template diff --git a/test/testcases/tests/level1/core/alltests.xml b/test/testcases/tests/level1/core/alltests.xml new file mode 100644 index 0000000..5c57a9f --- /dev/null +++ b/test/testcases/tests/level1/core/alltests.xml @@ -0,0 +1,550 @@ +<?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 suite SYSTEM "dom1.dtd"> + +<suite xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="alltests"> +<metadata> +<title>DOM Level 1 Core Test Suite</title> +<creator>DOM Test Suite Project</creator> +</metadata> +<suite.member href="attrcreatedocumentfragment.xml"/> +<suite.member href="attrcreatetextnode.xml"/> +<suite.member href="attrcreatetextnode2.xml"/> +<suite.member href="attrdefaultvalue.xml"/> +<suite.member href="attreffectivevalue.xml"/> +<suite.member href="attrentityreplacement.xml"/> +<suite.member href="attrname.xml"/> +<suite.member href="attrnextsiblingnull.xml"/> +<suite.member href="attrnotspecifiedvalue.xml"/> +<suite.member href="attrparentnodenull.xml"/> +<suite.member href="attrprevioussiblingnull.xml"/> +<suite.member href="attrsetvaluenomodificationallowederr.xml"/> +<suite.member href="attrsetvaluenomodificationallowederrEE.xml"/> +<suite.member href="attrspecifiedvalue.xml"/> +<suite.member href="attrspecifiedvaluechanged.xml"/> +<suite.member href="attrspecifiedvalueremove.xml"/> +<suite.member href="cdatasectiongetdata.xml"/> +<suite.member href="cdatasectionnormalize.xml"/> +<suite.member href="characterdataappenddata.xml"/> +<suite.member href="characterdataappenddatagetdata.xml"/> +<suite.member href="characterdataappenddatanomodificationallowederr.xml"/> +<suite.member href="characterdataappenddatanomodificationallowederrEE.xml"/> +<suite.member href="characterdatadeletedatabegining.xml"/> +<suite.member href="characterdatadeletedataend.xml"/> +<suite.member href="characterdatadeletedataexceedslength.xml"/> +<suite.member href="characterdatadeletedatagetlengthanddata.xml"/> +<suite.member href="characterdatadeletedatamiddle.xml"/> +<suite.member href="characterdatadeletedatanomodificationallowederr.xml"/> +<suite.member href="characterdatadeletedatanomodificationallowederrEE.xml"/> +<suite.member href="characterdatagetdata.xml"/> +<suite.member href="characterdatagetlength.xml"/> +<suite.member href="characterdataindexsizeerrdeletedatacountnegative.xml"/> +<suite.member href="characterdataindexsizeerrdeletedataoffsetgreater.xml"/> +<suite.member href="characterdataindexsizeerrdeletedataoffsetnegative.xml"/> +<suite.member href="characterdataindexsizeerrinsertdataoffsetgreater.xml"/> +<suite.member href="characterdataindexsizeerrinsertdataoffsetnegative.xml"/> +<suite.member href="characterdataindexsizeerrreplacedatacountnegative.xml"/> +<suite.member href="characterdataindexsizeerrreplacedataoffsetgreater.xml"/> +<suite.member href="characterdataindexsizeerrreplacedataoffsetnegative.xml"/> +<suite.member href="characterdataindexsizeerrsubstringcountnegative.xml"/> +<suite.member href="characterdataindexsizeerrsubstringnegativeoffset.xml"/> +<suite.member href="characterdataindexsizeerrsubstringoffsetgreater.xml"/> +<suite.member href="characterdatainsertdatabeginning.xml"/> +<suite.member href="characterdatainsertdataend.xml"/> +<suite.member href="characterdatainsertdatamiddle.xml"/> +<suite.member href="characterdatainsertdatanomodificationallowederr.xml"/> +<suite.member href="characterdatainsertdatanomodificationallowederrEE.xml"/> +<suite.member href="characterdatareplacedatabegining.xml"/> +<suite.member href="characterdatareplacedataend.xml"/> +<suite.member href="characterdatareplacedataexceedslengthofarg.xml"/> +<suite.member href="characterdatareplacedataexceedslengthofdata.xml"/> +<suite.member href="characterdatareplacedatamiddle.xml"/> +<suite.member href="characterdatareplacedatanomodificationallowederr.xml"/> +<suite.member href="characterdatareplacedatanomodificationallowederrEE.xml"/> +<suite.member href="characterdatasetdatanomodificationallowederr.xml"/> +<suite.member href="characterdatasetdatanomodificationallowederrEE.xml"/> +<suite.member href="characterdatasetnodevalue.xml"/> +<suite.member href="characterdatasubstringexceedsvalue.xml"/> +<suite.member href="characterdatasubstringvalue.xml"/> +<suite.member href="commentgetcomment.xml"/> +<suite.member href="documentcreateattribute.xml"/> +<suite.member href="documentcreatecdatasection.xml"/> +<suite.member href="documentcreatecomment.xml"/> +<suite.member href="documentcreatedocumentfragment.xml"/> +<suite.member href="documentcreateelement.xml"/> +<suite.member href="documentcreateelementcasesensitive.xml"/> +<suite.member href="documentcreateelementdefaultattr.xml"/> +<suite.member href="documentcreateentityreference.xml"/> +<suite.member href="documentcreateentityreferenceknown.xml"/> +<suite.member href="documentcreateprocessinginstruction.xml"/> +<suite.member href="documentcreatetextnode.xml"/> +<suite.member href="documentgetdoctype.xml"/> +<suite.member href="documentgetdoctypenodtd.xml"/> +<suite.member href="documentgetelementsbytagnamelength.xml"/> +<suite.member href="documentgetelementsbytagnametotallength.xml"/> +<suite.member href="documentgetelementsbytagnamevalue.xml"/> +<suite.member href="documentgetimplementation.xml"/> +<suite.member href="documentgetrootnode.xml"/> +<suite.member href="documentinvalidcharacterexceptioncreateattribute.xml"/> +<suite.member href="documentinvalidcharacterexceptioncreateelement.xml"/> +<suite.member href="documentinvalidcharacterexceptioncreateentref.xml"/> +<suite.member href="documentinvalidcharacterexceptioncreateentref1.xml"/> +<suite.member href="documentinvalidcharacterexceptioncreatepi.xml"/> +<suite.member href="documentinvalidcharacterexceptioncreatepi1.xml"/> +<suite.member href="documenttypegetdoctype.xml"/> +<suite.member href="documenttypegetentities.xml"/> +<suite.member href="documenttypegetentitieslength.xml"/> +<suite.member href="documenttypegetentitiestype.xml"/> +<suite.member href="documenttypegetnotations.xml"/> +<suite.member href="documenttypegetnotationstype.xml"/> +<suite.member href="domimplementationfeaturenoversion.xml"/> +<suite.member href="domimplementationfeaturenull.xml"/> +<suite.member href="domimplementationfeaturexml.xml"/> +<suite.member href="elementaddnewattribute.xml"/> +<suite.member href="elementassociatedattribute.xml"/> +<suite.member href="elementchangeattributevalue.xml"/> +<suite.member href="elementcreatenewattribute.xml"/> +<suite.member href="elementgetattributenode.xml"/> +<suite.member href="elementgetattributenodenull.xml"/> +<suite.member href="elementgetelementempty.xml"/> +<suite.member href="elementgetelementsbytagname.xml"/> +<suite.member href="elementgetelementsbytagnameaccessnodelist.xml"/> +<suite.member href="elementgetelementsbytagnamenomatch.xml"/> +<suite.member href="elementgetelementsbytagnamespecialvalue.xml"/> +<suite.member href="elementgettagname.xml"/> +<suite.member href="elementinuseattributeerr.xml"/> +<suite.member href="elementinvalidcharacterexception.xml"/> +<suite.member href="elementnormalize.xml"/> +<suite.member href="elementnotfounderr.xml"/> +<suite.member href="elementremoveattribute.xml"/> +<suite.member href="elementremoveattributeaftercreate.xml"/> +<suite.member href="elementremoveattributenode.xml"/> +<suite.member href="elementremoveattributenodenomodificationallowederr.xml"/> +<suite.member href="elementremoveattributenodenomodificationallowederrEE.xml"/> +<suite.member href="elementremoveattributenomodificationallowederr.xml"/> +<suite.member href="elementremoveattributenomodificationallowederrEE.xml"/> +<suite.member href="elementremoveattributerestoredefaultvalue.xml"/> +<suite.member href="elementreplaceattributewithself.xml"/> +<suite.member href="elementreplaceexistingattribute.xml"/> +<suite.member href="elementreplaceexistingattributegevalue.xml"/> +<suite.member href="elementretrieveallattributes.xml"/> +<suite.member href="elementretrieveattrvalue.xml"/> +<suite.member href="elementretrievetagname.xml"/> +<suite.member href="elementsetattributenodenomodificationallowederr.xml"/> +<suite.member href="elementsetattributenodenomodificationallowederrEE.xml"/> +<suite.member href="elementsetattributenodenull.xml"/> +<suite.member href="elementsetattributenomodificationallowederr.xml"/> +<suite.member href="elementsetattributenomodificationallowederrEE.xml"/> +<suite.member href="elementwrongdocumenterr.xml"/> +<suite.member href="entitygetentityname.xml"/> +<suite.member href="entitygetpublicid.xml"/> +<suite.member href="entitygetpublicidnull.xml"/> +<suite.member href="namednodemapchildnoderange.xml"/> +<suite.member href="namednodemapgetnameditem.xml"/> +<suite.member href="namednodemapinuseattributeerr.xml"/> +<suite.member href="namednodemapnotfounderr.xml"/> +<suite.member href="namednodemapnumberofnodes.xml"/> +<suite.member href="namednodemapremovenameditem.xml"/> +<suite.member href="namednodemapremovenameditemgetvalue.xml"/> +<suite.member href="namednodemapremovenameditemreturnnodevalue.xml"/> +<suite.member href="namednodemapreturnattrnode.xml"/> +<suite.member href="namednodemapreturnfirstitem.xml"/> +<suite.member href="namednodemapreturnlastitem.xml"/> +<suite.member href="namednodemapreturnnull.xml"/> +<suite.member href="namednodemapsetnameditem.xml"/> +<suite.member href="namednodemapsetnameditemreturnvalue.xml"/> +<suite.member href="namednodemapsetnameditemthatexists.xml"/> +<suite.member href="namednodemapsetnameditemwithnewvalue.xml"/> +<suite.member href="namednodemapwrongdocumenterr.xml"/> +<suite.member href="nodeappendchild.xml"/> +<suite.member href="nodeappendchildchildexists.xml"/> +<suite.member href="nodeappendchilddocfragment.xml"/> +<suite.member href="nodeappendchildgetnodename.xml"/> +<suite.member href="nodeappendchildinvalidnodetype.xml"/> +<suite.member href="nodeappendchildnewchilddiffdocument.xml"/> +<suite.member href="nodeappendchildnodeancestor.xml"/> +<suite.member href="nodeappendchildnomodificationallowederr.xml"/> +<suite.member href="nodeappendchildnomodificationallowederrEE.xml"/> +<suite.member href="nodeattributenodeattribute.xml"/> +<suite.member href="nodeattributenodename.xml"/> +<suite.member href="nodeattributenodetype.xml"/> +<suite.member href="nodeattributenodevalue.xml"/> +<suite.member href="nodecdatasectionnodeattribute.xml"/> +<suite.member href="nodecdatasectionnodename.xml"/> +<suite.member href="nodecdatasectionnodetype.xml"/> +<suite.member href="nodecdatasectionnodevalue.xml"/> +<suite.member href="nodechildnodes.xml"/> +<suite.member href="nodechildnodesappendchild.xml"/> +<suite.member href="nodechildnodesempty.xml"/> +<suite.member href="nodecloneattributescopied.xml"/> +<suite.member href="nodeclonefalsenocopytext.xml"/> +<suite.member href="nodeclonegetparentnull.xml"/> +<suite.member href="nodeclonenodefalse.xml"/> +<suite.member href="nodeclonenodetrue.xml"/> +<suite.member href="nodeclonetruecopytext.xml"/> +<suite.member href="nodecommentnodeattributes.xml"/> +<suite.member href="nodecommentnodename.xml"/> +<suite.member href="nodecommentnodetype.xml"/> +<suite.member href="nodecommentnodevalue.xml"/> +<suite.member href="nodedocumentfragmentnodename.xml"/> +<suite.member href="nodedocumentfragmentnodetype.xml"/> +<suite.member href="nodedocumentfragmentnodevalue.xml"/> +<suite.member href="nodedocumentnodeattribute.xml"/> +<suite.member href="nodedocumentnodename.xml"/> +<suite.member href="nodedocumentnodetype.xml"/> +<suite.member href="nodedocumentnodevalue.xml"/> +<suite.member href="nodedocumenttypenodename.xml"/> +<suite.member href="nodedocumenttypenodetype.xml"/> +<suite.member href="nodedocumenttypenodevalue.xml"/> +<suite.member href="nodeelementnodeattributes.xml"/> +<suite.member href="nodeelementnodename.xml"/> +<suite.member href="nodeelementnodetype.xml"/> +<suite.member href="nodeelementnodevalue.xml"/> +<suite.member href="nodeentitynodeattributes.xml"/> +<suite.member href="nodeentitynodename.xml"/> +<suite.member href="nodeentitynodetype.xml"/> +<suite.member href="nodeentitynodevalue.xml"/> +<suite.member href="nodeentitysetnodevalue.xml"/> +<suite.member href="nodeentityreferencenodeattributes.xml"/> +<suite.member href="nodeentityreferencenodename.xml"/> +<suite.member href="nodeentityreferencenodetype.xml"/> +<suite.member href="nodeentityreferencenodevalue.xml"/> +<suite.member href="nodegetfirstchild.xml"/> +<suite.member href="nodegetfirstchildnull.xml"/> +<suite.member href="nodegetlastchild.xml"/> +<suite.member href="nodegetlastchildnull.xml"/> +<suite.member href="nodegetnextsibling.xml"/> +<suite.member href="nodegetnextsiblingnull.xml"/> +<suite.member href="nodegetownerdocument.xml"/> +<suite.member href="nodegetownerdocumentnull.xml"/> +<suite.member href="nodegetprevioussibling.xml"/> +<suite.member href="nodegetprevioussiblingnull.xml"/> +<suite.member href="nodehaschildnodes.xml"/> +<suite.member href="nodehaschildnodesfalse.xml"/> +<suite.member href="nodeinsertbefore.xml"/> +<suite.member href="nodeinsertbeforedocfragment.xml"/> +<suite.member href="nodeinsertbeforeinvalidnodetype.xml"/> +<suite.member href="nodeinsertbeforenewchilddiffdocument.xml"/> +<suite.member href="nodeinsertbeforenewchildexists.xml"/> +<suite.member href="nodeinsertbeforenodeancestor.xml"/> +<suite.member href="nodeinsertbeforenodename.xml"/> +<suite.member href="nodeinsertbeforenomodificationallowederr.xml"/> +<suite.member href="nodeinsertbeforenomodificationallowederrEE.xml"/> +<suite.member href="nodeinsertbeforerefchildnonexistent.xml"/> +<suite.member href="nodeinsertbeforerefchildnull.xml"/> +<suite.member href="nodelistindexequalzero.xml"/> +<suite.member href="nodelistindexgetlength.xml"/> +<suite.member href="nodelistindexgetlengthofemptylist.xml"/> +<suite.member href="nodelistindexnotzero.xml"/> +<suite.member href="nodelistreturnfirstitem.xml"/> +<suite.member href="nodelistreturnlastitem.xml"/> +<suite.member href="nodelisttraverselist.xml"/> +<suite.member href="nodenotationnodeattributes.xml"/> +<suite.member href="nodenotationnodename.xml"/> +<suite.member href="nodenotationnodetype.xml"/> +<suite.member href="nodenotationnodevalue.xml"/> +<suite.member href="nodeparentnode.xml"/> +<suite.member href="nodeparentnodenull.xml"/> +<suite.member href="nodeprocessinginstructionnodeattributes.xml"/> +<suite.member href="nodeprocessinginstructionnodename.xml"/> +<suite.member href="nodeprocessinginstructionnodetype.xml"/> +<suite.member href="nodeprocessinginstructionnodevalue.xml"/> +<suite.member href="nodeprocessinginstructionsetnodevalue.xml"/> +<suite.member href="noderemovechild.xml"/> +<suite.member href="noderemovechildgetnodename.xml"/> +<suite.member href="noderemovechildnode.xml"/> +<suite.member href="noderemovechildnomodificationallowederr.xml"/> +<suite.member href="noderemovechildnomodificationallowederrEE.xml"/> +<suite.member href="noderemovechildoldchildnonexistent.xml"/> +<suite.member href="nodereplacechild.xml"/> +<suite.member href="nodereplacechildinvalidnodetype.xml"/> +<suite.member href="nodereplacechildnewchilddiffdocument.xml"/> +<suite.member href="nodereplacechildnewchildexists.xml"/> +<suite.member href="nodereplacechildnodeancestor.xml"/> +<suite.member href="nodereplacechildnodename.xml"/> +<suite.member href="nodereplacechildnomodificationallowederr.xml"/> +<suite.member href="nodereplacechildnomodificationallowederrEE.xml"/> +<suite.member href="nodereplacechildoldchildnonexistent.xml"/> +<suite.member href="nodesetnodevaluenomodificationallowederr.xml"/> +<suite.member href="nodesetnodevaluenomodificationallowederrEE.xml"/> +<suite.member href="nodetextnodeattribute.xml"/> +<suite.member href="nodetextnodename.xml"/> +<suite.member href="nodetextnodetype.xml"/> +<suite.member href="nodetextnodevalue.xml"/> +<suite.member href="notationgetnotationname.xml"/> +<suite.member href="notationgetpublicid.xml"/> +<suite.member href="notationgetpublicidnull.xml"/> +<suite.member href="notationgetsystemid.xml"/> +<suite.member href="notationgetsystemidnull.xml"/> +<suite.member href="processinginstructiongetdata.xml"/> +<suite.member href="processinginstructiongettarget.xml"/> +<suite.member href="processinginstructionsetdatanomodificationallowederr.xml"/> +<suite.member href="processinginstructionsetdatanomodificationallowederrEE.xml"/> +<suite.member href="textindexsizeerrnegativeoffset.xml"/> +<suite.member href="textindexsizeerroffsetoutofbounds.xml"/> +<suite.member href="textparseintolistofelements.xml"/> +<suite.member href="textsplittextfour.xml"/> +<suite.member href="textsplittextnomodificationallowederr.xml"/> +<suite.member href="textsplittextnomodificationallowederrEE.xml"/> +<suite.member href="textsplittextone.xml"/> +<suite.member href="textsplittextthree.xml"/> +<suite.member href="textsplittexttwo.xml"/> +<suite.member href="textwithnomarkup.xml"/> +<suite.member href="nodevalue01.xml"/> +<suite.member href="nodevalue02.xml"/> +<suite.member href="nodevalue03.xml"/> +<suite.member href="nodevalue04.xml"/> +<suite.member href="nodevalue05.xml"/> +<suite.member href="nodevalue06.xml"/> +<suite.member href="nodevalue07.xml"/> +<suite.member href="nodevalue08.xml"/> +<suite.member href="nodevalue09.xml"/> +<!-- HTML compatible equivalents of the previous tests that + only used Fundamental interfaces --> +<suite.member href="hc_attrcreatedocumentfragment.xml"/> +<suite.member href="hc_attrcreatetextnode.xml"/> +<suite.member href="hc_attrcreatetextnode2.xml"/> +<suite.member href="hc_attreffectivevalue.xml"/> +<suite.member href="hc_attrname.xml"/> +<suite.member href="hc_attrnextsiblingnull.xml"/> +<suite.member href="hc_attrparentnodenull.xml"/> +<suite.member href="hc_attrprevioussiblingnull.xml"/> +<suite.member href="hc_attrspecifiedvalue.xml"/> +<suite.member href="hc_attrspecifiedvaluechanged.xml"/> +<suite.member href="hc_characterdataappenddata.xml"/> +<suite.member href="hc_characterdataappenddatagetdata.xml"/> +<suite.member href="hc_characterdatadeletedatabegining.xml"/> +<suite.member href="hc_characterdatadeletedataend.xml"/> +<suite.member href="hc_characterdatadeletedataexceedslength.xml"/> +<suite.member href="hc_characterdatadeletedatagetlengthanddata.xml"/> +<suite.member href="hc_characterdatadeletedatamiddle.xml"/> +<suite.member href="hc_characterdatagetdata.xml"/> +<suite.member href="hc_characterdatagetlength.xml"/> +<suite.member href="hc_characterdataindexsizeerrdeletedatacountnegative.xml"/> +<suite.member href="hc_characterdataindexsizeerrdeletedataoffsetgreater.xml"/> +<suite.member href="hc_characterdataindexsizeerrdeletedataoffsetnegative.xml"/> +<suite.member href="hc_characterdataindexsizeerrinsertdataoffsetgreater.xml"/> +<suite.member href="hc_characterdataindexsizeerrinsertdataoffsetnegative.xml"/> +<suite.member href="hc_characterdataindexsizeerrreplacedatacountnegative.xml"/> +<suite.member href="hc_characterdataindexsizeerrreplacedataoffsetgreater.xml"/> +<suite.member href="hc_characterdataindexsizeerrreplacedataoffsetnegative.xml"/> +<suite.member href="hc_characterdataindexsizeerrsubstringcountnegative.xml"/> +<suite.member href="hc_characterdataindexsizeerrsubstringnegativeoffset.xml"/> +<suite.member href="hc_characterdataindexsizeerrsubstringoffsetgreater.xml"/> +<suite.member href="hc_characterdatainsertdatabeginning.xml"/> +<suite.member href="hc_characterdatainsertdataend.xml"/> +<suite.member href="hc_characterdatainsertdatamiddle.xml"/> +<suite.member href="hc_characterdatareplacedatabegining.xml"/> +<suite.member href="hc_characterdatareplacedataend.xml"/> +<suite.member href="hc_characterdatareplacedataexceedslengthofarg.xml"/> +<suite.member href="hc_characterdatareplacedataexceedslengthofdata.xml"/> +<suite.member href="hc_characterdatareplacedatamiddle.xml"/> +<suite.member href="hc_characterdatasetnodevalue.xml"/> +<suite.member href="hc_characterdatasubstringexceedsvalue.xml"/> +<suite.member href="hc_characterdatasubstringvalue.xml"/> +<suite.member href="hc_commentgetcomment.xml"/> +<suite.member href="hc_documentcreateattribute.xml"/> +<suite.member href="hc_documentcreatecomment.xml"/> +<suite.member href="hc_documentcreatedocumentfragment.xml"/> +<suite.member href="hc_documentcreateelement.xml"/> +<suite.member href="hc_documentcreateelementcasesensitive.xml"/> +<suite.member href="hc_documentcreatetextnode.xml"/> +<suite.member href="hc_documentgetdoctype.xml"/> +<suite.member href="hc_documentgetelementsbytagnamelength.xml"/> +<suite.member href="hc_documentgetelementsbytagnametotallength.xml"/> +<suite.member href="hc_documentgetelementsbytagnamevalue.xml"/> +<suite.member href="hc_documentgetimplementation.xml"/> +<suite.member href="hc_documentgetrootnode.xml"/> +<suite.member href="hc_documentinvalidcharacterexceptioncreateattribute.xml"/> +<suite.member href="hc_documentinvalidcharacterexceptioncreateattribute1.xml"/> +<suite.member href="hc_documentinvalidcharacterexceptioncreateelement.xml"/> +<suite.member href="hc_documentinvalidcharacterexceptioncreateelement1.xml"/> +<suite.member href="hc_domimplementationfeaturenoversion.xml"/> +<suite.member href="hc_domimplementationfeaturenull.xml"/> +<suite.member href="hc_domimplementationfeaturexml.xml"/> +<suite.member href="hc_elementaddnewattribute.xml"/> +<suite.member href="hc_elementassociatedattribute.xml"/> +<suite.member href="hc_elementchangeattributevalue.xml"/> +<suite.member href="hc_elementcreatenewattribute.xml"/> +<suite.member href="hc_elementgetattributenode.xml"/> +<suite.member href="hc_elementgetattributenodenull.xml"/> +<suite.member href="hc_elementgetelementempty.xml"/> +<suite.member href="hc_elementgetelementsbytagname.xml"/> +<suite.member href="hc_elementgetelementsbytagnameaccessnodelist.xml"/> +<suite.member href="hc_elementgetelementsbytagnamenomatch.xml"/> +<suite.member href="hc_elementgetelementsbytagnamespecialvalue.xml"/> +<suite.member href="hc_elementgettagname.xml"/> +<suite.member href="hc_elementinuseattributeerr.xml"/> +<suite.member href="hc_elementinvalidcharacterexception.xml"/> +<suite.member href="hc_elementinvalidcharacterexception1.xml"/> +<suite.member href="hc_elementnormalize.xml"/> +<suite.member href="hc_elementnormalize2.xml"/> +<suite.member href="hc_elementnotfounderr.xml"/> +<suite.member href="hc_elementremoveattribute.xml"/> +<suite.member href="hc_elementremoveattributeaftercreate.xml"/> +<suite.member href="hc_elementremoveattributenode.xml"/> +<suite.member href="hc_elementreplaceattributewithself.xml"/> +<suite.member href="hc_elementreplaceexistingattribute.xml"/> +<suite.member href="hc_elementreplaceexistingattributegevalue.xml"/> +<suite.member href="hc_elementretrieveallattributes.xml"/> +<suite.member href="hc_elementretrieveattrvalue.xml"/> +<suite.member href="hc_elementretrievetagname.xml"/> +<suite.member href="hc_elementsetattributenodenull.xml"/> +<suite.member href="hc_elementwrongdocumenterr.xml"/> +<suite.member href="hc_entitiesremovenameditem1.xml"/> +<suite.member href="hc_entitiessetnameditem1.xml"/> +<suite.member href="hc_namednodemapchildnoderange.xml"/> +<suite.member href="hc_namednodemapgetnameditem.xml"/> +<suite.member href="hc_namednodemapinuseattributeerr.xml"/> +<suite.member href="hc_namednodemapnotfounderr.xml"/> +<suite.member href="hc_namednodemapnumberofnodes.xml"/> +<suite.member href="hc_namednodemapremovenameditem.xml"/> +<suite.member href="hc_namednodemapreturnattrnode.xml"/> +<suite.member href="hc_namednodemapreturnfirstitem.xml"/> +<suite.member href="hc_namednodemapreturnlastitem.xml"/> +<suite.member href="hc_namednodemapreturnnull.xml"/> +<suite.member href="hc_namednodemapsetnameditem.xml"/> +<suite.member href="hc_namednodemapsetnameditemreturnvalue.xml"/> +<suite.member href="hc_namednodemapsetnameditemthatexists.xml"/> +<suite.member href="hc_namednodemapsetnameditemwithnewvalue.xml"/> +<suite.member href="hc_namednodemapwrongdocumenterr.xml"/> +<suite.member href="hc_nodeappendchild.xml"/> +<suite.member href="hc_nodeappendchildchildexists.xml"/> +<suite.member href="hc_nodeappendchilddocfragment.xml"/> +<suite.member href="hc_nodeappendchildgetnodename.xml"/> +<suite.member href="hc_nodeappendchildinvalidnodetype.xml"/> +<suite.member href="hc_nodeappendchildnewchilddiffdocument.xml"/> +<suite.member href="hc_nodeappendchildnodeancestor.xml"/> +<suite.member href="hc_nodeattributenodeattribute.xml"/> +<suite.member href="hc_nodeattributenodename.xml"/> +<suite.member href="hc_nodeattributenodetype.xml"/> +<suite.member href="hc_nodeattributenodevalue.xml"/> +<suite.member href="hc_nodechildnodes.xml"/> +<suite.member href="hc_nodechildnodesappendchild.xml"/> +<suite.member href="hc_nodechildnodesempty.xml"/> +<suite.member href="hc_nodecloneattributescopied.xml"/> +<suite.member href="hc_nodeclonefalsenocopytext.xml"/> +<suite.member href="hc_nodeclonegetparentnull.xml"/> +<suite.member href="hc_nodeclonenodefalse.xml"/> +<suite.member href="hc_nodeclonenodetrue.xml"/> +<suite.member href="hc_nodeclonetruecopytext.xml"/> +<suite.member href="hc_nodecommentnodeattributes.xml"/> +<suite.member href="hc_nodecommentnodename.xml"/> +<suite.member href="hc_nodecommentnodetype.xml"/> +<suite.member href="hc_nodecommentnodevalue.xml"/> +<suite.member href="hc_nodedocumentfragmentnodename.xml"/> +<suite.member href="hc_nodedocumentfragmentnodetype.xml"/> +<suite.member href="hc_nodedocumentfragmentnodevalue.xml"/> +<suite.member href="hc_nodedocumentnodeattribute.xml"/> +<suite.member href="hc_nodedocumentnodename.xml"/> +<suite.member href="hc_nodedocumentnodetype.xml"/> +<suite.member href="hc_nodedocumentnodevalue.xml"/> +<suite.member href="hc_nodeelementnodeattributes.xml"/> +<suite.member href="hc_nodeelementnodename.xml"/> +<suite.member href="hc_nodeelementnodetype.xml"/> +<suite.member href="hc_nodeelementnodevalue.xml"/> +<suite.member href="hc_nodegetfirstchild.xml"/> +<suite.member href="hc_nodegetfirstchildnull.xml"/> +<suite.member href="hc_nodegetlastchild.xml"/> +<suite.member href="hc_nodegetlastchildnull.xml"/> +<suite.member href="hc_nodegetnextsibling.xml"/> +<suite.member href="hc_nodegetnextsiblingnull.xml"/> +<suite.member href="hc_nodegetownerdocument.xml"/> +<suite.member href="hc_nodegetownerdocumentnull.xml"/> +<suite.member href="hc_nodegetprevioussibling.xml"/> +<suite.member href="hc_nodegetprevioussiblingnull.xml"/> +<suite.member href="hc_nodehaschildnodes.xml"/> +<suite.member href="hc_nodehaschildnodesfalse.xml"/> +<suite.member href="hc_nodeinsertbefore.xml"/> +<suite.member href="hc_nodeinsertbeforedocfragment.xml"/> +<suite.member href="hc_nodeinsertbeforeinvalidnodetype.xml"/> +<suite.member href="hc_nodeinsertbeforenewchilddiffdocument.xml"/> +<suite.member href="hc_nodeinsertbeforenewchildexists.xml"/> +<suite.member href="hc_nodeinsertbeforenodeancestor.xml"/> +<suite.member href="hc_nodeinsertbeforenodename.xml"/> +<suite.member href="hc_nodeinsertbeforerefchildnonexistent.xml"/> +<suite.member href="hc_nodeinsertbeforerefchildnull.xml"/> +<suite.member href="hc_nodelistindexequalzero.xml"/> +<suite.member href="hc_nodelistindexgetlength.xml"/> +<suite.member href="hc_nodelistindexgetlengthofemptylist.xml"/> +<suite.member href="hc_nodelistindexnotzero.xml"/> +<suite.member href="hc_nodelistreturnfirstitem.xml"/> +<suite.member href="hc_nodelistreturnlastitem.xml"/> +<suite.member href="hc_nodelisttraverselist.xml"/> +<suite.member href="hc_nodeparentnode.xml"/> +<suite.member href="hc_nodeparentnodenull.xml"/> +<suite.member href="hc_noderemovechild.xml"/> +<suite.member href="hc_noderemovechildgetnodename.xml"/> +<suite.member href="hc_noderemovechildnode.xml"/> +<suite.member href="hc_noderemovechildoldchildnonexistent.xml"/> +<suite.member href="hc_nodereplacechild.xml"/> +<suite.member href="hc_nodereplacechildinvalidnodetype.xml"/> +<suite.member href="hc_nodereplacechildnewchilddiffdocument.xml"/> +<suite.member href="hc_nodereplacechildnewchildexists.xml"/> +<suite.member href="hc_nodereplacechildnodeancestor.xml"/> +<suite.member href="hc_nodereplacechildnodename.xml"/> +<suite.member href="hc_nodereplacechildoldchildnonexistent.xml"/> +<suite.member href="hc_nodetextnodeattribute.xml"/> +<suite.member href="hc_nodetextnodename.xml"/> +<suite.member href="hc_nodetextnodetype.xml"/> +<suite.member href="hc_nodetextnodevalue.xml"/> +<suite.member href="hc_nodevalue01.xml"/> +<suite.member href="hc_nodevalue02.xml"/> +<suite.member href="hc_nodevalue03.xml"/> +<suite.member href="hc_nodevalue04.xml"/> +<suite.member href="hc_nodevalue05.xml"/> +<suite.member href="hc_nodevalue06.xml"/> +<suite.member href="hc_nodevalue07.xml"/> +<suite.member href="hc_nodevalue08.xml"/> +<suite.member href="hc_notationsremovenameditem1.xml"/> +<suite.member href="hc_notationssetnameditem1.xml"/> +<suite.member href="hc_textindexsizeerrnegativeoffset.xml"/> +<suite.member href="hc_textindexsizeerroffsetoutofbounds.xml"/> +<suite.member href="hc_textparseintolistofelements.xml"/> +<suite.member href="hc_textsplittextfour.xml"/> +<suite.member href="hc_textsplittextone.xml"/> +<suite.member href="hc_textsplittextthree.xml"/> +<suite.member href="hc_textsplittexttwo.xml"/> +<suite.member href="hc_textwithnomarkup.xml"/> + +<suite.member href="hc_attrappendchild1.xml"/> +<suite.member href="hc_attrappendchild2.xml"/> +<suite.member href="hc_attrappendchild3.xml"/> +<suite.member href="hc_attrappendchild4.xml"/> +<suite.member href="hc_attrappendchild5.xml"/> +<suite.member href="hc_attrappendchild6.xml"/> +<suite.member href="hc_attrchildnodes1.xml"/> +<suite.member href="hc_attrchildnodes2.xml"/> +<suite.member href="hc_attrclonenode1.xml"/> +<suite.member href="hc_attrfirstchild.xml"/> +<suite.member href="hc_attrgetvalue1.xml"/> +<suite.member href="hc_attrgetvalue2.xml"/> +<suite.member href="hc_attrhaschildnodes.xml"/> +<suite.member href="hc_attrinsertbefore1.xml"/> +<suite.member href="hc_attrinsertbefore2.xml"/> +<suite.member href="hc_attrinsertbefore3.xml"/> +<suite.member href="hc_attrinsertbefore4.xml"/> +<suite.member href="hc_attrinsertbefore5.xml"/> +<suite.member href="hc_attrinsertbefore6.xml"/> +<suite.member href="hc_attrinsertbefore7.xml"/> +<suite.member href="hc_attrlastchild.xml"/> +<suite.member href="hc_attrnormalize.xml"/> +<suite.member href="hc_attrremovechild1.xml"/> +<suite.member href="hc_attrremovechild2.xml"/> +<suite.member href="hc_attrreplacechild1.xml"/> +<suite.member href="hc_attrreplacechild2.xml"/> +<suite.member href="hc_attrsetvalue1.xml"/> +<suite.member href="hc_attrsetvalue2.xml"/> +<suite.member href="attrremovechild1.xml"/> +<suite.member href="attrreplacechild1.xml"/> + +</suite> diff --git a/test/testcases/tests/level1/core/attrcreatedocumentfragment.xml b/test/testcases/tests/level1/core/attrcreatedocumentfragment.xml new file mode 100644 index 0000000..b07b191 --- /dev/null +++ b/test/testcases/tests/level1/core/attrcreatedocumentfragment.xml @@ -0,0 +1,51 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="attrcreatedocumentfragment"> +<metadata> +<title>attrCreateDocumentFragment</title> +<creator>NIST</creator> +<description> + Attr nodes may be associated with Element nodes contained within a DocumentFragment. + Create a new DocumentFragment and add a newly created Element node(with one attribute). + Once the element is added, its attribute should be available as an attribute associated + with an Element within a DocumentFragment. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!-- createDocumentFragment --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-35CB04B5"/> +<!-- setAttribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68F082"/> +<!-- DocumentFragment --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-B63ED1A3"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docFragment" type="DocumentFragment"/> +<var name="newOne" type="Element"/> +<var name="domesticNode" type="Node"/> +<var name="domesticAttr" type="NamedNodeMap"/> +<var name="attrs" type="Attr"/> +<var name="attrName" type="DOMString"/> +<var name="appendedChild" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<createDocumentFragment obj="doc" var="docFragment"/> +<createElement obj="doc" var="newOne" tagName=""newElement""/> +<setAttribute obj="newOne" name=""newdomestic"" value=""Yes""/> +<appendChild var="appendedChild" obj="docFragment" newChild="newOne"/> +<firstChild interface="Node" obj="docFragment" var="domesticNode"/> +<attributes obj="domesticNode" var="domesticAttr"/> +<item interface="NamedNodeMap" obj="domesticAttr" var="attrs" index="0"/> +<name interface="Attr" obj="attrs" var="attrName"/> +<assertEquals actual="attrName" expected=""newdomestic"" id="attrCreateDocumentFragmentAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/attrcreatetextnode.xml b/test/testcases/tests/level1/core/attrcreatetextnode.xml new file mode 100644 index 0000000..087d5fc --- /dev/null +++ b/test/testcases/tests/level1/core/attrcreatetextnode.xml @@ -0,0 +1,51 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="attrcreatetextnode"> +<metadata> +<title>attrCreateTextNode</title> +<creator>NIST</creator> +<description> + The "setValue()" method for an attribute creates a + Text node with the unparsed content of the string. + Retrieve the attribute named "street" from the last + child of of the fourth employee and assign the "Y&ent1;" + string to its value attribute. This value is not yet + parsed and therefore should still be the same upon + retrieval. This test uses the "getNamedItem(name)" method + from the NamedNodeMap interface. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!-- Attr.value --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-221662474"/> +<!-- bug report on initial version --> +<subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2002Apr/0057.html"/> +</metadata> +<var name="doc" type="Document"/> +<var name="addressList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="streetAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="addressList" tagname=""address""/> +<item interface="NodeList" obj="addressList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="streetAttr" name=""street""/> +<value interface="Attr" obj="streetAttr" value='"Y&ent1;"'/> +<value interface="Attr" obj="streetAttr" var="value"/> +<assertEquals actual="value" expected='"Y&ent1;"' id="value" ignoreCase="false"/> +<nodeValue obj="streetAttr" var="value"/> +<assertEquals actual="value" expected='"Y&ent1;"' id="nodeValue" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/attrcreatetextnode2.xml b/test/testcases/tests/level1/core/attrcreatetextnode2.xml new file mode 100644 index 0000000..3c46a92 --- /dev/null +++ b/test/testcases/tests/level1/core/attrcreatetextnode2.xml @@ -0,0 +1,50 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="attrcreatetextnode2"> +<metadata> +<title>attrCreateTextNode2</title> +<creator>Curt Arnold</creator> +<description> + The "setNodeValue()" method for an attribute creates a + Text node with the unparsed content of the string. + Retrieve the attribute named "street" from the last + child of of the fourth employee and assign the "Y&ent1;" + string to its value attribute. This value is not yet + parsed and therefore should still be the same upon + retrieval. This test uses the "getNamedItem(name)" method + from the NamedNodeMap interface. +</description> +<date qualifier="created">2001-10-22</date> +<!-- Node.nodeValue --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<!-- bug report on initial version --> +<subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2002Apr/0057.html"/> +</metadata> +<var name="doc" type="Document"/> +<var name="addressList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="streetAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="addressList" tagname=""address""/> +<item interface="NodeList" obj="addressList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="streetAttr" name=""street""/> +<nodeValue obj="streetAttr" value='"Y&ent1;"'/> +<value interface="Attr" obj="streetAttr" var="value"/> +<assertEquals actual="value" expected='"Y&ent1;"' id="value" ignoreCase="false"/> +<nodeValue obj="streetAttr" var="value"/> +<assertEquals actual="value" expected='"Y&ent1;"' id="nodeValue" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/attrdefaultvalue.xml b/test/testcases/tests/level1/core/attrdefaultvalue.xml new file mode 100644 index 0000000..3b60d27 --- /dev/null +++ b/test/testcases/tests/level1/core/attrdefaultvalue.xml @@ -0,0 +1,53 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="attrdefaultvalue"> +<metadata> +<title>attrDefaultValue</title> +<creator>NIST</creator> +<description> + If there is not an explicit value assigned to an attribute + and there is a declaration for this attribute and that + declaration includes a default value, then that default + value is the attributes default value. + Retrieve the attribute named "street" from the last + child of of the first employee and examine its + value. That value should be the value given the + attribute in the DTD file. The test uses the + "getNamedItem(name)" method from the NamedNodeMap + interface. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!-- Element.attributes --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +<!-- NamedNodeMap.getNamedItem --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1074577549"/> +<!-- DOM WG opinion on default attributes --> +<subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2002Mar/0002.html"/> +</metadata> +<implementationAttribute name="validating" value="true"/> +<var name="doc" type="Document"/> +<var name="addressList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="streetAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="addressList" tagname=""address""/> +<item interface="NodeList" obj="addressList" var="testNode" index="0"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="streetAttr" name=""street""/> +<nodeValue obj="streetAttr" var="value"/> +<assertEquals actual="value" expected=""Yes"" id="attrDefaultValueAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/attreffectivevalue.xml b/test/testcases/tests/level1/core/attreffectivevalue.xml new file mode 100644 index 0000000..dbda4da --- /dev/null +++ b/test/testcases/tests/level1/core/attreffectivevalue.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="attreffectivevalue"> +<metadata> +<title>attrEffectiveValue</title> +<creator>NIST</creator> +<description> + If an Attr is explicitly assigned any value, then that value is the attributes effective value. + Retrieve the attribute named "domestic" from the last child of of the first employee + and examine its nodeValue attribute. This test uses the "getNamedItem(name)" method + from the NamedNodeMap interface. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!-- Element.attributes --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +<!-- NamedNodeMap.getNamedItem --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1074577549"/> +</metadata> +<var name="doc" type="Document"/> +<var name="addressList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="domesticAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="addressList" tagname=""address""/> +<item interface="NodeList" obj="addressList" var="testNode" index="0"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="domesticAttr" name=""domestic""/> +<nodeValue obj="domesticAttr" var="value"/> +<assertEquals actual="value" expected=""Yes"" id="attrEffectiveValueAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/attrentityreplacement.xml b/test/testcases/tests/level1/core/attrentityreplacement.xml new file mode 100644 index 0000000..d8fd431 --- /dev/null +++ b/test/testcases/tests/level1/core/attrentityreplacement.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="attrentityreplacement"> +<metadata> +<title>attrEntityReplacement</title> +<creator>NIST</creator> +<description> + The "getValue()" method will return the value of the + attribute as a string. The general entity references + are replaced with their values. + Retrieve the attribute named "street" from the last + child of of the fourth employee and examine the string + returned by the "getValue()" method. The value should + be set to "Yes" after the EntityReference is + replaced with its value. This test uses the + "getNamedItem(name)" method from the NamedNodeMap + interface. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!-- Attr.value --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-221662474"/> +</metadata> +<var name="doc" type="Document"/> +<var name="addressList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="streetAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="addressList" tagname=""address""/> +<item interface="NodeList" obj="addressList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="streetAttr" name=""street""/> +<value interface="Attr" obj="streetAttr" var="value"/> +<assertEquals actual="value" expected='"Yes"' id="streetYes" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/attrname.xml b/test/testcases/tests/level1/core/attrname.xml new file mode 100644 index 0000000..9243905 --- /dev/null +++ b/test/testcases/tests/level1/core/attrname.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="attrname"> +<metadata> +<title>attrName</title> +<creator>NIST</creator> +<description> + The getNodeName() method of an Attribute node. + Retrieve the attribute named street from the last + child of of the second employee and examine its + NodeName. This test uses the getNamedItem(name) method from the NamedNodeMap + interface. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!-- Node.nodeName --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +<!-- Attr.name --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1112119403"/> +</metadata> +<var name="doc" type="Document"/> +<var name="addressList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="streetAttr" type="Attr"/> +<var name="name" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="addressList" tagname=""address""/> +<item interface="NodeList" obj="addressList" var="testNode" index="1"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="streetAttr" name=""street""/> +<nodeName obj="streetAttr" var="name"/> +<assertEquals actual="name" expected=""street"" id="nodeName" ignoreCase="false"/> +<name obj="streetAttr" var="name" interface="Attr"/> +<assertEquals actual="name" expected=""street"" id="name" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/attrnextsiblingnull.xml b/test/testcases/tests/level1/core/attrnextsiblingnull.xml new file mode 100644 index 0000000..d425671 --- /dev/null +++ b/test/testcases/tests/level1/core/attrnextsiblingnull.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="attrnextsiblingnull"> +<metadata> +<title>attrNextSiblingNull</title> +<creator>NIST</creator> +<description> +The "getNextSibling()" method for an Attr node should return null. +Retrieve the attribute named "domestic" from the last child of of the +first employee and examine its NextSibling node. This test uses the +"getNamedItem(name)" method from the NamedNodeMap interface. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--nextSibling attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6AC54C2F"/> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +</metadata> +<var name="doc" type="Document"/> +<var name="addressList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="domesticAttr" type="Attr"/> +<var name="s" type="Node"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="addressList" tagname=""address""/> +<item interface="NodeList" obj="addressList" var="testNode" index="0"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="domesticAttr" name=""domestic""/> +<nextSibling interface="Node" obj="domesticAttr" var="s"/> +<assertNull actual="s" id="attrNextSiblingNullAssert"/> +</test> diff --git a/test/testcases/tests/level1/core/attrnotspecifiedvalue.xml b/test/testcases/tests/level1/core/attrnotspecifiedvalue.xml new file mode 100644 index 0000000..3d78bd7 --- /dev/null +++ b/test/testcases/tests/level1/core/attrnotspecifiedvalue.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="attrnotspecifiedvalue"> +<metadata> +<title>attrNotSpecifiedValue</title> +<creator>NIST</creator> +<description> + The "getSpecified()" method for an Attr node should + be set to false if the attribute was not explicitly given + a value. + Retrieve the attribute named "street" from the last + child of of the first employee and examine the value + returned by the "getSpecified()" method. This test uses + the "getNamedItem(name)" method from the NamedNodeMap + interface. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-862529273"/> +<!-- DOM WG opinion on default attributes --> +<subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2002Mar/0002.html"/> +</metadata> +<implementationAttribute name="validating" value="true"/> +<var name="doc" type="Document"/> +<var name="addressList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="streetAttr" type="Attr"/> +<var name="state" type="boolean"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="addressList" tagname=""address""/> +<item interface="NodeList" obj="addressList" var="testNode" index="0"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="streetAttr" name='"street"'/> +<specified obj="streetAttr" var="state"/> +<assertFalse actual="state" id="streetNotSpecified"/> +</test> diff --git a/test/testcases/tests/level1/core/attrparentnodenull.xml b/test/testcases/tests/level1/core/attrparentnodenull.xml new file mode 100644 index 0000000..dd19d20 --- /dev/null +++ b/test/testcases/tests/level1/core/attrparentnodenull.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="attrparentnodenull"> +<metadata> +<title>attrParentNodeNull</title> +<creator>NIST</creator> +<description> +The "getParentNode()" method for an Attr node should return null. Retrieve +the attribute named "domestic" from the last child of the first employee +and examine its parentNode attribute. This test also uses the "getNamedItem(name)" +method from the NamedNodeMap interface. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--parentNode attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1060184317"/> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +</metadata> +<var name="doc" type="Document"/> +<var name="addressList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="domesticAttr" type="Attr"/> +<var name="s" type="Node"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="addressList" tagname=""address""/> +<item interface="NodeList" obj="addressList" var="testNode" index="0"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="domesticAttr" name=""domestic""/> +<parentNode interface="Node" obj="domesticAttr" var="s"/> +<assertNull actual="s" id="attrParentNodeNullAssert"/> +</test> diff --git a/test/testcases/tests/level1/core/attrprevioussiblingnull.xml b/test/testcases/tests/level1/core/attrprevioussiblingnull.xml new file mode 100644 index 0000000..acad1bf --- /dev/null +++ b/test/testcases/tests/level1/core/attrprevioussiblingnull.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="attrprevioussiblingnull"> +<metadata> +<title>attrPreviousSiblingNull</title> +<creator>NIST</creator> +<description> +The "getPreviousSibling()" method for an Attr node should return null. +Retrieve the attribute named "domestic" from the last child of of the +first employee and examine its PreviousSibling node. This test uses the +"getNamedItem(name)" method from the NamedNodeMap interface. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--previousSibling attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-640FB3C8"/> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +</metadata> +<var name="doc" type="Document"/> +<var name="addressList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="domesticAttr" type="Attr"/> +<var name="s" type="Node"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="addressList" tagname=""address""/> +<item interface="NodeList" obj="addressList" var="testNode" index="0"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="domesticAttr" name=""domestic""/> +<previousSibling interface="Node" obj="domesticAttr" var="s"/> +<assertNull actual="s" id="attrPreviousSiblingNullAssert"/> +</test> diff --git a/test/testcases/tests/level1/core/attrremovechild1.xml b/test/testcases/tests/level1/core/attrremovechild1.xml new file mode 100644 index 0000000..b7be293 --- /dev/null +++ b/test/testcases/tests/level1/core/attrremovechild1.xml @@ -0,0 +1,45 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="attrremovechild1"> +<metadata> +<title>attrremovechild1</title> +<creator>Curt Arnold</creator> +<description> +Removing a child node from an attribute in an entity reference +should result in an NO_MODIFICATION_ALLOWED_ERR DOMException. +</description> +<date qualifier="created">2004-01-01</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1734834066"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-1734834066')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +</metadata> +<var name="doc" type="Document"/> +<var name="entRef" type="EntityReference"/> +<var name="entElement" type="Element"/> +<var name="attrNode" type="Node"/> +<var name="textNode" type="Text"/> +<var name="removedNode" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<createEntityReference obj="doc" var="entRef" name='"ent4"'/> +<assertNotNull actual="entRef" id="createdEntRefNotNull"/> +<firstChild var="entElement" obj="entRef" interface="Node"/> +<assertNotNull actual="entElement" id="entElementNotNull"/> +<getAttributeNode var="attrNode" obj="entElement" name='"domestic"'/> +<firstChild var="textNode" obj="attrNode" interface="Node"/> +<assertNotNull actual="textNode" id="attrChildNotNull"/> +<assertDOMException id="setValue_throws_NO_MODIFICATION_ERR"> + <NO_MODIFICATION_ALLOWED_ERR> + <removeChild obj="attrNode" oldChild="textNode" var="removedNode"/> + </NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/attrreplacechild1.xml b/test/testcases/tests/level1/core/attrreplacechild1.xml new file mode 100644 index 0000000..e6d5a20 --- /dev/null +++ b/test/testcases/tests/level1/core/attrreplacechild1.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="attrreplacechild1"> +<metadata> +<title>attrreplacechild1</title> +<creator>Curt Arnold</creator> +<description> +Replacing a child node from an attribute in an entity reference +should result in an NO_MODIFICATION_ALLOWED_ERR DOMException. +</description> +<date qualifier="created">2004-01-01</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-785887307')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +</metadata> +<var name="doc" type="Document"/> +<var name="entRef" type="EntityReference"/> +<var name="entElement" type="Element"/> +<var name="attrNode" type="Node"/> +<var name="textNode" type="Text"/> +<var name="removedNode" type="Node"/> +<var name="newChild" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<createEntityReference obj="doc" var="entRef" name='"ent4"'/> +<assertNotNull actual="entRef" id="createdEntRefNotNull"/> +<firstChild var="entElement" obj="entRef" interface="Node"/> +<assertNotNull actual="entElement" id="entElementNotNull"/> +<getAttributeNode var="attrNode" obj="entElement" name='"domestic"'/> +<firstChild var="textNode" obj="attrNode" interface="Node"/> +<assertNotNull actual="textNode" id="attrChildNotNull"/> +<createTextNode var="newChild" obj="doc" data='"Yesterday"'/> +<assertDOMException id="setValue_throws_NO_MODIFICATION_ERR"> + <NO_MODIFICATION_ALLOWED_ERR> + <replaceChild obj="attrNode" oldChild="textNode" var="removedNode" newChild="newChild"/> + </NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/attrsetvaluenomodificationallowederr.xml b/test/testcases/tests/level1/core/attrsetvaluenomodificationallowederr.xml new file mode 100644 index 0000000..a458405 --- /dev/null +++ b/test/testcases/tests/level1/core/attrsetvaluenomodificationallowederr.xml @@ -0,0 +1,69 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="attrsetvaluenomodificationallowederr"> +<metadata> +<title>attrSetValueNoModificationAllowedErr</title> +<creator>NIST</creator> +<description> + The "setValue()" 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. Get the "domestic" attribute + from the entity reference and execute the "setValue()" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-core#ID-221662474"/> +<subject resource="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-core#xpointer(id('ID-221662474')/setraises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/DOM/updates/REC-DOM-Level-1-19981001-errata.html"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-221662474"/> +</metadata> +<implementationAttribute name="expandEntityReferences" value="false"/> +<var name="doc" type="Document"/> +<var name="genderList" type="NodeList"/> +<var name="gender" type="Node"/> +<var name="genList" type="NodeList"/> +<var name="gen" type="Node"/> +<var name="gList" type="NodeList"/> +<var name="g" type="Node"/> +<var name="attrList" type="NamedNodeMap"/> +<var name="attrNode" type="Attr"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="genderList" tagname=""gender""/> +<item interface="NodeList" obj="genderList" var="gender" index="2"/> +<assertNotNull actual="gender" id="genderNotNull"/> +<childNodes obj="gender" var="genList"/> +<item interface="NodeList" obj="genList" var="gen" index="0"/> +<assertNotNull actual="gen" id="genderFirstChildNotNull"/> +<childNodes obj="gen" var="gList"/> +<item interface="NodeList" obj="gList" var="g" index="0"/> +<assertNotNull actual="g" id="genderFirstGrandchildNotNull"/> +<attributes obj="g" var="attrList"/> +<assertNotNull actual="attrList" id="attributesNotNull"/> +<getNamedItem obj="attrList" var="attrNode" name='"domestic"'/> +<assertNotNull actual="attrNode" id="attrNotNull"/> +<assertDOMException id="setValue_throws_NO_MODIFICATION"> + <NO_MODIFICATION_ALLOWED_ERR> + <value interface="Attr" obj="attrNode" value='"newvalue"'/> + </NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +<assertDOMException id="setNodeValue_throws_NO_MODIFICATION"> + <NO_MODIFICATION_ALLOWED_ERR> + <nodeValue interface="Node" obj="attrNode" value='"newvalue2"'/> + </NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/attrsetvaluenomodificationallowederrEE.xml b/test/testcases/tests/level1/core/attrsetvaluenomodificationallowederrEE.xml new file mode 100644 index 0000000..cdc72b1 --- /dev/null +++ b/test/testcases/tests/level1/core/attrsetvaluenomodificationallowederrEE.xml @@ -0,0 +1,65 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="attrsetvaluenomodificationallowederrEE"> +<metadata> +<title>attrSetValueNoModificationAllowedErrEE</title> +<creator>Curt Arnold</creator> +<description> + The "setValue()" method for an attribute causes the + DOMException NO_MODIFICATION_ALLOWED_ERR to be raised + if the node is readonly. + + Create an entity reference using document.createEntityReference() + Get the "domestic" attribute from the entity + reference and execute the "setValue()" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. +</description> +<date qualifier="created">2001-08-22</date> +<subject resource="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-core#ID-221662474"/> +<subject resource="http://www.w3.org/TR/2000/WD-DOM-Level-1-20000929/level-one-core#xpointer(id('ID-221662474')/setraises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/DOM/updates/REC-DOM-Level-1-19981001-errata.html"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-221662474"/> +<source resource="http://www.w3.org/2001/DOM-Test-Suite/level1/core/attrsetvaluenomodificationallowederr.xml"/> +</metadata> +<var name="doc" type="Document"/> +<var name="entRef" type="EntityReference"/> +<var name="entElement" type="Element"/> +<var name="attrList" type="NamedNodeMap"/> +<var name="attrNode" type="Node"/> +<var name="gender" type="Node"/> +<var name="genderList" type="NodeList"/> +<var name="appendedChild" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="genderList" tagname=""gender""/> +<item interface="NodeList" obj="genderList" var="gender" index="2"/> +<assertNotNull actual="gender" id="genderNotNull"/> +<createEntityReference obj="doc" var="entRef" name='"ent4"'/> +<assertNotNull actual="entRef" id="entRefNotNull"/> +<appendChild obj="gender" newChild="entRef" var="appendedChild"/> +<firstChild obj="entRef" var="entElement" interface="Node"/> +<assertNotNull actual="entElement" id="entElementNotNull"/> +<attributes obj="entElement" var="attrList"/> +<getNamedItem obj="attrList" var="attrNode" name=""domestic""/> +<assertDOMException id="setValue_throws_NO_MODIFICATION"> + <NO_MODIFICATION_ALLOWED_ERR> + <value interface="Attr" obj="attrNode" value='"newvalue"'/> + </NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +<assertDOMException id="setNodeValue_throws_NO_MODIFICATION"> + <NO_MODIFICATION_ALLOWED_ERR> + <nodeValue interface="Node" obj="attrNode" value='"newvalue2"'/> + </NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/attrspecifiedvalue.xml b/test/testcases/tests/level1/core/attrspecifiedvalue.xml new file mode 100644 index 0000000..74be629 --- /dev/null +++ b/test/testcases/tests/level1/core/attrspecifiedvalue.xml @@ -0,0 +1,45 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="attrspecifiedvalue"> +<metadata> +<title>attrSpecifiedValue</title> +<creator>NIST</creator> +<description> + The "getSpecified()" method for an Attr node should + be set to true if the attribute was explicitly given + a value. + Retrieve the attribute named "domestic" from the last + child of of the first employee and examine the value + returned by the "getSpecified()" method. This test uses + the "getNamedItem(name)" method from the NamedNodeMap + interface. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-862529273"/> +</metadata> +<var name="doc" type="Document"/> +<var name="addressList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="domesticAttr" type="Attr"/> +<var name="state" type="boolean"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="addressList" tagname=""address""/> +<item interface="NodeList" obj="addressList" var="testNode" index="0"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="domesticAttr" name='"domestic"'/> +<specified obj="domesticAttr" var="state"/> +<assertTrue actual="state" id="domesticSpecified"/> +</test> diff --git a/test/testcases/tests/level1/core/attrspecifiedvaluechanged.xml b/test/testcases/tests/level1/core/attrspecifiedvaluechanged.xml new file mode 100644 index 0000000..9bd9c10 --- /dev/null +++ b/test/testcases/tests/level1/core/attrspecifiedvaluechanged.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="attrspecifiedvaluechanged"> +<metadata> +<title>attrSpecifiedValueChanged</title> +<creator>NIST</creator> +<description> + The "getSpecified()" method for an Attr node should return true if the + value of the attribute is changed. + Retrieve the attribute named "street" from the last + child of of the THIRD employee and change its + value to "Yes"(which is the default DTD value). This + should cause the "getSpecified()" method to be true. + This test uses the "setAttribute(name,value)" method + from the Element interface and the "getNamedItem(name)" + method from the NamedNodeMap interface. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-862529273"/> +</metadata> +<var name="doc" type="Document"/> +<var name="addressList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="streetAttr" type="Attr"/> +<var name="state" type="boolean"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="addressList" tagname=""address""/> +<item interface="NodeList" obj="addressList" var="testNode" index="2"/> +<setAttribute obj="testNode" name=""street"" value=""Yes""/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="streetAttr" name=""street""/> +<specified obj="streetAttr" var="state"/> +<assertTrue actual="state" id="streetSpecified"/> +</test> diff --git a/test/testcases/tests/level1/core/attrspecifiedvalueremove.xml b/test/testcases/tests/level1/core/attrspecifiedvalueremove.xml new file mode 100644 index 0000000..c238214 --- /dev/null +++ b/test/testcases/tests/level1/core/attrspecifiedvalueremove.xml @@ -0,0 +1,55 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="attrspecifiedvalueremove"> +<metadata> +<title>attrSpecifiedValueRemove</title> +<creator>NIST</creator> +<description> +To respecify the attribute to its default value from +the DTD, the attribute must be deleted. This will then +make a new attribute available with the "getSpecified()" +method value set to false. +Retrieve the attribute named "street" from the last +child of of the THIRD employee and delete it. This +should then create a new attribute with its default +value and also cause the "getSpecified()" method to +return false. +This test uses the "removeAttribute(name)" method +from the Element interface and the "getNamedItem(name)" +method from the NamedNodeMap interface. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--removeAttribute--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6D6AC0F9"/> +<!-- DOM WG opinion on default attributes --> +<subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2002Mar/0002.html"/> +</metadata> +<implementationAttribute name="validating" value="true"/> +<var name="doc" type="Document"/> +<var name="addressList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="streetAttr" type="Attr"/> +<var name="state" type="boolean"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="addressList" tagname=""address""/> +<item interface="NodeList" obj="addressList" var="testNode" index="2"/> +<removeAttribute obj="testNode" name=""street""/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="streetAttr" name=""street""/> +<assertNotNull actual="streetAttr" id="streetAttrNotNull"/> +<specified obj="streetAttr" var="state"/> +<assertFalse actual="state" id="attrSpecifiedValueRemoveAssert"/> +</test> diff --git a/test/testcases/tests/level1/core/cdatasectiongetdata.xml b/test/testcases/tests/level1/core/cdatasectiongetdata.xml new file mode 100644 index 0000000..7bb6841 --- /dev/null +++ b/test/testcases/tests/level1/core/cdatasectiongetdata.xml @@ -0,0 +1,45 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="cdatasectiongetdata"> +<metadata> +<title>cdataSectionGetValue</title> +<creator>NIST</creator> +<description> +Retrieve the last CDATASection node located inside the +second child of the second employee and examine its +content. Since the CDATASection interface inherits +from the CharacterData interface(via the Text node), +the "getData()" method can be used to access the +CDATA content. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +</metadata> +<implementationAttribute name="coalescing" value="false"/> +<var name="doc" type="Document"/> +<var name="nameList" type="NodeList"/> +<var name="child" type="Node"/> +<var name="lastChild" type="Node"/> +<var name="data" type="DOMString"/> +<var name="nodeType" type="int"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nameList" tagname=""name""/> +<item interface="NodeList" obj="nameList" var="child" index="1"/> +<lastChild interface="Node" obj="child" var="lastChild"/> +<nodeType var="nodeType" obj="lastChild"/> +<assertEquals actual="nodeType" expected="4" id="isCDATA" ignoreCase="false"/> +<data interface="CharacterData" obj="lastChild" var="data"/> +<assertEquals actual="data" expected='"This is an adjacent CDATASection with a reference to a tab &tab;"' id="data" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/cdatasectionnormalize.xml b/test/testcases/tests/level1/core/cdatasectionnormalize.xml new file mode 100644 index 0000000..ce654f6 --- /dev/null +++ b/test/testcases/tests/level1/core/cdatasectionnormalize.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="cdatasectionnormalize"> +<metadata> +<title>cdataSectionNormalize</title> +<creator>NIST</creator> +<description> +Adjacent CDATASection nodes cannot be merged together by +use of the "normalize()" method from the Element interface. +Retrieve second child of the second employee and invoke +the "normalize()" method. The Element under contains +two CDATASection nodes that should not be merged together +by the "normalize()" method. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-162CF083"/> +</metadata> +<var name="doc" type="Document"/> +<var name="nameList" type="NodeList"/> +<var name="lChild" type="Element"/> +<var name="childNodes" type="NodeList"/> +<var name="cdataN" type="CDATASection"/> +<var name="data" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nameList" tagname=""name""/> +<item interface="NodeList" obj="nameList" var="lChild" index="1"/> +<normalize obj="lChild"/> +<childNodes obj="lChild" var="childNodes"/> +<item interface="NodeList" obj="childNodes" var="cdataN" index="1"/> +<assertNotNull actual="cdataN" id="firstCDATASection"/> +<data interface="CharacterData" obj="cdataN" var="data"/> +<assertEquals actual="data" expected='"This is a CDATASection with EntityReference number 2 &ent2;"' ignoreCase="false" id="data1"/> +<item interface="NodeList" obj="childNodes" var="cdataN" index="3"/> +<assertNotNull actual="cdataN" id="secondCDATASection"/> +<data interface="CharacterData" obj="cdataN" var="data"/> +<assertEquals actual="data" expected='"This is an adjacent CDATASection with a reference to a tab &tab;"' ignoreCase="false" id="data3"/> +</test> diff --git a/test/testcases/tests/level1/core/characterdataappenddata.xml b/test/testcases/tests/level1/core/characterdataappenddata.xml new file mode 100644 index 0000000..057efb6 --- /dev/null +++ b/test/testcases/tests/level1/core/characterdataappenddata.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdataappenddata"> +<metadata> +<title>characterdataAppendData</title> +<creator>NIST</creator> +<description> + The "appendData(arg)" method appends a string to the end + of the character data of the node. + + Retrieve the character data from the second child + of the first employee. The appendData(arg) method is + called with arg=", Esquire". The method should append + the specified data to the already existing character + data. The new value return by the "getLength()" method + should be 24. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-32791A2F"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childValue" type="DOMString"/> +<var name="childLength" type="int"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""name"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<appendData obj="child" arg="", Esquire""/> +<data obj="child" var="childValue" interface="CharacterData"/> +<length obj="childValue" var="childLength" interface="DOMString"/> +<assertEquals actual="childLength" expected="24" ignoreCase="false" id="characterdataAppendDataAssert"/> +</test> diff --git a/test/testcases/tests/level1/core/characterdataappenddatagetdata.xml b/test/testcases/tests/level1/core/characterdataappenddatagetdata.xml new file mode 100644 index 0000000..3d49021 --- /dev/null +++ b/test/testcases/tests/level1/core/characterdataappenddatagetdata.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdataappenddatagetdata"> +<metadata> +<title>characterdataAppendDataGetData</title> +<creator>NIST</creator> +<description> + On successful invocation of the "appendData(arg)" + method the "getData()" method provides access to the + concatentation of data and the specified string. + + Retrieve the character data from the second child + of the first employee. The appendData(arg) method is + called with arg=", Esquire". The method should append + the specified data to the already existing character + data. The new value return by the "getData()" method + should be "Margaret Martin, Esquire". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-32791A2F"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""name"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<appendData obj="child" arg="", Esquire""/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected=""Margaret Martin, Esquire"" id="characterdataAppendDataGetDataAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/characterdataappenddatanomodificationallowederr.xml b/test/testcases/tests/level1/core/characterdataappenddatanomodificationallowederr.xml new file mode 100644 index 0000000..3e556d9 --- /dev/null +++ b/test/testcases/tests/level1/core/characterdataappenddatanomodificationallowederr.xml @@ -0,0 +1,59 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdataappenddatanomodificationallowederr"> +<metadata> +<title>characterdataAppendDataNoModificationAllowedErr</title> +<creator>NIST</creator> +<description> + The "appendData(arg)" method raises a NO_MODIFICATION_ALLOWED_ERR + DOMException 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 "appendData(arg)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-32791A2F"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-32791A2F')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-32791A2F"/> +</metadata> +<var name="doc" type="Document"/> +<var name="genderList" type="NodeList"/> +<var name="genderNode" type="Node"/> +<var name="entElement" type="Node"/> +<var name="entElementContent" type="Node"/> +<var name="entReference" type="Node"/> +<var name="nodeType" type="int"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""gender"" var="genderList"/> +<item interface="NodeList" obj="genderList" index="2" var="genderNode"/> +<firstChild var="entReference" obj="genderNode" interface="Node"/> +<assertNotNull actual="entReference" id="entReferenceNotNull"/> +<nodeType var="nodeType" obj="entReference"/> +<if><equals actual="nodeType" expected="1" ignoreCase="false"/> + <createEntityReference var="entReference" obj="doc" name='"ent4"'/> + <assertNotNull actual="entReference" id="createdEntRefNotNull"/> +</if> +<firstChild var="entElement" obj="entReference" interface="Node"/> +<assertNotNull actual="entElement" id="entElementNotNull"/> +<firstChild var="entElementContent" obj="entElement" interface="Node"/> +<assertNotNull actual="entElementContent" id="entElementContentNotNull"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<appendData obj="entElementContent" arg=""newString""/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/characterdataappenddatanomodificationallowederrEE.xml b/test/testcases/tests/level1/core/characterdataappenddatanomodificationallowederrEE.xml new file mode 100644 index 0000000..ba69184 --- /dev/null +++ b/test/testcases/tests/level1/core/characterdataappenddatanomodificationallowederrEE.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdataappenddatanomodificationallowederrEE"> +<metadata> +<title>characterdataAppendDataNoModificationAllowedErrEE</title> +<creator>Curt Arnold</creator> +<description> +Create an ent3 entity reference and call appendData on a text child, should thrown a NO_MODIFICATION_ALLOWED_ERR. +</description> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-32791A2F"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-32791A2F')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-32791A2F"/> +<source resource="http://www.w3.org/2001/DOM-Test-Suite/level1/core/characterdataappenddatanomodificationallowederr.xml"/> +</metadata> +<var name="doc" type="Document"/> +<var name="genderList" type="NodeList"/> +<var name="genderNode" type="Node"/> +<var name="entText" type="Node"/> +<var name="entReference" type="EntityReference"/> +<var name="appendedChild" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""gender"" var="genderList"/> +<item interface="NodeList" obj="genderList" index="2" var="genderNode"/> +<createEntityReference var="entReference" obj="doc" name='"ent3"'/> +<assertNotNull actual="entReference" id="createdEntRefNotNull"/> +<appendChild obj="genderNode" newChild="entReference" var="appendedChild"/> +<firstChild var="entText" obj="entReference" interface="Node"/> +<assertNotNull actual="entText" id="entTextNotNull"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<appendData obj="entText" arg='"newString"'/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/characterdatadeletedatabegining.xml b/test/testcases/tests/level1/core/characterdatadeletedatabegining.xml new file mode 100644 index 0000000..d1cf6a3 --- /dev/null +++ b/test/testcases/tests/level1/core/characterdatadeletedatabegining.xml @@ -0,0 +1,45 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdatadeletedatabegining"> +<metadata> +<title>characterdataDeleteDataBeginning</title> +<creator>NIST</creator> +<description> +The "deleteData(offset,count)" method removes a range of +characters from the node. Delete data at the beginning +of the character data. + +Retrieve the character data from the last child of the +first employee. The "deleteData(offset,count)" +method is then called with offset=0 and count=16. +The method should delete the characters from position +0 thru position 16. The new value of the character data +should be "Dallas, Texas 98551". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7C603781"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<deleteData obj="child" offset="0" count="16"/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected=""Dallas, Texas 98551"" id="characterdataDeleteDataBeginingAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/characterdatadeletedataend.xml b/test/testcases/tests/level1/core/characterdatadeletedataend.xml new file mode 100644 index 0000000..052ae11 --- /dev/null +++ b/test/testcases/tests/level1/core/characterdatadeletedataend.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdatadeletedataend"> +<metadata> +<title>characterdataDeleteDataEnd</title> +<creator>NIST</creator> +<description> + The "deleteData(offset,count)" method removes a range of + characters from the node. Delete data at the end + of the character data. + + Retrieve the character data from the last child of the + first employee. The "deleteData(offset,count)" + method is then called with offset=30 and count=5. + The method should delete the characters from position + 30 thru position 35. The new value of the character data + should be "1230 North Ave. Dallas, Texas". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7C603781"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<deleteData obj="child" offset="30" count="5"/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected=""1230 North Ave. Dallas, Texas "" id="characterdataDeleteDataEndAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/characterdatadeletedataexceedslength.xml b/test/testcases/tests/level1/core/characterdatadeletedataexceedslength.xml new file mode 100644 index 0000000..fe80a3b --- /dev/null +++ b/test/testcases/tests/level1/core/characterdatadeletedataexceedslength.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdatadeletedataexceedslength"> +<metadata> +<title>characterdataDeleteDataExceedsLength</title> +<creator>NIST</creator> +<description> + If the sum of the offset and count used in the + "deleteData(offset,count) method is greater than the + length of the character data then all the characters + from the offset to the end of the data are deleted. + + Retrieve the character data from the last child of the + first employee. The "deleteData(offset,count)" + method is then called with offset=4 and count=50. + The method should delete the characters from position 4 + to the end of the data since the offset+count(50+4) + is greater than the length of the character data(35). + The new value of the character data should be "1230". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7C603781"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<deleteData obj="child" offset="4" count="50"/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected=""1230"" id="characterdataDeleteDataExceedsLengthAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/characterdatadeletedatagetlengthanddata.xml b/test/testcases/tests/level1/core/characterdatadeletedatagetlengthanddata.xml new file mode 100644 index 0000000..533a19e --- /dev/null +++ b/test/testcases/tests/level1/core/characterdatadeletedatagetlengthanddata.xml @@ -0,0 +1,54 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdatadeletedatagetlengthanddata"> +<metadata> +<title>characterdataDeleteDataGetLengthAndData</title> +<creator>NIST</creator> +<description> + On successful invocation of the "deleteData(offset,count)" + method, the "getData()" and "getLength()" methods reflect + the changes. + + Retrieve the character data from the last child of the + first employee. The "deleteData(offset,count)" + method is then called with offset=30 and count=5. + The method should delete the characters from position + 30 thru position 35. The new value of the character data + should be "1230 North Ave. Dallas, Texas" which is + returned by the "getData()" method and "getLength()" + method should return 30". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7D61178C"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7C603781"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<var name="childLength" type="int"/> +<var name="result" type="List"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<deleteData obj="child" offset="30" count="5"/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected=""1230 North Ave. Dallas, Texas "" ignoreCase="false" id="data"/> +<length interface="CharacterData" obj="child" var="childLength"/> +<assertEquals actual="childLength" expected="30" ignoreCase="false" id="length"/> +</test> diff --git a/test/testcases/tests/level1/core/characterdatadeletedatamiddle.xml b/test/testcases/tests/level1/core/characterdatadeletedatamiddle.xml new file mode 100644 index 0000000..8488008 --- /dev/null +++ b/test/testcases/tests/level1/core/characterdatadeletedatamiddle.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdatadeletedatamiddle"> +<metadata> +<title>characterdataDeleteDataMiddle</title> +<creator>NIST</creator> +<description> + The "deleteData(offset,count)" method removes a range of + characters from the node. Delete data in the middle + of the character data. + + Retrieve the character data from the last child of the + first employee. The "deleteData(offset,count)" + method is then called with offset=16 and count=8. + The method should delete the characters from position + 16 thru position 24. The new value of the character data + should be "1230 North Ave. Texas 98551". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7C603781"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<deleteData obj="child" offset="16" count="8"/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected=""1230 North Ave. Texas 98551"" id="characterdataDeleteDataMiddleAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/characterdatadeletedatanomodificationallowederr.xml b/test/testcases/tests/level1/core/characterdatadeletedatanomodificationallowederr.xml new file mode 100644 index 0000000..d11c731 --- /dev/null +++ b/test/testcases/tests/level1/core/characterdatadeletedatanomodificationallowederr.xml @@ -0,0 +1,59 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdatadeletedatanomodificationallowederr"> +<metadata> +<title>characterdataDeleteDataNoModificationAllowedErr</title> +<creator>NIST</creator> +<description> + The "deleteData(offset,count)" method raises a NO_MODIFICATION_ALLOWED_ERR + DOMException 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 "deleteData(offset,count)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7C603781"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-7C603781')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7C603781"/> +</metadata> +<var name="doc" type="Document"/> +<var name="genderList" type="NodeList"/> +<var name="genderNode" type="Node"/> +<var name="entElement" type="Node"/> +<var name="entElementContent" type="Node"/> +<var name="nodeType" type="int"/> +<var name="entReference" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""gender"" var="genderList"/> +<item interface="NodeList" obj="genderList" index="2" var="genderNode"/> +<firstChild var="entReference" obj="genderNode" interface="Node"/> +<assertNotNull actual="entReference" id="entReferenceNotNull"/> +<nodeType var="nodeType" obj="entReference"/> +<if><equals actual="nodeType" expected="3"/> + <createEntityReference var="entReference" obj="doc" name='"ent4"'/> + <assertNotNull actual="entReference" id="createdEntRefNotNull"/> +</if> +<firstChild var="entElement" obj="entReference" interface="Node"/> +<assertNotNull actual="entElement" id="entElementNotNull"/> +<firstChild var="entElementContent" obj="entElement" interface="Node"/> +<assertNotNull actual="entElementContent" id="entElementContentNotNull"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<deleteData obj="entElementContent" offset="1" count="3"/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/characterdatadeletedatanomodificationallowederrEE.xml b/test/testcases/tests/level1/core/characterdatadeletedatanomodificationallowederrEE.xml new file mode 100644 index 0000000..566e16f --- /dev/null +++ b/test/testcases/tests/level1/core/characterdatadeletedatanomodificationallowederrEE.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdatadeletedatanomodificationallowederrEE"> +<metadata> +<title>characterdataDeleteDataNoModificationAllowedErrEE</title> +<creator>Curt Arnold</creator> +<description> +Create an ent3 entity reference and call deleteData on a text child, should thrown a NO_MODIFICATION_ALLOWED_ERR. +</description> +<date qualifier="created">2001-08-20</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7C603781"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-7C603781')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7C603781"/> +<source resource="http://www.w3.org/2001/DOM-Test-Suite/level1/core/characterdatadeletedatanomodificationallowederr.xml"/> +</metadata> +<var name="doc" type="Document"/> +<var name="genderList" type="NodeList"/> +<var name="genderNode" type="Node"/> +<var name="entText" type="Node"/> +<var name="entReference" type="EntityReference"/> +<var name="appendedChild" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""gender"" var="genderList"/> +<item interface="NodeList" obj="genderList" index="2" var="genderNode"/> +<createEntityReference obj="doc" var="entReference" name='"ent3"'/> +<assertNotNull actual="entReference" id="createdEntRefNotNull"/> +<appendChild obj="genderNode" newChild="entReference" var="appendedChild"/> +<firstChild var="entText" obj="entReference" interface="Node"/> +<assertNotNull actual="entText" id="entTextNotNull"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<deleteData obj="entText" offset="1" count="3"/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/characterdatagetdata.xml b/test/testcases/tests/level1/core/characterdatagetdata.xml new file mode 100644 index 0000000..e253b45 --- /dev/null +++ b/test/testcases/tests/level1/core/characterdatagetdata.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdatagetdata"> +<metadata> +<title>characterdataGetData</title> +<creator>NIST</creator> +<description> + + The "getData()" method retrieves the character data + + currently stored in the node. + + Retrieve the character data from the second child + + of the first employee and invoke the "getData()" + + method. The method returns the character data + + string. + +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""name"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected=""Margaret Martin"" id="characterdataGetDataAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/characterdatagetlength.xml b/test/testcases/tests/level1/core/characterdatagetlength.xml new file mode 100644 index 0000000..6b87ff6 --- /dev/null +++ b/test/testcases/tests/level1/core/characterdatagetlength.xml @@ -0,0 +1,43 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdatagetlength"> +<metadata> +<title>characterdataGetLength</title> +<creator>NIST</creator> +<description> + The "getLength()" method returns the number of characters + stored in this nodes data. + Retrieve the character data from the second + child of the first employee and examine the + value returned by the getLength() method. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7D61178C"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childValue" type="DOMString"/> +<var name="childLength" type="int"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""name"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<data var="childValue" obj="child" interface="CharacterData"/> +<length var="childLength" obj="childValue" interface="DOMString"/> +<assertEquals actual="childLength" expected="15" ignoreCase="false" id="characterdataGetLengthAssert"/> +</test> diff --git a/test/testcases/tests/level1/core/characterdataindexsizeerrdeletedatacountnegative.xml b/test/testcases/tests/level1/core/characterdataindexsizeerrdeletedatacountnegative.xml new file mode 100644 index 0000000..c745fa2 --- /dev/null +++ b/test/testcases/tests/level1/core/characterdataindexsizeerrdeletedatacountnegative.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdataindexsizeerrdeletedatacountnegative"> +<metadata> +<title>characterdataIndexSizeErrDeleteDataCountNegative</title> +<creator>NIST</creator> +<description> + The "deleteData(offset,count)" method raises an + INDEX_SIZE_ERR DOMException if the specified count + is negative. + + Retrieve the character data of the last child of the + first employee and invoke its "deleteData(offset,count)" + method with offset=10 and count=-3. It should raise the + desired exception since the count is negative. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6531BCCF"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-6531BCCF')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INDEX_SIZE_ERR'])"/> +</metadata> +<implementationAttribute name="signed" value="true"/> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<assertDOMException id="throws_INDEX_SIZE_ERR"> +<INDEX_SIZE_ERR> +<deleteData obj="child" offset="10" count="-3"/> +</INDEX_SIZE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/characterdataindexsizeerrdeletedataoffsetgreater.xml b/test/testcases/tests/level1/core/characterdataindexsizeerrdeletedataoffsetgreater.xml new file mode 100644 index 0000000..807ae51 --- /dev/null +++ b/test/testcases/tests/level1/core/characterdataindexsizeerrdeletedataoffsetgreater.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdataindexsizeerrdeletedataoffsetgreater"> +<metadata> +<title>characterdataIndexSizeErrDeleteDataOffsetGreater</title> +<creator>NIST</creator> +<description> + The "deleteData(offset,count)" method raises an + INDEX_SIZE_ERR DOMException if the specified offset + is greater that the number of characters in the string. + + Retrieve the character data of the last child of the + first employee and invoke its "deleteData(offset,count)" + method with offset=40 and count=3. It should raise the + desired exception since the offset is greater than the + number of characters in the string. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7C603781"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-7C603781')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7C603781"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<assertDOMException id="throw_INDEX_SIZE_ERR"> +<INDEX_SIZE_ERR> +<deleteData obj="child" offset="40" count="3"/> +</INDEX_SIZE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/characterdataindexsizeerrdeletedataoffsetnegative.xml b/test/testcases/tests/level1/core/characterdataindexsizeerrdeletedataoffsetnegative.xml new file mode 100644 index 0000000..cffc8a1 --- /dev/null +++ b/test/testcases/tests/level1/core/characterdataindexsizeerrdeletedataoffsetnegative.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdataindexsizeerrdeletedataoffsetnegative"> +<metadata> +<title>characterdataIndexSizeErrDeleteDataOffsetNegative</title> +<creator>NIST</creator> +<description> + The "deleteData(offset,count)" method raises an + INDEX_SIZE_ERR DOMException if the specified offset + is negative. + + Retrieve the character data of the last child of the + first employee and invoke its "deleteData(offset,count)" + method with offset=-5 and count=3. It should raise the + desired exception since the offset is negative. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7C603781"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-7C603781')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7C603781"/> +</metadata> +<implementationAttribute name="signed" value="true"/> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<assertDOMException id="throws_INDEX_SIZE_ERR"> +<INDEX_SIZE_ERR> +<deleteData obj="child" offset="-5" count="3"/> +</INDEX_SIZE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/characterdataindexsizeerrinsertdataoffsetgreater.xml b/test/testcases/tests/level1/core/characterdataindexsizeerrinsertdataoffsetgreater.xml new file mode 100644 index 0000000..54cb2ff --- /dev/null +++ b/test/testcases/tests/level1/core/characterdataindexsizeerrinsertdataoffsetgreater.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdataindexsizeerrinsertdataoffsetgreater"> +<metadata> +<title>characterdataIndexSizeErrInsertDataOffsetGreater</title> +<creator>NIST</creator> +<description> + The "insertData(offset,arg)" method raises an + INDEX_SIZE_ERR DOMException if the specified offset + is greater than the number of characters in the string. + + Retrieve the character data of the last child of the + first employee and invoke its insertData"(offset,arg)" + method with offset=40 and arg="ABC". It should raise + the desired exception since the offset is greater than + the number of characters in the string. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7C603781"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-7C603781')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<assertDOMException id="throw_INDEX_SIZE_ERR"> +<INDEX_SIZE_ERR> +<insertData obj="child" offset="40" arg=""ABC""/> +</INDEX_SIZE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/characterdataindexsizeerrinsertdataoffsetnegative.xml b/test/testcases/tests/level1/core/characterdataindexsizeerrinsertdataoffsetnegative.xml new file mode 100644 index 0000000..9239e1a --- /dev/null +++ b/test/testcases/tests/level1/core/characterdataindexsizeerrinsertdataoffsetnegative.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdataindexsizeerrinsertdataoffsetnegative"> +<metadata> +<title>characterdataIndexSizeErrInsertDataOffsetNegative</title> +<creator>NIST</creator> +<description> + The "insertData(offset,arg)" method raises an + INDEX_SIZE_ERR DOMException if the specified offset + is negative. + + Retrieve the character data of the last child of the + first employee and invoke its insertData"(offset,arg)" + method with offset=-5 and arg="ABC". It should raise + the desired exception since the offset is negative. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-E5CBA7FB"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-E5CBA7FB')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INDEX_SIZE_ERR'])"/> +</metadata> +<implementationAttribute name="signed" value="true"/> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<assertDOMException id="throws_INDEX_SIZE_ERR"> +<INDEX_SIZE_ERR> +<insertData obj="child" offset="-5" arg=""ABC""/> +</INDEX_SIZE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/characterdataindexsizeerrreplacedatacountnegative.xml b/test/testcases/tests/level1/core/characterdataindexsizeerrreplacedatacountnegative.xml new file mode 100644 index 0000000..7e731be --- /dev/null +++ b/test/testcases/tests/level1/core/characterdataindexsizeerrreplacedatacountnegative.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdataindexsizeerrreplacedatacountnegative"> +<metadata> +<title>characterdataIndexSizeErrReplaceDataCountNegative</title> +<creator>NIST</creator> +<description> + The "replaceData(offset,count,arg)" method raises an + INDEX_SIZE_ERR DOMException if the specified count + is negative. + + Retrieve the character data of the last child of the + first employee and invoke its + "replaceData(offset,count,arg) method with offset=10 + and count=-3 and arg="ABC". It should raise the + desired exception since the count is negative. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6531BCCF"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-6531BCCF')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INDEX_SIZE_ERR'])"/> +</metadata> +<implementationAttribute name="signed" value="true"/> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<assertDOMException id="throws_INDEX_SIZE_ERR"> +<INDEX_SIZE_ERR> +<replaceData obj="child" offset="10" count="-3" arg=""ABC""/> +</INDEX_SIZE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/characterdataindexsizeerrreplacedataoffsetgreater.xml b/test/testcases/tests/level1/core/characterdataindexsizeerrreplacedataoffsetgreater.xml new file mode 100644 index 0000000..40973c7 --- /dev/null +++ b/test/testcases/tests/level1/core/characterdataindexsizeerrreplacedataoffsetgreater.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdataindexsizeerrreplacedataoffsetgreater"> +<metadata> +<title>characterdataIndexSizeErrReplaceDataOffsetGreater</title> +<creator>NIST</creator> +<description> + The "replaceData(offset,count,arg)" method raises an + INDEX_SIZE_ERR DOMException if the specified offset + is greater than the length of the string. + + Retrieve the character data of the last child of the + first employee and invoke its + "replaceData(offset,count,arg) method with offset=40 + and count=3 and arg="ABC". It should raise the + desired exception since the offset is greater than the + length of the string. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7C603781"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-7C603781')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<assertDOMException id="throw_INDEX_SIZE_ERR"> +<INDEX_SIZE_ERR> +<replaceData obj="child" offset="40" count="3" arg=""ABC""/> +</INDEX_SIZE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/characterdataindexsizeerrreplacedataoffsetnegative.xml b/test/testcases/tests/level1/core/characterdataindexsizeerrreplacedataoffsetnegative.xml new file mode 100644 index 0000000..968087a --- /dev/null +++ b/test/testcases/tests/level1/core/characterdataindexsizeerrreplacedataoffsetnegative.xml @@ -0,0 +1,50 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdataindexsizeerrreplacedataoffsetnegative"> +<metadata> +<title>characterdataIndexSizeErrReplaceDataOffsetNegative</title> +<creator>NIST</creator> +<description> + The "replaceData(offset,count,arg)" method raises an + INDEX_SIZE_ERR DOMException if the specified offset + is negative. + + Retrieve the character data of the last child of the + first employee and invoke its + "replaceData(offset,count,arg) method with offset=-5 + and count=3 and arg="ABC". It should raise the + desired exception since the offset is negative. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-E5CBA7FB"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-E5CBA7FB')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-E5CBA7FB"/> +</metadata> +<implementationAttribute name="signed" value="true"/> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<assertDOMException id="throws_INDEX_SIZE_ERR"> +<INDEX_SIZE_ERR> +<replaceData obj="child" offset="-5" count="3" arg=""ABC""/> +</INDEX_SIZE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/characterdataindexsizeerrsubstringcountnegative.xml b/test/testcases/tests/level1/core/characterdataindexsizeerrsubstringcountnegative.xml new file mode 100644 index 0000000..d178d8d --- /dev/null +++ b/test/testcases/tests/level1/core/characterdataindexsizeerrsubstringcountnegative.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdataindexsizeerrsubstringcountnegative"> +<metadata> +<title>characterdataIndexSizeErrSubstringCountNegative</title> +<creator>NIST</creator> +<description> + The "substringData(offset,count)" method raises an + INDEX_SIZE_ERR DOMException if the specified count + is negative. + + Retrieve the character data of the last child of the + first employee and invoke its "substringData(offset,count) + method with offset=10 and count=-3. It should raise the + desired exception since the count is negative. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6531BCCF"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-6531BCCF')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INDEX_SIZE_ERR'])"/> +</metadata> +<implementationAttribute name="signed" value="true"/> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="badSubstring" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<assertDOMException id="throws_INDEX_SIZE_ERR"> +<INDEX_SIZE_ERR> +<substringData var="badSubstring" obj="child" offset="10" count="-3"/> +</INDEX_SIZE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/characterdataindexsizeerrsubstringnegativeoffset.xml b/test/testcases/tests/level1/core/characterdataindexsizeerrsubstringnegativeoffset.xml new file mode 100644 index 0000000..55e56d0 --- /dev/null +++ b/test/testcases/tests/level1/core/characterdataindexsizeerrsubstringnegativeoffset.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdataindexsizeerrsubstringnegativeoffset"> +<metadata> +<title>characterdataIndexSizeErrSubstringNegativeOffset</title> +<creator>NIST</creator> +<description> + The "substringData(offset,count)" method raises an + INDEX_SIZE_ERR DOMException if the specified offset + is negative. + + Retrieve the character data of the last child of the + first employee and invoke its "substringData(offset,count) + method with offset=-5 and count=3. It should raise the + desired exception since the offset is negative. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6531BCCF"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-6531BCCF')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INDEX_SIZE_ERR'])"/> +</metadata> +<implementationAttribute name="signed" value="true"/> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="badString" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<assertDOMException id="throws_INDEX_SIZE_ERR"> +<INDEX_SIZE_ERR> +<substringData var="badString" obj="child" offset="-5" count="3"/> +</INDEX_SIZE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/characterdataindexsizeerrsubstringoffsetgreater.xml b/test/testcases/tests/level1/core/characterdataindexsizeerrsubstringoffsetgreater.xml new file mode 100644 index 0000000..d33211d --- /dev/null +++ b/test/testcases/tests/level1/core/characterdataindexsizeerrsubstringoffsetgreater.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdataindexsizeerrsubstringoffsetgreater"> +<metadata> +<title>characterdataIndexSizeErrSubstringOffsetGreater</title> +<creator>NIST</creator> +<description> + The "substringData(offset,count)" method raises an + INDEX_SIZE_ERR DOMException if the specified offset + is greater than the number of characters in the string. + + Retrieve the character data of the last child of the + first employee and invoke its "substringData(offset,count) + method with offset=40 and count=3. It should raise the + desired exception since the offsets value is greater + than the length. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6531BCCF"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-6531BCCF')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="badString" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<assertDOMException id="throw_INDEX_SIZE_ERR"> +<INDEX_SIZE_ERR> +<substringData var="badString" obj="child" offset="40" count="3"/> +</INDEX_SIZE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/characterdatainsertdatabeginning.xml b/test/testcases/tests/level1/core/characterdatainsertdatabeginning.xml new file mode 100644 index 0000000..0e0c7d9 --- /dev/null +++ b/test/testcases/tests/level1/core/characterdatainsertdatabeginning.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdatainsertdatabeginning"> +<metadata> +<title>characterdataInsertDataBeginning</title> +<creator>NIST</creator> +<description> +The "insertData(offset,arg)" method will insert a string +at the specified character offset. Insert the data at +the beginning of the character data. + +Retrieve the character data from the second child of +the first employee. The "insertData(offset,arg)" +method is then called with offset=0 and arg="Mss.". +The method should insert the string "Mss." at position 0. +The new value of the character data should be +"Mss. Margaret Martin". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--insertData--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-3EDB695F"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""name"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<insertData obj="child" offset="0" arg=""Mss. ""/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected=""Mss. Margaret Martin"" id="characterdataInsertDataBeginningAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/characterdatainsertdataend.xml b/test/testcases/tests/level1/core/characterdatainsertdataend.xml new file mode 100644 index 0000000..79cbd71 --- /dev/null +++ b/test/testcases/tests/level1/core/characterdatainsertdataend.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdatainsertdataend"> +<metadata> +<title>characterdataInsertDataEnd</title> +<creator>NIST</creator> +<description> + The "insertData(offset,arg)" method will insert a string + at the specified character offset. Insert the data at + the end of the character data. + + Retrieve the character data from the second child of + the first employee. The "insertData(offset,arg)" + method is then called with offset=15 and arg=", Esquire". + The method should insert the string ", Esquire" at + position 15. The new value of the character data should + be "Margaret Martin, Esquire". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-3EDB695F"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""name"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<insertData obj="child" offset="15" arg="", Esquire""/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected=""Margaret Martin, Esquire"" id="characterdataInsertDataEndAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/characterdatainsertdatamiddle.xml b/test/testcases/tests/level1/core/characterdatainsertdatamiddle.xml new file mode 100644 index 0000000..72b51f8 --- /dev/null +++ b/test/testcases/tests/level1/core/characterdatainsertdatamiddle.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdatainsertdatamiddle"> +<metadata> +<title>characterdataInsertDataMiddle</title> +<creator>NIST</creator> +<description> + The "insertData(offset,arg)" method will insert a string + at the specified character offset. Insert the data in + the middle of the character data. + + Retrieve the character data from the second child of + the first employee. The "insertData(offset,arg)" + method is then called with offset=9 and arg="Ann". + The method should insert the string "Ann" at position 9. + The new value of the character data should be + "Margaret Ann Martin". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-3EDB695F"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""name"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<insertData obj="child" offset="9" arg=""Ann ""/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected=""Margaret Ann Martin"" id="characterdataInsertDataMiddleAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/characterdatainsertdatanomodificationallowederr.xml b/test/testcases/tests/level1/core/characterdatainsertdatanomodificationallowederr.xml new file mode 100644 index 0000000..e60956f --- /dev/null +++ b/test/testcases/tests/level1/core/characterdatainsertdatanomodificationallowederr.xml @@ -0,0 +1,59 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdatainsertdatanomodificationallowederr"> +<metadata> +<title>characterdataInsertDataNoModificationAllowedErr</title> +<creator>NIST</creator> +<description> + The "insertData(offset,arg)" method raises a NO_MODIFICATION_ALLOWED_ERR + DOMException 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 "insertData(offset,arg)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-3EDB695F"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-3EDB695F')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-3EDB695F"/> +</metadata> +<var name="doc" type="Document"/> +<var name="genderList" type="NodeList"/> +<var name="genderNode" type="Node"/> +<var name="entElement" type="Node"/> +<var name="nodeType" type="int"/> +<var name="entElementContent" type="Node"/> +<var name="entReference" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"gender"' var="genderList"/> +<item interface="NodeList" obj="genderList" index="2" var="genderNode"/> +<firstChild var="entReference" obj="genderNode" interface="Node"/> +<assertNotNull actual="entReference" id="entReferenceNotNull"/> +<nodeType var="nodeType" obj="entReference"/> +<if><equals actual="nodeType" expected="1" ignoreCase="false"/> + <createEntityReference var="entReference" obj="doc" name='"ent4"'/> + <assertNotNull actual="entReference" id="createdEntRefNotNull"/> +</if> +<firstChild var="entElement" obj="entReference" interface="Node"/> +<assertNotNull actual="entElement" id="entElementNotNull"/> +<firstChild var="entElementContent" obj="entElement" interface="Node"/> +<assertNotNull actual="entElementContent" id="entElementContentNotNull"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<insertData obj="entElementContent" offset="1" arg='"newArg"'/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/characterdatainsertdatanomodificationallowederrEE.xml b/test/testcases/tests/level1/core/characterdatainsertdatanomodificationallowederrEE.xml new file mode 100644 index 0000000..42bd1bd --- /dev/null +++ b/test/testcases/tests/level1/core/characterdatainsertdatanomodificationallowederrEE.xml @@ -0,0 +1,45 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdatainsertdatanomodificationallowederrEE"> +<metadata> +<title>characterdataInsertDataNoModificationAllowedErrEE</title> +<creator>Curt Arnold</creator> +<description> +Create an ent3 entity reference and call insertData on a text child, should thrown a NO_MODIFICATION_ALLOWED_ERR. +</description> +<date qualifier="created">2001-08-20</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-3EDB695F"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-3EDB695F')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-3EDB695F"/> +<source resource="http://www.w3.org/2001/DOM-Test-Suite/level1/core/characterdatainsertdatanomodificationallowederr.xml"/> +</metadata> +<var name="doc" type="Document"/> +<var name="genderList" type="NodeList"/> +<var name="genderNode" type="Node"/> +<var name="entText" type="CharacterData"/> +<var name="entReference" type="EntityReference"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""gender"" var="genderList"/> +<item interface="NodeList" obj="genderList" index="2" var="genderNode"/> +<createEntityReference var="entReference" obj="doc" name='"ent3"'/> +<assertNotNull actual="entReference" id="createdEntRefNotNull"/> +<firstChild var="entText" obj="entReference" interface="Node"/> +<assertNotNull actual="entText" id="entTextNotNull"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<insertData obj="entText" offset="1" arg=""newArg""/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/characterdatareplacedatabegining.xml b/test/testcases/tests/level1/core/characterdatareplacedatabegining.xml new file mode 100644 index 0000000..3103156 --- /dev/null +++ b/test/testcases/tests/level1/core/characterdatareplacedatabegining.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdatareplacedatabegining"> +<metadata> +<title>characterdataReplaceDataBeginning</title> +<creator>NIST</creator> +<description> +The "replaceData(offset,count,arg)" method replaces the +characters starting at the specified offset with the +specified string. Test for replacement in the +middle of the data. + +Retrieve the character data from the last child of the +first employee. The "replaceData(offset,count,arg)" +method is then called with offset=5 and count=5 and +arg="South". The method should replace characters five +thru 9 of the character data with "South". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--replaceData--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-E5CBA7FB"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<replaceData obj="child" offset="0" count="4" arg=""2500""/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected=""2500 North Ave. Dallas, Texas 98551"" id="characterdataReplaceDataBeginingAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/characterdatareplacedataend.xml b/test/testcases/tests/level1/core/characterdatareplacedataend.xml new file mode 100644 index 0000000..44ebfdf --- /dev/null +++ b/test/testcases/tests/level1/core/characterdatareplacedataend.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdatareplacedataend"> +<metadata> +<title>characterdataReplaceDataEnd</title> +<creator>NIST</creator> +<description> + The "replaceData(offset,count,arg)" method replaces the + characters starting at the specified offset with the + specified string. Test for replacement at the + end of the data. + + Retrieve the character data from the last child of the + first employee. The "replaceData(offset,count,arg)" + method is then called with offset=30 and count=5 and + arg="98665". The method should replace characters 30 + thru 34 of the character data with "98665". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-E5CBA7FB"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<replaceData obj="child" offset="30" count="5" arg=""98665""/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected=""1230 North Ave. Dallas, Texas 98665"" id="characterdataReplaceDataEndAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/characterdatareplacedataexceedslengthofarg.xml b/test/testcases/tests/level1/core/characterdatareplacedataexceedslengthofarg.xml new file mode 100644 index 0000000..6cefbfa --- /dev/null +++ b/test/testcases/tests/level1/core/characterdatareplacedataexceedslengthofarg.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdatareplacedataexceedslengthofarg"> +<metadata> +<title>characterdataReplaceDataExceedsLengthOfArg</title> +<creator>NIST</creator> +<description> + The "replaceData(offset,count,arg)" method replaces the + characters starting at the specified offset with the + specified string. Test the situation where the length + of the arg string is greater than the specified offset. + + Retrieve the character data from the last child of the + first employee. The "replaceData(offset,count,arg)" + method is then called with offset=0 and count=4 and + arg="260030". The method should replace characters one + thru four with "260030". Note that the length of the + specified string is greater that the specified offset. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-E5CBA7FB"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<replaceData obj="child" offset="0" count="4" arg=""260030""/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected=""260030 North Ave. Dallas, Texas 98551"" id="characterdataReplaceDataExceedsLengthOfArgAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/characterdatareplacedataexceedslengthofdata.xml b/test/testcases/tests/level1/core/characterdatareplacedataexceedslengthofdata.xml new file mode 100644 index 0000000..1f99d88 --- /dev/null +++ b/test/testcases/tests/level1/core/characterdatareplacedataexceedslengthofdata.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdatareplacedataexceedslengthofdata"> +<metadata> +<title>characterdataReplaceDataExceedsLengthOfData</title> +<creator>NIST</creator> +<description> + If the sum of the offset and count exceeds the length then + all the characters to the end of the data are replaced. + + Retrieve the character data from the last child of the + first employee. The "replaceData(offset,count,arg)" + method is then called with offset=0 and count=50 and + arg="2600". The method should replace all the characters + with "2600". This is because the sum of the offset and + count exceeds the length of the character data. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-E5CBA7FB"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<replaceData obj="child" offset="0" count="50" arg=""2600""/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected=""2600"" id="characterdataReplaceDataExceedsLengthOfDataAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/characterdatareplacedatamiddle.xml b/test/testcases/tests/level1/core/characterdatareplacedatamiddle.xml new file mode 100644 index 0000000..c595b35 --- /dev/null +++ b/test/testcases/tests/level1/core/characterdatareplacedatamiddle.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdatareplacedatamiddle"> +<metadata> +<title>characterdataReplaceDataMiddle</title> +<creator>NIST</creator> +<description> + The "replaceData(offset,count,arg)" method replaces the + characters starting at the specified offset with the + specified string. Test for replacement in the + middle of the data. + + Retrieve the character data from the last child of the + first employee. The "replaceData(offset,count,arg)" + method is then called with offset=5 and count=5 and + arg="South". The method should replace characters five + thru 9 of the character data with "South". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-E5CBA7FB"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<replaceData obj="child" offset="5" count="5" arg=""South""/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected=""1230 South Ave. Dallas, Texas 98551"" id="characterdataReplaceDataMiddleAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/characterdatareplacedatanomodificationallowederr.xml b/test/testcases/tests/level1/core/characterdatareplacedatanomodificationallowederr.xml new file mode 100644 index 0000000..372a06a --- /dev/null +++ b/test/testcases/tests/level1/core/characterdatareplacedatanomodificationallowederr.xml @@ -0,0 +1,60 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdatareplacedatanomodificationallowederr"> +<metadata> +<title>characterdataReplaceDataNoModificationAllowedErr</title> +<creator>NIST</creator> +<description> + The "replaceData(offset,count,arg)" method raises a NO_MODIFICATION_ALLOWED_ERR + DOMException 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 "replaceData(offset,count,arg)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-E5CBA7FB"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-E5CBA7FB')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-E5CBA7FB"/> +</metadata> +<var name="doc" type="Document"/> +<var name="genderList" type="NodeList"/> +<var name="genderNode" type="Node"/> +<var name="entElement" type="Node"/> +<var name="entElementContent" type="Node"/> +<var name="entReference" type="Node"/> +<var name="nodeType" type="int"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"gender"' var="genderList"/> +<item interface="NodeList" obj="genderList" index="2" var="genderNode"/> +<firstChild interface="Node" var="entReference" obj="genderNode"/> +<assertNotNull actual="entReference" id="entReferenceNotNull"/> +<nodeType var="nodeType" obj="entReference"/> +<if><equals actual="nodeType" expected="1" ignoreCase="false"/> + <createEntityReference var="entReference" obj="doc" name='"ent4"'/> + <assertNotNull actual="entReference" id="createdEntRefNotNull"/> +</if> +<firstChild var="entElement" obj="entReference" interface="Node"/> +<assertNotNull actual="entElement" id="entElementNotNull"/> +<firstChild var="entElementContent" obj="entElement" interface="Node"/> +<assertNotNull actual="entElementContent" id="entElementContentNotNull"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<replaceData obj="entElementContent" offset="1" count="3" arg=""newArg""/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/characterdatareplacedatanomodificationallowederrEE.xml b/test/testcases/tests/level1/core/characterdatareplacedatanomodificationallowederrEE.xml new file mode 100644 index 0000000..0a019b7 --- /dev/null +++ b/test/testcases/tests/level1/core/characterdatareplacedatanomodificationallowederrEE.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdatareplacedatanomodificationallowederrEE"> +<metadata> +<title>characterdataReplaceDataNoModificationAllowedErrEE</title> +<creator>Curt Arnold</creator> +<description> +Create an ent3 entity reference and call replaceData on a text child, should thrown a NO_MODIFICATION_ALLOWED_ERR. +</description> +<date qualifier="created">2001-08-21</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-E5CBA7FB"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-E5CBA7FB')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-E5CBA7FB"/> +<source resource="http://www.w3.org/2001/DOM-Test-Suite/level1/core/characterdatareplacedatanomodificationallowederr.xml"/> +</metadata> +<var name="doc" type="Document"/> +<var name="genderList" type="NodeList"/> +<var name="genderNode" type="Node"/> +<var name="entText" type="CharacterData"/> +<var name="entReference" type="EntityReference"/> +<var name="appendedNode" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""gender"" var="genderList"/> +<item interface="NodeList" obj="genderList" index="2" var="genderNode"/> +<createEntityReference var="entReference" obj="doc" name='"ent3"'/> +<assertNotNull actual="entReference" id="createdEntRefNotNull"/> +<appendChild obj="genderNode" newChild="entReference" var="appendedNode"/> +<firstChild var="entText" obj="entReference" interface="Node"/> +<assertNotNull actual="entText" id="entTextNotNull"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<replaceData obj="entText" offset="1" count="3" arg='"newArg"'/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/characterdatasetdatanomodificationallowederr.xml b/test/testcases/tests/level1/core/characterdatasetdatanomodificationallowederr.xml new file mode 100644 index 0000000..2a9c690 --- /dev/null +++ b/test/testcases/tests/level1/core/characterdatasetdatanomodificationallowederr.xml @@ -0,0 +1,59 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdatasetdatanomodificationallowederr"> +<metadata> +<title>characterdataSetDataNoModificationAllowedErr</title> +<creator>NIST</creator> +<description> + The "setData(data)" method raises a NO_MODIFICATION_ALLOWED_ERR + DOMException 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 "setData(data)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-72AB8359')/setraises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +</metadata> +<var name="doc" type="Document"/> +<var name="genderList" type="NodeList"/> +<var name="genderNode" type="Node"/> +<var name="entElement" type="Node"/> +<var name="entElementContent" type="Node"/> +<var name="entReference" type="Node"/> +<var name="nodeType" type="int"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""gender"" var="genderList"/> +<item interface="NodeList" obj="genderList" index="2" var="genderNode"/> +<firstChild var="entReference" obj="genderNode" interface="Node"/> +<assertNotNull actual="entReference" id="entReferenceNotNull"/> +<nodeType var="nodeType" obj="entReference"/> +<if><equals actual="nodeType" expected="1" ignoreCase="false"/> + <createEntityReference var="entReference" obj="doc" name='"ent4"'/> + <assertNotNull actual="entReference" id="createdEntRefNotNull"/> +</if> +<firstChild var="entElement" obj="entReference" interface="Node"/> +<assertNotNull actual="entElement" id="entElementNotNull"/> +<firstChild var="entElementContent" obj="entElement" interface="Node"/> +<assertNotNull actual="entElementContent" id="entElementContentNotNull"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<data interface="CharacterData" obj="entElementContent" value=""newData""/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/characterdatasetdatanomodificationallowederrEE.xml b/test/testcases/tests/level1/core/characterdatasetdatanomodificationallowederrEE.xml new file mode 100644 index 0000000..4fd993f --- /dev/null +++ b/test/testcases/tests/level1/core/characterdatasetdatanomodificationallowederrEE.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdatasetdatanomodificationallowederrEE"> +<metadata> +<title>characterdataSetDataNoModificationAllowedErrEE</title> +<creator>Curt Arnold</creator> +<description> +Create an ent3 entity reference and call setData on a text child, should thrown a NO_MODIFICATION_ALLOWED_ERR. +</description> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-72AB8359')/setraises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +<source resource="http://www.w3.org/2001/DOM-Test-Suite/level1/core/characterdatasetdatanomodificationallowederr.xml"/> +</metadata> +<var name="doc" type="Document"/> +<var name="genderList" type="NodeList"/> +<var name="genderNode" type="Node"/> +<var name="entText" type="Node"/> +<var name="entReference" type="EntityReference"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""gender"" var="genderList"/> +<item interface="NodeList" obj="genderList" index="4" var="genderNode"/> +<createEntityReference var="entReference" obj="doc" name='"ent3"'/> +<assertNotNull actual="entReference" id="createdEntRefNotNull"/> +<firstChild var="entText" obj="entReference" interface="Node"/> +<assertNotNull actual="entText" id="entTextNotNull"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<data interface="CharacterData" obj="entText" value=""newData""/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/characterdatasetnodevalue.xml b/test/testcases/tests/level1/core/characterdatasetnodevalue.xml new file mode 100644 index 0000000..c03d54c --- /dev/null +++ b/test/testcases/tests/level1/core/characterdatasetnodevalue.xml @@ -0,0 +1,43 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdatasetnodevalue"> +<metadata> +<title>characterdataSetNodeValue</title> +<creator>Curt Arnold</creator> +<description> + The "setNodeValue()" method changes the character data + currently stored in the node. + Retrieve the character data from the second child + of the first employee and invoke the "setNodeValue()" + method, call "getData()" and compare. +</description> +<date qualifier="created">2001-08-23</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<var name="childValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""name"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<nodeValue obj="child" value=""Marilyn Martin""/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected=""Marilyn Martin"" id="data" ignoreCase="false"/> +<nodeValue obj="child" var="childValue"/> +<assertEquals actual="childValue" expected=""Marilyn Martin"" id="value" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/characterdatasubstringexceedsvalue.xml b/test/testcases/tests/level1/core/characterdatasubstringexceedsvalue.xml new file mode 100644 index 0000000..d045e8c --- /dev/null +++ b/test/testcases/tests/level1/core/characterdatasubstringexceedsvalue.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdatasubstringexceedsvalue"> +<metadata> +<title>characterdataSubStringExceedsValue</title> +<creator>NIST</creator> +<description> + If the sum of the "offset" and "count" exceeds the + "length" then the "substringData(offset,count)" method + returns all the characters to the end of the data. + + Retrieve the character data from the second child + of the first employee and access part of the data + by using the substringData(offset,count) method + with offset=9 and count=10. The method should return + the substring "Martin" since offset+count > length + (19 > 15). +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--CharacterData.substringData--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6531BCCF"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="substring" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""name"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<substringData obj="child" var="substring" offset="9" count="10"/> +<assertEquals actual="substring" expected=""Martin"" id="characterdataSubStringExceedsValueAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/characterdatasubstringvalue.xml b/test/testcases/tests/level1/core/characterdatasubstringvalue.xml new file mode 100644 index 0000000..170c186 --- /dev/null +++ b/test/testcases/tests/level1/core/characterdatasubstringvalue.xml @@ -0,0 +1,45 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="characterdatasubstringvalue"> +<metadata> +<title>characterdataSubStringValue</title> +<creator>NIST</creator> +<description> + The "substringData(offset,count)" method returns the + specified string. + + Retrieve the character data from the second child + of the first employee and access part of the data + by using the substringData(offset,count) method. The + method should return the specified substring starting + at position "offset" and extract "count" characters. + The method should return the string "Margaret". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--CharacterData.substringData--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6531BCCF"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="substring" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""name"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<substringData obj="child" var="substring" offset="0" count="8"/> +<assertEquals actual="substring" expected=""Margaret"" id="characterdataSubStringValueAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/commentgetcomment.xml b/test/testcases/tests/level1/core/commentgetcomment.xml new file mode 100644 index 0000000..6e4720d --- /dev/null +++ b/test/testcases/tests/level1/core/commentgetcomment.xml @@ -0,0 +1,56 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="commentgetcomment"> +<metadata> +<title>commentGetComment</title> +<creator>NIST</creator> +<description> + A comment is all the characters between the starting + '<!--' and ending '-->' + Retrieve the nodes of the DOM document. Search for a + comment node and the content is its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!-- Comment interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1334481328"/> +<!--Node.nodeName attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +<!--Node.nodeValue attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<!--Node.nodeType attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-111237558"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="child" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="childValue" type="DOMString"/> +<var name="commentCount" type="int" value="0"/> +<var name="childType" type="int"/> +<load var="doc" href="staff" willBeModified="false"/> +<childNodes obj="doc" var="elementList"/> +<for-each collection="elementList" member="child"> +<nodeType obj="child" var="childType"/> +<if> +<equals actual="childType" expected="8" ignoreCase="false"/> +<nodeName obj="child" var="childName"/> +<assertEquals actual="childName" expected='"#comment"' ignoreCase="false" id="nodeName"/> +<nodeValue obj="child" var="childValue"/> +<assertEquals actual="childValue" expected="" This is comment number 1."" id="nodeValue" ignoreCase="false"/> +<plus var="commentCount" op1="commentCount" op2="1"/> +</if> +</for-each> +<assertEquals actual="commentCount" expected="1" ignoreCase="false" id="commentCount"/> +</test> diff --git a/test/testcases/tests/level1/core/documentcreateattribute.xml b/test/testcases/tests/level1/core/documentcreateattribute.xml new file mode 100644 index 0000000..d34e97a --- /dev/null +++ b/test/testcases/tests/level1/core/documentcreateattribute.xml @@ -0,0 +1,45 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documentcreateattribute"> +<metadata> +<title>documentCreateAttribute</title> +<creator>NIST</creator> +<description> + The "createAttribute(name)" method creates an Attribute + node of the given name. + + Retrieve the entire DOM document and invoke its + "createAttribute(name)" method. It should create a + new Attribute node with the given name. The name, value + and type of the newly created object are retrieved and + output. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1084891198"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newAttrNode" type="Attr"/> +<var name="attrValue" type="DOMString"/> +<var name="attrName" type="DOMString"/> +<var name="attrType" type="int"/> +<load var="doc" href="staff" willBeModified="true"/> +<createAttribute obj="doc" var="newAttrNode" name=""district""/> +<nodeValue obj="newAttrNode" var="attrValue"/> +<assertEquals actual="attrValue" expected="""" ignoreCase="false" id="value"/> +<nodeName obj="newAttrNode" var="attrName"/> +<assertEquals actual="attrName" expected=""district"" ignoreCase="false" id="name"/> +<nodeType obj="newAttrNode" var="attrType"/> +<assertEquals actual="attrType" expected="2" ignoreCase="false" id="type"/> +</test> diff --git a/test/testcases/tests/level1/core/documentcreatecdatasection.xml b/test/testcases/tests/level1/core/documentcreatecdatasection.xml new file mode 100644 index 0000000..a7e287f --- /dev/null +++ b/test/testcases/tests/level1/core/documentcreatecdatasection.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documentcreatecdatasection"> +<metadata> +<title>documentCreateCDATASection</title> +<creator>NIST</creator> +<description> + The "createCDATASection(data)" method creates a new + CDATASection node whose value is the specified string. + Retrieve the entire DOM document and invoke its + "createCDATASection(data)" method. It should create a + new CDATASection node whose "data" is the specified + string. The content, name and type are retrieved and + output. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-D26C0AF8"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newCDATASectionNode" type="CDATASection"/> +<var name="newCDATASectionValue" type="DOMString"/> +<var name="newCDATASectionName" type="DOMString"/> +<var name="newCDATASectionType" type="int"/> +<load var="doc" href="staff" willBeModified="true"/> +<createCDATASection obj="doc" var="newCDATASectionNode" data=""This is a new CDATASection node""/> +<nodeValue obj="newCDATASectionNode" var="newCDATASectionValue"/> +<assertEquals id="nodeValue" actual="newCDATASectionValue" expected=""This is a new CDATASection node"" ignoreCase="false"/> +<nodeName obj="newCDATASectionNode" var="newCDATASectionName"/> +<assertEquals id="nodeName" actual="newCDATASectionName" expected=""#cdata-section"" ignoreCase="false"/> +<nodeType obj="newCDATASectionNode" var="newCDATASectionType"/> +<assertEquals id="nodeType" actual="newCDATASectionType" expected="4" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/documentcreatecomment.xml b/test/testcases/tests/level1/core/documentcreatecomment.xml new file mode 100644 index 0000000..337d311 --- /dev/null +++ b/test/testcases/tests/level1/core/documentcreatecomment.xml @@ -0,0 +1,43 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documentcreatecomment"> +<metadata> +<title>documentCreateComment</title> +<creator>NIST</creator> +<description> + The "createComment(data)" method creates a new Comment + node given the specified string. + Retrieve the entire DOM document and invoke its + "createComment(data)" method. It should create a new + Comment node whose "data" is the specified string. + The content, name and type are retrieved and output. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1334481328"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newCommentNode" type="Comment"/> +<var name="newCommentValue" type="DOMString"/> +<var name="newCommentName" type="DOMString"/> +<var name="newCommentType" type="int"/> +<load var="doc" href="staff" willBeModified="true"/> +<createComment obj="doc" var="newCommentNode" data=""This is a new Comment node""/> +<nodeValue obj="newCommentNode" var="newCommentValue"/> +<assertEquals actual="newCommentValue" expected=""This is a new Comment node"" ignoreCase="false" id="value"/> +<nodeName obj="newCommentNode" var="newCommentName"/> +<assertEquals actual="newCommentName" expected=""#comment"" ignoreCase="false" id="name"/> +<nodeType obj="newCommentNode" var="newCommentType"/> +<assertEquals actual="newCommentType" expected="8" ignoreCase="false" id="type"/> +</test> diff --git a/test/testcases/tests/level1/core/documentcreatedocumentfragment.xml b/test/testcases/tests/level1/core/documentcreatedocumentfragment.xml new file mode 100644 index 0000000..8a8ee4a --- /dev/null +++ b/test/testcases/tests/level1/core/documentcreatedocumentfragment.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documentcreatedocumentfragment"> +<metadata> +<title>documentCreateDocumentFragment</title> +<creator>NIST</creator> +<description> + The "createDocumentFragment()" method creates an empty + DocumentFragment object. + Retrieve the entire DOM document and invoke its + "createDocumentFragment()" method. The content, name, + type and value of the newly created object are output. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-35CB04B5"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newDocFragment" type="DocumentFragment"/> +<var name="children" type="NodeList"/> +<var name="length" type="int"/> +<var name="newDocFragmentName" type="DOMString"/> +<var name="newDocFragmentType" type="int"/> +<var name="newDocFragmentValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<createDocumentFragment obj="doc" var="newDocFragment"/> +<childNodes obj="newDocFragment" var="children"/> +<length interface="NodeList" obj="children" var="length"/> +<assertEquals actual="length" expected="0" ignoreCase="false" id="length"/> +<nodeName obj="newDocFragment" var="newDocFragmentName"/> +<assertEquals actual="newDocFragmentName" expected=""#document-fragment"" ignoreCase="false" id="name"/> +<nodeType obj="newDocFragment" var="newDocFragmentType"/> +<assertEquals actual="newDocFragmentType" expected="11" ignoreCase="false" id="type"/> +<nodeValue obj="newDocFragment" var="newDocFragmentValue"/> +<assertNull actual="newDocFragmentValue" id="value"/> +</test> diff --git a/test/testcases/tests/level1/core/documentcreateelement.xml b/test/testcases/tests/level1/core/documentcreateelement.xml new file mode 100644 index 0000000..9139ad2 --- /dev/null +++ b/test/testcases/tests/level1/core/documentcreateelement.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documentcreateelement"> +<metadata> +<title>documentCreateElement</title> +<creator>NIST</creator> +<description> + The "createElement(tagName)" method creates an Element + of the type specified. + Retrieve the entire DOM document and invoke its + "createElement(tagName)" method with tagName="address". + The method should create an instance of an Element node + whose tagName is "address". The NodeName, NodeType + and NodeValue are returned. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-2141741547"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newElement" type="Element"/> +<var name="newElementName" type="DOMString"/> +<var name="newElementType" type="int"/> +<var name="newElementValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<createElement obj="doc" var="newElement" tagName=""address""/> +<nodeName obj="newElement" var="newElementName"/> +<assertEquals actual="newElementName" expected=""address"" ignoreCase="false" id="name"/> +<nodeType obj="newElement" var="newElementType"/> +<assertEquals actual="newElementType" expected="1" ignoreCase="false" id="type"/> +<nodeValue obj="newElement" var="newElementValue"/> +<assertNull actual="newElementValue" id="valueInitiallyNull"/> +</test> diff --git a/test/testcases/tests/level1/core/documentcreateelementcasesensitive.xml b/test/testcases/tests/level1/core/documentcreateelementcasesensitive.xml new file mode 100644 index 0000000..b87e4e9 --- /dev/null +++ b/test/testcases/tests/level1/core/documentcreateelementcasesensitive.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documentcreateelementcasesensitive"> +<metadata> +<title>documentCreateElementCaseSensitive</title> +<creator>NIST</creator> +<description> + The tagName parameter in the "createElement(tagName)" + method is case-sensitive for XML documents. + Retrieve the entire DOM document and invoke its + "createElement(tagName)" method twice. Once for tagName + equal to "address" and once for tagName equal to "ADDRESS" + Each call should create a distinct Element node. The + newly created Elements are then assigned attributes + that are retrieved. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-2141741547"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newElement1" type="Element"/> +<var name="newElement2" type="Element"/> +<var name="attribute1" type="DOMString"/> +<var name="attribute2" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<createElement obj="doc" var="newElement1" tagName=""ADDRESS""/> +<createElement obj="doc" var="newElement2" tagName=""address""/> +<setAttribute obj="newElement1" name=""district"" value=""Fort Worth""/> +<setAttribute obj="newElement2" name=""county"" value=""Dallas""/> +<getAttribute obj="newElement1" var="attribute1" name=""district""/> +<getAttribute obj="newElement2" var="attribute2" name=""county""/> +<assertEquals actual="attribute1" expected='"Fort Worth"' ignoreCase="false" id="attrib1"/> +<assertEquals actual="attribute2" expected='"Dallas"' ignoreCase="false" id="attrib2"/> +</test> diff --git a/test/testcases/tests/level1/core/documentcreateelementdefaultattr.xml b/test/testcases/tests/level1/core/documentcreateelementdefaultattr.xml new file mode 100644 index 0000000..e7bdcb0 --- /dev/null +++ b/test/testcases/tests/level1/core/documentcreateelementdefaultattr.xml @@ -0,0 +1,53 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documentcreateelementdefaultattr"> +<metadata> +<title>documentCreateElementDefaultAttr</title> +<creator>NIST</creator> +<description> + The "createElement(tagName)" method creates an Element + of the type specified. In addition, if there are known attributes + with default values, Attr nodes representing them are automatically + created and attached to the element. + Retrieve the entire DOM document and invoke its + "createElement(tagName)" method with tagName="address". + The method should create an instance of an Element node + whose tagName is "address". The tagName "address" has an + attribute with default values, therefore the newly created element + will have them. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-2141741547"/> +<!-- DOM WG opinion on default attributes --> +<subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2002Mar/0002.html"/> +</metadata> +<implementationAttribute name="validating" value="true"/> +<var name="doc" type="Document"/> +<var name="newElement" type="Element"/> +<var name="defaultAttr" type="NamedNodeMap"/> +<var name="child" type="Node"/> +<var name="name" type="DOMString"/> +<var name="value" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<createElement obj="doc" var="newElement" tagName=""address""/> +<attributes obj="newElement" var="defaultAttr"/> +<item obj="defaultAttr" var="child" index="0" interface="NamedNodeMap"/> +<assertNotNull actual="child" id="defaultAttrNotNull"/> +<nodeName obj="child" var="name"/> +<assertEquals actual="name" expected=""street"" id="attrName" ignoreCase="false"/> +<nodeValue obj="child" var="value"/> +<assertEquals actual="value" expected=""Yes"" id="attrValue" ignoreCase="false"/> +<assertSize collection="defaultAttr" size="1" id="attrCount"/> +</test> diff --git a/test/testcases/tests/level1/core/documentcreateentityreference.xml b/test/testcases/tests/level1/core/documentcreateentityreference.xml new file mode 100644 index 0000000..2281f07 --- /dev/null +++ b/test/testcases/tests/level1/core/documentcreateentityreference.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documentcreateentityreference"> +<metadata> +<title>documentCreateEntityReference</title> +<creator>NIST</creator> +<description> + The "createEntityReference(name)" method creates an + EntityReferrence node. + + Retrieve the entire DOM document and invoke its + "createEntityReference(name)" method. It should create + a new EntityReference node for the Entity with the + given name. The name, value and type are retrieved and + output. +</description> +<contributor>Mary Brady</contributor> +<contributor>Curt Arnold</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-392B75AE"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newEntRefNode" type="EntityReference"/> +<var name="entRefValue" type="DOMString"/> +<var name="entRefName" type="DOMString"/> +<var name="entRefType" type="int"/> +<load var="doc" href="staff" willBeModified="true"/> +<createEntityReference obj="doc" var="newEntRefNode" name=""ent1""/> +<assertNotNull actual="newEntRefNode" id="createdEntRefNotNull"/> +<nodeValue obj="newEntRefNode" var="entRefValue"/> +<assertNull actual="entRefValue" id="value"/> +<nodeName obj="newEntRefNode" var="entRefName"/> +<assertEquals actual="entRefName" expected=""ent1"" ignoreCase="false" id="name"/> +<nodeType obj="newEntRefNode" var="entRefType"/> +<assertEquals actual="entRefType" expected="5" ignoreCase="false" id="type"/> +</test> diff --git a/test/testcases/tests/level1/core/documentcreateentityreferenceknown.xml b/test/testcases/tests/level1/core/documentcreateentityreferenceknown.xml new file mode 100644 index 0000000..96af668 --- /dev/null +++ b/test/testcases/tests/level1/core/documentcreateentityreferenceknown.xml @@ -0,0 +1,51 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documentcreateentityreferenceknown"> +<metadata> +<title>documentCreateEntityReferenceKnown</title> +<creator>NIST</creator> +<description> + The "createEntityReference(name)" method creates an + EntityReference node. In addition, if the referenced entity + is known, the child list of the "EntityReference" node + is the same as the corresponding "Entity" node. + + Retrieve the entire DOM document and invoke its + "createEntityReference(name)" method. It should create + a new EntityReference node for the Entity with the + given name. The referenced entity is known, therefore the child + list of the "EntityReference" node is the same as the corresponding + "Entity" node. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-392B75AE"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newEntRefNode" type="EntityReference"/> +<var name="newEntRefList" type="NodeList"/> +<var name="child" type="Node"/> +<var name="name" type="DOMString"/> +<var name="value" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<createEntityReference obj="doc" var="newEntRefNode" name=""ent3""/> +<assertNotNull actual="newEntRefNode" id="createdEntRefNotNull"/> +<childNodes obj="newEntRefNode" var="newEntRefList"/> +<assertSize collection="newEntRefList" size="1" id="size"/> +<firstChild interface="Node" obj="newEntRefNode" var="child"/> +<nodeName obj="child" var="name"/> +<assertEquals actual="name" expected=""#text"" ignoreCase="false" id="name"/> +<nodeValue obj="child" var="value"/> +<assertEquals actual="value" expected=""Texas"" ignoreCase="false" id="value"/> +</test> diff --git a/test/testcases/tests/level1/core/documentcreateprocessinginstruction.xml b/test/testcases/tests/level1/core/documentcreateprocessinginstruction.xml new file mode 100644 index 0000000..a4d1d88 --- /dev/null +++ b/test/testcases/tests/level1/core/documentcreateprocessinginstruction.xml @@ -0,0 +1,51 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documentcreateprocessinginstruction"> +<metadata> +<title>documentCreateProcessingInstruction</title> +<creator>NIST</creator> +<description> + The "createProcessingInstruction(target,data)" method + creates a new ProcessingInstruction node with the + specified name and data string. + + Retrieve the entire DOM document and invoke its + "createProcessingInstruction(target,data)" method. + It should create a new PI node with the specified target + and data. The target, data and type are retrieved and + output. +</description> +<contributor>Mary Brady</contributor> +<contributor>Curt Arnold</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#"/> +<subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2001Apr/0020.html"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-135944439"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newPINode" type="ProcessingInstruction"/> +<var name="piValue" type="DOMString"/> +<var name="piName" type="DOMString"/> +<var name="piType" type="int"/> +<load var="doc" href="staff" willBeModified="true"/> +<createProcessingInstruction obj="doc" var="newPINode" target=""TESTPI"" data=""This is a new PI node""/> +<assertNotNull actual="newPINode" id="createdPINotNull"/> +<nodeName obj="newPINode" var="piName"/> +<assertEquals actual="piName" expected=""TESTPI"" ignoreCase="false" id="name"/> +<nodeValue obj="newPINode" var="piValue"/> +<assertEquals actual="piValue" expected=""This is a new PI node"" ignoreCase="false" id="value"/> +<nodeType obj="newPINode" var="piType"/> +<assertEquals actual="piType" expected="7" ignoreCase="false" id="type"/> +</test> diff --git a/test/testcases/tests/level1/core/documentcreatetextnode.xml b/test/testcases/tests/level1/core/documentcreatetextnode.xml new file mode 100644 index 0000000..b583e12 --- /dev/null +++ b/test/testcases/tests/level1/core/documentcreatetextnode.xml @@ -0,0 +1,43 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documentcreatetextnode"> +<metadata> +<title>documentCreateTextNode</title> +<creator>NIST</creator> +<description> + The "createTextNode(data)" method creates a Text node + given the specfied string. + Retrieve the entire DOM document and invoke its + "createTextNode(data)" method. It should create a + new Text node whose "data" is the specified string. + The NodeName and NodeType are also checked. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1975348127"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newTextNode" type="Text"/> +<var name="newTextName" type="DOMString"/> +<var name="newTextValue" type="DOMString"/> +<var name="newTextType" type="int"/> +<load var="doc" href="staff" willBeModified="true"/> +<createTextNode obj="doc" var="newTextNode" data=""This is a new Text node""/> +<nodeValue obj="newTextNode" var="newTextValue"/> +<assertEquals actual="newTextValue" expected=""This is a new Text node"" ignoreCase="false" id="value"/> +<nodeName obj="newTextNode" var="newTextName"/> +<assertEquals actual="newTextName" expected=""#text"" ignoreCase="false" id="name"/> +<nodeType obj="newTextNode" var="newTextType"/> +<assertEquals actual="newTextType" expected="3" ignoreCase="false" id="type"/> +</test> diff --git a/test/testcases/tests/level1/core/documentgetdoctype.xml b/test/testcases/tests/level1/core/documentgetdoctype.xml new file mode 100644 index 0000000..655d6f1 --- /dev/null +++ b/test/testcases/tests/level1/core/documentgetdoctype.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documentgetdoctype"> +<metadata> +<title>documentGetDocType</title> +<creator>NIST</creator> +<description> + The "getDoctype()" method returns the Document + Type Declaration associated with this document. + Retrieve the entire DOM document and invoke its + "getDoctype()" method. The name of the document + type should be returned. The "getName()" method + should be equal to "staff" or "svg". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-B63ED1A31"/> +<!-- Node.nodeValue --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<var name="docTypeName" type="DOMString"/> +<var name="nodeValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<doctype obj="doc" var="docType"/> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<name interface="DocumentType" obj="docType" var="docTypeName"/> +<if><contentType type="image/svg+xml"/> + <assertEquals actual="docTypeName" expected='"svg"' id="doctypeNameSVG" ignoreCase="false"/> + <else> + <assertEquals actual="docTypeName" expected='"staff"' id="doctypeName" ignoreCase="false"/> + </else> +</if> +<nodeValue obj="docType" var="nodeValue"/> +<assertNull actual="nodeValue" id="initiallyNull"/> +</test> diff --git a/test/testcases/tests/level1/core/documentgetdoctypenodtd.xml b/test/testcases/tests/level1/core/documentgetdoctypenodtd.xml new file mode 100644 index 0000000..6d1fde4 --- /dev/null +++ b/test/testcases/tests/level1/core/documentgetdoctypenodtd.xml @@ -0,0 +1,34 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documentgetdoctypenodtd"> +<metadata> +<title>documentGetDocTypeNoDTD</title> +<creator>NIST</creator> +<description> + The "getDoctype()" method returns null for XML documents + without a document type declaration. + Retrieve the XML document without a DTD and invoke the + "getDoctype()" method. It should return null. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-B63ED1A31"/> +</metadata> +<implementationAttribute name="validating" value="false"/> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<load var="doc" href="hc_nodtdstaff" willBeModified="false"/> +<doctype obj="doc" var="docType"/> +<assertNull actual="docType" id="documentGetDocTypeNoDTDAssert"/> +</test> diff --git a/test/testcases/tests/level1/core/documentgetelementsbytagnamelength.xml b/test/testcases/tests/level1/core/documentgetelementsbytagnamelength.xml new file mode 100644 index 0000000..fdfd7de --- /dev/null +++ b/test/testcases/tests/level1/core/documentgetelementsbytagnamelength.xml @@ -0,0 +1,36 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documentgetelementsbytagnamelength"> +<metadata> +<title>documentGetElementsByTagNameLength</title> +<creator>NIST</creator> +<description> + The "getElementsByTagName(tagName)" method returns a + NodeList of all the Elements with a given tagName. + + Retrieve the entire DOM document and invoke its + "getElementsByTagName(tagName)" method with tagName + equal to "name". The method should return a NodeList + that contains 5 elements. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-A6C9094"/> +</metadata> +<var name="doc" type="Document"/> +<var name="nameList" type="NodeList"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nameList" tagname=""name""/> +<assertSize collection="nameList" size="5" id="documentGetElementsByTagNameLengthAssert"/> +</test> diff --git a/test/testcases/tests/level1/core/documentgetelementsbytagnametotallength.xml b/test/testcases/tests/level1/core/documentgetelementsbytagnametotallength.xml new file mode 100644 index 0000000..593ce22 --- /dev/null +++ b/test/testcases/tests/level1/core/documentgetelementsbytagnametotallength.xml @@ -0,0 +1,36 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documentgetelementsbytagnametotallength"> +<metadata> +<title>documentGetElementsByTagNameTotalLength</title> +<creator>NIST</creator> +<description> + Retrieve the entire DOM document, invoke + getElementsByTagName("*") and check the length of the NodeList. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-A6C9094"/> +</metadata> +<var name="doc" type="Document"/> +<var name="nameList" type="NodeList"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nameList" tagname='"*"'/> +<if><contentType type="image/svg+xml"/> + <assertSize collection="nameList" size="39" id="elementCountSVG"/> +<else> + <assertSize collection="nameList" size="37" id="documentGetElementsByTagNameTotalLengthAssert"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/documentgetelementsbytagnamevalue.xml b/test/testcases/tests/level1/core/documentgetelementsbytagnamevalue.xml new file mode 100644 index 0000000..ca1086c --- /dev/null +++ b/test/testcases/tests/level1/core/documentgetelementsbytagnamevalue.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documentgetelementsbytagnamevalue"> +<metadata> +<title>documentGetElementsByTagNameValue</title> +<creator>NIST</creator> +<description> + The "getElementsByTagName(tagName)" method returns a + NodeList of all the Elements with a given tagName + in a pre-order traversal of the tree. + + Retrieve the entire DOM document and invoke its + "getElementsByTagName(tagName)" method with tagName + equal to "name". The method should return a NodeList + that contains 5 elements. The FOURTH item in the + list is retrieved and output. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-A6C9094"/> +</metadata> +<var name="doc" type="Document"/> +<var name="nameList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="firstChild" type="Node"/> +<var name="childValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nameList" tagname=""name""/> +<item interface="NodeList" obj="nameList" var="nameNode" index="3"/> +<firstChild interface="Node" obj="nameNode" var="firstChild"/> +<nodeValue obj="firstChild" var="childValue"/> +<assertEquals actual="childValue" expected=""Jeny Oconnor"" id="documentGetElementsByTagNameValueAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/documentgetimplementation.xml b/test/testcases/tests/level1/core/documentgetimplementation.xml new file mode 100644 index 0000000..0797926 --- /dev/null +++ b/test/testcases/tests/level1/core/documentgetimplementation.xml @@ -0,0 +1,37 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documentgetimplementation"> +<metadata> +<title>documentGetImplementation</title> +<creator>NIST</creator> +<description> + The "getImplementation()" method returns the + DOMImplementation object that handles this document. + Retrieve the entire DOM document and invoke its + "getImplementation()" method. It should return a + DOMImplementation whose "hasFeature("XML","1.0") + method returns the boolean value "true". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1B793EBA"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docImpl" type="DOMImplementation"/> +<var name="state" type="boolean"/> +<load var="doc" href="staff" willBeModified="false"/> +<implementation obj="doc" var="docImpl"/> +<hasFeature obj="docImpl" var="state" feature=""XML"" version=""1.0""/> +<assertTrue actual="state" id="documentGetImplementationAssert"/> +</test> diff --git a/test/testcases/tests/level1/core/documentgetrootnode.xml b/test/testcases/tests/level1/core/documentgetrootnode.xml new file mode 100644 index 0000000..959e2ba --- /dev/null +++ b/test/testcases/tests/level1/core/documentgetrootnode.xml @@ -0,0 +1,43 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documentgetrootnode"> +<metadata> +<title>documentGetRootNode</title> +<creator>NIST</creator> +<description> + The "getDocumentElement()" method provides direct access + to the child node that is the root element of the document. + Retrieve the entire DOM document and invoke its + "getDocumentElement()" method. It should return an + Element node whose NodeName is "staff" (or "svg"). +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--documentElement attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-87CD092"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=251"/> +</metadata> +<var name="doc" type="Document"/> +<var name="root" type="Element"/> +<var name="rootName" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<documentElement obj="doc" var="root"/> +<nodeName obj="root" var="rootName"/> +<if><contentType type="image/svg+xml"/> +<assertEquals actual="rootName" expected='"svg"' id="svgRootNode" ignoreCase="false"/> +<else> +<assertEquals actual="rootName" expected='"staff"' id="documentGetRootNodeAssert" ignoreCase="false"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/documentinvalidcharacterexceptioncreateattribute.xml b/test/testcases/tests/level1/core/documentinvalidcharacterexceptioncreateattribute.xml new file mode 100644 index 0000000..98b66e4 --- /dev/null +++ b/test/testcases/tests/level1/core/documentinvalidcharacterexceptioncreateattribute.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documentinvalidcharacterexceptioncreateattribute"> +<metadata> +<title>documentInvalidCharacterExceptionCreateAttribute</title> +<creator>NIST</creator> +<description> + The "createAttribute(tagName)" method raises an + INVALID_CHARACTER_ERR DOMException if the specified + tagName contains an invalid character. + + Retrieve the entire DOM document and invoke its + "createAttribute(tagName)" method with the tagName equal + to the string "invalid^Name". Due to the invalid + character the desired EXCEPTION should be raised. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INVALID_CHARACTER_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1084891198"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-1084891198')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INVALID_CHARACTER_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1084891198"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="createdAttr" type="Attr"/> +<load var="doc" href="staff" willBeModified="true"/> +<assertDOMException id="throw_INVALID_CHARACTER_ERR"> +<INVALID_CHARACTER_ERR> +<createAttribute var="createdAttr" obj="doc" name=""invalid^Name""/> +</INVALID_CHARACTER_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/documentinvalidcharacterexceptioncreateelement.xml b/test/testcases/tests/level1/core/documentinvalidcharacterexceptioncreateelement.xml new file mode 100644 index 0000000..bb3495a --- /dev/null +++ b/test/testcases/tests/level1/core/documentinvalidcharacterexceptioncreateelement.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documentinvalidcharacterexceptioncreateelement"> +<metadata> +<title>documentInvalidCharacterExceptionCreateElement</title> +<creator>NIST</creator> +<description> + The "createElement(tagName)" method raises an + INVALID_CHARACTER_ERR DOMException if the specified + tagName contains an invalid character. + + Retrieve the entire DOM document and invoke its + "createElement(tagName)" method with the tagName equal + to the string "invalid^Name". Due to the invalid + character the desired EXCEPTION should be raised. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INVALID_CHARACTER_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-2141741547"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-2141741547')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INVALID_CHARACTER_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-2141741547"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="badElement" type="Element"/> +<load var="doc" href="staff" willBeModified="true"/> +<assertDOMException id="throw_INVALID_CHARACTER_ERR"> +<INVALID_CHARACTER_ERR> +<createElement var="badElement" obj="doc" tagName=""invalid^Name""/> +</INVALID_CHARACTER_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/documentinvalidcharacterexceptioncreateentref.xml b/test/testcases/tests/level1/core/documentinvalidcharacterexceptioncreateentref.xml new file mode 100644 index 0000000..7ed093d --- /dev/null +++ b/test/testcases/tests/level1/core/documentinvalidcharacterexceptioncreateentref.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documentinvalidcharacterexceptioncreateentref"> +<metadata> +<title>documentInvalidCharacterExceptionCreateEntRef</title> +<creator>NIST</creator> +<description> + The "createEntityReference(tagName)" method raises an + INVALID_CHARACTER_ERR DOMException if the specified + tagName contains an invalid character. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INVALID_CHARACTER_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-392B75AE"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-392B75AE')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INVALID_CHARACTER_ERR'])"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<hasFeature feature='"XML"'/> +<var name="doc" type="Document"/> +<var name="badEntityRef" type="EntityReference"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<if><contentType type="text/html"/> +<assertDOMException id="throw_NOT_SUPPORTED_ERR"> +<NOT_SUPPORTED_ERR> +<createEntityReference var="badEntityRef" obj="doc" name='"foo"'/> +</NOT_SUPPORTED_ERR> +</assertDOMException> +<else> +<assertDOMException id="throw_INVALID_CHARACTER_ERR"> +<INVALID_CHARACTER_ERR> +<createEntityReference var="badEntityRef" obj="doc" name=""invalid^Name""/> +</INVALID_CHARACTER_ERR> +</assertDOMException> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/documentinvalidcharacterexceptioncreateentref1.xml b/test/testcases/tests/level1/core/documentinvalidcharacterexceptioncreateentref1.xml new file mode 100644 index 0000000..3ad9a20 --- /dev/null +++ b/test/testcases/tests/level1/core/documentinvalidcharacterexceptioncreateentref1.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documentinvalidcharacterexceptioncreateentref1"> +<metadata> +<title>documentinvalidcharacterexceptioncreateentref1</title> +<creator>Curt Arnold</creator> +<description> +Creating an entity reference with an empty name should cause an INVALID_CHARACTER_ERR. +</description> +<date qualifier="created">2004-03-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INVALID_CHARACTER_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-392B75AE"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-392B75AE')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INVALID_CHARACTER_ERR'])"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=525"/> +</metadata> +<hasFeature feature='"XML"'/> +<var name="doc" type="Document"/> +<var name="badEntityRef" type="EntityReference"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<if><contentType type="text/html"/> +<assertDOMException id="throw_NOT_SUPPORTED_ERR"> +<NOT_SUPPORTED_ERR> +<createEntityReference var="badEntityRef" obj="doc" name='"foo"'/> +</NOT_SUPPORTED_ERR> +</assertDOMException> +<else> +<assertDOMException id="throw_INVALID_CHARACTER_ERR"> +<INVALID_CHARACTER_ERR> +<createEntityReference var="badEntityRef" obj="doc" name='""'/> +</INVALID_CHARACTER_ERR> +</assertDOMException> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/documentinvalidcharacterexceptioncreatepi.xml b/test/testcases/tests/level1/core/documentinvalidcharacterexceptioncreatepi.xml new file mode 100644 index 0000000..970fd91 --- /dev/null +++ b/test/testcases/tests/level1/core/documentinvalidcharacterexceptioncreatepi.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documentinvalidcharacterexceptioncreatepi"> +<metadata> +<title>documentInvalidCharacterExceptionCreatePI</title> +<creator>NIST</creator> +<description> + The "createProcessingInstruction(target,data) method + raises an INVALID_CHARACTER_ERR DOMException if the + specified tagName contains an invalid character. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INVALID_CHARACTER_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-135944439"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-135944439')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INVALID_CHARACTER_ERR'])"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<hasFeature feature='"XML"'/> +<var name="doc" type="Document"/> +<var name="badPI" type="ProcessingInstruction"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<if><contentType type="text/html"/> +<assertDOMException id="throw_NOT_SUPPORTED_ERR"> +<NOT_SUPPORTED_ERR> +<createProcessingInstruction var="badPI" obj="doc" target='"foo"' data='"data"'/> +</NOT_SUPPORTED_ERR> +</assertDOMException> +<else> +<assertDOMException id="throw_INVALID_CHARACTER_ERR"> +<INVALID_CHARACTER_ERR> +<createProcessingInstruction var="badPI" obj="doc" target=""invalid^Name"" data=""data""/> +</INVALID_CHARACTER_ERR> +</assertDOMException> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/documentinvalidcharacterexceptioncreatepi1.xml b/test/testcases/tests/level1/core/documentinvalidcharacterexceptioncreatepi1.xml new file mode 100644 index 0000000..48bc577 --- /dev/null +++ b/test/testcases/tests/level1/core/documentinvalidcharacterexceptioncreatepi1.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documentinvalidcharacterexceptioncreatepi1"> +<metadata> +<title>documentinvalidcharacterexceptioncreatepi1</title> +<creator>Curt Arnold</creator> +<description> +Creating a processing instruction with an empty target should cause an INVALID_CHARACTER_ERR. +</description> +<date qualifier="created">2004-03-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INVALID_CHARACTER_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-135944439"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-135944439')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INVALID_CHARACTER_ERR'])"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=525"/> +</metadata> +<hasFeature feature='"XML"'/> +<var name="doc" type="Document"/> +<var name="badPI" type="ProcessingInstruction"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<if><contentType type="text/html"/> +<assertDOMException id="throw_NOT_SUPPORTED_ERR"> +<NOT_SUPPORTED_ERR> +<createProcessingInstruction var="badPI" obj="doc" target='"foo"' data='"data"'/> +</NOT_SUPPORTED_ERR> +</assertDOMException> +<else> +<assertDOMException id="throw_INVALID_CHARACTER_ERR"> +<INVALID_CHARACTER_ERR> +<createProcessingInstruction var="badPI" obj="doc" target='""' data=""data""/> +</INVALID_CHARACTER_ERR> +</assertDOMException> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/documenttypegetdoctype.xml b/test/testcases/tests/level1/core/documenttypegetdoctype.xml new file mode 100644 index 0000000..95a3049 --- /dev/null +++ b/test/testcases/tests/level1/core/documenttypegetdoctype.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documenttypegetdoctype"> +<metadata> +<title>documenttypeGetDocType</title> +<creator>NIST</creator> +<description> + The "getName()" method contains the name of the DTD. + + Retrieve the Document Type for this document and examine + the string returned by the "getName()" method. + It should be set to "staff". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-B63ED1A31"/> +<!--name attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1844763134"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<var name="name" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<doctype obj="doc" var="docType"/> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<name interface="DocumentType" obj="docType" var="name"/> +<if><contentType type="image/svg+xml"/> +<assertEquals actual="name" expected='"svg"' id="doctypeName" ignoreCase="false"/> +<else> +<assertEquals actual="name" expected='"staff"' id="documenttypeGetDocTypeAssert" ignoreCase="false"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/documenttypegetentities.xml b/test/testcases/tests/level1/core/documenttypegetentities.xml new file mode 100644 index 0000000..ccc860e --- /dev/null +++ b/test/testcases/tests/level1/core/documenttypegetentities.xml @@ -0,0 +1,68 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documenttypegetentities"> +<metadata> +<title>documenttypeGetEntities</title> +<creator>NIST</creator> +<description> + The "getEntities()" method is a NamedNodeMap that contains + the general entities for this document. + + Retrieve the Document Type for this document and create + a NamedNodeMap of all its entities. The entire map is + traversed and the names of the entities are retrieved. + There should be 5 entities. Duplicates should be ignored. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1788794630"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<var name="entityList" type="NamedNodeMap"/> +<var name="name" type="DOMString"/> +<var name="expectedResult" type="Collection"> +<member>"ent1"</member> +<member>"ent2"</member> +<member>"ent3"</member> +<member>"ent4"</member> +<member>"ent5"</member> +</var> +<var name="expectedResultSVG" type="Collection"> +<member>"ent1"</member> +<member>"ent2"</member> +<member>"ent3"</member> +<member>"ent4"</member> +<member>"ent5"</member> +<member>"svgunit"</member> +<member>"svgtest"</member> +</var> +<var name="nameList" type="Collection"/> +<var name="entity" type="Node"/> +<load var="doc" href="staff" willBeModified="false"/> +<doctype obj="doc" var="docType"/> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<entities obj="docType" var="entityList"/> +<assertNotNull actual="entityList" id="entitiesNotNull"/> +<for-each collection="entityList" member="entity"> + <nodeName obj="entity" var="name"/> + <append collection="nameList" item="name"/> +</for-each> +<if><contentType type="image/svg+xml"/> + <assertEquals actual="nameList" expected="expectedResultSVG" id="entityNamesSVG" ignoreCase="false"/> + <else> + <assertEquals actual="nameList" expected="expectedResult" id="entityNames" ignoreCase="false"/> + </else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/documenttypegetentitieslength.xml b/test/testcases/tests/level1/core/documenttypegetentitieslength.xml new file mode 100644 index 0000000..04561fa --- /dev/null +++ b/test/testcases/tests/level1/core/documenttypegetentitieslength.xml @@ -0,0 +1,43 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documenttypegetentitieslength"> +<metadata> +<title>documenttypeGetEntitiesLength</title> +<creator>NIST</creator> +<description> + Duplicate entities are to be discarded. + Retrieve the Document Type for this document and create + a NamedNodeMap of all its entities. The entity named + "ent1" is defined twice and therefore that last + occurrance should be discarded. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1788794630"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<var name="entityList" type="NamedNodeMap"/> +<load var="doc" href="staff" willBeModified="false"/> +<doctype obj="doc" var="docType"/> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<entities obj="docType" var="entityList"/> +<assertNotNull actual="entityList" id="entitiesNotNull"/> +<if><contentType type="image/svg+xml"/> + <assertSize collection="entityList" size="7" id="entitySizeSVG"/> + <else> + <assertSize collection="entityList" size="5" id="entitySize"/> + </else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/documenttypegetentitiestype.xml b/test/testcases/tests/level1/core/documenttypegetentitiestype.xml new file mode 100644 index 0000000..62cbc27 --- /dev/null +++ b/test/testcases/tests/level1/core/documenttypegetentitiestype.xml @@ -0,0 +1,45 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documenttypegetentitiestype"> +<metadata> +<title>documenttypeGetEntitiesType</title> +<creator>NIST</creator> +<description> + Every node in the map returned by the "getEntities()" + method implements the Entity interface. + + Retrieve the Document Type for this document and create + a NamedNodeMap of all its entities. Traverse the + entire list and examine the NodeType of each node + in the list. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1788794630"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<var name="entityList" type="NamedNodeMap"/> +<var name="entity" type="Node"/> +<var name="entityType" type="int"/> +<load var="doc" href="staff" willBeModified="false"/> +<doctype obj="doc" var="docType"/> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<entities obj="docType" var="entityList"/> +<assertNotNull actual="entityList" id="entitiesNotNull"/> +<for-each collection="entityList" member="entity"> +<nodeType obj="entity" var="entityType"/> +<assertEquals actual="entityType" expected="6" id="documenttypeGetEntitiesTypeAssert" ignoreCase="false"/> +</for-each> +</test> diff --git a/test/testcases/tests/level1/core/documenttypegetnotations.xml b/test/testcases/tests/level1/core/documenttypegetnotations.xml new file mode 100644 index 0000000..927b8b4 --- /dev/null +++ b/test/testcases/tests/level1/core/documenttypegetnotations.xml @@ -0,0 +1,51 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documenttypegetnotations"> +<metadata> +<title>documenttypeGetNotations</title> +<creator>NIST</creator> +<description> + The "getNotations()" method creates a NamedNodeMap that + contains all the notations declared in the DTD. + + Retrieve the Document Type for this document and create + a NamedNodeMap object of all the notations. There + should be two items in the list (notation1 and notation2). +</description> +<contributor>Mary Brady</contributor> +<contributor>Curt Arnold</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-D46829EF"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<var name="notationList" type="NamedNodeMap"/> +<var name="notation" type="Node"/> +<var name="notationName" type="DOMString"/> +<var name="actual" type="Collection"/> +<var name="expected" type="Collection"> +<member>"notation1"</member> +<member>"notation2"</member> +</var> +<load var="doc" href="staff" willBeModified="false"/> +<doctype obj="doc" var="docType"/> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<notations obj="docType" var="notationList"/> +<assertNotNull actual="notationList" id="notationsNotNull"/> +<for-each collection="notationList" member="notation"> +<nodeName obj="notation" var="notationName"/> +<append collection="actual" item="notationName"/> +</for-each> +<assertEquals actual="actual" expected="expected" id="names" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/documenttypegetnotationstype.xml b/test/testcases/tests/level1/core/documenttypegetnotationstype.xml new file mode 100644 index 0000000..cde501f --- /dev/null +++ b/test/testcases/tests/level1/core/documenttypegetnotationstype.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documenttypegetnotationstype"> +<metadata> +<title>documenttypeGetNotationsType</title> +<creator>NIST</creator> +<description> + Every node in the map returned by the "getNotations()" + method implements the Notation interface. + + Retrieve the Document Type for this document and create + a NamedNodeMap object of all the notations. Traverse + the entire list and examine the NodeType of each node. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-D46829EF"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<var name="notationList" type="NamedNodeMap"/> +<var name="notation" type="Node"/> +<var name="notationType" type="int"/> +<load var="doc" href="staff" willBeModified="false"/> +<doctype obj="doc" var="docType"/> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<notations obj="docType" var="notationList"/> +<assertNotNull actual="notationList" id="notationsNotNull"/> +<for-each collection="notationList" member="notation"> +<nodeType obj="notation" var="notationType"/> +<assertEquals actual="notationType" expected="12" id="documenttypeGetNotationsTypeAssert" ignoreCase="false"/> +</for-each> +</test> diff --git a/test/testcases/tests/level1/core/domimplementationfeaturenoversion.xml b/test/testcases/tests/level1/core/domimplementationfeaturenoversion.xml new file mode 100644 index 0000000..fe62c52 --- /dev/null +++ b/test/testcases/tests/level1/core/domimplementationfeaturenoversion.xml @@ -0,0 +1,33 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="domimplementationfeaturenoversion"> +<metadata> +<title>domimplementationFeatureNoVersion</title> +<creator>NIST</creator> +<description> +hasFeature("XML", "") should return true for implementations that can read staff files. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-5CED94D7"/> +<subject resource="http://www.w3.org/2000/11/DOM-Level-2-errata#core-14"/> +</metadata> +<var name="doc" type="Document"/> +<var name="domImpl" type="DOMImplementation"/> +<var name="state" type="boolean"/> +<load var="doc" href="staff" willBeModified="false"/> +<implementation obj="doc" var="domImpl"/> +<hasFeature obj="domImpl" var="state" feature='"XML"' version='""'/> +<assertTrue actual="state" id="hasXMLEmpty"/> +</test> diff --git a/test/testcases/tests/level1/core/domimplementationfeaturenull.xml b/test/testcases/tests/level1/core/domimplementationfeaturenull.xml new file mode 100644 index 0000000..4634680 --- /dev/null +++ b/test/testcases/tests/level1/core/domimplementationfeaturenull.xml @@ -0,0 +1,35 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="domimplementationfeaturenull"> +<metadata> +<title>domimplementationFeatureNull</title> +<creator>NIST</creator> +<description> +hasFeature("XML", null) should return true for implementations that can read staff documents. +</description> +<contributor>Curt Arnold</contributor> +<date qualifier="created">2001-08-23</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-5CED94D7"/> +<subject resource="http://www.w3.org/2000/11/DOM-Level-2-errata#core-14"/> +</metadata> +<implementationAttribute name="hasNullString" value="true"/> +<var name="doc" type="Document"/> +<var name="domImpl" type="DOMImplementation"/> +<var name="state" type="boolean"/> +<var name="nullVersion" type="DOMString" isNull="true"/> +<load var="doc" href="staff" willBeModified="false"/> +<implementation obj="doc" var="domImpl"/> +<hasFeature obj="domImpl" var="state" feature='"XML"' version="nullVersion"/> +<assertTrue actual="state" id="hasXMLnull"/> +</test> diff --git a/test/testcases/tests/level1/core/domimplementationfeaturexml.xml b/test/testcases/tests/level1/core/domimplementationfeaturexml.xml new file mode 100644 index 0000000..3eb18bd --- /dev/null +++ b/test/testcases/tests/level1/core/domimplementationfeaturexml.xml @@ -0,0 +1,32 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="domimplementationfeaturexml"> +<metadata> +<title>domimplementationFeaturexml</title> +<creator>NIST</creator> +<description> +hasFeature("xml", "1.0") should return true for implementations that can read staff documents. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-5CED94D7"/> +</metadata> +<var name="doc" type="Document"/> +<var name="domImpl" type="DOMImplementation"/> +<var name="state" type="boolean"/> +<load var="doc" href="staff" willBeModified="false"/> +<implementation obj="doc" var="domImpl"/> +<hasFeature obj="domImpl" var="state" feature='"xml"' version='"1.0"'/> +<assertTrue actual="state" id="hasXML1"/> +</test> diff --git a/test/testcases/tests/level1/core/elementaddnewattribute.xml b/test/testcases/tests/level1/core/elementaddnewattribute.xml new file mode 100644 index 0000000..90ee433 --- /dev/null +++ b/test/testcases/tests/level1/core/elementaddnewattribute.xml @@ -0,0 +1,43 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementaddnewattribute"> +<metadata> +<title>elementAddNewAttribute</title> +<creator>NIST</creator> +<description> + The "setAttribute(name,value)" method adds a new attribute + to the Element + + Retrieve the last child of the last employee, then + add an attribute to it by invoking the + "setAttribute(name,value)" method. It should create + a "name" attribute with an assigned value equal to + "value". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--setAttribute--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68F082"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Element"/> +<var name="attrValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="4" var="testEmployee"/> +<setAttribute obj="testEmployee" name=""district"" value=""dallas""/> +<getAttribute obj="testEmployee" var="attrValue" name=""district""/> +<assertEquals actual="attrValue" expected=""dallas"" id="elementAddNewAttributeAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/elementassociatedattribute.xml b/test/testcases/tests/level1/core/elementassociatedattribute.xml new file mode 100644 index 0000000..583da3c --- /dev/null +++ b/test/testcases/tests/level1/core/elementassociatedattribute.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementassociatedattribute"> +<metadata> +<title>elementAssociatedAttribute</title> +<creator>NIST</creator> +<description> + Elements may have attributes associated with them. + + Retrieve the first attribute from the last child of + the first employee and invoke the "getSpecified()" + method. This test is only intended to show that + Elements can actually have attributes. This test uses + the "getNamedItem(name)" method from the NamedNodeMap + interface. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--attributes attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="domesticAttr" type="Attr"/> +<var name="specified" type="boolean"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"address"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="testEmployee"/> +<attributes obj="testEmployee" var="attributes"/> +<getNamedItem obj="attributes" var="domesticAttr" name='"domestic"'/> +<specified obj="domesticAttr" var="specified"/> +<assertTrue actual="specified" id="domesticSpecified"/> +</test> diff --git a/test/testcases/tests/level1/core/elementchangeattributevalue.xml b/test/testcases/tests/level1/core/elementchangeattributevalue.xml new file mode 100644 index 0000000..3bc4b85 --- /dev/null +++ b/test/testcases/tests/level1/core/elementchangeattributevalue.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementchangeattributevalue"> +<metadata> +<title>elementChangeAttributeValue</title> +<creator>NIST</creator> +<description> + The "setAttribute(name,value)" method adds a new attribute + to the Element. If the "name" is already present, then + its value should be changed to the new one that is in + the "value" parameter. + + Retrieve the last child of the fourth employee, then add + an attribute to it by invoking the + "setAttribute(name,value)" method. Since the name of the + used attribute("street") is already present in this + element, then its value should be changed to the new one + of the "value" parameter. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--setAttribute--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68F082"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Element"/> +<var name="attrValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="3" var="testEmployee"/> +<setAttribute obj="testEmployee" name=""street"" value=""Neither""/> +<getAttribute obj="testEmployee" var="attrValue" name=""street""/> +<assertEquals actual="attrValue" expected=""Neither"" id="elementChangeAttributeValueAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/elementcreatenewattribute.xml b/test/testcases/tests/level1/core/elementcreatenewattribute.xml new file mode 100644 index 0000000..6b9f510 --- /dev/null +++ b/test/testcases/tests/level1/core/elementcreatenewattribute.xml @@ -0,0 +1,50 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementcreatenewattribute"> +<metadata> +<title>elementCreateNewAttribute</title> +<creator>NIST</creator> +<description> + The "setAttributeNode(newAttr)" method adds a new + attribute to the Element. + + Retrieve first address element and add + a new attribute node to it by invoking its + "setAttributeNode(newAttr)" method. This test makes use + of the "createAttribute(name)" method from the Document + interface. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--setAttributeNode--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-887236154"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddress" type="Element"/> +<var name="newAttribute" type="Attr"/> +<var name="oldAttr" type="Attr"/> +<var name="districtAttr" type="Attr"/> +<var name="attrVal" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="testAddress"/> +<createAttribute obj="doc" var="newAttribute" name=""district""/> +<setAttributeNode obj="testAddress" var="oldAttr" newAttr="newAttribute"/> +<assertNull actual="oldAttr" id="old_attr_doesnt_exist"/> +<getAttributeNode obj="testAddress" var="districtAttr" name=""district""/> +<assertNotNull actual="districtAttr" id="new_district_accessible"/> +<getAttribute var="attrVal" obj="testAddress" name=""district""/> +<assertEquals actual="attrVal" expected="""" id="attr_value" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/elementgetattributenode.xml b/test/testcases/tests/level1/core/elementgetattributenode.xml new file mode 100644 index 0000000..930d906 --- /dev/null +++ b/test/testcases/tests/level1/core/elementgetattributenode.xml @@ -0,0 +1,42 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementgetattributenode"> +<metadata> +<title>elementGetAttributeNode</title> +<creator>NIST</creator> +<description> + The "getAttributeNode(name)" method retrieves an + attribute node by name. + + Retrieve the attribute "domestic" from the last child + of the first employee. Since the method returns an + Attr object, the "name" can be examined to ensure the + proper attribute was retrieved. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-217A91B8"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Element"/> +<var name="domesticAttr" type="Attr"/> +<var name="name" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="testEmployee"/> +<getAttributeNode obj="testEmployee" var="domesticAttr" name=""domestic""/> +<nodeName obj="domesticAttr" var="name"/> +<assertEquals actual="name" expected=""domestic"" id="elementGetAttributeNodeAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/elementgetattributenodenull.xml b/test/testcases/tests/level1/core/elementgetattributenodenull.xml new file mode 100644 index 0000000..63354a3 --- /dev/null +++ b/test/testcases/tests/level1/core/elementgetattributenodenull.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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementgetattributenodenull"> +<metadata> +<title>elementGetAttributeNodeNull</title> +<creator>NIST</creator> +<description> + The "getAttributeNode(name)" method retrieves an + attribute node by name. It should return null if the + "name" attribute does not exist. + + Retrieve the last child of the first employee and attempt + to retrieve a non-existing attribute. The method should + return "null". The non-existing attribute to be used + is "invalidAttribute". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-217A91B8"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Element"/> +<var name="domesticAttr" type="Attr"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="testEmployee"/> +<getAttributeNode obj="testEmployee" var="domesticAttr" name=""invalidAttribute""/> +<assertNull actual="domesticAttr" id="elementGetAttributeNodeNullAssert"/> +</test> diff --git a/test/testcases/tests/level1/core/elementgetelementempty.xml b/test/testcases/tests/level1/core/elementgetelementempty.xml new file mode 100644 index 0000000..3e574de --- /dev/null +++ b/test/testcases/tests/level1/core/elementgetelementempty.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementgetelementempty"> +<metadata> +<title>elementGetElementEmpty</title> +<creator>NIST</creator> +<description> + The "getAttribute(name)" method returns an empty + string if no value was assigned to an attribute and + no default value was given in the DTD file. + + Retrieve the last child of the last employee, then + invoke "getAttribute(name)" method, where "name" is an + attribute without a specified or DTD default value. + The "getAttribute(name)" method should return the empty + string. This method makes use of the + "createAttribute(newAttr)" method from the Document + interface. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--getAttribute--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-666EE0F9"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newAttribute" type="Attr"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Element"/> +<var name="domesticAttr" type="Attr"/> +<var name="attrValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<createAttribute obj="doc" var="newAttribute" name=""district""/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="3" var="testEmployee"/> +<setAttributeNode obj="testEmployee" var="domesticAttr" newAttr="newAttribute"/> +<getAttribute obj="testEmployee" var="attrValue" name=""district""/> +<assertEquals actual="attrValue" expected="""" id="elementGetElementEmptyAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/elementgetelementsbytagname.xml b/test/testcases/tests/level1/core/elementgetelementsbytagname.xml new file mode 100644 index 0000000..19d0348 --- /dev/null +++ b/test/testcases/tests/level1/core/elementgetelementsbytagname.xml @@ -0,0 +1,39 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementgetelementsbytagname"> +<metadata> +<title>elementGetElementsByTagName</title> +<creator>NIST</creator> +<description> +The "getElementsByTagName(name)" method returns a list +of all descendant Elements with the given tag name. +Test for an empty list. + +Create a NodeList of all the descendant elements +using the string "noMatch" as the tagName. +The method should return a NodeList whose length is +"0" since there are not any descendant elements +that match the given tag name. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--getElementsByTagName--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1938918D"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<assertSize collection="elementList" size="5" id="elementGetElementsByTagNameAssert"/> +</test> diff --git a/test/testcases/tests/level1/core/elementgetelementsbytagnameaccessnodelist.xml b/test/testcases/tests/level1/core/elementgetelementsbytagnameaccessnodelist.xml new file mode 100644 index 0000000..ec88004 --- /dev/null +++ b/test/testcases/tests/level1/core/elementgetelementsbytagnameaccessnodelist.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementgetelementsbytagnameaccessnodelist"> +<metadata> +<title>elementgetelementsbytagnameaccessnodelist</title> +<creator>NIST</creator> +<description> +Element.getElementsByTagName("employee") should return a NodeList whose length is +"5" in the order the children were encountered. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--getElementsByTagName--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1938918D"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Element"/> +<var name="child" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="childValue" type="DOMString"/> +<var name="childType" type="int"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="3" var="testEmployee"/> +<!-- first element might be text --> +<firstChild interface="Node" obj="testEmployee" var="child"/> +<nodeType var="childType" obj="child"/> +<if><equals actual="childType" expected="3" ignoreCase="false"/> +<nextSibling var="child" obj="child" interface="Node"/> +</if> +<nodeName var="childName" obj="child" interface="Node"/> +<assertEquals actual="childName" expected='"employeeId"' id="nodename" ignoreCase="false"/> +<firstChild var="child" obj="child" interface="Node"/> +<nodeValue var="childValue" obj="child"/> +<assertEquals actual="childValue" expected='"EMP0004"' ignoreCase="false" id="emp0004"/> +</test> diff --git a/test/testcases/tests/level1/core/elementgetelementsbytagnamenomatch.xml b/test/testcases/tests/level1/core/elementgetelementsbytagnamenomatch.xml new file mode 100644 index 0000000..ffc6aa7 --- /dev/null +++ b/test/testcases/tests/level1/core/elementgetelementsbytagnamenomatch.xml @@ -0,0 +1,37 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementgetelementsbytagnamenomatch"> +<metadata> +<title>elementGetElementsByTagName</title> +<creator>NIST</creator> +<description> +The "getElementsByTagName(name)" method returns a list +of all descendant Elements with the given tag name. + +Create a NodeList of all the descendant elements +using the string "employee" as the tagName. +The method should return a NodeList whose length is +"5". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--getElementsByTagName--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1938918D"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""noMatch"" var="elementList"/> +<assertSize collection="elementList" size="0" id="elementGetElementsByTagNameNoMatchNoMatchAssert"/> +</test> diff --git a/test/testcases/tests/level1/core/elementgetelementsbytagnamespecialvalue.xml b/test/testcases/tests/level1/core/elementgetelementsbytagnamespecialvalue.xml new file mode 100644 index 0000000..56930f8 --- /dev/null +++ b/test/testcases/tests/level1/core/elementgetelementsbytagnamespecialvalue.xml @@ -0,0 +1,56 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementgetelementsbytagnamespecialvalue"> +<metadata> +<title>elementGetElementsByTagNamesSpecialValue</title> +<creator>NIST</creator> +<description> +The "getElementsByTagName(name)" method may use the +special value "*" to match all tags in the element +tree. + +Create a NodeList of all the descendant elements +of the last employee by using the special value "*". +The method should return all the descendant children(6) +in the order the children were encountered. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1938918D"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="lastEmployee" type="Element"/> +<var name="lastempList" type="NodeList"/> +<var name="child" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="result" type="List"/> +<var name="expectedResult" type="List"> +<member>"employeeId"</member> +<member>"name"</member> +<member>"position"</member> +<member>"salary"</member> +<member>"gender"</member> +<member>"address"</member> +</var> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="4" var="lastEmployee"/> +<getElementsByTagName interface="Element" obj="lastEmployee" var="lastempList" tagname=""*""/> +<for-each collection="lastempList" member="child"> +<nodeName obj="child" var="childName"/> +<append collection="result" item="childName"/> +</for-each> +<assertEquals actual="result" expected="expectedResult" id="tagNames" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/elementgettagname.xml b/test/testcases/tests/level1/core/elementgettagname.xml new file mode 100644 index 0000000..7b27819 --- /dev/null +++ b/test/testcases/tests/level1/core/elementgettagname.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementgettagname"> +<metadata> +<title>elementGetTagName</title> +<creator>NIST</creator> +<description> + + The "getTagName()" method returns the + + tagName of an element. + + + + Invoke the "getTagName()" method one the + + root node. The value returned should be "staff". + +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-104682815"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=251"/> +</metadata> +<var name="doc" type="Document"/> +<var name="root" type="Element"/> +<var name="tagname" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<documentElement obj="doc" var="root"/> +<tagName obj="root" var="tagname"/> +<if><contentType type="image/svg+xml"/> +<assertEquals actual="tagname" expected='"svg"' id="svgTagName" ignoreCase="false"/> +<else> +<assertEquals actual="tagname" expected='"staff"' id="elementGetTagNameAssert" ignoreCase="false"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/elementinuseattributeerr.xml b/test/testcases/tests/level1/core/elementinuseattributeerr.xml new file mode 100644 index 0000000..f167279 --- /dev/null +++ b/test/testcases/tests/level1/core/elementinuseattributeerr.xml @@ -0,0 +1,58 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementinuseattributeerr"> +<metadata> +<title>elementInUseAttributeErr</title> +<creator>NIST</creator> +<description> + The "setAttributeNode(newAttr)" method raises an + "INUSE_ATTRIBUTE_ERR DOMException if the "newAttr" + is already an attribute of another element. + + Retrieve the last child of the second employee and append + a newly created element. The "createAttribute(name)" + and "setAttributeNode(newAttr)" methods are invoked + to create and add a new attribute to the newly created + Element. The "setAttributeNode(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. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INUSE_ATTRIBUTE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-887236154"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-887236154')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INUSE_ATTRIBUTE_ERR'])"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newAttribute" type="Attr"/> +<var name="addressElementList" type="NodeList"/> +<var name="testAddress" type="Element"/> +<var name="newElement" type="Element"/> +<var name="appendedChild" type="Node"/> +<var name="setAttr1" type="Attr"/> +<var name="setAttr2" type="Attr"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"address"' var="addressElementList"/> +<item interface="NodeList" obj="addressElementList" index="1" var="testAddress"/> +<createElement obj="doc" var="newElement" tagName='"newElement"'/> +<appendChild var="appendedChild" obj="testAddress" newChild="newElement"/> +<createAttribute obj="doc" var="newAttribute" name='"newAttribute"'/> +<setAttributeNode var="setAttr1" obj="newElement" newAttr="newAttribute"/> +<assertDOMException id="throw_INUSE_ATTRIBUTE_ERR"> + <INUSE_ATTRIBUTE_ERR> + <setAttributeNode var="setAttr2" obj="testAddress" newAttr="newAttribute"/> + </INUSE_ATTRIBUTE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/elementinvalidcharacterexception.xml b/test/testcases/tests/level1/core/elementinvalidcharacterexception.xml new file mode 100644 index 0000000..c775c91 --- /dev/null +++ b/test/testcases/tests/level1/core/elementinvalidcharacterexception.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementinvalidcharacterexception"> +<metadata> +<title>elementInvalidCharacterException</title> +<creator>NIST</creator> +<description> + + The "setAttribute(name,value)" method raises an + + "INVALID_CHARACTER_ERR DOMException if the specified + + name contains an invalid character. + + + + Retrieve the last child of the first employee and + + call its "setAttribute(name,value)" method with + + "name" containing an invalid character. + +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INVALID_CHARACTER_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68F082"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-F68F082')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INVALID_CHARACTER_ERR'])"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddress" type="Element"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="testAddress"/> +<assertDOMException id="throw_INVALID_CHARACTER_ERR"> +<INVALID_CHARACTER_ERR> +<setAttribute obj="testAddress" name=""invalid^Name"" value=""value""/> +</INVALID_CHARACTER_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/elementnormalize.xml b/test/testcases/tests/level1/core/elementnormalize.xml new file mode 100644 index 0000000..bc85fff --- /dev/null +++ b/test/testcases/tests/level1/core/elementnormalize.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementnormalize"> +<metadata> +<title>elementNormalize</title> +<creator>NIST</creator> +<description> + 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. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-162CF083"/> +</metadata> +<var name="doc" type="Document"/> +<var name="root" type="Element"/> +<var name="elementList" type="NodeList"/> +<var name="testName" type="Element"/> +<var name="firstChild" type="Node"/> +<var name="childValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<documentElement obj="doc" var="root"/> +<normalize obj="root"/> +<getElementsByTagName interface="Element" obj="root" tagname=""name"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="2" var="testName"/> +<firstChild interface="Node" obj="testName" var="firstChild"/> +<nodeValue obj="firstChild" var="childValue"/> +<assertEquals actual="childValue" expected=""Roger\n Jones"" id="elementNormalizeAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/elementnotfounderr.xml b/test/testcases/tests/level1/core/elementnotfounderr.xml new file mode 100644 index 0000000..792c3f1 --- /dev/null +++ b/test/testcases/tests/level1/core/elementnotfounderr.xml @@ -0,0 +1,50 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementnotfounderr"> +<metadata> +<title>elementNotFoundErr</title> +<creator>NIST</creator> +<description> + The "removeAttributeNode(oldAttr)" method raises a + NOT_FOUND_ERR DOMException if the "oldAttr" attribute + is not an attribute of the element. + + Retrieve the last employee and attempt to remove + a non existing attribute node. This should cause the + intended exception to be raised. This test makes use + of the "createAttribute(name)" method from the Document + interface. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INUSE_ATTRIBUTE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-D589198"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-D589198')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INUSE_ATTRIBUTE_ERR'])"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="oldAttribute" type="Attr"/> +<var name="addressElementList" type="NodeList"/> +<var name="testAddress" type="Element"/> +<var name="attrAddress" type="Attr"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="addressElementList"/> +<item interface="NodeList" obj="addressElementList" index="4" var="testAddress"/> +<createAttribute obj="doc" var="oldAttribute" name=""oldAttribute""/> +<assertDOMException id="throw_NOT_FOUND_ERR"> +<NOT_FOUND_ERR> +<removeAttributeNode obj="testAddress" oldAttr="oldAttribute" var="attrAddress"/> +</NOT_FOUND_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/elementremoveattribute.xml b/test/testcases/tests/level1/core/elementremoveattribute.xml new file mode 100644 index 0000000..b90c23c --- /dev/null +++ b/test/testcases/tests/level1/core/elementremoveattribute.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementremoveattribute"> +<metadata> +<title>elementRemoveAttribute</title> +<creator>NIST</creator> +<description> + The "removeAttribute(name)" removes an attribute by name. + If the attribute has a default value, it is immediately + replaced. + + Retrieve the attribute named "street" from the last child + of the fourth employee, then remove the "street" + attribute by invoking the "removeAttribute(name)" method. + The "street" attribute has a default value defined in the + DTD file, that value should immediately replace the old + value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6D6AC0F9"/> +<!-- DOM WG opinion on default attributes --> +<subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2002Mar/0002.html"/> +</metadata> +<implementationAttribute name="validating" value="true"/> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Element"/> +<var name="attrValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"address"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="3" var="testEmployee"/> +<removeAttribute obj="testEmployee" name='"street"'/> +<getAttribute obj="testEmployee" var="attrValue" name='"street"'/> +<assertEquals actual="attrValue" expected='"Yes"' id="streetYes" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/elementremoveattributeaftercreate.xml b/test/testcases/tests/level1/core/elementremoveattributeaftercreate.xml new file mode 100644 index 0000000..35b8640 --- /dev/null +++ b/test/testcases/tests/level1/core/elementremoveattributeaftercreate.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementremoveattributeaftercreate"> +<metadata> +<title>elementRemoveAttributeAfterCreate</title> +<creator>NIST</creator> +<description> + The "removeAttributeNode(oldAttr)" method removes the + specified attribute. + + Retrieve the last child of the third employee, add a + new "district" node to it and then try to remove it. + To verify that the node was removed use the + "getNamedItem(name)" method from the NamedNodeMap + interface. It also uses the "getAttributes()" method + from the Node interface. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--removeAttributeNode--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-D589198"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Element"/> +<var name="newAttribute" type="Attr"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="districtAttr" type="Attr"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="2" var="testEmployee"/> +<createAttribute obj="doc" var="newAttribute" name=""district""/> +<setAttributeNode obj="testEmployee" var="districtAttr" newAttr="newAttribute"/> +<removeAttributeNode obj="testEmployee" var="districtAttr" oldAttr="newAttribute"/> +<attributes obj="testEmployee" var="attributes"/> +<getNamedItem obj="attributes" var="districtAttr" name=""district""/> +<assertNull actual="districtAttr" id="elementRemoveAttributeAfterCreateAssert"/> +</test> diff --git a/test/testcases/tests/level1/core/elementremoveattributenode.xml b/test/testcases/tests/level1/core/elementremoveattributenode.xml new file mode 100644 index 0000000..30de112 --- /dev/null +++ b/test/testcases/tests/level1/core/elementremoveattributenode.xml @@ -0,0 +1,43 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementremoveattributenode"> +<metadata> +<title>elementRemoveAttributeNode</title> +<creator>NIST</creator> +<description> + The "removeAttributeNode(oldAttr)" method returns the + node that was removed. + + Retrieve the last child of the third employee and + remove its "street" Attr node. The method should + return the old attribute node. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-D589198"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Element"/> +<var name="streetAttr" type="Attr"/> +<var name="removedAttr" type="Attr"/> +<var name="removedValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="2" var="testEmployee"/> +<getAttributeNode obj="testEmployee" var="streetAttr" name=""street""/> +<removeAttributeNode obj="testEmployee" var="removedAttr" oldAttr="streetAttr"/> +<value interface="Attr" obj="removedAttr" var="removedValue"/> +<assertEquals actual="removedValue" expected=""No"" id="elementRemoveAttributeNodeAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/elementremoveattributenodenomodificationallowederr.xml b/test/testcases/tests/level1/core/elementremoveattributenodenomodificationallowederr.xml new file mode 100644 index 0000000..b8ed52a --- /dev/null +++ b/test/testcases/tests/level1/core/elementremoveattributenodenomodificationallowederr.xml @@ -0,0 +1,67 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementremoveattributenodenomodificationallowederr"> +<metadata> +<title>elementRemoveAttributeNodeNoModificationAllowedErr</title> +<creator>NIST</creator> +<description> + The "removeAttributeNode(oldAttr)" 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 the "domestic" attribute + from the entity reference by executing the "removeAttributeNode(oldAttr)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-D589198"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-D589198')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-D589198"/> +</metadata> +<var name="doc" type="Document"/> +<var name="genderList" type="NodeList"/> +<var name="gender" type="Node"/> +<var name="genList" type="NodeList"/> +<var name="gen" type="Node"/> +<var name="nodeType" type="int"/> +<var name="gList" type="NodeList"/> +<var name="genElement" type="Element"/> +<var name="attrList" type="NamedNodeMap"/> +<var name="attrNode" type="Attr"/> +<var name="removedAttr" type="Attr"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="genderList" tagname=""gender""/> +<item interface="NodeList" obj="genderList" var="gender" index="2"/> +<childNodes obj="gender" var="genList"/> +<item interface="NodeList" obj="genList" var="gen" index="0"/> +<assertNotNull actual="gen" id="genNotNull"/> +<nodeType var="nodeType" obj="gen"/> +<if><equals actual="nodeType" expected="1" ignoreCase="false"/> + <createEntityReference var="gen" obj="doc" name='"ent4"'/> + <assertNotNull actual="gen" id="createdEntRefNotNull"/> +</if> +<childNodes obj="gen" var="gList"/> +<item interface="NodeList" obj="gList" var="genElement" index="0"/> +<assertNotNull actual="genElement" id="genElementNotNull"/> +<attributes obj="genElement" var="attrList"/> +<getNamedItem obj="attrList" var="attrNode" name='"domestic"'/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<removeAttributeNode var="removedAttr" obj="genElement" oldAttr="attrNode"/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/elementremoveattributenodenomodificationallowederrEE.xml b/test/testcases/tests/level1/core/elementremoveattributenodenomodificationallowederrEE.xml new file mode 100644 index 0000000..f8d516e --- /dev/null +++ b/test/testcases/tests/level1/core/elementremoveattributenodenomodificationallowederrEE.xml @@ -0,0 +1,61 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementremoveattributenodenomodificationallowederrEE"> +<metadata> +<title>elementRemoveAttributeNodeNoModificationAllowedErrEE</title> +<creator>Curt Arnold</creator> +<description> + The "removeAttributeNode(oldAttr)" method for an attribute causes the + DOMException NO_MODIFICATION_ALLOWED_ERR to be raised + if the node is readonly. + + Create an entity reference and add it to the children of the THIRD "gender" element. + Try to remove the "domestic" attribute from the entity + reference by executing the "removeAttributeNode(oldAttr)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. +</description> +<date qualifier="created">2001-08-21</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-D589198"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-D589198')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-D589198"/> +<source resource="http://www.w3.org/2001/DOM-Test-Suite/level1/core/elementremoveattributenodenomodificationallowederr.xml"/> +</metadata> +<var name="doc" type="Document"/> +<var name="genderList" type="NodeList"/> +<var name="gender" type="Node"/> +<var name="entRef" type="EntityReference"/> +<var name="entElement" type="Element"/> +<var name="attrList" type="NamedNodeMap"/> +<var name="attrNode" type="Attr"/> +<var name="nodeType" type="int"/> +<var name="removedAttr" type="Attr"/> +<var name="appendedChild" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="genderList" tagname=""gender""/> +<item interface="NodeList" obj="genderList" var="gender" index="2"/> +<createEntityReference var="entRef" obj="doc" name=""ent4""/> +<assertNotNull actual="entRef" id="createdEntRefNotNull"/> +<appendChild obj="gender" newChild="entRef" var="appendedChild"/> +<firstChild interface="Node" var="entElement" obj="entRef"/> +<assertNotNull actual="entElement" id="entElementNotNull"/> +<attributes obj="entElement" var="attrList"/> +<getNamedItem obj="attrList" var="attrNode" name='"domestic"'/> +<assertNotNull actual="attrNode" id="attrNodeNotNull"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<removeAttributeNode var="removedAttr" obj="entElement" oldAttr="attrNode"/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/elementremoveattributenomodificationallowederr.xml b/test/testcases/tests/level1/core/elementremoveattributenomodificationallowederr.xml new file mode 100644 index 0000000..4aae1ae --- /dev/null +++ b/test/testcases/tests/level1/core/elementremoveattributenomodificationallowederr.xml @@ -0,0 +1,62 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementremoveattributenomodificationallowederr"> +<metadata> +<title>elementRemoveAttributeNoModificationAllowedErr</title> +<creator>NIST</creator> +<description> + The "removeAttribute(name)" 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 the "domestic" attribute + from the entity reference by executing the "removeAttribute(name)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6D6AC0F9"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-6D6AC0F9')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6D6AC0F9"/> +</metadata> +<var name="doc" type="Document"/> +<var name="genderList" type="NodeList"/> +<var name="gender" type="Node"/> +<var name="genList" type="NodeList"/> +<var name="gen" type="Node"/> +<var name="gList" type="NodeList"/> +<var name="nodeType" type="int"/> +<var name="genElement" type="Element"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="genderList" tagname=""gender""/> +<item interface="NodeList" obj="genderList" var="gender" index="2"/> +<childNodes obj="gender" var="genList"/> +<item interface="NodeList" obj="genList" var="gen" index="0"/> +<assertNotNull actual="gen" id="genNotNull"/> +<nodeType var="nodeType" obj="gen"/> +<if><equals actual="nodeType" expected="1" ignoreCase="false"/> + <createEntityReference var="gen" obj="doc" name='"ent4"'/> + <assertNotNull actual="gen" id="createdEntRefNotNull"/> +</if> +<childNodes obj="gen" var="gList"/> +<item interface="NodeList" obj="gList" var="genElement" index="0"/> +<assertNotNull actual="genElement" id="genElementNotNull"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<removeAttribute obj="genElement" name='"domestic"'/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/elementremoveattributenomodificationallowederrEE.xml b/test/testcases/tests/level1/core/elementremoveattributenomodificationallowederrEE.xml new file mode 100644 index 0000000..79248df --- /dev/null +++ b/test/testcases/tests/level1/core/elementremoveattributenomodificationallowederrEE.xml @@ -0,0 +1,53 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementremoveattributenomodificationallowederrEE"> +<metadata> +<title>elementRemoveAttributeNoModificationAllowedErrEE</title> +<creator>Curt Arnold</creator> +<description> + The "removeAttribute(name)" method for an attribute causes the + DOMException NO_MODIFICATION_ALLOWED_ERR to be raised + if the node is readonly. + + Create an reference the entity ent4 and add it to the THIRD "gender" element. + Try to remove the "domestic" attribute from the entity reference by executing the "removeAttribute(name)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. +</description> +<date qualifier="created">2001-08-21</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6D6AC0F9"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-6D6AC0F9')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6D6AC0F9"/> +<source resource="http://www.w3.org/2001/DOM-Test-Suite/level1/core/elementremoveattributenomodificationallowederr.xml"/> +</metadata> +<var name="doc" type="Document"/> +<var name="genderList" type="NodeList"/> +<var name="gender" type="Node"/> +<var name="entRef" type="EntityReference"/> +<var name="entElement" type="Element"/> +<var name="appendedChild" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="genderList" tagname='"gender"'/> +<item interface="NodeList" obj="genderList" var="gender" index="2"/> +<createEntityReference obj="doc" var="entRef" name='"ent4"'/> +<assertNotNull actual="entRef" id="createdEntRefNotNull"/> +<appendChild obj="gender" newChild="entRef" var="appendedChild"/> +<firstChild obj="entRef" var="entElement" interface="Node"/> +<assertNotNull actual="entElement" id="entElementNotNull"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<removeAttribute obj="entElement" name='"domestic"'/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/elementremoveattributerestoredefaultvalue.xml b/test/testcases/tests/level1/core/elementremoveattributerestoredefaultvalue.xml new file mode 100644 index 0000000..b6e096e --- /dev/null +++ b/test/testcases/tests/level1/core/elementremoveattributerestoredefaultvalue.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementremoveattributerestoredefaultvalue"> +<metadata> +<title>elementRemoveAttributeRestoreDefaultValue</title> +<creator>NIST</creator> +<description> + The "removeAttributeNode(oldAttr)" method removes the + specified attribute node and restores any default values. + + Retrieve the last child of the third employeed and + remove its "street" Attr node. Since this node has a + default value defined in the DTD file, that default + should immediately be the new value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--removeAttributeNode--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-D589198"/> +<!-- DOM WG opinion on default attributes --> +<subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2002Mar/0002.html"/> +</metadata> +<implementationAttribute name="validating" value="true"/> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Element"/> +<var name="streetAttr" type="Attr"/> +<var name="attribute" type="DOMString"/> +<var name="removedAttr" type="Attr"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="2" var="testEmployee"/> +<getAttributeNode obj="testEmployee" var="streetAttr" name=""street""/> +<removeAttributeNode var="removedAttr" obj="testEmployee" oldAttr="streetAttr"/> +<getAttribute obj="testEmployee" var="attribute" name=""street""/> +<assertEquals actual="attribute" expected=""Yes"" id="streetYes" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/elementreplaceattributewithself.xml b/test/testcases/tests/level1/core/elementreplaceattributewithself.xml new file mode 100644 index 0000000..fc4b562 --- /dev/null +++ b/test/testcases/tests/level1/core/elementreplaceattributewithself.xml @@ -0,0 +1,42 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementreplaceattributewithself"> +<metadata> +<title>elementReplaceAttributeWithSelf</title> +<creator>Curt Arnold</creator> +<description> +This test calls setAttributeNode to replace an attribute with itself. +Since the node is not an attribute of another Element, it would +be inappropriate to throw an INUSE_ATTRIBUTE_ERR. + +This test was derived from elementinuserattributeerr which +inadvertanly made this test. +</description> +<contributor>Curt Arnold</contributor> +<date qualifier="created">2001-10-31</date> +<!--setAttributeNode--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-887236154"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Element"/> +<var name="streetAttr" type="Attr"/> +<var name="replacedAttr" type="Attr"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"address"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="2" var="testEmployee"/> +<getAttributeNode var="streetAttr" obj="testEmployee" name='"street"'/> +<setAttributeNode obj="testEmployee" var="replacedAttr" newAttr="streetAttr"/> +<assertSame actual="replacedAttr" expected="streetAttr" id="replacedAttr"/> +</test> diff --git a/test/testcases/tests/level1/core/elementreplaceexistingattribute.xml b/test/testcases/tests/level1/core/elementreplaceexistingattribute.xml new file mode 100644 index 0000000..76aa780 --- /dev/null +++ b/test/testcases/tests/level1/core/elementreplaceexistingattribute.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementreplaceexistingattribute"> +<metadata> +<title>elementReplaceExistingAttribute</title> +<creator>NIST</creator> +<description> + The "setAttributeNode(newAttr)" method adds a new + attribute to the Element. If the "newAttr" Attr node is + already present in this element, it should replace the + existing one. + + Retrieve the last child of the third employee and add a + new attribute node by invoking the "setAttributeNode(new + Attr)" method. The new attribute node to be added is + "street", which is already present in this element. The + method should replace the existing Attr node with the + new one. This test uses the "createAttribute(name)" + method from the Document interface. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Element"/> +<var name="newAttribute" type="Attr"/> +<var name="name" type="DOMString"/> +<var name="setAttr" type="Attr"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="2" var="testEmployee"/> +<createAttribute obj="doc" var="newAttribute" name=""street""/> +<setAttributeNode var="setAttr" obj="testEmployee" newAttr="newAttribute"/> +<getAttribute obj="testEmployee" var="name" name=""street""/> +<assertEquals actual="name" expected="""" id="elementReplaceExistingAttributeAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/elementreplaceexistingattributegevalue.xml b/test/testcases/tests/level1/core/elementreplaceexistingattributegevalue.xml new file mode 100644 index 0000000..4ce96c1 --- /dev/null +++ b/test/testcases/tests/level1/core/elementreplaceexistingattributegevalue.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementreplaceexistingattributegevalue"> +<metadata> +<title>elementReplaceExistingAttributeGeValue</title> +<creator>NIST</creator> +<description> +If the "setAttributeNode(newAttr)" method replaces an +existing Attr node with the same name, then it should +return the previously existing Attr node. + +Retrieve the last child of the third employee and add a +new attribute node. The new attribute node is "street", +which is already present in this Element. The method +should return the existing Attr node(old "street" Attr). +This test uses the "createAttribute(name)" method +from the Document interface. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--setAttributeNode--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-887236154"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Element"/> +<var name="newAttribute" type="Attr"/> +<var name="streetAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="2" var="testEmployee"/> +<createAttribute obj="doc" var="newAttribute" name=""street""/> +<setAttributeNode obj="testEmployee" var="streetAttr" newAttr="newAttribute"/> +<value interface="Attr" obj="streetAttr" var="value"/> +<assertEquals actual="value" expected=""No"" id="streetNo" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/elementretrieveallattributes.xml b/test/testcases/tests/level1/core/elementretrieveallattributes.xml new file mode 100644 index 0000000..ce849d4 --- /dev/null +++ b/test/testcases/tests/level1/core/elementretrieveallattributes.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementretrieveallattributes"> +<metadata> +<title>elementRetrieveAllAttributes</title> +<creator>NIST</creator> +<description> + The "getAttributes()" method(Node Interface) may + be used to retrieve the set of all attributes of an + element. + + Create a list of all the attributes of the last child + of the first employee by using the "getAttributes()" + method. Examine the length of the attribute list. + This test uses the "getLength()" method from the + NameNodeMap interface. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--attributes attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +<!-- DOM WG opinion on default attributes --> +<subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2002Mar/0002.html"/> +</metadata> +<implementationAttribute name="validating" value="true"/> +<var name="doc" type="Document"/> +<var name="addressList" type="NodeList"/> +<var name="testAddress" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="addressList"/> +<item interface="NodeList" obj="addressList" index="0" var="testAddress"/> +<attributes obj="testAddress" var="attributes"/> +<assertSize collection="attributes" size="2" id="elementRetrieveAllAttributesAssert"/> +</test> diff --git a/test/testcases/tests/level1/core/elementretrieveattrvalue.xml b/test/testcases/tests/level1/core/elementretrieveattrvalue.xml new file mode 100644 index 0000000..41e62e3 --- /dev/null +++ b/test/testcases/tests/level1/core/elementretrieveattrvalue.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementretrieveattrvalue"> +<metadata> +<title>elementRetrieveAttrValue</title> +<creator>NIST</creator> +<description> + The "getAttribute(name)" method returns an attribute + value by name. + + Retrieve the second address element, then + invoke the 'getAttribute("street")' method. This should + return the value of the attribute("No"). +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--getAttribute--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-666EE0F9"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddress" type="Element"/> +<var name="attrValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="2" var="testAddress"/> +<getAttribute obj="testAddress" var="attrValue" name=""street""/> +<assertEquals actual="attrValue" expected=""No"" id="attrValue" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/elementretrievetagname.xml b/test/testcases/tests/level1/core/elementretrievetagname.xml new file mode 100644 index 0000000..85bdf1e --- /dev/null +++ b/test/testcases/tests/level1/core/elementretrievetagname.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementretrievetagname"> +<metadata> +<title>elementRetrieveTagName</title> +<creator>NIST</creator> +<description> + The "getElementsByTagName()" method returns a NodeList + of all descendant elements with a given tagName. + + Invoke the "getElementsByTagName()" method and create + a NodeList of "position" elements. Retrieve the second + "position" element in the list and return the NodeName. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--nodeName attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +<!--tagName attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-104682815"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Node"/> +<var name="name" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""position"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="testEmployee"/> +<nodeName obj="testEmployee" var="name"/> +<assertEquals actual="name" expected=""position"" id="nodename" ignoreCase="false"/> +<tagName obj="testEmployee" var="name"/> +<assertEquals actual="name" expected=""position"" id="tagname" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/elementsetattributenodenomodificationallowederr.xml b/test/testcases/tests/level1/core/elementsetattributenodenomodificationallowederr.xml new file mode 100644 index 0000000..198c178 --- /dev/null +++ b/test/testcases/tests/level1/core/elementsetattributenodenomodificationallowederr.xml @@ -0,0 +1,61 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementsetattributenodenomodificationallowederr"> +<metadata> +<title>elementSetAttributeNodeNoModificationAllowedErr</title> +<creator>NIST</creator> +<description> + The "setAttributeNode(newAttr)" 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 the "domestic" attribute + from the entity reference by executing the "setAttributeNode(newAttr)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-887236154"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-887236154')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-887236154"/> +</metadata> +<var name="doc" type="Document"/> +<var name="genderList" type="NodeList"/> +<var name="gender" type="Node"/> +<var name="entRef" type="Node"/> +<var name="entElement" type="Element"/> +<var name="newAttr" type="Attr"/> +<var name="nodeType" type="int"/> +<var name="badAttr" type="Attr"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="genderList" tagname=""gender""/> +<item interface="NodeList" obj="genderList" var="gender" index="2"/> +<firstChild interface="Node" var="entRef" obj="gender"/> +<assertNotNull actual="entRef" id="entRefNotNull"/> +<nodeType var="nodeType" obj="entRef"/> +<if><equals actual="nodeType" expected="1" ignoreCase="false"/> + <createEntityReference var="entRef" obj="doc" name='"ent4"'/> + <assertNotNull actual="entRef" id="createdEntRefNotNull"/> +</if> +<firstChild interface="Node" var="entElement" obj="entRef"/> +<assertNotNull actual="entElement" id="entElementNotNull"/> +<createAttribute obj="doc" var="newAttr" name='"newAttr"'/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<setAttributeNode var="badAttr" obj="entElement" newAttr="newAttr"/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/elementsetattributenodenomodificationallowederrEE.xml b/test/testcases/tests/level1/core/elementsetattributenodenomodificationallowederrEE.xml new file mode 100644 index 0000000..a540c72 --- /dev/null +++ b/test/testcases/tests/level1/core/elementsetattributenodenomodificationallowederrEE.xml @@ -0,0 +1,58 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementsetattributenodenomodificationallowederrEE"> +<metadata> +<title>elementsetattributenodenomodificationallowederree</title> +<creator>Curt Arnold</creator> +<description> + The "setAttributeNode(newAttr)" method for an attribute causes the + DOMException NO_MODIFICATION_ALLOWED_ERR to be raised + if the node is readonly. + + Create an entity reference and add to the THIRD "gender" element. The elements + content is an entity reference. Try to remove the "domestic" attribute + from the entity reference by executing the "setAttributeNode(newAttr)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. +</description> +<date qualifier="created">2001-08-21</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-887236154"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-887236154')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-887236154"/> +<source resource="http://www.w3.org/2001/DOM-Test-Suite/level1/core/elementsetattributenodenomodificationallowederr.xml"/> +</metadata> +<implementationAttribute name="expandEntityReferences" value="false"/> +<var name="doc" type="Document"/> +<var name="genderList" type="NodeList"/> +<var name="gender" type="Node"/> +<var name="entRef" type="EntityReference"/> +<var name="entElement" type="Element"/> +<var name="newAttr" type="Attr"/> +<var name="badAttr" type="Attr"/> +<var name="appendedChild" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="genderList" tagname=""gender""/> +<item interface="NodeList" obj="genderList" var="gender" index="2"/> +<createEntityReference var="entRef" obj="doc" name='"ent4"'/> +<assertNotNull actual="entRef" id="createdEntRefNotNull"/> +<appendChild obj="gender" newChild="entRef" var="appendedChild"/> +<firstChild interface="Node" var="entElement" obj="entRef"/> +<assertNotNull actual="entElement" id="entElementNotNull"/> +<createAttribute obj="doc" var="newAttr" name='"newAttr"'/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<setAttributeNode var="badAttr" obj="entElement" newAttr="newAttr"/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/elementsetattributenodenull.xml b/test/testcases/tests/level1/core/elementsetattributenodenull.xml new file mode 100644 index 0000000..7608454 --- /dev/null +++ b/test/testcases/tests/level1/core/elementsetattributenodenull.xml @@ -0,0 +1,45 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementsetattributenodenull"> +<metadata> +<title>elementSetAttributeNodeNull</title> +<creator>NIST</creator> +<description> + The "setAttributeNode(newAttr)" method returns the + null value if no previously existing Attr node with the + same name was replaced. + + Retrieve the last child of the third employee and add a + new attribute to it. The new attribute node added is + "district", which is not part of this Element. The + method should return the null value. + This test uses the "createAttribute(name)" + method from the Document interface. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-887236154"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Element"/> +<var name="newAttribute" type="Attr"/> +<var name="districtAttr" type="Attr"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="2" var="testEmployee"/> +<createAttribute obj="doc" var="newAttribute" name=""district""/> +<setAttributeNode obj="testEmployee" var="districtAttr" newAttr="newAttribute"/> +<assertNull actual="districtAttr" id="elementSetAttributeNodeNullAssert"/> +</test> diff --git a/test/testcases/tests/level1/core/elementsetattributenomodificationallowederr.xml b/test/testcases/tests/level1/core/elementsetattributenomodificationallowederr.xml new file mode 100644 index 0000000..978c2ec --- /dev/null +++ b/test/testcases/tests/level1/core/elementsetattributenomodificationallowederr.xml @@ -0,0 +1,53 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementsetattributenomodificationallowederr"> +<metadata> +<title>elementSetAttributeNoModificationAllowedErr</title> +<creator>NIST</creator> +<description> + The "setAttribute(name,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 remove the "domestic" attribute + from the entity reference by executing the "setAttribute(name,value)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68F082"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-F68F082')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68F082"/> +</metadata> +<implementationAttribute name="expandEntityReferences" value="false"/> +<var name="doc" type="Document"/> +<var name="genderList" type="NodeList"/> +<var name="gender" type="Node"/> +<var name="entRef" type="EntityReference"/> +<var name="entElement" type="Element"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="genderList" tagname=""gender""/> +<item interface="NodeList" obj="genderList" var="gender" index="2"/> +<firstChild interface="Node" var="entRef" obj="gender"/> +<assertNotNull actual="entRef" id="entRefNotNull"/> +<firstChild interface="Node" var="entElement" obj="entRef"/> +<assertNotNull actual="entElement" id="entElementNotNull"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<setAttribute obj="entElement" name='"newAttr"' value='"newValue"'/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/elementsetattributenomodificationallowederrEE.xml b/test/testcases/tests/level1/core/elementsetattributenomodificationallowederrEE.xml new file mode 100644 index 0000000..1821d04 --- /dev/null +++ b/test/testcases/tests/level1/core/elementsetattributenomodificationallowederrEE.xml @@ -0,0 +1,53 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementsetattributenomodificationallowederrEE"> +<metadata> +<title>elementSetAttributeNoModificationAllowedErrEE</title> +<creator>Curt Arnold</creator> +<description> + The "setAttribute(name,value)" method for an attribute causes the + DOMException NO_MODIFICATION_ALLOWED_ERR to be raised + if the node is readonly. + + Add an ent4 reference to the children of the THIRD "gender" element. + Try to remove the "domestic" attribute + from the entity reference by executing the "setAttribute(name,value)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. +</description> +<date qualifier="created">2001-08-21</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68F082"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-F68F082')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68F082"/> +<source resource="http://www.w3.org/2001/DOM-Test-Suite/level1/core/elementsetattributenomodificationallowederr.xml"/> +</metadata> +<var name="doc" type="Document"/> +<var name="genderList" type="NodeList"/> +<var name="gender" type="Node"/> +<var name="entRef" type="EntityReference"/> +<var name="entElement" type="Element"/> +<var name="appendedChild" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="genderList" tagname=""gender""/> +<item interface="NodeList" obj="genderList" var="gender" index="2"/> +<createEntityReference var="entRef" obj="doc" name=""ent4""/> +<appendChild obj="gender" newChild="entRef" var="appendedChild"/> +<firstChild interface="Node" var="entElement" obj="entRef"/> +<assertNotNull actual="entElement" id="entElementNotNull"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<setAttribute obj="entElement" name=""newAttr"" value=""newValue""/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/elementwrongdocumenterr.xml b/test/testcases/tests/level1/core/elementwrongdocumenterr.xml new file mode 100644 index 0000000..531c512 --- /dev/null +++ b/test/testcases/tests/level1/core/elementwrongdocumenterr.xml @@ -0,0 +1,68 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="elementwrongdocumenterr"> +<metadata> +<title>elementWrongDocumentErr</title> +<creator>NIST</creator> +<description> + + The "setAttributeNode(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 last employee and attempt to set a new + + attribute node for its "employee" element. 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 "createAttribute(newAttr)" method + + from the Document interface. + +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='WRONG_DOCUMENT_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-887236154"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-887236154')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='WRONG_DOCUMENT_ERR'])"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc1" type="Document"/> +<var name="doc2" type="Document"/> +<var name="newAttribute" type="Attr"/> +<var name="addressElementList" type="NodeList"/> +<var name="testAddress" type="Element"/> +<var name="attrAddress" type="Attr"/> +<load var="doc1" href="staff" willBeModified="true"/> +<load var="doc2" href="staff" willBeModified="false"/> +<createAttribute obj="doc2" var="newAttribute" name=""newAttribute""/> +<getElementsByTagName interface="Document" obj="doc1" tagname=""address"" var="addressElementList"/> +<item interface="NodeList" obj="addressElementList" index="4" var="testAddress"/> +<assertDOMException id="throw_WRONG_DOCUMENT_ERR"> +<WRONG_DOCUMENT_ERR> +<setAttributeNode obj="testAddress" newAttr="newAttribute" var="attrAddress"/> +</WRONG_DOCUMENT_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/entitygetentityname.xml b/test/testcases/tests/level1/core/entitygetentityname.xml new file mode 100644 index 0000000..2aa4be3 --- /dev/null +++ b/test/testcases/tests/level1/core/entitygetentityname.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="entitygetentityname"> +<metadata> +<title>entityGetEntityName</title> +<creator>NIST</creator> +<description> + The nodeName attribute that is inherited from Node + contains the name of the entity. + + Retrieve the entity named "ent1" and access its name by + invoking the "getNodeName()" method inherited from + the Node interface. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--Entity interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-527DCFF2"/> +<!--nodeName attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<var name="entityList" type="NamedNodeMap"/> +<var name="entityNode" type="Entity"/> +<var name="entityName" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<doctype obj="doc" var="docType"/> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<entities obj="docType" var="entityList"/> +<assertNotNull actual="entityList" id="entitiesNotNull"/> +<getNamedItem obj="entityList" var="entityNode" name=""ent1""/> +<nodeName obj="entityNode" var="entityName"/> +<assertEquals actual="entityName" expected=""ent1"" id="entityGetEntityNameAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/entitygetpublicid.xml b/test/testcases/tests/level1/core/entitygetpublicid.xml new file mode 100644 index 0000000..645a781 --- /dev/null +++ b/test/testcases/tests/level1/core/entitygetpublicid.xml @@ -0,0 +1,55 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="entitygetpublicid"> +<metadata> +<title>entityGetPublicId</title> +<creator>NIST</creator> +<description> + The "getPublicId()" method of an Entity node contains + the public identifier associated with the entity, if + one was specified. + + Retrieve the entity named "ent5" and access its + public identifier. The string "entityURI" should be + returned. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!-- Entity.publicId --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-D7303025"/> +<!-- Entity.notationName --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6ABAEB38"/> +<!-- Entity.systemId --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-D7C29F3E"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<var name="entityList" type="NamedNodeMap"/> +<var name="entityNode" type="Entity"/> +<var name="publicId" type="DOMString"/> +<var name="systemId" type="DOMString"/> +<var name="notation" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<doctype obj="doc" var="docType"/> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<entities obj="docType" var="entityList"/> +<assertNotNull actual="entityList" id="entitiesNotNull"/> +<getNamedItem obj="entityList" var="entityNode" name='"ent5"'/> +<publicId interface="Entity" obj="entityNode" var="publicId"/> +<assertEquals actual="publicId" expected='"entityURI"' id="publicId" ignoreCase="false"/> +<systemId interface="Entity" obj="entityNode" var="systemId"/> +<assertURIEquals actual="systemId" file='"entityFile"' id="systemId"/> +<notationName interface="Entity" obj="entityNode" var="notation"/> +<assertEquals actual="notation" expected='"notation1"' id="notation" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/entitygetpublicidnull.xml b/test/testcases/tests/level1/core/entitygetpublicidnull.xml new file mode 100644 index 0000000..172ba80 --- /dev/null +++ b/test/testcases/tests/level1/core/entitygetpublicidnull.xml @@ -0,0 +1,45 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="entitygetpublicidnull"> +<metadata> +<title>entityGetPublicIdNull</title> +<creator>NIST</creator> +<description> + The "getPublicId()" method of an Entity node contains + the public identifier associated with the entity, if + one was not specified a null value should be returned. + + Retrieve the entity named "ent1" and access its + public identifier. Since a public identifier was not + specified for this entity, the "getPublicId()" method + should return null. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-D7303025"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<var name="entityList" type="NamedNodeMap"/> +<var name="entityNode" type="Entity"/> +<var name="publicId" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<doctype obj="doc" var="docType"/> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<entities obj="docType" var="entityList"/> +<assertNotNull actual="entityList" id="entitiesNotNull"/> +<getNamedItem obj="entityList" var="entityNode" name='"ent1"'/> +<publicId interface="Entity" obj="entityNode" var="publicId"/> +<assertNull actual="publicId" id="entityGetPublicIdNullAssert"/> +</test> diff --git a/test/testcases/tests/level1/core/files/.cvsignore b/test/testcases/tests/level1/core/files/.cvsignore new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/testcases/tests/level1/core/files/.cvsignore diff --git a/test/testcases/tests/level1/core/files/CVS/Entries b/test/testcases/tests/level1/core/files/CVS/Entries new file mode 100644 index 0000000..4398a4d --- /dev/null +++ b/test/testcases/tests/level1/core/files/CVS/Entries @@ -0,0 +1,16 @@ +/.cvsignore/1.2/Fri Apr 3 02:48:03 2009// +/hc_nodtdstaff.html/1.3/Fri Apr 3 02:48:03 2009// +/hc_nodtdstaff.svg/1.2/Fri Apr 3 02:48:03 2009// +/hc_nodtdstaff.xhtml/1.2/Fri Apr 3 02:48:03 2009// +/hc_nodtdstaff.xml/1.3/Fri Apr 3 02:48:03 2009// +/hc_staff.html/1.8/Fri Apr 3 02:48:03 2009// +/hc_staff.svg/1.5/Fri Apr 3 02:48:03 2009// +/hc_staff.xhtml/1.7/Fri Apr 3 02:48:03 2009// +/hc_staff.xml/1.9/Fri Apr 3 02:48:03 2009// +/staff.dtd/1.2/Fri Apr 3 02:48:03 2009// +/staff.svg/1.3/Fri Apr 3 02:48:03 2009// +/staff.xml/1.2/Fri Apr 3 02:48:03 2009// +/svgtest.js/1.2/Fri Apr 3 02:48:03 2009/-kb/ +/svgunit.js/1.2/Fri Apr 3 02:48:03 2009/-kb/ +/xhtml1-strict.dtd/1.5/Fri Apr 3 02:48:03 2009/-kb/ +D diff --git a/test/testcases/tests/level1/core/files/CVS/Repository b/test/testcases/tests/level1/core/files/CVS/Repository new file mode 100644 index 0000000..e9c06be --- /dev/null +++ b/test/testcases/tests/level1/core/files/CVS/Repository @@ -0,0 +1 @@ +2001/DOM-Test-Suite/tests/level1/core/files diff --git a/test/testcases/tests/level1/core/files/CVS/Root b/test/testcases/tests/level1/core/files/CVS/Root new file mode 100644 index 0000000..3c7177e --- /dev/null +++ b/test/testcases/tests/level1/core/files/CVS/Root @@ -0,0 +1 @@ +:pserver:anonymous@dev.w3.org:/sources/public diff --git a/test/testcases/tests/level1/core/files/CVS/Template b/test/testcases/tests/level1/core/files/CVS/Template new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/testcases/tests/level1/core/files/CVS/Template diff --git a/test/testcases/tests/level1/core/files/hc_nodtdstaff.html b/test/testcases/tests/level1/core/files/hc_nodtdstaff.html new file mode 100644 index 0000000..f98d0be --- /dev/null +++ b/test/testcases/tests/level1/core/files/hc_nodtdstaff.html @@ -0,0 +1,10 @@ +<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_nodtdstaff</title></head><body onload="parent.loadComplete()"> + <p> + <em>EMP0001</em> + <strong>Margaret Martin</strong> + <code>Accountant</code> + <sup>56,000</sup> + <var>Female</var> + <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym> + </p> +</body></html> diff --git a/test/testcases/tests/level1/core/files/hc_nodtdstaff.svg b/test/testcases/tests/level1/core/files/hc_nodtdstaff.svg new file mode 100644 index 0000000..89f26f6 --- /dev/null +++ b/test/testcases/tests/level1/core/files/hc_nodtdstaff.svg @@ -0,0 +1,10 @@ +<svg xmlns='http://www.w3.org/2000/svg'><rect x="0" y="0" width="100" height="100"/><head xmlns='http://www.w3.org/1999/xhtml'><title>hc_nodtdstaff</title></head><body xmlns='http://www.w3.org/1999/xhtml'> + <p> + <em>EMP0001</em> + <strong>Margaret Martin</strong> + <code>Accountant</code> + <sup>56,000</sup> + <var>Female</var> + <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym> + </p> +</body></svg> diff --git a/test/testcases/tests/level1/core/files/hc_nodtdstaff.xhtml b/test/testcases/tests/level1/core/files/hc_nodtdstaff.xhtml new file mode 100644 index 0000000..8a5d8a8 --- /dev/null +++ b/test/testcases/tests/level1/core/files/hc_nodtdstaff.xhtml @@ -0,0 +1,10 @@ +<html xmlns="http://www.w3.org/1999/xhtml"><head><title>hc_nodtdstaff</title></head><body onload="parent.loadComplete()"> + <p> + <em>EMP0001</em> + <strong>Margaret Martin</strong> + <code>Accountant</code> + <sup>56,000</sup> + <var>Female</var> + <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym> + </p> +</body></html> diff --git a/test/testcases/tests/level1/core/files/hc_nodtdstaff.xml b/test/testcases/tests/level1/core/files/hc_nodtdstaff.xml new file mode 100644 index 0000000..85c0693 --- /dev/null +++ b/test/testcases/tests/level1/core/files/hc_nodtdstaff.xml @@ -0,0 +1,10 @@ +<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>hc_nodtdstaff</title></head><body onload="parent.loadComplete()"> + <p> + <em>EMP0001</em> + <strong>Margaret Martin</strong> + <code>Accountant</code> + <sup>56,000</sup> + <var>Female</var> + <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym> + </p> +</body></html> diff --git a/test/testcases/tests/level1/core/files/hc_staff.html b/test/testcases/tests/level1/core/files/hc_staff.html new file mode 100644 index 0000000..9acf750 --- /dev/null +++ b/test/testcases/tests/level1/core/files/hc_staff.html @@ -0,0 +1,48 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" + "http://www.w3.org/TR/html4/strict.dtd" > +<!-- This is comment number 1.--> +<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>hc_staff</title><script type="text/javascript" src="svgunit.js"></script><script charset="UTF-8" type="text/javascript" src="svgtest.js"></script><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="parent.loadComplete()"> + <p> + <em>EMP0001</em> + <strong>Margaret Martin</strong> + <code>Accountant</code> + <sup>56,000</sup> + <var>Female</var> + <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym> + </p> + <p> + <em>EMP0002</em> + <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &ent2; +This is an adjacent CDATASection with a reference to a tab &tab;</strong> + <code>Secretary</code> + <sup>35,000</sup> + <var>Female</var> + <acronym title="Yes" class="Yes">β Dallas, γ + 98554</acronym> + </p> + <p> + <em>EMP0003</em> + <strong>Roger + Jones</strong> + <code>Department Manager</code> + <sup>100,000</sup> + <var>δ</var> + <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym> + </p> + <p> + <em>EMP0004</em> + <strong>Jeny Oconnor</strong> + <code>Personnel Director</code> + <sup>95,000</sup> + <var>Female</var> + <acronym title="Yes" class="Yα">27 South Road. Dallas, Texas 98556</acronym> + </p> + <p> + <em>EMP0005</em> + <strong>Robert Myers</strong> + <code>Computer Specialist</code> + <sup>90,000</sup> + <var>male</var> + <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym> + </p> +</body></html> diff --git a/test/testcases/tests/level1/core/files/hc_staff.svg b/test/testcases/tests/level1/core/files/hc_staff.svg new file mode 100644 index 0000000..cd0cc47 --- /dev/null +++ b/test/testcases/tests/level1/core/files/hc_staff.svg @@ -0,0 +1,72 @@ +<?xml version="1.0"?><?TEST-STYLE PIDATA?> +<!DOCTYPE svg + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd" [ + <!ENTITY alpha "α"> + <!ENTITY beta "β"> + <!ENTITY gamma "γ"> + <!ENTITY delta "δ"> + <!ENTITY epsilon "ε"> + <!ENTITY alpha "ζ"> + <!NOTATION notation1 PUBLIC "notation1File"> + <!NOTATION notation2 SYSTEM "notation2File"> + <!ATTLIST acronym dir CDATA "ltr"> + <!ATTLIST head xmlns CDATA #IMPLIED> + <!ATTLIST body xmlns CDATA #IMPLIED> + <!ELEMENT svg (rect, script, head, body)> + <!ATTLIST svg xmlns CDATA #IMPLIED> + <!ELEMENT rect EMPTY> + <!ATTLIST rect + x CDATA #IMPLIED + y CDATA #IMPLIED + width CDATA #IMPLIED + height CDATA #IMPLIED> + <!ENTITY svgunit SYSTEM "svgunit.js"> + <!ENTITY svgtest SYSTEM "svgtest.js"> +]> +<!-- This is comment number 1.--> +<svg xmlns='http://www.w3.org/2000/svg'><rect x="0" y="0" width="100" height="100"/><script type="text/ecmascript">&svgtest;&svgunit;</script><head xmlns='http://www.w3.org/1999/xhtml'><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>hc_staff</title></head><body xmlns='http://www.w3.org/1999/xhtml'> + <p> + <em>EMP0001</em> + <strong>Margaret Martin</strong> + <code>Accountant</code> + <sup>56,000</sup> + <var>Female</var> + <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym> + </p> + <p> + <em>EMP0002</em> + <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &ent2; +This is an adjacent CDATASection with a reference to a tab &tab;</strong> + <code>Secretary</code> + <sup>35,000</sup> + <var>Female</var> + <acronym title="Yes" class="Yes">β Dallas, γ + 98554</acronym> + </p> + <p> + <em>EMP0003</em> + <strong>Roger + Jones</strong> + <code>Department Manager</code> + <sup>100,000</sup> + <var>δ</var> + <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym> + </p> + <p> + <em>EMP0004</em> + <strong>Jeny Oconnor</strong> + <code>Personnel Director</code> + <sup>95,000</sup> + <var>Female</var> + <acronym title="Yes" class="Yα">27 South Road. Dallas, Texas 98556</acronym> + </p> + <p> + <em>EMP0005</em> + <strong>Robert Myers</strong> + <code>Computer Specialist</code> + <sup>90,000</sup> + <var>male</var> + <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym> + </p> +</body></svg> diff --git a/test/testcases/tests/level1/core/files/hc_staff.xhtml b/test/testcases/tests/level1/core/files/hc_staff.xhtml new file mode 100644 index 0000000..16d4eb0 --- /dev/null +++ b/test/testcases/tests/level1/core/files/hc_staff.xhtml @@ -0,0 +1,60 @@ +<?xml version="1.0"?><?TEST-STYLE PIDATA?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd" [ + <!ENTITY alpha "α"> + <!ENTITY beta "β"> + <!ENTITY gamma "γ"> + <!ENTITY delta "δ"> + <!ENTITY epsilon "ε"> + <!ENTITY alpha "ζ"> + <!NOTATION notation1 PUBLIC "notation1File"> + <!NOTATION notation2 SYSTEM "notation2File"> + <!ATTLIST acronym dir CDATA "ltr"> +]> +<!-- This is comment number 1.--> +<html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>hc_staff</title><script type="text/javascript" src="svgunit.js"/><script charset="UTF-8" type="text/javascript" src="svgtest.js"/><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="parent.loadComplete()"> + <p> + <em>EMP0001</em> + <strong>Margaret Martin</strong> + <code>Accountant</code> + <sup>56,000</sup> + <var>Female</var> + <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym> + </p> + <p> + <em>EMP0002</em> + <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &ent2; +This is an adjacent CDATASection with a reference to a tab &tab;</strong> + <code>Secretary</code> + <sup>35,000</sup> + <var>Female</var> + <acronym title="Yes" class="Yes">β Dallas, γ + 98554</acronym> + </p> + <p> + <em>EMP0003</em> + <strong>Roger + Jones</strong> + <code>Department Manager</code> + <sup>100,000</sup> + <var>δ</var> + <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym> + </p> + <p> + <em>EMP0004</em> + <strong>Jeny Oconnor</strong> + <code>Personnel Director</code> + <sup>95,000</sup> + <var>Female</var> + <acronym title="Yes" class="Yα">27 South Road. Dallas, Texas 98556</acronym> + </p> + <p> + <em>EMP0005</em> + <strong>Robert Myers</strong> + <code>Computer Specialist</code> + <sup>90,000</sup> + <var>male</var> + <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym> + </p> +</body></html> diff --git a/test/testcases/tests/level1/core/files/hc_staff.xml b/test/testcases/tests/level1/core/files/hc_staff.xml new file mode 100644 index 0000000..2df9a74 --- /dev/null +++ b/test/testcases/tests/level1/core/files/hc_staff.xml @@ -0,0 +1,60 @@ +<?xml version="1.0"?><?TEST-STYLE PIDATA?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd" [ + <!ENTITY alpha "α"> + <!ENTITY beta "β"> + <!ENTITY gamma "γ"> + <!ENTITY delta "δ"> + <!ENTITY epsilon "ε"> + <!ENTITY alpha "ζ"> + <!NOTATION notation1 PUBLIC "notation1File"> + <!NOTATION notation2 SYSTEM "notation2File"> + <!ATTLIST acronym dir CDATA "ltr"> +]> +<!-- This is comment number 1.--> +<html xmlns='http://www.w3.org/1999/xhtml'><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/><title>hc_staff</title><script type="text/javascript" src="svgunit.js"/><script charset="UTF-8" type="text/javascript" src="svgtest.js"/><script type='text/javascript'>function loadComplete() { startTest(); }</script></head><body onload="parent.loadComplete()"> + <p> + <em>EMP0001</em> + <strong>Margaret Martin</strong> + <code>Accountant</code> + <sup>56,000</sup> + <var>Female</var> + <acronym title="Yes">1230 North Ave. Dallas, Texas 98551</acronym> + </p> + <p> + <em>EMP0002</em> + <strong>Martha RaynoldsThis is a CDATASection with EntityReference number 2 &ent2; +This is an adjacent CDATASection with a reference to a tab &tab;</strong> + <code>Secretary</code> + <sup>35,000</sup> + <var>Female</var> + <acronym title="Yes" class="Yes">β Dallas, γ + 98554</acronym> + </p> + <p> + <em>EMP0003</em> + <strong>Roger + Jones</strong> + <code>Department Manager</code> + <sup>100,000</sup> + <var>δ</var> + <acronym title="Yes" class="No">PO Box 27 Irving, texas 98553</acronym> + </p> + <p> + <em>EMP0004</em> + <strong>Jeny Oconnor</strong> + <code>Personnel Director</code> + <sup>95,000</sup> + <var>Female</var> + <acronym title="Yes" class="Yα">27 South Road. Dallas, Texas 98556</acronym> + </p> + <p> + <em>EMP0005</em> + <strong>Robert Myers</strong> + <code>Computer Specialist</code> + <sup>90,000</sup> + <var>male</var> + <acronym title="Yes">1821 Nordic. Road, Irving Texas 98558</acronym> + </p> +</body></html> diff --git a/test/testcases/tests/level1/core/files/staff.dtd b/test/testcases/tests/level1/core/files/staff.dtd new file mode 100644 index 0000000..02a994d --- /dev/null +++ b/test/testcases/tests/level1/core/files/staff.dtd @@ -0,0 +1,17 @@ +<!ELEMENT employeeId (#PCDATA)> +<!ELEMENT name (#PCDATA)> +<!ELEMENT position (#PCDATA)> +<!ELEMENT salary (#PCDATA)> +<!ELEMENT address (#PCDATA)> +<!ELEMENT entElement ( #PCDATA ) > +<!ELEMENT gender ( #PCDATA | entElement )* > +<!ELEMENT employee (employeeId, name, position, salary, gender, address) > +<!ELEMENT staff (employee)+> +<!ATTLIST entElement + attr1 CDATA "Attr"> +<!ATTLIST address + domestic CDATA #IMPLIED + street CDATA "Yes"> +<!ATTLIST entElement + domestic CDATA "MALE" > + diff --git a/test/testcases/tests/level1/core/files/staff.svg b/test/testcases/tests/level1/core/files/staff.svg new file mode 100644 index 0000000..77c9b5b --- /dev/null +++ b/test/testcases/tests/level1/core/files/staff.svg @@ -0,0 +1,72 @@ +<?xml version="1.0"?><?TEST-STYLE PIDATA?> +<!DOCTYPE svg SYSTEM "staff.dtd" [ + <!ENTITY ent1 "es"> + <!ENTITY ent2 "1900 Dallas Road"> + <!ENTITY ent3 "Texas"> + <!ENTITY ent4 "<entElement domestic='Yes'>Element data</entElement><?PItarget PIdata?>"> + <!ENTITY ent5 PUBLIC "entityURI" "entityFile" NDATA notation1> + <!ENTITY ent1 "This entity should be discarded"> + <!NOTATION notation1 PUBLIC "notation1File"> + <!NOTATION notation2 SYSTEM "notation2File"> + <!ATTLIST employee xmlns CDATA #IMPLIED> + <!ELEMENT svg (rect, script, employee+)> + <!ATTLIST svg + xmlns CDATA #FIXED "http://www.w3.org/2000/svg" + name CDATA #IMPLIED> + <!ELEMENT rect EMPTY> + <!ATTLIST rect + x CDATA #REQUIRED + y CDATA #REQUIRED + width CDATA #REQUIRED + height CDATA #REQUIRED> + <!ELEMENT script (#PCDATA)> + <!ATTLIST script type CDATA #IMPLIED> + <!ENTITY svgunit SYSTEM "svgunit.js"> + <!ENTITY svgtest SYSTEM "svgtest.js"> +]> +<!-- This is comment number 1.--> +<svg xmlns="http://www.w3.org/2000/svg"><rect x="0" y="0" width="100" height="100"/><script type="text/ecmascript">&svgunit;&svgtest;</script> + <employee xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1/Files"> + <employeeId>EMP0001</employeeId> + <name>Margaret Martin</name> + <position>Accountant</position> + <salary>56,000</salary> + <gender>Female</gender> + <address domestic="Yes">1230 North Ave. Dallas, Texas 98551</address> + </employee> + <employee xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1/Files"> + <employeeId>EMP0002</employeeId> + <name>Martha Raynolds<![CDATA[This is a CDATASection with EntityReference number 2 &ent2;]]> +<![CDATA[This is an adjacent CDATASection with a reference to a tab &tab;]]></name> + <position>Secretary</position> + <salary>35,000</salary> + <gender>Female</gender> + <address domestic="Yes" street="Yes">&ent2; Dallas, &ent3; + 98554</address> + </employee> + <employee xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1/Files"> + <employeeId>EMP0003</employeeId> + <name>Roger + Jones</name> + <position>Department Manager</position> + <salary>100,000</salary> + <gender>&ent4;</gender> + <address domestic="Yes" street="No">PO Box 27 Irving, texas 98553</address> + </employee> + <employee xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1/Files"> + <employeeId>EMP0004</employeeId> + <name>Jeny Oconnor</name> + <position>Personnel Director</position> + <salary>95,000</salary> + <gender>Female</gender> + <address domestic="Yes" street="Y&ent1;">27 South Road. Dallas, Texas 98556</address> + </employee> + <employee xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1/Files"> + <employeeId>EMP0005</employeeId> + <name>Robert Myers</name> + <position>Computer Specialist</position> + <salary>90,000</salary> + <gender>male</gender> + <address street="Yes">1821 Nordic. Road, Irving Texas 98558</address> + </employee> + </svg> diff --git a/test/testcases/tests/level1/core/files/staff.xml b/test/testcases/tests/level1/core/files/staff.xml new file mode 100644 index 0000000..f89c510 --- /dev/null +++ b/test/testcases/tests/level1/core/files/staff.xml @@ -0,0 +1,57 @@ +<?xml version="1.0"?><?TEST-STYLE PIDATA?> +<!DOCTYPE staff SYSTEM "staff.dtd" [ + <!ENTITY ent1 "es"> + <!ENTITY ent2 "1900 Dallas Road"> + <!ENTITY ent3 "Texas"> + <!ENTITY ent4 "<entElement domestic='Yes'>Element data</entElement><?PItarget PIdata?>"> + <!ENTITY ent5 PUBLIC "entityURI" "entityFile" NDATA notation1> + <!ENTITY ent1 "This entity should be discarded"> + <!NOTATION notation1 PUBLIC "notation1File"> + <!NOTATION notation2 SYSTEM "notation2File"> +]> +<!-- This is comment number 1.--> +<staff> + <employee> + <employeeId>EMP0001</employeeId> + <name>Margaret Martin</name> + <position>Accountant</position> + <salary>56,000</salary> + <gender>Female</gender> + <address domestic="Yes">1230 North Ave. Dallas, Texas 98551</address> + </employee> + <employee> + <employeeId>EMP0002</employeeId> + <name>Martha Raynolds<![CDATA[This is a CDATASection with EntityReference number 2 &ent2;]]> +<![CDATA[This is an adjacent CDATASection with a reference to a tab &tab;]]></name> + <position>Secretary</position> + <salary>35,000</salary> + <gender>Female</gender> + <address domestic="Yes" street="Yes">&ent2; Dallas, &ent3; + 98554</address> + </employee> + <employee> + <employeeId>EMP0003</employeeId> + <name>Roger + Jones</name> + <position>Department Manager</position> + <salary>100,000</salary> + <gender>&ent4;</gender> + <address domestic="Yes" street="No">PO Box 27 Irving, texas 98553</address> + </employee> + <employee> + <employeeId>EMP0004</employeeId> + <name>Jeny Oconnor</name> + <position>Personnel Director</position> + <salary>95,000</salary> + <gender>Female</gender> + <address domestic="Yes" street="Y&ent1;">27 South Road. Dallas, Texas 98556</address> + </employee> + <employee> + <employeeId>EMP0005</employeeId> + <name>Robert Myers</name> + <position>Computer Specialist</position> + <salary>90,000</salary> + <gender>male</gender> + <address street="Yes">1821 Nordic. Road, Irving Texas 98558</address> + </employee> + </staff> diff --git a/test/testcases/tests/level1/core/files/svgtest.js b/test/testcases/tests/level1/core/files/svgtest.js new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/testcases/tests/level1/core/files/svgtest.js diff --git a/test/testcases/tests/level1/core/files/svgunit.js b/test/testcases/tests/level1/core/files/svgunit.js new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/testcases/tests/level1/core/files/svgunit.js diff --git a/test/testcases/tests/level1/core/files/xhtml1-strict.dtd b/test/testcases/tests/level1/core/files/xhtml1-strict.dtd new file mode 100644 index 0000000..f3d0fba --- /dev/null +++ b/test/testcases/tests/level1/core/files/xhtml1-strict.dtd @@ -0,0 +1,65 @@ +<!--
+
+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.
+
+-->
+
+<!--
+
+This is a radically simplified DTD for use in the DOM Test Suites
+due to a XML non-conformance of one implementation in processing
+parameter entities. When that non-conformance is resolved,
+this DTD can be replaced by the normal DTD for XHTML.
+
+-->
+
+
+<!ELEMENT html (head, body)>
+<!ATTLIST html xmlns CDATA #IMPLIED>
+<!ELEMENT head (meta,title,script*)>
+<!ELEMENT meta EMPTY>
+<!ATTLIST meta
+ http-equiv CDATA #IMPLIED
+ content CDATA #IMPLIED>
+<!ELEMENT title (#PCDATA)>
+<!ELEMENT body (p*)>
+<!ATTLIST body onload CDATA #IMPLIED>
+<!ELEMENT p (#PCDATA|em|strong|code|sup|var|acronym|abbr)*>
+<!ATTLIST p
+ xmlns:dmstc CDATA #IMPLIED
+ xmlns:nm CDATA #IMPLIED
+ xmlns:emp2 CDATA #IMPLIED
+ id ID #IMPLIED
+>
+<!ELEMENT em (#PCDATA)>
+<!ELEMENT span (#PCDATA)>
+<!ELEMENT strong (#PCDATA)>
+<!ELEMENT code (#PCDATA)>
+<!ELEMENT sup (#PCDATA)>
+<!ELEMENT var (#PCDATA|span)*>
+<!ELEMENT acronym (#PCDATA)>
+<!ATTLIST acronym
+ title CDATA #IMPLIED
+ class CDATA #IMPLIED
+ id ID #IMPLIED
+>
+<!ELEMENT abbr (#PCDATA)>
+<!ATTLIST abbr
+ title CDATA #IMPLIED
+ class CDATA #IMPLIED
+ id ID #IMPLIED
+>
+<!ELEMENT script (#PCDATA)>
+<!ATTLIST script
+ type CDATA #IMPLIED
+ src CDATA #IMPLIED
+ charset CDATA #IMPLIED>
diff --git a/test/testcases/tests/level1/core/hc_attrappendchild1.xml b/test/testcases/tests/level1/core/hc_attrappendchild1.xml new file mode 100644 index 0000000..e1e669e --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrappendchild1.xml @@ -0,0 +1,63 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrappendchild1"> +<metadata> +<title>hc_attrappendchild1</title> +<creator>Curt Arnold</creator> +<description> +Appends a text node to an attribute and checks if the value of +the attribute is changed. +</description> + +<date qualifier="created">2004-01-01</date> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +<!-- Node.appendChild --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +</metadata> + +<var name="doc" type="Document"/> +<var name="acronymList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="titleAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<var name="textNode" type="Text"/> +<var name="retval" type="Node"/> +<var name="lastChild" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="acronymList" tagname='"acronym"'/> +<item interface="NodeList" obj="acronymList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="titleAttr" name='"title"'/> +<createTextNode var="textNode" obj="doc" data='"terday"'/> +<appendChild var="retval" obj="titleAttr" newChild="textNode"/> + +<!-- check that Attr.value gives expected result --> +<value interface="Attr" obj="titleAttr" var="value"/> +<assertEquals actual="value" expected='"Yesterday"' id="attrValue" ignoreCase="false"/> + +<!-- check that Node.value gives expected result --> +<nodeValue obj="titleAttr" var="value"/> +<assertEquals actual="value" expected='"Yesterday"' id="attrNodeValue" ignoreCase="false"/> + +<!-- check that retval is the appended node --> +<nodeValue obj="retval" var="value"/> +<assertEquals actual="value" expected='"terday"' id="retvalValue" ignoreCase="false"/> + +<!-- check that lastChild is the appended node --> +<lastChild var="lastChild" obj="titleAttr" interface="Node"/> +<nodeValue obj="lastChild" var="value"/> +<assertEquals actual="value" expected='"terday"' id="lastChildValue" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrappendchild2.xml b/test/testcases/tests/level1/core/hc_attrappendchild2.xml new file mode 100644 index 0000000..793fb8a --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrappendchild2.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrappendchild2"> +<metadata> +<title>hc_attrappendchild2</title> +<creator>Curt Arnold</creator> +<description> +Attempts to append an element to the child nodes of an attribute. +</description> + +<date qualifier="created">2004-01-01</date> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +<!-- Node.appendChild --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +</metadata> + +<var name="doc" type="Document"/> +<var name="acronymList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="titleAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<var name="newChild" type="Node"/> +<var name="retval" type="Node"/> +<var name="lastChild" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="acronymList" tagname='"acronym"'/> +<item interface="NodeList" obj="acronymList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="titleAttr" name='"title"'/> +<createElement var="newChild" obj="doc" tagName='"terday"'/> +<assertDOMException id="throw_HIERARCHY_REQUEST_ERR"> + <HIERARCHY_REQUEST_ERR> + <appendChild var="retval" obj="titleAttr" newChild="newChild"/> + </HIERARCHY_REQUEST_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrappendchild3.xml b/test/testcases/tests/level1/core/hc_attrappendchild3.xml new file mode 100644 index 0000000..89d826e --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrappendchild3.xml @@ -0,0 +1,72 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrappendchild3"> +<metadata> +<title>hc_attrappendchild3</title> +<creator>Curt Arnold</creator> +<description> +Appends a document fragment to an attribute and checks if the value of +the attribute is changed. +</description> + +<date qualifier="created">2004-01-01</date> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +<!-- Node.appendChild --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +</metadata> + +<var name="doc" type="Document"/> +<var name="acronymList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="titleAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<var name="terNode" type="Text"/> +<var name="dayNode" type="Text"/> +<var name="retval" type="Node"/> +<var name="lastChild" type="Node"/> +<var name="docFrag" type="DocumentFragment"/> + +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="acronymList" tagname='"acronym"'/> +<item interface="NodeList" obj="acronymList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="titleAttr" name='"title"'/> + +<createTextNode var="terNode" obj="doc" data='"ter"'/> +<createTextNode var="dayNode" obj="doc" data='"day"'/> +<createDocumentFragment var="docFrag" obj="doc"/> +<appendChild var="retval" obj="docFrag" newChild="terNode"/> +<appendChild var="retval" obj="docFrag" newChild="dayNode"/> + +<appendChild var="retval" obj="titleAttr" newChild="docFrag"/> + +<!-- check that Attr.value gives expected result --> +<value interface="Attr" obj="titleAttr" var="value"/> +<assertEquals actual="value" expected='"Yesterday"' id="attrValue" ignoreCase="false"/> + +<!-- check that Node.value gives expected result --> +<nodeValue obj="titleAttr" var="value"/> +<assertEquals actual="value" expected='"Yesterday"' id="attrNodeValue" ignoreCase="false"/> + +<!-- check that retval is the document fragment --> +<nodeValue obj="retval" var="value"/> +<assertNull actual="value" id="retvalValue"/> + +<!-- check that lastChild is the final node in the doc fragment node --> +<lastChild var="lastChild" obj="titleAttr" interface="Node"/> +<nodeValue obj="lastChild" var="value"/> +<assertEquals actual="value" expected='"day"' id="lastChildValue" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrappendchild4.xml b/test/testcases/tests/level1/core/hc_attrappendchild4.xml new file mode 100644 index 0000000..f2bed28 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrappendchild4.xml @@ -0,0 +1,59 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrappendchild4"> +<metadata> +<title>hc_attrappendchild4</title> +<creator>Curt Arnold</creator> +<description> +Attempt to append a CDATASection to an attribute which should result +in a HIERARCHY_REQUEST_ERR. +</description> + +<date qualifier="created">2004-01-01</date> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +<!-- Node.appendChild --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +</metadata> +<hasFeature feature='"XML"'/> +<var name="doc" type="Document"/> +<var name="acronymList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="titleAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<var name="textNode" type="Node"/> +<var name="retval" type="Node"/> +<var name="lastChild" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="acronymList" tagname='"acronym"'/> +<item interface="NodeList" obj="acronymList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="titleAttr" name='"title"'/> +<if><contentType type="text/html"/> + <assertDOMException id="throw_NOT_SUPPORTED_ERR"> + <NOT_SUPPORTED_ERR> + <createCDATASection var="textNode" obj="doc" data='"terday"'/> + </NOT_SUPPORTED_ERR> + </assertDOMException> +<else> +<createCDATASection var="textNode" obj="doc" data='"terday"'/> +<assertDOMException id="throw_HIERARCHY_REQUEST_ERR"> + <HIERARCHY_REQUEST_ERR> + <appendChild var="retval" obj="titleAttr" newChild="textNode"/> + </HIERARCHY_REQUEST_ERR> +</assertDOMException> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrappendchild5.xml b/test/testcases/tests/level1/core/hc_attrappendchild5.xml new file mode 100644 index 0000000..1dc2693 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrappendchild5.xml @@ -0,0 +1,54 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrappendchild5"> +<metadata> +<title>hc_attrappendchild5</title> +<creator>Curt Arnold</creator> +<description> +Attempt to append a node from another document to an attribute which should result +in a WRONG_DOCUMENT_ERR. +</description> + +<date qualifier="created">2004-01-01</date> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +<!-- Node.appendChild --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +</metadata> + +<var name="doc" type="Document"/> +<var name="acronymList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="titleAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<var name="textNode" type="Node"/> +<var name="retval" type="Node"/> +<var name="lastChild" type="Node"/> +<var name="otherDoc" type="Document"/> + +<load var="doc" href="hc_staff" willBeModified="true"/> +<load var="otherDoc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="acronymList" tagname='"acronym"'/> +<item interface="NodeList" obj="acronymList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="titleAttr" name='"title"'/> +<createTextNode var="textNode" obj="otherDoc" data='"terday"'/> + +<assertDOMException id="throw_WRONG_DOCUMENT_ERR"> + <WRONG_DOCUMENT_ERR> + <appendChild var="retval" obj="titleAttr" newChild="textNode"/> + </WRONG_DOCUMENT_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrappendchild6.xml b/test/testcases/tests/level1/core/hc_attrappendchild6.xml new file mode 100644 index 0000000..d180bc3 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrappendchild6.xml @@ -0,0 +1,59 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrappendchild6"> +<metadata> +<title>hc_attrappendchild6</title> +<creator>Curt Arnold</creator> +<description> +Creates an new attribute node and appends a text node. +</description> + +<date qualifier="created">2004-01-01</date> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +<!-- Node.appendChild --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +</metadata> + +<var name="doc" type="Document"/> +<var name="acronymList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="titleAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<var name="textNode" type="Text"/> +<var name="retval" type="Node"/> +<var name="lastChild" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<createAttribute var="titleAttr" obj="doc" name='"title"'/> +<createTextNode var="textNode" obj="doc" data='"Yesterday"'/> +<appendChild var="retval" obj="titleAttr" newChild="textNode"/> + +<!-- check that Attr.value gives expected result --> +<value interface="Attr" obj="titleAttr" var="value"/> +<assertEquals actual="value" expected='"Yesterday"' id="attrValue" ignoreCase="false"/> + +<!-- check that Node.value gives expected result --> +<nodeValue obj="titleAttr" var="value"/> +<assertEquals actual="value" expected='"Yesterday"' id="attrNodeValue" ignoreCase="false"/> + +<!-- check that retval is the appended node --> +<nodeValue obj="retval" var="value"/> +<assertEquals actual="value" expected='"Yesterday"' id="retvalValue" ignoreCase="false"/> + +<!-- check that lastChild is the appended node --> +<lastChild var="lastChild" obj="titleAttr" interface="Node"/> +<nodeValue obj="lastChild" var="value"/> +<assertEquals actual="value" expected='"Yesterday"' id="lastChildValue" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrchildnodes1.xml b/test/testcases/tests/level1/core/hc_attrchildnodes1.xml new file mode 100644 index 0000000..3a1e911 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrchildnodes1.xml @@ -0,0 +1,51 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrchildnodes1"> +<metadata> +<title>hc_attrchildnodes1</title> +<creator>Curt Arnold</creator> +<description> +Checks that Node.childNodes for an attribute node contains +the expected text node. +</description> + +<date qualifier="created">2004-01-01</date> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +<!-- Node.childNodes --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1451460987"/> +</metadata> + +<var name="doc" type="Document"/> +<var name="acronymList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="titleAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<var name="textNode" type="Text"/> +<var name="childNodes" type="NodeList"/> + +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="acronymList" tagname='"acronym"'/> +<item interface="NodeList" obj="acronymList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="titleAttr" name='"title"'/> +<childNodes var="childNodes" obj="titleAttr"/> +<assertSize size="1" collection="childNodes" id="childNodesSize"/> +<item var="textNode" obj="childNodes" index="0" interface="NodeList"/> +<nodeValue var="value" obj="textNode"/> +<assertEquals actual="value" expected='"Yes"' id="child1IsYes" ignoreCase="false"/> +<item var="textNode" obj="childNodes" index="1" interface="NodeList"/> +<assertNull actual="textNode" id="secondItemIsNull"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrchildnodes2.xml b/test/testcases/tests/level1/core/hc_attrchildnodes2.xml new file mode 100644 index 0000000..b637567 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrchildnodes2.xml @@ -0,0 +1,59 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrchildnodes2"> +<metadata> +<title>hc_attrchildnodes2</title> +<creator>Curt Arnold</creator> +<description> +Checks Node.childNodes for an attribute with multiple child nodes. +</description> + +<date qualifier="created">2004-01-01</date> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +<!-- Node.childNodes --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1451460987"/> +</metadata> + +<var name="doc" type="Document"/> +<var name="acronymList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="titleAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<var name="textNode" type="Text"/> +<var name="childNodes" type="NodeList"/> +<var name="retval" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="acronymList" tagname='"acronym"'/> +<item interface="NodeList" obj="acronymList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="titleAttr" name='"title"'/> +<childNodes var="childNodes" obj="titleAttr"/> + +<createTextNode var="textNode" obj="doc" data='"terday"'/> +<appendChild var="retval" obj="titleAttr" newChild="textNode"/> + +<assertSize size="2" collection="childNodes" id="childNodesSize"/> +<item var="textNode" obj="childNodes" index="0" interface="NodeList"/> +<nodeValue var="value" obj="textNode"/> +<assertEquals actual="value" expected='"Yes"' id="child1IsYes" ignoreCase="false"/> + +<item var="textNode" obj="childNodes" index="1" interface="NodeList"/> +<nodeValue var="value" obj="textNode"/> +<assertEquals actual="value" expected='"terday"' id="child2IsTerday" ignoreCase="false"/> + +<item var="textNode" obj="childNodes" index="2" interface="NodeList"/> +<assertNull actual="textNode" id="thirdItemIsNull"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrclonenode1.xml b/test/testcases/tests/level1/core/hc_attrclonenode1.xml new file mode 100644 index 0000000..ad9654f --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrclonenode1.xml @@ -0,0 +1,63 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrclonenode1"> +<metadata> +<title>hc_attrclonenode1</title> +<creator>Curt Arnold</creator> +<description> +Appends a text node to an attribute and clones the node. +</description> + +<date qualifier="created">2004-01-01</date> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +<!-- Node.cloneNode --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-3A0ED0A4"/> +</metadata> + +<var name="doc" type="Document"/> +<var name="acronymList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="titleAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<var name="textNode" type="Text"/> +<var name="retval" type="Node"/> +<var name="lastChild" type="Node"/> +<var name="clonedTitle" type="Attr"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="acronymList" tagname='"acronym"'/> +<item interface="NodeList" obj="acronymList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="titleAttr" name='"title"'/> +<createTextNode var="textNode" obj="doc" data='"terday"'/> +<appendChild var="retval" obj="titleAttr" newChild="textNode"/> + +<cloneNode var="clonedTitle" obj="titleAttr" deep="false"/> +<!-- change the original text node, should not affect the clone --> +<nodeValue obj="textNode" value='"text_node_not_cloned"'/> + +<!-- check that Attr.value gives expected result --> +<value interface="Attr" obj="clonedTitle" var="value"/> +<assertEquals actual="value" expected='"Yesterday"' id="attrValue" ignoreCase="false"/> + +<!-- check that Node.value gives expected result --> +<nodeValue obj="clonedTitle" var="value"/> +<assertEquals actual="value" expected='"Yesterday"' id="attrNodeValue" ignoreCase="false"/> + +<!-- check that lastChild is the the expected value --> +<lastChild var="lastChild" obj="clonedTitle" interface="Node"/> +<nodeValue obj="lastChild" var="value"/> +<assertEquals actual="value" expected='"terday"' id="lastChildValue" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrcreatedocumentfragment.xml b/test/testcases/tests/level1/core/hc_attrcreatedocumentfragment.xml new file mode 100644 index 0000000..a8026f9 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrcreatedocumentfragment.xml @@ -0,0 +1,58 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrcreatedocumentfragment"> +<metadata> +<title>hc_attrcreatedocumentfragment</title> +<creator>Curt Arnold</creator> +<description> + Create a new DocumentFragment and add a newly created Element node(with one attribute). + Once the element is added, its attribute should be available as an attribute associated + with an Element within a DocumentFragment. +</description> + +<date qualifier="created">2002-06-09</date> +<!-- createDocumentFragment --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-35CB04B5"/> +<!-- setAttribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68F082"/> +<!-- DocumentFragment --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-B63ED1A3"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=236"/> +<subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2003Jun/0011.html"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=184"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docFragment" type="DocumentFragment"/> +<var name="newOne" type="Element"/> +<var name="domesticNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="attribute" type="Attr"/> +<var name="attrName" type="DOMString"/> +<var name="appendedChild" type="Node"/> +<var name="langAttrCount" type="int" value="0"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<createDocumentFragment obj="doc" var="docFragment"/> +<createElement obj="doc" var="newOne" tagName='"html"'/> +<setAttribute obj="newOne" name='"lang"' value='"EN"'/> +<appendChild var="appendedChild" obj="docFragment" newChild="newOne"/> +<firstChild interface="Node" obj="docFragment" var="domesticNode"/> +<attributes obj="domesticNode" var="attributes"/> +<for-each collection="attributes" member="attribute"> + <nodeName var="attrName" obj="attribute"/> + <if><equals expected='"lang"' actual="attrName" ignoreCase="auto" context="attribute"/> + <increment var="langAttrCount" value="1"/> + </if> +</for-each> +<assertEquals expected="1" actual="langAttrCount" id="hasLangAttr" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrcreatetextnode.xml b/test/testcases/tests/level1/core/hc_attrcreatetextnode.xml new file mode 100644 index 0000000..86532b3 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrcreatetextnode.xml @@ -0,0 +1,51 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrcreatetextnode"> +<metadata> +<title>hc_attrCreateTextNode</title> +<creator>Curt Arnold</creator> +<description> + The "setValue()" method for an attribute creates a + Text node with the unparsed content of the string. + Retrieve the attribute named "class" from the last + child of of the fourth employee and assign the "Y&ent1;" + string to its value attribute. This value is not yet + parsed and therefore should still be the same upon + retrieval. This test uses the "getNamedItem(name)" method + from the NamedNodeMap interface. +</description> + +<date qualifier="created">2002-06-09</date> +<!-- Attr.value --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-221662474"/> +<!-- bug report on initial version --> +<subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2002Apr/0057.html"/> +</metadata> +<var name="doc" type="Document"/> +<var name="addressList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="streetAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="addressList" tagname='"acronym"'/> +<item interface="NodeList" obj="addressList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="streetAttr" name='"class"'/> +<value interface="Attr" obj="streetAttr" value='"Y&ent1;"'/> +<value interface="Attr" obj="streetAttr" var="value"/> +<assertEquals actual="value" expected='"Y&ent1;"' id="value" ignoreCase="false"/> +<nodeValue obj="streetAttr" var="value"/> +<assertEquals actual="value" expected='"Y&ent1;"' id="nodeValue" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrcreatetextnode2.xml b/test/testcases/tests/level1/core/hc_attrcreatetextnode2.xml new file mode 100644 index 0000000..474a26b --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrcreatetextnode2.xml @@ -0,0 +1,50 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrcreatetextnode2"> +<metadata> +<title>hc_attrCreateTextNode2</title> +<creator>Curt Arnold</creator> +<description> + The "setNodeValue()" method for an attribute creates a + Text node with the unparsed content of the string. + Retrieve the attribute named "class" from the last + child of of the fourth employee and assign the "Y&ent1;" + string to its value attribute. This value is not yet + parsed and therefore should still be the same upon + retrieval. This test uses the "getNamedItem(name)" method + from the NamedNodeMap interface. +</description> +<date qualifier="created">2002-06-09</date> +<!-- Node.nodeValue --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<!-- bug report on initial version --> +<subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2002Apr/0057.html"/> +</metadata> +<var name="doc" type="Document"/> +<var name="addressList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="streetAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="addressList" tagname='"acronym"'/> +<item interface="NodeList" obj="addressList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="streetAttr" name='"class"'/> +<nodeValue obj="streetAttr" value='"Y&ent1;"'/> +<value interface="Attr" obj="streetAttr" var="value"/> +<assertEquals actual="value" expected='"Y&ent1;"' id="value" ignoreCase="false"/> +<nodeValue obj="streetAttr" var="value"/> +<assertEquals actual="value" expected='"Y&ent1;"' id="nodeValue" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_attreffectivevalue.xml b/test/testcases/tests/level1/core/hc_attreffectivevalue.xml new file mode 100644 index 0000000..c3dccba --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attreffectivevalue.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attreffectivevalue"> +<metadata> +<title>hc_attrEffectiveValue</title> +<creator>Curt Arnold</creator> +<description> + If an Attr is explicitly assigned any value, then that value is the attributes effective value. + Retrieve the attribute named "domestic" from the last child of of the first employee + and examine its nodeValue attribute. This test uses the "getNamedItem(name)" method + from the NamedNodeMap interface. +</description> + +<date qualifier="created">2002-06-09</date> +<!-- Element.attributes --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +<!-- NamedNodeMap.getNamedItem --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1074577549"/> +</metadata> +<var name="doc" type="Document"/> +<var name="addressList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="domesticAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="addressList" tagname='"acronym"'/> +<item interface="NodeList" obj="addressList" var="testNode" index="0"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="domesticAttr" name='"title"'/> +<nodeValue obj="domesticAttr" var="value"/> +<assertEquals actual="value" expected='"Yes"' id="attrEffectiveValueAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrfirstchild.xml b/test/testcases/tests/level1/core/hc_attrfirstchild.xml new file mode 100644 index 0000000..0b19f35 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrfirstchild.xml @@ -0,0 +1,52 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrfirstchild"> +<metadata> +<title>hc_attrfirstchild</title> +<creator>Curt Arnold</creator> +<description> +Checks that Node.firstChild for an attribute node contains +the expected text node. +</description> + +<date qualifier="created">2004-01-01</date> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +<!-- Node.firstChild --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-169727388"/> +</metadata> + +<var name="doc" type="Document"/> +<var name="acronymList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="titleAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<var name="textNode" type="Text"/> +<var name="otherChild" type="Node"/> + +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="acronymList" tagname='"acronym"'/> +<item interface="NodeList" obj="acronymList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="titleAttr" name='"title"'/> +<firstChild var="textNode" obj="titleAttr" interface="Node"/> +<assertNotNull actual="textNode" id="textNodeNotNull"/> +<nodeValue var="value" obj="textNode"/> +<assertEquals actual="value" expected='"Yes"' id="child1IsYes" ignoreCase="false"/> +<nextSibling var="otherChild" obj="textNode" interface="Node"/> +<assertNull actual="otherChild" id="nextSiblingIsNull"/> +<previousSibling var="otherChild" obj="textNode" interface="Node"/> +<assertNull actual="otherChild" id="previousSiblingIsNull"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrgetvalue1.xml b/test/testcases/tests/level1/core/hc_attrgetvalue1.xml new file mode 100644 index 0000000..44344db --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrgetvalue1.xml @@ -0,0 +1,45 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrgetvalue1"> +<metadata> +<title>hc_attrgetvalue1</title> +<creator>Curt Arnold</creator> +<description> +Checks the value of an attribute that contains entity references. +</description> + +<date qualifier="created">2004-01-01</date> +<!-- Attr.value --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-221662474"/> +</metadata> + +<var name="doc" type="Document"/> +<var name="acronymList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="titleAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<var name="textNode" type="Text"/> +<var name="retval" type="Node"/> +<var name="lastChild" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="acronymList" tagname='"acronym"'/> +<item interface="NodeList" obj="acronymList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="titleAttr" name='"class"'/> + +<!-- check that Attr.value gives expected result --> +<value interface="Attr" obj="titleAttr" var="value"/> +<assertEquals actual="value" expected='"Yα"' id="attrValue1" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrgetvalue2.xml b/test/testcases/tests/level1/core/hc_attrgetvalue2.xml new file mode 100644 index 0000000..1b05e58 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrgetvalue2.xml @@ -0,0 +1,61 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrgetvalue2"> +<metadata> +<title>hc_attrgetvalue2</title> +<creator>Curt Arnold</creator> +<description> +Checks the value of an attribute that contains entity references. +</description> + +<date qualifier="created">2004-01-01</date> +<!-- Attr.value --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-221662474"/> +</metadata> +<hasFeature feature='"XML"'/> + +<var name="doc" type="Document"/> +<var name="acronymList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="titleAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<var name="textNode" type="Text"/> +<var name="retval" type="Node"/> +<var name="firstChild" type="Node"/> +<var name="alphaRef" type="EntityReference"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="acronymList" tagname='"acronym"'/> +<item interface="NodeList" obj="acronymList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="titleAttr" name='"class"'/> + +<if><contentType type="text/html"/> + <assertDOMException id="throw_NOT_SUPPORTED_ERR"> + <NOT_SUPPORTED_ERR> + <createEntityReference var="alphaRef" obj="doc" name='"alpha"'/> + </NOT_SUPPORTED_ERR> + </assertDOMException> +<else> +<!-- create an alpha entity reference and place it first --> +<createEntityReference var="alphaRef" obj="doc" name='"alpha"'/> +<firstChild var="firstChild" obj="titleAttr" interface="Node"/> +<insertBefore var="retval" obj="titleAttr" newChild="alphaRef" refChild="firstChild"/> + +<!-- check that Attr.value gives expected result --> +<value interface="Attr" obj="titleAttr" var="value"/> +<assertEquals actual="value" expected='"αYα"' id="attrValue1" ignoreCase="false"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrhaschildnodes.xml b/test/testcases/tests/level1/core/hc_attrhaschildnodes.xml new file mode 100644 index 0000000..9be5864 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrhaschildnodes.xml @@ -0,0 +1,43 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrhaschildnodes"> +<metadata> +<title>hc_attrhaschildnodes</title> +<creator>Curt Arnold</creator> +<description> +Checks that Node.hasChildNodes() is true for an attribute with content. +</description> + +<date qualifier="created">2004-01-01</date> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +<!-- Node.hasChildNodes --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-810594187"/> +</metadata> + +<var name="doc" type="Document"/> +<var name="acronymList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="titleAttr" type="Attr"/> +<var name="hasChildNodes" type="boolean"/> + +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="acronymList" tagname='"acronym"'/> +<item interface="NodeList" obj="acronymList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="titleAttr" name='"title"'/> +<hasChildNodes var="hasChildNodes" obj="titleAttr"/> +<assertTrue actual="hasChildNodes" id="hasChildrenIsTrue"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrinsertbefore1.xml b/test/testcases/tests/level1/core/hc_attrinsertbefore1.xml new file mode 100644 index 0000000..f36124e --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrinsertbefore1.xml @@ -0,0 +1,72 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrinsertbefore1"> +<metadata> +<title>hc_attrinsertbefore1</title> +<creator>Curt Arnold</creator> +<description> +Appends a text node to an attribute and checks if the value of +the attribute is changed. +</description> + +<date qualifier="created">2004-01-01</date> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +<!-- Node.insertBefore --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +</metadata> + +<var name="doc" type="Document"/> +<var name="acronymList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="titleAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<var name="textNode" type="Text"/> +<var name="retval" type="Node"/> +<var name="firstChild" type="Node"/> +<var name="lastChild" type="Node"/> +<var name="refChild" type="Node" isNull="true"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="acronymList" tagname='"acronym"'/> +<item interface="NodeList" obj="acronymList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="titleAttr" name='"title"'/> +<createTextNode var="textNode" obj="doc" data='"terday"'/> + +<insertBefore var="retval" obj="titleAttr" newChild="textNode" refChild="refChild"/> + +<!-- check that Attr.value gives expected result --> +<value interface="Attr" obj="titleAttr" var="value"/> +<assertEquals actual="value" expected='"Yesterday"' id="attrValue" ignoreCase="false"/> + +<!-- check that Node.value gives expected result --> +<nodeValue obj="titleAttr" var="value"/> +<assertEquals actual="value" expected='"Yesterday"' id="attrNodeValue" ignoreCase="false"/> + +<!-- check that retval is the appended node --> +<nodeValue obj="retval" var="value"/> +<assertEquals actual="value" expected='"terday"' id="retvalValue" ignoreCase="false"/> + +<!-- check that firstChild is the existing node --> +<firstChild var="firstChild" obj="titleAttr" interface="Node"/> +<nodeValue obj="firstChild" var="value"/> +<assertEquals actual="value" expected='"Yes"' id="firstChildValue" ignoreCase="false"/> + + +<!-- check that lastChild is the appended node --> +<lastChild var="lastChild" obj="titleAttr" interface="Node"/> +<nodeValue obj="lastChild" var="value"/> +<assertEquals actual="value" expected='"terday"' id="lastChildValue" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrinsertbefore2.xml b/test/testcases/tests/level1/core/hc_attrinsertbefore2.xml new file mode 100644 index 0000000..ae51d42 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrinsertbefore2.xml @@ -0,0 +1,71 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrinsertbefore2"> +<metadata> +<title>hc_attrinsertbefore2</title> +<creator>Curt Arnold</creator> +<description> +Prepends a text node to an attribute and checks if the value of +the attribute is changed. +</description> + +<date qualifier="created">2004-01-01</date> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +<!-- Node.insertBefore --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +</metadata> + +<var name="doc" type="Document"/> +<var name="acronymList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="titleAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<var name="textNode" type="Text"/> +<var name="retval" type="Node"/> +<var name="lastChild" type="Node"/> +<var name="firstChild" type="Node"/> +<var name="refChild" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="acronymList" tagname='"acronym"'/> +<item interface="NodeList" obj="acronymList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="titleAttr" name='"title"'/> +<createTextNode var="textNode" obj="doc" data='"terday"'/> +<firstChild var="refChild" obj="titleAttr" interface="Node"/> +<insertBefore var="retval" obj="titleAttr" newChild="textNode" refChild="refChild"/> + +<!-- check that Attr.value gives expected result --> +<value interface="Attr" obj="titleAttr" var="value"/> +<assertEquals actual="value" expected='"terdayYes"' id="attrValue" ignoreCase="false"/> + +<!-- check that Node.value gives expected result --> +<nodeValue obj="titleAttr" var="value"/> +<assertEquals actual="value" expected='"terdayYes"' id="attrNodeValue" ignoreCase="false"/> + +<!-- check that retval is the appended node --> +<nodeValue obj="retval" var="value"/> +<assertEquals actual="value" expected='"terday"' id="retvalValue" ignoreCase="false"/> + +<!-- check that firstChild is the prepended node --> +<firstChild var="firstChild" obj="titleAttr" interface="Node"/> +<nodeValue obj="firstChild" var="value"/> +<assertEquals actual="value" expected='"terday"' id="firstChildValue" ignoreCase="false"/> + +<!-- check that lastChild is the original node --> +<lastChild var="lastChild" obj="titleAttr" interface="Node"/> +<nodeValue obj="lastChild" var="value"/> +<assertEquals actual="value" expected='"Yes"' id="lastChildValue" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrinsertbefore3.xml b/test/testcases/tests/level1/core/hc_attrinsertbefore3.xml new file mode 100644 index 0000000..1d3e0ff --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrinsertbefore3.xml @@ -0,0 +1,79 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrinsertbefore3"> +<metadata> +<title>hc_attrinsertbefore3</title> +<creator>Curt Arnold</creator> +<description> +Appends a document fragment to an attribute and checks if the value of +the attribute is changed. +</description> + +<date qualifier="created">2004-01-01</date> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +<!-- Node.insertBefore --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +</metadata> + +<var name="doc" type="Document"/> +<var name="acronymList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="titleAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<var name="terNode" type="Text"/> +<var name="dayNode" type="Text"/> +<var name="docFrag" type="DocumentFragment"/> +<var name="retval" type="Node"/> +<var name="firstChild" type="Node"/> +<var name="lastChild" type="Node"/> +<var name="refChild" type="Node" isNull="true"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="acronymList" tagname='"acronym"'/> +<item interface="NodeList" obj="acronymList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="titleAttr" name='"title"'/> + +<createTextNode var="terNode" obj="doc" data='"ter"'/> +<createTextNode var="dayNode" obj="doc" data='"day"'/> +<createDocumentFragment var="docFrag" obj="doc"/> +<appendChild var="retval" obj="docFrag" newChild="terNode"/> +<appendChild var="retval" obj="docFrag" newChild="dayNode"/> + +<insertBefore var="retval" obj="titleAttr" newChild="docFrag" refChild="refChild"/> + +<!-- check that Attr.value gives expected result --> +<value interface="Attr" obj="titleAttr" var="value"/> +<assertEquals actual="value" expected='"Yesterday"' id="attrValue" ignoreCase="false"/> + +<!-- check that Node.value gives expected result --> +<nodeValue obj="titleAttr" var="value"/> +<assertEquals actual="value" expected='"Yesterday"' id="attrNodeValue" ignoreCase="false"/> + +<!-- check that retval is the appended node --> +<nodeValue obj="retval" var="value"/> +<assertNull actual="value" id="retvalValue"/> + +<!-- check that firstChild is the existing node --> +<firstChild var="firstChild" obj="titleAttr" interface="Node"/> +<nodeValue obj="firstChild" var="value"/> +<assertEquals actual="value" expected='"Yes"' id="firstChildValue" ignoreCase="false"/> + + +<!-- check that lastChild is the last child of the doc fragment --> +<lastChild var="lastChild" obj="titleAttr" interface="Node"/> +<nodeValue obj="lastChild" var="value"/> +<assertEquals actual="value" expected='"day"' id="lastChildValue" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrinsertbefore4.xml b/test/testcases/tests/level1/core/hc_attrinsertbefore4.xml new file mode 100644 index 0000000..0640396 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrinsertbefore4.xml @@ -0,0 +1,81 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrinsertbefore4"> +<metadata> +<title>hc_attrinsertbefore4</title> +<creator>Curt Arnold</creator> +<description> +Prepends a document fragment to an attribute and checks if the value of +the attribute is changed. +</description> + +<date qualifier="created">2004-01-01</date> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +<!-- Node.insertBefore --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +</metadata> + +<var name="doc" type="Document"/> +<var name="acronymList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="titleAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<var name="terNode" type="Text"/> +<var name="dayNode" type="Text"/> +<var name="docFrag" type="DocumentFragment"/> +<var name="retval" type="Node"/> +<var name="firstChild" type="Node"/> +<var name="lastChild" type="Node"/> +<var name="refChild" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="acronymList" tagname='"acronym"'/> +<item interface="NodeList" obj="acronymList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="titleAttr" name='"title"'/> + +<createTextNode var="terNode" obj="doc" data='"ter"'/> +<createTextNode var="dayNode" obj="doc" data='"day"'/> +<createDocumentFragment var="docFrag" obj="doc"/> +<appendChild var="retval" obj="docFrag" newChild="terNode"/> +<appendChild var="retval" obj="docFrag" newChild="dayNode"/> + + +<firstChild var="refChild" obj="titleAttr" interface="Node"/> +<insertBefore var="retval" obj="titleAttr" newChild="docFrag" refChild="refChild"/> + +<!-- check that Attr.value gives expected result --> +<value interface="Attr" obj="titleAttr" var="value"/> +<assertEquals actual="value" expected='"terdayYes"' id="attrValue" ignoreCase="false"/> + +<!-- check that Node.value gives expected result --> +<nodeValue obj="titleAttr" var="value"/> +<assertEquals actual="value" expected='"terdayYes"' id="attrNodeValue" ignoreCase="false"/> + +<!-- check that retval is the appended node --> +<nodeValue obj="retval" var="value"/> +<assertNull actual="value" id="retvalValue"/> + +<!-- check that firstChild is the first node in the document fragment --> +<firstChild var="firstChild" obj="titleAttr" interface="Node"/> +<nodeValue obj="firstChild" var="value"/> +<assertEquals actual="value" expected='"ter"' id="firstChildValue" ignoreCase="false"/> + +<!-- check that last child is the original node --> +<lastChild var="lastChild" obj="titleAttr" interface="Node"/> +<nodeValue obj="lastChild" var="value"/> +<assertEquals actual="value" expected='"Yes"' id="lastChildValue" ignoreCase="false"/> + +</test> diff --git a/test/testcases/tests/level1/core/hc_attrinsertbefore5.xml b/test/testcases/tests/level1/core/hc_attrinsertbefore5.xml new file mode 100644 index 0000000..71a3029 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrinsertbefore5.xml @@ -0,0 +1,60 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrinsertbefore5"> +<metadata> +<title>hc_attrinsertbefore5</title> +<creator>Curt Arnold</creator> +<description> +Attempt to append a CDATASection to an attribute which should result +in a HIERARCHY_REQUEST_ERR. +</description> + +<date qualifier="created">2004-01-01</date> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +<!-- Node.insertBefore --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +</metadata> +<hasFeature feature='"XML"'/> + +<var name="doc" type="Document"/> +<var name="acronymList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="titleAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<var name="textNode" type="Node"/> +<var name="retval" type="Node"/> +<var name="refChild" type="Node" isNull="true"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="acronymList" tagname='"acronym"'/> +<item interface="NodeList" obj="acronymList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="titleAttr" name='"title"'/> +<if><contentType type="text/html"/> + <assertDOMException id="throw_NOT_SUPPORTED_ERR"> + <NOT_SUPPORTED_ERR> + <createCDATASection var="textNode" obj="doc" data='"terday"'/> + </NOT_SUPPORTED_ERR> + </assertDOMException> +<else> +<createCDATASection var="textNode" obj="doc" data='"terday"'/> +<assertDOMException id="throw_HIERARCHY_REQUEST_ERR"> + <HIERARCHY_REQUEST_ERR> + <insertBefore var="retval" obj="titleAttr" newChild="textNode" refChild="refChild"/> + </HIERARCHY_REQUEST_ERR> +</assertDOMException> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrinsertbefore6.xml b/test/testcases/tests/level1/core/hc_attrinsertbefore6.xml new file mode 100644 index 0000000..a6347e6 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrinsertbefore6.xml @@ -0,0 +1,53 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrinsertbefore6"> +<metadata> +<title>hc_attrinsertbefore6</title> +<creator>Curt Arnold</creator> +<description> +Attempt to append a text node from another document to an attribute which should result +in a WRONG_DOCUMENT_ERR. +</description> + +<date qualifier="created">2004-01-01</date> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +<!-- Node.insertBefore --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +</metadata> + +<var name="doc" type="Document"/> +<var name="acronymList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="titleAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<var name="textNode" type="Node"/> +<var name="retval" type="Node"/> +<var name="refChild" type="Node" isNull="true"/> +<var name="otherDoc" type="Document"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<load var="otherDoc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="acronymList" tagname='"acronym"'/> +<item interface="NodeList" obj="acronymList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="titleAttr" name='"title"'/> +<createTextNode var="textNode" obj="otherDoc" data='"terday"'/> + +<assertDOMException id="throw_WRONG_DOCUMENT_ERR"> + <WRONG_DOCUMENT_ERR> + <insertBefore var="retval" obj="titleAttr" newChild="textNode" refChild="refChild"/> + </WRONG_DOCUMENT_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrinsertbefore7.xml b/test/testcases/tests/level1/core/hc_attrinsertbefore7.xml new file mode 100644 index 0000000..e60045f --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrinsertbefore7.xml @@ -0,0 +1,69 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrinsertbefore7"> +<metadata> +<title>hc_attrinsertbefore7</title> +<creator>Curt Arnold</creator> +<description> +Appends a document fragment containing a CDATASection to an attribute. +</description> + +<date qualifier="created">2004-01-01</date> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +<!-- Node.insertBefore --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +</metadata> +<hasFeature feature='"XML"'/> + +<var name="doc" type="Document"/> +<var name="acronymList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="titleAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<var name="terNode" type="Text"/> +<var name="dayNode" type="Node"/> +<var name="docFrag" type="DocumentFragment"/> +<var name="retval" type="Node"/> +<var name="firstChild" type="Node"/> +<var name="lastChild" type="Node"/> +<var name="refChild" type="Node" isNull="true"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="acronymList" tagname='"acronym"'/> +<item interface="NodeList" obj="acronymList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="titleAttr" name='"title"'/> + +<createTextNode var="terNode" obj="doc" data='"ter"'/> +<if><contentType type="text/html"/> + <assertDOMException id="throw_NOT_SUPPORTED_ERR"> + <NOT_SUPPORTED_ERR> + <createCDATASection var="dayNode" obj="doc" data='"day"'/> + </NOT_SUPPORTED_ERR> + </assertDOMException> +<else> +<createCDATASection var="dayNode" obj="doc" data='"day"'/> +<createDocumentFragment var="docFrag" obj="doc"/> +<appendChild var="retval" obj="docFrag" newChild="terNode"/> +<appendChild var="retval" obj="docFrag" newChild="dayNode"/> + +<assertDOMException id="throw_HIERARCHY_REQUEST_ERR"> + <HIERARCHY_REQUEST_ERR> + <insertBefore var="retval" obj="titleAttr" newChild="docFrag" refChild="refChild"/> + </HIERARCHY_REQUEST_ERR> +</assertDOMException> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrlastchild.xml b/test/testcases/tests/level1/core/hc_attrlastchild.xml new file mode 100644 index 0000000..60319ab --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrlastchild.xml @@ -0,0 +1,52 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrlastchild"> +<metadata> +<title>hc_attrlastchild</title> +<creator>Curt Arnold</creator> +<description> +Checks that Node.lastChild for an attribute node contains +the expected text node. +</description> + +<date qualifier="created">2004-01-01</date> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +<!-- Node.lastChild --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-61AD09FB"/> +</metadata> + +<var name="doc" type="Document"/> +<var name="acronymList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="titleAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<var name="textNode" type="Text"/> +<var name="otherChild" type="Node"/> + +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="acronymList" tagname='"acronym"'/> +<item interface="NodeList" obj="acronymList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="titleAttr" name='"title"'/> +<firstChild var="textNode" obj="titleAttr" interface="Node"/> +<assertNotNull actual="textNode" id="textNodeNotNull"/> +<nodeValue var="value" obj="textNode"/> +<assertEquals actual="value" expected='"Yes"' id="child1IsYes" ignoreCase="false"/> +<nextSibling var="otherChild" obj="textNode" interface="Node"/> +<assertNull actual="otherChild" id="nextSiblingIsNull"/> +<previousSibling var="otherChild" obj="textNode" interface="Node"/> +<assertNull actual="otherChild" id="previousSiblingIsNull"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrname.xml b/test/testcases/tests/level1/core/hc_attrname.xml new file mode 100644 index 0000000..30de522 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrname.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrname"> +<metadata> +<title>hc_attrName</title> +<creator>Curt Arnold</creator> +<description> + Retrieve the attribute named class from the last + child of of the second "p" element and examine its + NodeName. +</description> + +<date qualifier="created">2002-06-09</date> +<!-- Node.nodeName --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +<!-- Attr.name --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1112119403"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=236"/> +<subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2003Jun/0011.html"/> +</metadata> +<var name="doc" type="Document"/> +<var name="addressList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="streetAttr" type="Attr"/> +<var name="strong1" type="DOMString"/> +<var name="strong2" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="addressList" tagname='"acronym"'/> +<item interface="NodeList" obj="addressList" var="testNode" index="1"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="streetAttr" name='"class"'/> +<nodeName obj="streetAttr" var="strong1"/> +<name obj="streetAttr" var="strong2" interface="Attr"/> +<assertEquals actual="strong1" expected='"class"' id="nodeName" ignoreCase="auto" context="attribute"/> +<assertEquals actual="strong2" expected='"class"' id="name" ignoreCase="auto" context="attribute"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrnextsiblingnull.xml b/test/testcases/tests/level1/core/hc_attrnextsiblingnull.xml new file mode 100644 index 0000000..44e0678 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrnextsiblingnull.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrnextsiblingnull"> +<metadata> +<title>hc_attrNextSiblingNull</title> +<creator>Curt Arnold</creator> +<description> +The "getNextSibling()" method for an Attr node should return null. +Retrieve the attribute named "domestic" from the last child of of the +first employee and examine its NextSibling node. This test uses the +"getNamedItem(name)" method from the NamedNodeMap interface. +</description> + +<date qualifier="created">2002-06-09</date> +<!--nextSibling attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6AC54C2F"/> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +</metadata> +<var name="doc" type="Document"/> +<var name="addressList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="domesticAttr" type="Attr"/> +<var name="s" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="addressList" tagname='"acronym"'/> +<item interface="NodeList" obj="addressList" var="testNode" index="0"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="domesticAttr" name='"title"'/> +<nextSibling interface="Node" obj="domesticAttr" var="s"/> +<assertNull actual="s" id="attrNextSiblingNullAssert"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrnormalize.xml b/test/testcases/tests/level1/core/hc_attrnormalize.xml new file mode 100644 index 0000000..bc5a892 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrnormalize.xml @@ -0,0 +1,65 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrnormalize"> +<metadata> +<title>hc_attrnormalize</title> +<creator>Curt Arnold</creator> +<description> +Appends a text node to an attribute, normalizes the attribute +and checks for a single child node. +</description> + +<date qualifier="created">2004-01-01</date> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +<!-- Node.normalize --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-162CF083"/> +</metadata> + +<var name="doc" type="Document"/> +<var name="acronymList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="titleAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<var name="textNode" type="Text"/> +<var name="retval" type="Node"/> +<var name="firstChild" type="Node"/> +<var name="secondChild" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="acronymList" tagname='"acronym"'/> +<item interface="NodeList" obj="acronymList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="titleAttr" name='"title"'/> +<createTextNode var="textNode" obj="doc" data='"terday"'/> +<appendChild var="retval" obj="titleAttr" newChild="textNode"/> +<createTextNode var="textNode" obj="doc" data='""'/> +<appendChild var="retval" obj="titleAttr" newChild="textNode"/> + + +<!-- in level 1, normalize is on element --> +<normalize obj="testNode"/> + +<!-- check that Node.value gives expected result --> +<nodeValue obj="titleAttr" var="value"/> +<assertEquals actual="value" expected='"Yesterday"' id="attrNodeValue" ignoreCase="false"/> + +<!-- check that first child has all the content --> +<firstChild var="firstChild" obj="titleAttr" interface="Node"/> +<nodeValue obj="firstChild" var="value"/> +<assertEquals actual="value" expected='"Yesterday"' id="firstChildValue" ignoreCase="false"/> + +<nextSibling var="secondChild" obj="firstChild" interface="Node"/> +<assertNull actual="secondChild" id="secondChildIsNull"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrparentnodenull.xml b/test/testcases/tests/level1/core/hc_attrparentnodenull.xml new file mode 100644 index 0000000..1ad351d --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrparentnodenull.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrparentnodenull"> +<metadata> +<title>hc_attrParentNodeNull</title> +<creator>Curt Arnold</creator> +<description> +The "getParentNode()" method for an Attr node should return null. Retrieve +the attribute named "domestic" from the last child of the first employee +and examine its parentNode attribute. This test also uses the "getNamedItem(name)" +method from the NamedNodeMap interface. +</description> + +<date qualifier="created">2002-06-09</date> +<!--parentNode attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1060184317"/> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +</metadata> +<var name="doc" type="Document"/> +<var name="addressList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="domesticAttr" type="Attr"/> +<var name="s" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="addressList" tagname='"acronym"'/> +<item interface="NodeList" obj="addressList" var="testNode" index="0"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="domesticAttr" name='"title"'/> +<parentNode interface="Node" obj="domesticAttr" var="s"/> +<assertNull actual="s" id="attrParentNodeNullAssert"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrprevioussiblingnull.xml b/test/testcases/tests/level1/core/hc_attrprevioussiblingnull.xml new file mode 100644 index 0000000..bd7c262 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrprevioussiblingnull.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrprevioussiblingnull"> +<metadata> +<title>hc_attrPreviousSiblingNull</title> +<creator>Curt Arnold</creator> +<description> +The "getPreviousSibling()" method for an Attr node should return null. +Retrieve the attribute named "domestic" from the last child of of the +first employee and examine its PreviousSibling node. This test uses the +"getNamedItem(name)" method from the NamedNodeMap interface. +</description> + +<date qualifier="created">2002-06-09</date> +<!--previousSibling attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-640FB3C8"/> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +</metadata> +<var name="doc" type="Document"/> +<var name="addressList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="domesticAttr" type="Attr"/> +<var name="s" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="addressList" tagname='"acronym"'/> +<item interface="NodeList" obj="addressList" var="testNode" index="0"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="domesticAttr" name='"title"'/> +<previousSibling interface="Node" obj="domesticAttr" var="s"/> +<assertNull actual="s" id="attrPreviousSiblingNullAssert"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrremovechild1.xml b/test/testcases/tests/level1/core/hc_attrremovechild1.xml new file mode 100644 index 0000000..748d8e7 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrremovechild1.xml @@ -0,0 +1,62 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrremovechild1"> +<metadata> +<title>hc_attrremovechild1</title> +<creator>Curt Arnold</creator> +<description> +Removes the child node of an attribute and checks that the value is empty. +</description> + +<date qualifier="created">2004-01-01</date> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +<!-- Node.removeChild --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1734834066"/> +</metadata> + +<var name="doc" type="Document"/> +<var name="acronymList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="titleAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<var name="textNode" type="Text"/> +<var name="retval" type="Node"/> +<var name="firstChild" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="acronymList" tagname='"acronym"'/> +<item interface="NodeList" obj="acronymList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="titleAttr" name='"title"'/> +<firstChild var="textNode" obj="titleAttr" interface="Node"/> +<assertNotNull actual="textNode" id="attrChildNotNull"/> +<removeChild var="retval" obj="titleAttr" oldChild="textNode"/> + +<!-- check that Attr.value gives expected result --> +<value interface="Attr" obj="titleAttr" var="value"/> +<assertEquals actual="value" expected='""' id="attrValue" ignoreCase="false"/> + +<!-- check that Node.value gives expected result --> +<nodeValue obj="titleAttr" var="value"/> +<assertEquals actual="value" expected='""' id="attrNodeValue" ignoreCase="false"/> + +<!-- check that retval is the removed node --> +<nodeValue obj="retval" var="value"/> +<assertEquals actual="value" expected='"Yes"' id="retvalValue" ignoreCase="false"/> + +<!-- check that firstChild is null --> +<firstChild var="firstChild" obj="titleAttr" interface="Node"/> +<assertNull actual="firstChild" id="firstChildNull"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrremovechild2.xml b/test/testcases/tests/level1/core/hc_attrremovechild2.xml new file mode 100644 index 0000000..b47726b --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrremovechild2.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrremovechild2"> +<metadata> +<title>hc_attrremovechild2</title> +<creator>Curt Arnold</creator> +<description> +Attempts to remove a freshly created text node which should result in a NOT_FOUND_ERR exception. +</description> + +<date qualifier="created">2004-01-01</date> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +<!-- Node.removeChild --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1734834066"/> +</metadata> + +<var name="doc" type="Document"/> +<var name="acronymList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="titleAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<var name="textNode" type="Text"/> +<var name="retval" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="acronymList" tagname='"acronym"'/> +<item interface="NodeList" obj="acronymList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="titleAttr" name='"title"'/> + +<createTextNode var="textNode" obj="doc" data='"Yesterday"'/> +<assertDOMException id="throw_NOT_FOUND_ERR"> + <NOT_FOUND_ERR> + <removeChild var="retval" obj="titleAttr" oldChild="textNode"/> + </NOT_FOUND_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrreplacechild1.xml b/test/testcases/tests/level1/core/hc_attrreplacechild1.xml new file mode 100644 index 0000000..c648e5d --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrreplacechild1.xml @@ -0,0 +1,65 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrreplacechild1"> +<metadata> +<title>hc_attrreplacechild1</title> +<creator>Curt Arnold</creator> +<description> +Replaces a text node of an attribute and checks if the value of +the attribute is changed. +</description> + +<date qualifier="created">2004-01-01</date> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +<!-- Node.replaceChild --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307"/> +</metadata> + +<var name="doc" type="Document"/> +<var name="acronymList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="titleAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<var name="textNode" type="Text"/> +<var name="retval" type="Node"/> +<var name="firstChild" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="acronymList" tagname='"acronym"'/> +<item interface="NodeList" obj="acronymList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="titleAttr" name='"title"'/> +<createTextNode var="textNode" obj="doc" data='"terday"'/> +<firstChild var="firstChild" obj="titleAttr" interface="Node"/> +<assertNotNull actual="firstChild" id="attrChildNotNull"/> +<replaceChild var="retval" obj="titleAttr" newChild="textNode" oldChild="firstChild"/> + +<!-- check that Attr.value gives expected result --> +<value interface="Attr" obj="titleAttr" var="value"/> +<assertEquals actual="value" expected='"terday"' id="attrValue" ignoreCase="false"/> + +<!-- check that Node.value gives expected result --> +<nodeValue obj="titleAttr" var="value"/> +<assertEquals actual="value" expected='"terday"' id="attrNodeValue" ignoreCase="false"/> + +<!-- check that retval is the removed node --> +<nodeValue obj="retval" var="value"/> +<assertEquals actual="value" expected='"Yes"' id="retvalValue" ignoreCase="false"/> + +<!-- check that firstChild is the appended node --> +<firstChild var="firstChild" obj="titleAttr" interface="Node"/> +<nodeValue obj="firstChild" var="value"/> +<assertEquals actual="value" expected='"terday"' id="firstChildValue" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrreplacechild2.xml b/test/testcases/tests/level1/core/hc_attrreplacechild2.xml new file mode 100644 index 0000000..b337a3b --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrreplacechild2.xml @@ -0,0 +1,74 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrreplacechild2"> +<metadata> +<title>hc_attrreplacechild2</title> +<creator>Curt Arnold</creator> +<description> +Replaces a text node of an attribute with a document fragment and checks if the value of +the attribute is changed. +</description> + +<date qualifier="created">2004-01-01</date> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +<!-- Node.replaceChild --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307"/> +</metadata> + +<var name="doc" type="Document"/> +<var name="acronymList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="titleAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<var name="terNode" type="Text"/> +<var name="dayNode" type="Text"/> +<var name="docFrag" type="DocumentFragment"/> + +<var name="retval" type="Node"/> +<var name="firstChild" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="acronymList" tagname='"acronym"'/> +<item interface="NodeList" obj="acronymList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="titleAttr" name='"title"'/> + +<createTextNode var="terNode" obj="doc" data='"ter"'/> +<createTextNode var="dayNode" obj="doc" data='"day"'/> +<createDocumentFragment var="docFrag" obj="doc"/> +<appendChild var="retval" obj="docFrag" newChild="terNode"/> +<appendChild var="retval" obj="docFrag" newChild="dayNode"/> + +<firstChild var="firstChild" obj="titleAttr" interface="Node"/> +<assertNotNull actual="firstChild" id="attrChildNotNull"/> +<replaceChild var="retval" obj="titleAttr" newChild="docFrag" oldChild="firstChild"/> + +<!-- check that Attr.value gives expected result --> +<value interface="Attr" obj="titleAttr" var="value"/> +<assertEquals actual="value" expected='"terday"' id="attrValue" ignoreCase="false"/> + +<!-- check that Node.value gives expected result --> +<nodeValue obj="titleAttr" var="value"/> +<assertEquals actual="value" expected='"terday"' id="attrNodeValue" ignoreCase="false"/> + +<!-- check that retval is the removed node --> +<nodeValue obj="retval" var="value"/> +<assertEquals actual="value" expected='"Yes"' id="retvalValue" ignoreCase="false"/> + +<!-- check that firstChild is the first node of the doc fragment --> +<firstChild var="firstChild" obj="titleAttr" interface="Node"/> +<nodeValue obj="firstChild" var="value"/> +<assertEquals actual="value" expected='"ter"' id="firstChildValue" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrsetvalue1.xml b/test/testcases/tests/level1/core/hc_attrsetvalue1.xml new file mode 100644 index 0000000..93afe76 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrsetvalue1.xml @@ -0,0 +1,68 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrsetvalue1"> +<metadata> +<title>hc_attrsetvalue1</title> +<creator>Curt Arnold</creator> +<description> +Sets Attr.value on an attribute that only has a simple value. +</description> + +<date qualifier="created">2004-01-01</date> +<!-- Attr.value --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-221662474"/> +</metadata> + +<var name="doc" type="Document"/> +<var name="acronymList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="titleAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<var name="retval" type="Node"/> +<var name="firstChild" type="Node"/> +<var name="otherChild" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="acronymList" tagname='"acronym"'/> +<item interface="NodeList" obj="acronymList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="titleAttr" name='"title"'/> +<firstChild var="firstChild" obj="titleAttr" interface="Node"/> +<assertNotNull actual="firstChild" id="attrChildNotNull"/> + +<!-- set value which should totally replace child node list --> +<value obj="titleAttr" value='"Tomorrow"' interface="Attr"/> + +<!-- setting the previous first child should have not + affect on current value --> +<nodeValue obj="firstChild" value='"impl reused node"'/> + + +<!-- check that Attr.value gives expected result --> +<value interface="Attr" obj="titleAttr" var="value"/> +<assertEquals actual="value" expected='"Tomorrow"' id="attrValue" ignoreCase="false"/> + +<!-- check that Node.value gives expected result --> +<nodeValue obj="titleAttr" var="value"/> +<assertEquals actual="value" expected='"Tomorrow"' id="attrNodeValue" ignoreCase="false"/> + +<!-- check that firstChild is an implicitly created node --> +<lastChild var="firstChild" obj="titleAttr" interface="Node"/> +<nodeValue obj="firstChild" var="value"/> +<assertEquals actual="value" expected='"Tomorrow"' id="firstChildValue" ignoreCase="false"/> + +<nextSibling var="otherChild" obj="firstChild" interface="Node"/> +<assertNull actual="otherChild" id="nextSiblingIsNull"/> + +</test> diff --git a/test/testcases/tests/level1/core/hc_attrsetvalue2.xml b/test/testcases/tests/level1/core/hc_attrsetvalue2.xml new file mode 100644 index 0000000..d0f9589 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrsetvalue2.xml @@ -0,0 +1,71 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrsetvalue2"> +<metadata> +<title>hc_attrsetvalue2</title> +<creator>Curt Arnold</creator> +<description> +Sets Attr.value on an attribute that should contain multiple child nodes. +</description> + +<date qualifier="created">2004-01-01</date> +<!-- Attr.value --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-221662474"/> +</metadata> + +<var name="doc" type="Document"/> +<var name="acronymList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="titleAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<var name="textNode" type="Text"/> +<var name="retval" type="Node"/> +<var name="firstChild" type="Node"/> +<var name="otherChild" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="acronymList" tagname='"acronym"'/> +<item interface="NodeList" obj="acronymList" var="testNode" index="3"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="titleAttr" name='"title"'/> +<createTextNode var="textNode" obj="doc" data='"terday"'/> +<appendChild var="retval" obj="titleAttr" newChild="textNode"/> +<firstChild var="firstChild" obj="titleAttr" interface="Node"/> +<assertNotNull actual="firstChild" id="attrChildNotNull"/> + +<!-- set value which should totally replace child node list --> +<value obj="titleAttr" value='"Tomorrow"' interface="Attr"/> + +<!-- setting the previous first child should have not + affect on current value --> +<nodeValue obj="firstChild" value='"impl reused node"'/> + + +<!-- check that Attr.value gives expected result --> +<value interface="Attr" obj="titleAttr" var="value"/> +<assertEquals actual="value" expected='"Tomorrow"' id="attrValue" ignoreCase="false"/> + +<!-- check that Node.value gives expected result --> +<nodeValue obj="titleAttr" var="value"/> +<assertEquals actual="value" expected='"Tomorrow"' id="attrNodeValue" ignoreCase="false"/> + +<!-- check that firstChild is an implicitly created node --> +<lastChild var="firstChild" obj="titleAttr" interface="Node"/> +<nodeValue obj="firstChild" var="value"/> +<assertEquals actual="value" expected='"Tomorrow"' id="firstChildValue" ignoreCase="false"/> + +<nextSibling var="otherChild" obj="firstChild" interface="Node"/> +<assertNull actual="otherChild" id="nextSiblingIsNull"/> + +</test> diff --git a/test/testcases/tests/level1/core/hc_attrspecifiedvalue.xml b/test/testcases/tests/level1/core/hc_attrspecifiedvalue.xml new file mode 100644 index 0000000..55a9647 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrspecifiedvalue.xml @@ -0,0 +1,45 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrspecifiedvalue"> +<metadata> +<title>hc_attrSpecifiedValue</title> +<creator>Curt Arnold</creator> +<description> + The "getSpecified()" method for an Attr node should + be set to true if the attribute was explicitly given + a value. + Retrieve the attribute named "domestic" from the last + child of of the first employee and examine the value + returned by the "getSpecified()" method. This test uses + the "getNamedItem(name)" method from the NamedNodeMap + interface. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-862529273"/> +</metadata> +<var name="doc" type="Document"/> +<var name="addressList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="domesticAttr" type="Attr"/> +<var name="state" type="boolean"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="addressList" tagname='"acronym"'/> +<item interface="NodeList" obj="addressList" var="testNode" index="0"/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="domesticAttr" name='"title"'/> +<specified obj="domesticAttr" var="state"/> +<assertTrue actual="state" id="acronymTitleSpecified"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_attrspecifiedvaluechanged.xml b/test/testcases/tests/level1/core/hc_attrspecifiedvaluechanged.xml new file mode 100644 index 0000000..4f0c703 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_attrspecifiedvaluechanged.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_attrspecifiedvaluechanged"> +<metadata> +<title>hc_attrSpecifiedValueChanged</title> +<creator>Curt Arnold</creator> +<description> + The "getSpecified()" method for an Attr node should return true if the + value of the attribute is changed. + Retrieve the attribute named "class" from the last + child of of the THIRD employee and change its + value to "Yes"(which is the default DTD value). This + should cause the "getSpecified()" method to be true. + This test uses the "setAttribute(name,value)" method + from the Element interface and the "getNamedItem(name)" + method from the NamedNodeMap interface. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-862529273"/> +</metadata> +<var name="doc" type="Document"/> +<var name="addressList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="streetAttr" type="Attr"/> +<var name="state" type="boolean"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="addressList" tagname='"acronym"'/> +<item interface="NodeList" obj="addressList" var="testNode" index="2"/> +<setAttribute obj="testNode" name='"class"' value='"Yα"'/> +<attributes obj="testNode" var="attributes"/> +<getNamedItem obj="attributes" var="streetAttr" name='"class"'/> +<specified obj="streetAttr" var="state"/> +<assertTrue actual="state" id="acronymClassSpecified"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdataappenddata.xml b/test/testcases/tests/level1/core/hc_characterdataappenddata.xml new file mode 100644 index 0000000..d1e3a28 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdataappenddata.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdataappenddata"> +<metadata> +<title>hc_characterdataAppendData</title> +<creator>Curt Arnold</creator> +<description> + The "appendData(arg)" method appends a string to the end + of the character data of the node. + + Retrieve the character data from the second child + of the first employee. The appendData(arg) method is + called with arg=", Esquire". The method should append + the specified data to the already existing character + data. The new value return by the "getLength()" method + should be 24. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-32791A2F"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childValue" type="DOMString"/> +<var name="childLength" type="int"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"strong"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<appendData obj="child" arg='", Esquire"'/> +<data obj="child" var="childValue" interface="CharacterData"/> +<length obj="childValue" var="childLength" interface="DOMString"/> +<assertEquals actual="childLength" expected="24" ignoreCase="false" id="characterdataAppendDataAssert"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdataappenddatagetdata.xml b/test/testcases/tests/level1/core/hc_characterdataappenddatagetdata.xml new file mode 100644 index 0000000..5a861d1 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdataappenddatagetdata.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdataappenddatagetdata"> +<metadata> +<title>hc_characterdataAppendDataGetData</title> +<creator>Curt Arnold</creator> +<description> + On successful invocation of the "appendData(arg)" + method the "getData()" method provides access to the + concatentation of data and the specified string. + + Retrieve the character data from the second child + of the first employee. The appendData(arg) method is + called with arg=", Esquire". The method should append + the specified data to the already existing character + data. The new value return by the "getData()" method + should be "Margaret Martin, Esquire". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-32791A2F"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"strong"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<appendData obj="child" arg='", Esquire"'/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected='"Margaret Martin, Esquire"' id="characterdataAppendDataGetDataAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdatadeletedatabegining.xml b/test/testcases/tests/level1/core/hc_characterdatadeletedatabegining.xml new file mode 100644 index 0000000..5fb3027 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdatadeletedatabegining.xml @@ -0,0 +1,45 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdatadeletedatabegining"> +<metadata> +<title>hc_characterdataDeleteDataBeginning</title> +<creator>Curt Arnold</creator> +<description> +The "deleteData(offset,count)" method removes a range of +characters from the node. Delete data at the beginning +of the character data. + +Retrieve the character data from the last child of the +first employee. The "deleteData(offset,count)" +method is then called with offset=0 and count=16. +The method should delete the characters from position +0 thru position 16. The new value of the character data +should be "Dallas, Texas 98551". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7C603781"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<deleteData obj="child" offset="0" count="16"/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected='"Dallas, Texas 98551"' id="data" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdatadeletedataend.xml b/test/testcases/tests/level1/core/hc_characterdatadeletedataend.xml new file mode 100644 index 0000000..04dea1b --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdatadeletedataend.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdatadeletedataend"> +<metadata> +<title>hc_characterdataDeleteDataEnd</title> +<creator>Curt Arnold</creator> +<description> + The "deleteData(offset,count)" method removes a range of + characters from the node. Delete data at the end + of the character data. + + Retrieve the character data from the last child of the + first employee. The "deleteData(offset,count)" + method is then called with offset=30 and count=5. + The method should delete the characters from position + 30 thru position 35. The new value of the character data + should be "1230 North Ave. Dallas, Texas". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7C603781"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<deleteData obj="child" offset="30" count="5"/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected='"1230 North Ave. Dallas, Texas "' id="characterdataDeleteDataEndAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdatadeletedataexceedslength.xml b/test/testcases/tests/level1/core/hc_characterdatadeletedataexceedslength.xml new file mode 100644 index 0000000..a76bb58 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdatadeletedataexceedslength.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdatadeletedataexceedslength"> +<metadata> +<title>hc_characterdataDeleteDataExceedsLength</title> +<creator>Curt Arnold</creator> +<description> + If the sum of the offset and count used in the + "deleteData(offset,count) method is greater than the + length of the character data then all the characters + from the offset to the end of the data are deleted. + + Retrieve the character data from the last child of the + first employee. The "deleteData(offset,count)" + method is then called with offset=4 and count=50. + The method should delete the characters from position 4 + to the end of the data since the offset+count(50+4) + is greater than the length of the character data(35). + The new value of the character data should be "1230". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7C603781"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<deleteData obj="child" offset="4" count="50"/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected='"1230"' id="characterdataDeleteDataExceedsLengthAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdatadeletedatagetlengthanddata.xml b/test/testcases/tests/level1/core/hc_characterdatadeletedatagetlengthanddata.xml new file mode 100644 index 0000000..b241f9f --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdatadeletedatagetlengthanddata.xml @@ -0,0 +1,54 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdatadeletedatagetlengthanddata"> +<metadata> +<title>hc_characterdataDeleteDataGetLengthAndData</title> +<creator>Curt Arnold</creator> +<description> + On successful invocation of the "deleteData(offset,count)" + method, the "getData()" and "getLength()" methods reflect + the changes. + + Retrieve the character data from the last child of the + first employee. The "deleteData(offset,count)" + method is then called with offset=30 and count=5. + The method should delete the characters from position + 30 thru position 35. The new value of the character data + should be "1230 North Ave. Dallas, Texas" which is + returned by the "getData()" method and "getLength()" + method should return 30". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7D61178C"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7C603781"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<var name="childLength" type="int"/> +<var name="result" type="List"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<deleteData obj="child" offset="30" count="5"/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected='"1230 North Ave. Dallas, Texas "' ignoreCase="false" id="data"/> +<length interface="CharacterData" obj="child" var="childLength"/> +<assertEquals actual="childLength" expected="30" ignoreCase="false" id="length"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdatadeletedatamiddle.xml b/test/testcases/tests/level1/core/hc_characterdatadeletedatamiddle.xml new file mode 100644 index 0000000..a7f55f8 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdatadeletedatamiddle.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdatadeletedatamiddle"> +<metadata> +<title>hc_characterdataDeleteDataMiddle</title> +<creator>Curt Arnold</creator> +<description> + The "deleteData(offset,count)" method removes a range of + characters from the node. Delete data in the middle + of the character data. + + Retrieve the character data from the last child of the + first employee. The "deleteData(offset,count)" + method is then called with offset=16 and count=8. + The method should delete the characters from position + 16 thru position 24. The new value of the character data + should be "1230 North Ave. Texas 98551". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7C603781"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<deleteData obj="child" offset="16" count="8"/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected='"1230 North Ave. Texas 98551"' id="characterdataDeleteDataMiddleAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdatagetdata.xml b/test/testcases/tests/level1/core/hc_characterdatagetdata.xml new file mode 100644 index 0000000..6841b7e --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdatagetdata.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdatagetdata"> +<metadata> +<title>hc_characterdataGetData</title> +<creator>Curt Arnold</creator> +<description> + + The "getData()" method retrieves the character data + + currently stored in the node. + + Retrieve the character data from the second child + + of the first employee and invoke the "getData()" + + method. The method returns the character data + + string. + +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"strong"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected='"Margaret Martin"' id="characterdataGetDataAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdatagetlength.xml b/test/testcases/tests/level1/core/hc_characterdatagetlength.xml new file mode 100644 index 0000000..2c15f87 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdatagetlength.xml @@ -0,0 +1,43 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdatagetlength"> +<metadata> +<title>hc_characterdataGetLength</title> +<creator>Curt Arnold</creator> +<description> + The "getLength()" method returns the number of characters + stored in this nodes data. + Retrieve the character data from the second + child of the first employee and examine the + value returned by the getLength() method. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7D61178C"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childValue" type="DOMString"/> +<var name="childLength" type="int"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"strong"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<data var="childValue" obj="child" interface="CharacterData"/> +<length var="childLength" obj="childValue" interface="DOMString"/> +<assertEquals actual="childLength" expected="15" ignoreCase="false" id="characterdataGetLengthAssert"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdataindexsizeerrdeletedatacountnegative.xml b/test/testcases/tests/level1/core/hc_characterdataindexsizeerrdeletedatacountnegative.xml new file mode 100644 index 0000000..f122d15 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdataindexsizeerrdeletedatacountnegative.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdataindexsizeerrdeletedatacountnegative"> +<metadata> +<title>hc_characterdataIndexSizeErrDeleteDataCountNegative</title> +<creator>Curt Arnold</creator> +<description> + The "deleteData(offset,count)" method raises an + INDEX_SIZE_ERR DOMException if the specified count + is negative. + + Retrieve the character data of the last child of the + first employee and invoke its "deleteData(offset,count)" + method with offset=10 and count=-3. It should raise the + desired exception since the count is negative. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6531BCCF"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-6531BCCF')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INDEX_SIZE_ERR'])"/> +</metadata> +<implementationAttribute name="signed" value="true"/> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childSubstring" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<assertDOMException id="throws_INDEX_SIZE_ERR"> +<INDEX_SIZE_ERR> +<substringData var="childSubstring" obj="child" offset="10" count="-3"/> +</INDEX_SIZE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdataindexsizeerrdeletedataoffsetgreater.xml b/test/testcases/tests/level1/core/hc_characterdataindexsizeerrdeletedataoffsetgreater.xml new file mode 100644 index 0000000..e6b91e3 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdataindexsizeerrdeletedataoffsetgreater.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdataindexsizeerrdeletedataoffsetgreater"> +<metadata> +<title>hc_characterdataIndexSizeErrDeleteDataOffsetGreater</title> +<creator>Curt Arnold</creator> +<description> + The "deleteData(offset,count)" method raises an + INDEX_SIZE_ERR DOMException if the specified offset + is greater that the number of characters in the string. + + Retrieve the character data of the last child of the + first employee and invoke its "deleteData(offset,count)" + method with offset=40 and count=3. It should raise the + desired exception since the offset is greater than the + number of characters in the string. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7C603781"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-7C603781')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7C603781"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<assertDOMException id="throw_INDEX_SIZE_ERR"> +<INDEX_SIZE_ERR> +<deleteData obj="child" offset="40" count="3"/> +</INDEX_SIZE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdataindexsizeerrdeletedataoffsetnegative.xml b/test/testcases/tests/level1/core/hc_characterdataindexsizeerrdeletedataoffsetnegative.xml new file mode 100644 index 0000000..6c0042b --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdataindexsizeerrdeletedataoffsetnegative.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdataindexsizeerrdeletedataoffsetnegative"> +<metadata> +<title>hc_characterdataIndexSizeErrDeleteDataOffsetNegative</title> +<creator>Curt Arnold</creator> +<description> + The "deleteData(offset,count)" method raises an + INDEX_SIZE_ERR DOMException if the specified offset + is negative. + + Retrieve the character data of the last child of the + first employee and invoke its "deleteData(offset,count)" + method with offset=-5 and count=3. It should raise the + desired exception since the offset is negative. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7C603781"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-7C603781')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7C603781"/> +</metadata> +<implementationAttribute name="signed" value="true"/> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<assertDOMException id="throws_INDEX_SIZE_ERR"> +<INDEX_SIZE_ERR> +<deleteData obj="child" offset="-5" count="3"/> +</INDEX_SIZE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdataindexsizeerrinsertdataoffsetgreater.xml b/test/testcases/tests/level1/core/hc_characterdataindexsizeerrinsertdataoffsetgreater.xml new file mode 100644 index 0000000..ffc7022 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdataindexsizeerrinsertdataoffsetgreater.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdataindexsizeerrinsertdataoffsetgreater"> +<metadata> +<title>hc_characterdataIndexSizeErrInsertDataOffsetGreater</title> +<creator>Curt Arnold</creator> +<description> + The "insertData(offset,arg)" method raises an + INDEX_SIZE_ERR DOMException if the specified offset + is greater than the number of characters in the string. + + Retrieve the character data of the last child of the + first employee and invoke its insertData"(offset,arg)" + method with offset=40 and arg="ABC". It should raise + the desired exception since the offset is greater than + the number of characters in the string. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7C603781"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-7C603781')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<assertDOMException id="throw_INDEX_SIZE_ERR"> +<INDEX_SIZE_ERR> +<deleteData obj="child" offset="40" count="3"/> +</INDEX_SIZE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdataindexsizeerrinsertdataoffsetnegative.xml b/test/testcases/tests/level1/core/hc_characterdataindexsizeerrinsertdataoffsetnegative.xml new file mode 100644 index 0000000..b182153 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdataindexsizeerrinsertdataoffsetnegative.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdataindexsizeerrinsertdataoffsetnegative"> +<metadata> +<title>hc_characterdataIndexSizeErrInsertDataOffsetNegative</title> +<creator>Curt Arnold</creator> +<description> + The "insertData(offset,arg)" method raises an + INDEX_SIZE_ERR DOMException if the specified offset + is negative. + + Retrieve the character data of the last child of the + first employee and invoke its insertData"(offset,arg)" + method with offset=-5 and arg="ABC". It should raise + the desired exception since the offset is negative. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-E5CBA7FB"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-E5CBA7FB')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INDEX_SIZE_ERR'])"/> +</metadata> +<implementationAttribute name="signed" value="true"/> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<assertDOMException id="throws_INDEX_SIZE_ERR"> +<INDEX_SIZE_ERR> +<replaceData obj="child" offset="-5" arg='"ABC"' count="3"/> +</INDEX_SIZE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdataindexsizeerrreplacedatacountnegative.xml b/test/testcases/tests/level1/core/hc_characterdataindexsizeerrreplacedatacountnegative.xml new file mode 100644 index 0000000..28f86ff --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdataindexsizeerrreplacedatacountnegative.xml @@ -0,0 +1,50 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdataindexsizeerrreplacedatacountnegative"> +<metadata> +<title>hc_characterdataIndexSizeErrReplaceDataCountNegative</title> +<creator>Curt Arnold</creator> +<description> + The "replaceData(offset,count,arg)" method raises an + INDEX_SIZE_ERR DOMException if the specified count + is negative. + + Retrieve the character data of the last child of the + first employee and invoke its + "replaceData(offset,count,arg) method with offset=10 + and count=-3 and arg="ABC". It should raise the + desired exception since the count is negative. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6531BCCF"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-6531BCCF')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INDEX_SIZE_ERR'])"/> +</metadata> +<implementationAttribute name="signed" value="true"/> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="badString" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<assertDOMException id="throws_INDEX_SIZE_ERR"> +<INDEX_SIZE_ERR> +<substringData var="badString" obj="child" offset="10" count="-3"/> +</INDEX_SIZE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdataindexsizeerrreplacedataoffsetgreater.xml b/test/testcases/tests/level1/core/hc_characterdataindexsizeerrreplacedataoffsetgreater.xml new file mode 100644 index 0000000..7a637d9 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdataindexsizeerrreplacedataoffsetgreater.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdataindexsizeerrreplacedataoffsetgreater"> +<metadata> +<title>hc_characterdataIndexSizeErrReplaceDataOffsetGreater</title> +<creator>Curt Arnold</creator> +<description> + The "replaceData(offset,count,arg)" method raises an + INDEX_SIZE_ERR DOMException if the specified offset + is greater than the length of the string. + + Retrieve the character data of the last child of the + first employee and invoke its + "replaceData(offset,count,arg) method with offset=40 + and count=3 and arg="ABC". It should raise the + desired exception since the offset is greater than the + length of the string. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-7C603781"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-7C603781')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=242"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<assertDOMException id="throw_INDEX_SIZE_ERR"> +<INDEX_SIZE_ERR> +<deleteData obj="child" offset="40" count="3"/> +</INDEX_SIZE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdataindexsizeerrreplacedataoffsetnegative.xml b/test/testcases/tests/level1/core/hc_characterdataindexsizeerrreplacedataoffsetnegative.xml new file mode 100644 index 0000000..2da064f --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdataindexsizeerrreplacedataoffsetnegative.xml @@ -0,0 +1,50 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdataindexsizeerrreplacedataoffsetnegative"> +<metadata> +<title>hc_characterdataIndexSizeErrReplaceDataOffsetNegative</title> +<creator>Curt Arnold</creator> +<description> + The "replaceData(offset,count,arg)" method raises an + INDEX_SIZE_ERR DOMException if the specified offset + is negative. + + Retrieve the character data of the last child of the + first employee and invoke its + "replaceData(offset,count,arg) method with offset=-5 + and count=3 and arg="ABC". It should raise the + desired exception since the offset is negative. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-E5CBA7FB"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-E5CBA7FB')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-E5CBA7FB"/> +</metadata> +<implementationAttribute name="signed" value="true"/> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<assertDOMException id="throws_INDEX_SIZE_ERR"> +<INDEX_SIZE_ERR> +<replaceData obj="child" offset="-5" count="3" arg='"ABC"'/> +</INDEX_SIZE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdataindexsizeerrsubstringcountnegative.xml b/test/testcases/tests/level1/core/hc_characterdataindexsizeerrsubstringcountnegative.xml new file mode 100644 index 0000000..7400e58 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdataindexsizeerrsubstringcountnegative.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdataindexsizeerrsubstringcountnegative"> +<metadata> +<title>hc_characterdataIndexSizeErrSubstringCountNegative</title> +<creator>Curt Arnold</creator> +<description> + The "substringData(offset,count)" method raises an + INDEX_SIZE_ERR DOMException if the specified count + is negative. + + Retrieve the character data of the last child of the + first employee and invoke its "substringData(offset,count) + method with offset=10 and count=-3. It should raise the + desired exception since the count is negative. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6531BCCF"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-6531BCCF')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INDEX_SIZE_ERR'])"/> +</metadata> +<implementationAttribute name="signed" value="true"/> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="badSubstring" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<assertDOMException id="throws_INDEX_SIZE_ERR"> +<INDEX_SIZE_ERR> +<substringData var="badSubstring" obj="child" offset="10" count="-3"/> +</INDEX_SIZE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdataindexsizeerrsubstringnegativeoffset.xml b/test/testcases/tests/level1/core/hc_characterdataindexsizeerrsubstringnegativeoffset.xml new file mode 100644 index 0000000..382330b --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdataindexsizeerrsubstringnegativeoffset.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdataindexsizeerrsubstringnegativeoffset"> +<metadata> +<title>hc_characterdataIndexSizeErrSubstringNegativeOffset</title> +<creator>Curt Arnold</creator> +<description> + The "substringData(offset,count)" method raises an + INDEX_SIZE_ERR DOMException if the specified offset + is negative. + + Retrieve the character data of the last child of the + first employee and invoke its "substringData(offset,count) + method with offset=-5 and count=3. It should raise the + desired exception since the offset is negative. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6531BCCF"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-6531BCCF')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INDEX_SIZE_ERR'])"/> +</metadata> +<implementationAttribute name="signed" value="true"/> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="badString" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<assertDOMException id="throws_INDEX_SIZE_ERR"> +<INDEX_SIZE_ERR> +<substringData var="badString" obj="child" offset="-5" count="3"/> +</INDEX_SIZE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdataindexsizeerrsubstringoffsetgreater.xml b/test/testcases/tests/level1/core/hc_characterdataindexsizeerrsubstringoffsetgreater.xml new file mode 100644 index 0000000..702db8b --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdataindexsizeerrsubstringoffsetgreater.xml @@ -0,0 +1,50 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdataindexsizeerrsubstringoffsetgreater"> +<metadata> +<title>hc_characterdataIndexSizeErrSubstringOffsetGreater</title> +<creator>Curt Arnold</creator> +<description> + The "substringData(offset,count)" method raises an + INDEX_SIZE_ERR DOMException if the specified offset + is greater than the number of characters in the string. + + Retrieve the character data of the last child of the + first employee and invoke its "substringData(offset,count) + method with offset=40 and count=3. It should raise the + desired exception since the offsets value is greater + than the length. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6531BCCF"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-6531BCCF')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="badString" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<assertDOMException id="throw_INDEX_SIZE_ERR"> +<INDEX_SIZE_ERR> +<substringData var="badString" obj="child" offset="40" count="3"/> +</INDEX_SIZE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdatainsertdatabeginning.xml b/test/testcases/tests/level1/core/hc_characterdatainsertdatabeginning.xml new file mode 100644 index 0000000..0df7aaf --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdatainsertdatabeginning.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdatainsertdatabeginning"> +<metadata> +<title>hc_characterdataInsertDataBeginning</title> +<creator>Curt Arnold</creator> +<description> +The "insertData(offset,arg)" method will insert a string +at the specified character offset. Insert the data at +the beginning of the character data. + +Retrieve the character data from the second child of +the first employee. The "insertData(offset,arg)" +method is then called with offset=0 and arg="Mss.". +The method should insert the string "Mss." at position 0. +The new value of the character data should be +"Mss. Margaret Martin". +</description> + +<date qualifier="created">2002-06-09</date> +<!--insertData--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-3EDB695F"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"strong"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<insertData obj="child" offset="0" arg='"Mss. "'/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected='"Mss. Margaret Martin"' id="characterdataInsertDataBeginningAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdatainsertdataend.xml b/test/testcases/tests/level1/core/hc_characterdatainsertdataend.xml new file mode 100644 index 0000000..9e0bcc2 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdatainsertdataend.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdatainsertdataend"> +<metadata> +<title>hc_characterdataInsertDataEnd</title> +<creator>Curt Arnold</creator> +<description> + The "insertData(offset,arg)" method will insert a string + at the specified character offset. Insert the data at + the end of the character data. + + Retrieve the character data from the second child of + the first employee. The "insertData(offset,arg)" + method is then called with offset=15 and arg=", Esquire". + The method should insert the string ", Esquire" at + position 15. The new value of the character data should + be "Margaret Martin, Esquire". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-3EDB695F"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"strong"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<insertData obj="child" offset="15" arg='", Esquire"'/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected='"Margaret Martin, Esquire"' id="characterdataInsertDataEndAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdatainsertdatamiddle.xml b/test/testcases/tests/level1/core/hc_characterdatainsertdatamiddle.xml new file mode 100644 index 0000000..9c4d6a5 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdatainsertdatamiddle.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdatainsertdatamiddle"> +<metadata> +<title>hc_characterdataInsertDataMiddle</title> +<creator>Curt Arnold</creator> +<description> + The "insertData(offset,arg)" method will insert a string + at the specified character offset. Insert the data in + the middle of the character data. + + Retrieve the character data from the second child of + the first employee. The "insertData(offset,arg)" + method is then called with offset=9 and arg="Ann". + The method should insert the string "Ann" at position 9. + The new value of the character data should be + "Margaret Ann Martin". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-3EDB695F"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"strong"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<insertData obj="child" offset="9" arg='"Ann "'/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected='"Margaret Ann Martin"' id="characterdataInsertDataMiddleAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdatareplacedatabegining.xml b/test/testcases/tests/level1/core/hc_characterdatareplacedatabegining.xml new file mode 100644 index 0000000..64e3bad --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdatareplacedatabegining.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdatareplacedatabegining"> +<metadata> +<title>hc_characterdataReplaceDataBeginning</title> +<creator>Curt Arnold</creator> +<description> +The "replaceData(offset,count,arg)" method replaces the +characters starting at the specified offset with the +specified string. Test for replacement in the +middle of the data. + +Retrieve the character data from the last child of the +first employee. The "replaceData(offset,count,arg)" +method is then called with offset=5 and count=5 and +arg="South". The method should replace characters five +thru 9 of the character data with "South". +</description> + +<date qualifier="created">2002-06-09</date> +<!--replaceData--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-E5CBA7FB"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<replaceData obj="child" offset="0" count="4" arg='"2500"'/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected='"2500 North Ave. Dallas, Texas 98551"' id="characterdataReplaceDataBeginingAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdatareplacedataend.xml b/test/testcases/tests/level1/core/hc_characterdatareplacedataend.xml new file mode 100644 index 0000000..23d1163 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdatareplacedataend.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdatareplacedataend"> +<metadata> +<title>hc_characterdataReplaceDataEnd</title> +<creator>Curt Arnold</creator> +<description> + The "replaceData(offset,count,arg)" method replaces the + characters starting at the specified offset with the + specified string. Test for replacement at the + end of the data. + + Retrieve the character data from the last child of the + first employee. The "replaceData(offset,count,arg)" + method is then called with offset=30 and count=5 and + arg="98665". The method should replace characters 30 + thru 34 of the character data with "98665". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-E5CBA7FB"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<replaceData obj="child" offset="30" count="5" arg='"98665"'/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected='"1230 North Ave. Dallas, Texas 98665"' id="characterdataReplaceDataEndAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdatareplacedataexceedslengthofarg.xml b/test/testcases/tests/level1/core/hc_characterdatareplacedataexceedslengthofarg.xml new file mode 100644 index 0000000..36ee700 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdatareplacedataexceedslengthofarg.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdatareplacedataexceedslengthofarg"> +<metadata> +<title>hc_characterdataReplaceDataExceedsLengthOfArg</title> +<creator>Curt Arnold</creator> +<description> + The "replaceData(offset,count,arg)" method replaces the + characters starting at the specified offset with the + specified string. Test the situation where the length + of the arg string is greater than the specified offset. + + Retrieve the character data from the last child of the + first employee. The "replaceData(offset,count,arg)" + method is then called with offset=0 and count=4 and + arg="260030". The method should replace characters one + thru four with "260030". Note that the length of the + specified string is greater that the specified offset. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-E5CBA7FB"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<replaceData obj="child" offset="0" count="4" arg='"260030"'/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected='"260030 North Ave. Dallas, Texas 98551"' id="characterdataReplaceDataExceedsLengthOfArgAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdatareplacedataexceedslengthofdata.xml b/test/testcases/tests/level1/core/hc_characterdatareplacedataexceedslengthofdata.xml new file mode 100644 index 0000000..fa03bd5 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdatareplacedataexceedslengthofdata.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdatareplacedataexceedslengthofdata"> +<metadata> +<title>hc_characterdataReplaceDataExceedsLengthOfData</title> +<creator>Curt Arnold</creator> +<description> + If the sum of the offset and count exceeds the length then + all the characters to the end of the data are replaced. + + Retrieve the character data from the last child of the + first employee. The "replaceData(offset,count,arg)" + method is then called with offset=0 and count=50 and + arg="2600". The method should replace all the characters + with "2600". This is because the sum of the offset and + count exceeds the length of the character data. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-E5CBA7FB"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<replaceData obj="child" offset="0" count="50" arg='"2600"'/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected='"2600"' id="characterdataReplaceDataExceedsLengthOfDataAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdatareplacedatamiddle.xml b/test/testcases/tests/level1/core/hc_characterdatareplacedatamiddle.xml new file mode 100644 index 0000000..d93000b --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdatareplacedatamiddle.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdatareplacedatamiddle"> +<metadata> +<title>hc_characterdataReplaceDataMiddle</title> +<creator>Curt Arnold</creator> +<description> + The "replaceData(offset,count,arg)" method replaces the + characters starting at the specified offset with the + specified string. Test for replacement in the + middle of the data. + + Retrieve the character data from the last child of the + first employee. The "replaceData(offset,count,arg)" + method is then called with offset=5 and count=5 and + arg="South". The method should replace characters five + thru 9 of the character data with "South". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-E5CBA7FB"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<replaceData obj="child" offset="5" count="5" arg='"South"'/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected='"1230 South Ave. Dallas, Texas 98551"' id="characterdataReplaceDataMiddleAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdatasetnodevalue.xml b/test/testcases/tests/level1/core/hc_characterdatasetnodevalue.xml new file mode 100644 index 0000000..3f0a88f --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdatasetnodevalue.xml @@ -0,0 +1,43 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdatasetnodevalue"> +<metadata> +<title>hc_characterdataSetNodeValue</title> +<creator>Curt Arnold</creator> +<description> + The "setNodeValue()" method changes the character data + currently stored in the node. + Retrieve the character data from the second child + of the first employee and invoke the "setNodeValue()" + method, call "getData()" and compare. +</description> +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-72AB8359"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="childData" type="DOMString"/> +<var name="childValue" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"strong"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<nodeValue obj="child" value='"Marilyn Martin"'/> +<data interface="CharacterData" obj="child" var="childData"/> +<assertEquals actual="childData" expected='"Marilyn Martin"' id="data" ignoreCase="false"/> +<nodeValue obj="child" var="childValue"/> +<assertEquals actual="childValue" expected='"Marilyn Martin"' id="value" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdatasubstringexceedsvalue.xml b/test/testcases/tests/level1/core/hc_characterdatasubstringexceedsvalue.xml new file mode 100644 index 0000000..0651a6d --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdatasubstringexceedsvalue.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdatasubstringexceedsvalue"> +<metadata> +<title>hc_characterdataSubStringExceedsValue</title> +<creator>Curt Arnold</creator> +<description> + If the sum of the "offset" and "count" exceeds the + "length" then the "substringData(offset,count)" method + returns all the characters to the end of the data. + + Retrieve the character data from the second child + of the first employee and access part of the data + by using the substringData(offset,count) method + with offset=9 and count=10. The method should return + the substring "Martin" since offset+count > length + (19 > 15). +</description> + +<date qualifier="created">2002-06-09</date> +<!--CharacterData.substringData--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6531BCCF"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="substring" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"strong"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<substringData obj="child" var="substring" offset="9" count="10"/> +<assertEquals actual="substring" expected='"Martin"' id="characterdataSubStringExceedsValueAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_characterdatasubstringvalue.xml b/test/testcases/tests/level1/core/hc_characterdatasubstringvalue.xml new file mode 100644 index 0000000..477ac20 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_characterdatasubstringvalue.xml @@ -0,0 +1,45 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_characterdatasubstringvalue"> +<metadata> +<title>hc_characterdataSubStringValue</title> +<creator>Curt Arnold</creator> +<description> + The "substringData(offset,count)" method returns the + specified string. + + Retrieve the character data from the second child + of the first employee and access part of the data + by using the substringData(offset,count) method. The + method should return the specified substring starting + at position "offset" and extract "count" characters. + The method should return the string "Margaret". +</description> + +<date qualifier="created">2002-06-09</date> +<!--CharacterData.substringData--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6531BCCF"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="child" type="CharacterData"/> +<var name="substring" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"strong"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="nameNode"/> +<firstChild interface="Node" obj="nameNode" var="child"/> +<substringData obj="child" var="substring" offset="0" count="8"/> +<assertEquals actual="substring" expected='"Margaret"' id="characterdataSubStringValueAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_commentgetcomment.xml b/test/testcases/tests/level1/core/hc_commentgetcomment.xml new file mode 100644 index 0000000..b0f3eca --- /dev/null +++ b/test/testcases/tests/level1/core/hc_commentgetcomment.xml @@ -0,0 +1,61 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_commentgetcomment"> +<metadata> +<title>hc_commentgetcomment</title> +<creator>Curt Arnold</creator> +<description> + A comment is all the characters between the starting + '<!--' and ending '-->' + Retrieve the nodes of the DOM document. Search for a + comment node and the content is its value. +</description> + +<date qualifier="created">2002-06-09</date> +<!-- Comment interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1334481328"/> +<!--Node.nodeName attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +<!--Node.nodeValue attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<!--Node.nodeType attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-111237558"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-111237558"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=509"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="child" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="childValue" type="DOMString"/> +<var name="commentCount" type="int" value="0"/> +<var name="childType" type="int"/> +<var name="attributes" type="NamedNodeMap"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<childNodes obj="doc" var="elementList"/> +<for-each collection="elementList" member="child"> +<nodeType obj="child" var="childType"/> +<if> +<equals actual="childType" expected="8" ignoreCase="false"/> +<nodeName obj="child" var="childName"/> +<assertEquals actual="childName" expected='"#comment"' ignoreCase="false" id="nodeName"/> +<nodeValue obj="child" var="childValue"/> +<assertEquals actual="childValue" expected='" This is comment number 1."' id="nodeValue" ignoreCase="false"/> +<attributes var="attributes" obj="child"/> +<assertNull actual="attributes" id="attributes"/> +<increment var="commentCount" value="1"/> +</if> +</for-each> +<assertTrue id="atMostOneComment"><less actual="commentCount" expected="2"/></assertTrue> +</test> diff --git a/test/testcases/tests/level1/core/hc_documentcreateattribute.xml b/test/testcases/tests/level1/core/hc_documentcreateattribute.xml new file mode 100644 index 0000000..67a2f34 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_documentcreateattribute.xml @@ -0,0 +1,45 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_documentcreateattribute"> +<metadata> +<title>hc_documentcreateattribute</title> +<creator>Curt Arnold</creator> +<description> + Retrieve the entire DOM document and invoke its + "createAttribute(name)" method. It should create a + new Attribute node with the given name. The name, value + and type of the newly created object are retrieved and + output. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1084891198"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=236"/> +<subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2003Jun/0011.html"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=243"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newAttrNode" type="Attr"/> +<var name="attrValue" type="DOMString"/> +<var name="attrName" type="DOMString"/> +<var name="attrType" type="int"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<createAttribute obj="doc" var="newAttrNode" name='"title"'/> +<nodeValue obj="newAttrNode" var="attrValue"/> +<assertEquals actual="attrValue" expected='""' ignoreCase="false" id="value"/> +<nodeName obj="newAttrNode" var="attrName"/> +<assertEquals actual="attrName" expected='"title"' ignoreCase="auto" context="attribute" id="name"/> +<nodeType obj="newAttrNode" var="attrType"/> +<assertEquals actual="attrType" expected="2" ignoreCase="false" id="type"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_documentcreatecomment.xml b/test/testcases/tests/level1/core/hc_documentcreatecomment.xml new file mode 100644 index 0000000..106fa06 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_documentcreatecomment.xml @@ -0,0 +1,43 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_documentcreatecomment"> +<metadata> +<title>hc_documentCreateComment</title> +<creator>Curt Arnold</creator> +<description> + The "createComment(data)" method creates a new Comment + node given the specified string. + Retrieve the entire DOM document and invoke its + "createComment(data)" method. It should create a new + Comment node whose "data" is the specified string. + The content, name and type are retrieved and output. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1334481328"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newCommentNode" type="Comment"/> +<var name="newCommentValue" type="DOMString"/> +<var name="newCommentName" type="DOMString"/> +<var name="newCommentType" type="int"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<createComment obj="doc" var="newCommentNode" data='"This is a new Comment node"'/> +<nodeValue obj="newCommentNode" var="newCommentValue"/> +<assertEquals actual="newCommentValue" expected='"This is a new Comment node"' ignoreCase="false" id="value"/> +<nodeName obj="newCommentNode" var="newCommentName"/> +<assertEquals actual="newCommentName" expected='"#comment"' ignoreCase="false" id="strong"/> +<nodeType obj="newCommentNode" var="newCommentType"/> +<assertEquals actual="newCommentType" expected="8" ignoreCase="false" id="type"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_documentcreatedocumentfragment.xml b/test/testcases/tests/level1/core/hc_documentcreatedocumentfragment.xml new file mode 100644 index 0000000..b4bb21a --- /dev/null +++ b/test/testcases/tests/level1/core/hc_documentcreatedocumentfragment.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_documentcreatedocumentfragment"> +<metadata> +<title>hc_documentCreateDocumentFragment</title> +<creator>Curt Arnold</creator> +<description> + The "createDocumentFragment()" method creates an empty + DocumentFragment object. + Retrieve the entire DOM document and invoke its + "createDocumentFragment()" method. The content, name, + type and value of the newly created object are output. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-35CB04B5"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newDocFragment" type="DocumentFragment"/> +<var name="children" type="NodeList"/> +<var name="length" type="int"/> +<var name="newDocFragmentName" type="DOMString"/> +<var name="newDocFragmentType" type="int"/> +<var name="newDocFragmentValue" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<createDocumentFragment obj="doc" var="newDocFragment"/> +<childNodes obj="newDocFragment" var="children"/> +<length interface="NodeList" obj="children" var="length"/> +<assertEquals actual="length" expected="0" ignoreCase="false" id="length"/> +<nodeName obj="newDocFragment" var="newDocFragmentName"/> +<assertEquals actual="newDocFragmentName" expected='"#document-fragment"' ignoreCase="false" id="strong"/> +<nodeType obj="newDocFragment" var="newDocFragmentType"/> +<assertEquals actual="newDocFragmentType" expected="11" ignoreCase="false" id="type"/> +<nodeValue obj="newDocFragment" var="newDocFragmentValue"/> +<assertNull actual="newDocFragmentValue" id="value"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_documentcreateelement.xml b/test/testcases/tests/level1/core/hc_documentcreateelement.xml new file mode 100644 index 0000000..6204b3a --- /dev/null +++ b/test/testcases/tests/level1/core/hc_documentcreateelement.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_documentcreateelement"> +<metadata> +<title>hc_documentCreateElement</title> +<creator>Curt Arnold</creator> +<description> + The "createElement(tagName)" method creates an Element + of the type specified. + Retrieve the entire DOM document and invoke its + "createElement(tagName)" method with tagName="acronym". + The method should create an instance of an Element node + whose tagName is "acronym". The NodeName, NodeType + and NodeValue are returned. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-2141741547"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newElement" type="Element"/> +<var name="newElementName" type="DOMString"/> +<var name="newElementType" type="int"/> +<var name="newElementValue" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<createElement obj="doc" var="newElement" tagName='"acronym"'/> +<nodeName obj="newElement" var="newElementName"/> +<assertEquals actual="newElementName" expected='"acronym"' ignoreCase="auto" id="strong"/> +<nodeType obj="newElement" var="newElementType"/> +<assertEquals actual="newElementType" expected="1" ignoreCase="false" id="type"/> +<nodeValue obj="newElement" var="newElementValue"/> +<assertNull actual="newElementValue" id="valueInitiallyNull"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_documentcreateelementcasesensitive.xml b/test/testcases/tests/level1/core/hc_documentcreateelementcasesensitive.xml new file mode 100644 index 0000000..62051cf --- /dev/null +++ b/test/testcases/tests/level1/core/hc_documentcreateelementcasesensitive.xml @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_documentcreateelementcasesensitive"> +<metadata> +<title>hc_documentCreateElementCaseSensitive</title> +<creator>Curt Arnold</creator> +<description> + The tagName parameter in the "createElement(tagName)" + method is case-sensitive for XML documents. + Retrieve the entire DOM document and invoke its + "createElement(tagName)" method twice. Once for tagName + equal to "acronym" and once for tagName equal to "ACRONYM" + Each call should create a distinct Element node. The + newly created Elements are then assigned attributes + that are retrieved. + + Modified on 27 June 2003 to avoid setting an invalid style + values and checked the node names to see if they matched expectations. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-2141741547"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=243"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newElement1" type="Element"/> +<var name="newElement2" type="Element"/> +<var name="attribute1" type="DOMString"/> +<var name="attribute2" type="DOMString"/> +<var name="nodeName1" type="DOMString"/> +<var name="nodeName2" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<createElement obj="doc" var="newElement1" tagName='"ACRONYM"'/> +<createElement obj="doc" var="newElement2" tagName='"acronym"'/> +<setAttribute obj="newElement1" name='"lang"' value='"EN"'/> +<setAttribute obj="newElement2" name='"title"' value='"Dallas"'/> +<getAttribute obj="newElement1" var="attribute1" name='"lang"'/> +<getAttribute obj="newElement2" var="attribute2" name='"title"'/> +<assertEquals actual="attribute1" expected='"EN"' ignoreCase="false" id="attrib1"/> +<assertEquals actual="attribute2" expected='"Dallas"' ignoreCase="false" id="attrib2"/> +<nodeName var="nodeName1" obj="newElement1"/> +<nodeName var="nodeName2" obj="newElement2"/> +<assertEquals actual="nodeName1" expected='"ACRONYM"' ignoreCase="auto" id="nodeName1"/> +<assertEquals actual="nodeName2" expected='"acronym"' ignoreCase="auto" id="nodeName2"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_documentcreatetextnode.xml b/test/testcases/tests/level1/core/hc_documentcreatetextnode.xml new file mode 100644 index 0000000..94bed5c --- /dev/null +++ b/test/testcases/tests/level1/core/hc_documentcreatetextnode.xml @@ -0,0 +1,43 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_documentcreatetextnode"> +<metadata> +<title>hc_documentCreateTextNode</title> +<creator>Curt Arnold</creator> +<description> + The "createTextNode(data)" method creates a Text node + given the specfied string. + Retrieve the entire DOM document and invoke its + "createTextNode(data)" method. It should create a + new Text node whose "data" is the specified string. + The NodeName and NodeType are also checked. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1975348127"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newTextNode" type="Text"/> +<var name="newTextName" type="DOMString"/> +<var name="newTextValue" type="DOMString"/> +<var name="newTextType" type="int"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<createTextNode obj="doc" var="newTextNode" data='"This is a new Text node"'/> +<nodeValue obj="newTextNode" var="newTextValue"/> +<assertEquals actual="newTextValue" expected='"This is a new Text node"' ignoreCase="false" id="value"/> +<nodeName obj="newTextNode" var="newTextName"/> +<assertEquals actual="newTextName" expected='"#text"' ignoreCase="false" id="strong"/> +<nodeType obj="newTextNode" var="newTextType"/> +<assertEquals actual="newTextType" expected="3" ignoreCase="false" id="type"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_documentgetdoctype.xml b/test/testcases/tests/level1/core/hc_documentgetdoctype.xml new file mode 100644 index 0000000..34ffaf5 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_documentgetdoctype.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_documentgetdoctype"> +<metadata> +<title>hc_documentgetdoctype</title> +<creator>Curt Arnold</creator> +<description> +Access Document.doctype for hc_staff, if not text/html should return DocumentType node. +HTML implementations may return null. +</description> +<date qualifier="created">2004-01-27</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-B63ED1A31"/> +<!-- TODO: link to errata --> +</metadata> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<var name="docTypeName" type="DOMString"/> +<var name="nodeValue" type="DOMString"/> +<var name="attributes" type="NamedNodeMap"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<doctype obj="doc" var="docType"/> +<if><not><contentType type="text/html"/></not> + <assertNotNull actual="docType" id="docTypeNotNull"/> +</if> +<if><notNull obj="docType"/> + <name interface="DocumentType" obj="docType" var="docTypeName"/> + <if><contentType type="image/svg+xml"/> + <assertEquals actual="docTypeName" expected='"svg"' id="nodeNameSVG" ignoreCase="false"/> + <else> + <assertEquals actual="docTypeName" expected='"html"' id="nodeName" ignoreCase="false"/> + </else> + </if> + <nodeValue obj="docType" var="nodeValue"/> + <assertNull actual="nodeValue" id="nodeValue"/> + <attributes var="attributes" obj="docType"/> + <assertNull actual="attributes" id="attributes"/> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_documentgetelementsbytagnamelength.xml b/test/testcases/tests/level1/core/hc_documentgetelementsbytagnamelength.xml new file mode 100644 index 0000000..d92ebae --- /dev/null +++ b/test/testcases/tests/level1/core/hc_documentgetelementsbytagnamelength.xml @@ -0,0 +1,36 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_documentgetelementsbytagnamelength"> +<metadata> +<title>hc_documentGetElementsByTagNameLength</title> +<creator>Curt Arnold</creator> +<description> + The "getElementsByTagName(tagName)" method returns a + NodeList of all the Elements with a given tagName. + + Retrieve the entire DOM document and invoke its + "getElementsByTagName(tagName)" method with tagName + equal to "strong". The method should return a NodeList + that contains 5 elements. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-A6C9094"/> +</metadata> +<var name="doc" type="Document"/> +<var name="nameList" type="NodeList"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nameList" tagname='"strong"'/> +<assertSize collection="nameList" size="5" id="documentGetElementsByTagNameLengthAssert"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_documentgetelementsbytagnametotallength.xml b/test/testcases/tests/level1/core/hc_documentgetelementsbytagnametotallength.xml new file mode 100644 index 0000000..7f290be --- /dev/null +++ b/test/testcases/tests/level1/core/hc_documentgetelementsbytagnametotallength.xml @@ -0,0 +1,135 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_documentgetelementsbytagnametotallength"> +<metadata> +<title>hc_documentgetelementsbytagnametotallength</title> +<creator>Curt Arnold</creator> +<description> + Retrieve the entire DOM document and invoke its + "getElementsByTagName(tagName)" method with tagName + equal to "*". The method should return a NodeList + that contains all the elements of the document. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-A6C9094"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=251"/> +</metadata> +<var name="doc" type="Document"/> +<var name="nameList" type="NodeList"/> +<var name="expectedNames" type="List"> + <member>"html"</member> + <member>"head"</member> + <member>"meta"</member> + <member>"title"</member> + <member>"script"</member> + <member>"script"</member> + <member>"script"</member> + <member>"body"</member> + <member>"p"</member> + <member>"em"</member> + <member>"strong"</member> + <member>"code"</member> + <member>"sup"</member> + <member>"var"</member> + <member>"acronym"</member> + <member>"p"</member> + <member>"em"</member> + <member>"strong"</member> + <member>"code"</member> + <member>"sup"</member> + <member>"var"</member> + <member>"acronym"</member> + <member>"p"</member> + <member>"em"</member> + <member>"strong"</member> + <member>"code"</member> + <member>"sup"</member> + <member>"var"</member> + <member>"acronym"</member> + <member>"p"</member> + <member>"em"</member> + <member>"strong"</member> + <member>"code"</member> + <member>"sup"</member> + <member>"var"</member> + <member>"acronym"</member> + <member>"p"</member> + <member>"em"</member> + <member>"strong"</member> + <member>"code"</member> + <member>"sup"</member> + <member>"var"</member> + <member>"acronym"</member> +</var> +<var name="svgExpectedNames" type="List"> + <member>"svg"</member> + <member>"rect"</member> + <member>"script"</member> + <member>"head"</member> + <member>"meta"</member> + <member>"title"</member> + <member>"body"</member> + <member>"p"</member> + <member>"em"</member> + <member>"strong"</member> + <member>"code"</member> + <member>"sup"</member> + <member>"var"</member> + <member>"acronym"</member> + <member>"p"</member> + <member>"em"</member> + <member>"strong"</member> + <member>"code"</member> + <member>"sup"</member> + <member>"var"</member> + <member>"acronym"</member> + <member>"p"</member> + <member>"em"</member> + <member>"strong"</member> + <member>"code"</member> + <member>"sup"</member> + <member>"var"</member> + <member>"acronym"</member> + <member>"p"</member> + <member>"em"</member> + <member>"strong"</member> + <member>"code"</member> + <member>"sup"</member> + <member>"var"</member> + <member>"acronym"</member> + <member>"p"</member> + <member>"em"</member> + <member>"strong"</member> + <member>"code"</member> + <member>"sup"</member> + <member>"var"</member> + <member>"acronym"</member> +</var> +<var name="actualNames" type="List"/> +<var name="thisElement" type="Element"/> +<var name="thisTag" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nameList" tagname='"*"'/> +<for-each collection="nameList" member="thisElement"> + <tagName var="thisTag" obj="thisElement"/> + <append collection="actualNames" item="thisTag"/> +</for-each> +<if><contentType type="image/svg+xml"/> +<assertEquals expected="svgExpectedNames" actual="actualNames" ignoreCase="auto" id="svgTagNames"/> +<else> +<assertEquals expected="expectedNames" actual="actualNames" ignoreCase="auto" id="tagNames"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_documentgetelementsbytagnamevalue.xml b/test/testcases/tests/level1/core/hc_documentgetelementsbytagnamevalue.xml new file mode 100644 index 0000000..77d7e9d --- /dev/null +++ b/test/testcases/tests/level1/core/hc_documentgetelementsbytagnamevalue.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_documentgetelementsbytagnamevalue"> +<metadata> +<title>hc_documentGetElementsByTagNameValue</title> +<creator>Curt Arnold</creator> +<description> + The "getElementsByTagName(tagName)" method returns a + NodeList of all the Elements with a given tagName + in a pre-order traversal of the tree. + + Retrieve the entire DOM document and invoke its + "getElementsByTagName(tagName)" method with tagName + equal to "strong". The method should return a NodeList + that contains 5 elements. The FOURTH item in the + list is retrieved and output. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-A6C9094"/> +</metadata> +<var name="doc" type="Document"/> +<var name="nameList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="firstChild" type="Node"/> +<var name="childValue" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nameList" tagname='"strong"'/> +<item interface="NodeList" obj="nameList" var="nameNode" index="3"/> +<firstChild interface="Node" obj="nameNode" var="firstChild"/> +<nodeValue obj="firstChild" var="childValue"/> +<assertEquals actual="childValue" expected='"Jeny Oconnor"' id="documentGetElementsByTagNameValueAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_documentgetimplementation.xml b/test/testcases/tests/level1/core/hc_documentgetimplementation.xml new file mode 100644 index 0000000..bfdf26b --- /dev/null +++ b/test/testcases/tests/level1/core/hc_documentgetimplementation.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_documentgetimplementation"> +<metadata> +<title>hc_documentgetimplementation</title> +<creator>Curt Arnold</creator> +<description> + Retrieve the entire DOM document and invoke its + "getImplementation()" method. If contentType="text/html", + DOMImplementation.hasFeature("HTML","1.0") should be true. + Otherwise, DOMImplementation.hasFeature("XML", "1.0") + should be true. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1B793EBA"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=245"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docImpl" type="DOMImplementation"/> +<var name="xmlstate" type="boolean"/> +<var name="htmlstate" type="boolean"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<implementation obj="doc" var="docImpl"/> +<hasFeature obj="docImpl" var="xmlstate" feature='"XML"' version='"1.0"'/> +<hasFeature obj="docImpl" var="htmlstate" feature='"HTML"' version='"1.0"'/> +<if><contentType type="text/html"/> +<assertTrue actual="htmlstate" id="supports_HTML_1.0"/> +<else> +<assertTrue actual="xmlstate" id="supports_XML_1.0"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_documentgetrootnode.xml b/test/testcases/tests/level1/core/hc_documentgetrootnode.xml new file mode 100644 index 0000000..6e8dec8 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_documentgetrootnode.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_documentgetrootnode"> +<metadata> +<title>hc_documentgetrootnode</title> +<creator>Curt Arnold</creator> +<description> + Load a document and invoke its + "getDocumentElement()" method. +</description> + +<date qualifier="created">2002-06-09</date> +<!--documentElement attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-87CD092"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=251"/> +</metadata> +<var name="doc" type="Document"/> +<var name="root" type="Element"/> +<var name="rootName" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<documentElement obj="doc" var="root"/> +<nodeName obj="root" var="rootName"/> +<if><contentType type="image/svg+xml"/> +<assertEquals actual="rootName" expected='"svg"' id="svgTagName" ignoreCase="false"/> +<else> +<assertEquals actual="rootName" expected='"html"' id="docElemName" ignoreCase="auto"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_documentinvalidcharacterexceptioncreateattribute.xml b/test/testcases/tests/level1/core/hc_documentinvalidcharacterexceptioncreateattribute.xml new file mode 100644 index 0000000..0a73b4e --- /dev/null +++ b/test/testcases/tests/level1/core/hc_documentinvalidcharacterexceptioncreateattribute.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_documentinvalidcharacterexceptioncreateattribute"> +<metadata> +<title>hc_documentInvalidCharacterExceptionCreateAttribute</title> +<creator>Curt Arnold</creator> +<description> + The "createAttribute(tagName)" method raises an + INVALID_CHARACTER_ERR DOMException if the specified + tagName contains an invalid character. + + Retrieve the entire DOM document and invoke its + "createAttribute(tagName)" method with the tagName equal + to the string "invalid^Name". Due to the invalid + character the desired EXCEPTION should be raised. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INVALID_CHARACTER_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1084891198"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-1084891198')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INVALID_CHARACTER_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1084891198"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="createdAttr" type="Attr"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<assertDOMException id="throw_INVALID_CHARACTER_ERR"> +<INVALID_CHARACTER_ERR> +<createAttribute var="createdAttr" obj="doc" name='"invalid^Name"'/> +</INVALID_CHARACTER_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_documentinvalidcharacterexceptioncreateattribute1.xml b/test/testcases/tests/level1/core/hc_documentinvalidcharacterexceptioncreateattribute1.xml new file mode 100644 index 0000000..e9b70f8 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_documentinvalidcharacterexceptioncreateattribute1.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_documentinvalidcharacterexceptioncreateattribute1"> +<metadata> +<title>hc_documentinvalidcharacterexceptioncreateattribute1</title> +<creator>Curt Arnold</creator> +<description> +Creating an attribute with an empty name should cause an INVALID_CHARACTER_ERR. +</description> +<date qualifier="created">2004-03-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INVALID_CHARACTER_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1084891198"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-1084891198')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INVALID_CHARACTER_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1084891198"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=525"/> +</metadata> +<var name="doc" type="Document"/> +<var name="createdAttr" type="Attr"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<assertDOMException id="throw_INVALID_CHARACTER_ERR"> +<INVALID_CHARACTER_ERR> +<createAttribute var="createdAttr" obj="doc" name='""'/> +</INVALID_CHARACTER_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_documentinvalidcharacterexceptioncreateelement.xml b/test/testcases/tests/level1/core/hc_documentinvalidcharacterexceptioncreateelement.xml new file mode 100644 index 0000000..9adca61 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_documentinvalidcharacterexceptioncreateelement.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_documentinvalidcharacterexceptioncreateelement"> +<metadata> +<title>hc_documentInvalidCharacterExceptionCreateElement</title> +<creator>Curt Arnold</creator> +<description> + The "createElement(tagName)" method raises an + INVALID_CHARACTER_ERR DOMException if the specified + tagName contains an invalid character. + + Retrieve the entire DOM document and invoke its + "createElement(tagName)" method with the tagName equal + to the string "invalid^Name". Due to the invalid + character the desired EXCEPTION should be raised. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INVALID_CHARACTER_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-2141741547"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-2141741547')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INVALID_CHARACTER_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-2141741547"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="badElement" type="Element"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<assertDOMException id="throw_INVALID_CHARACTER_ERR"> +<INVALID_CHARACTER_ERR> +<createElement var="badElement" obj="doc" tagName='"invalid^Name"'/> +</INVALID_CHARACTER_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_documentinvalidcharacterexceptioncreateelement1.xml b/test/testcases/tests/level1/core/hc_documentinvalidcharacterexceptioncreateelement1.xml new file mode 100644 index 0000000..3f0bc53 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_documentinvalidcharacterexceptioncreateelement1.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_documentinvalidcharacterexceptioncreateelement1"> +<metadata> +<title>hc_documentinvalidcharacterexceptioncreateelement1</title> +<creator>Curt Arnold</creator> +<description> +Creating an element with an empty name should cause an INVALID_CHARACTER_ERR. +</description> +<date qualifier="created">2004-03-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INVALID_CHARACTER_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-2141741547"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-2141741547')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INVALID_CHARACTER_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-2141741547"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=525"/> +</metadata> +<var name="doc" type="Document"/> +<var name="badElement" type="Element"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<assertDOMException id="throw_INVALID_CHARACTER_ERR"> +<INVALID_CHARACTER_ERR> +<createElement var="badElement" obj="doc" tagName='""'/> +</INVALID_CHARACTER_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_domimplementationfeaturenoversion.xml b/test/testcases/tests/level1/core/hc_domimplementationfeaturenoversion.xml new file mode 100644 index 0000000..9fbec5a --- /dev/null +++ b/test/testcases/tests/level1/core/hc_domimplementationfeaturenoversion.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_domimplementationfeaturenoversion"> +<metadata> +<title>hc_domimplementationfeaturenoversion</title> +<creator>Curt Arnold</creator> +<description> + Load a document and invoke its + "getImplementation()" method. This should create a + DOMImplementation object whose "hasFeature(feature, + version)" method is invoked with version equal to "". + If the version is not specified, supporting any version + feature will cause the method to return "true". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-5CED94D7"/> +<subject resource="http://www.w3.org/2000/11/DOM-Level-2-errata#core-14"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=245"/> +</metadata> +<var name="doc" type="Document"/> +<var name="domImpl" type="DOMImplementation"/> +<var name="state" type="boolean"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<implementation obj="doc" var="domImpl"/> +<if><contentType type="text/html"/> +<hasFeature obj="domImpl" var="state" feature='"HTML"' version='""'/> +<else> +<hasFeature obj="domImpl" var="state" feature='"XML"' version='""'/> +</else> +</if> +<assertTrue actual="state" id="hasFeatureBlank"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_domimplementationfeaturenull.xml b/test/testcases/tests/level1/core/hc_domimplementationfeaturenull.xml new file mode 100644 index 0000000..e80d15f --- /dev/null +++ b/test/testcases/tests/level1/core/hc_domimplementationfeaturenull.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_domimplementationfeaturenull"> +<metadata> +<title>hc_domimplementationfeaturenull</title> +<creator>Curt Arnold</creator> +<description> + Load a document and invoke its + "getImplementation()" method. This should create a + DOMImplementation object whose "hasFeature(feature, + version)" method is invoked with version equal to null. + If the version is not specified, supporting any version + feature will cause the method to return "true". +</description> +<contributor>Curt Arnold</contributor> +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-5CED94D7"/> +<subject resource="http://www.w3.org/2000/11/DOM-Level-2-errata#core-14"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=245"/> +</metadata> +<implementationAttribute name="hasNullString" value="true"/> +<var name="doc" type="Document"/> +<var name="domImpl" type="DOMImplementation"/> +<var name="state" type="boolean"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<implementation obj="doc" var="domImpl"/> +<!-- version (omitted) = null --> +<if><contentType type="text/html"/> +<hasFeature obj="domImpl" var="state" feature='"HTML"'/> +<assertTrue actual="state" id="supports_HTML_null"/> +<else> +<hasFeature obj="domImpl" var="state" feature='"XML"'/> +<assertTrue actual="state" id="supports_XML_null"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_domimplementationfeaturexml.xml b/test/testcases/tests/level1/core/hc_domimplementationfeaturexml.xml new file mode 100644 index 0000000..e9da496 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_domimplementationfeaturexml.xml @@ -0,0 +1,43 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_domimplementationfeaturexml"> +<metadata> +<title>hc_domimplementationfeaturexml</title> +<creator>Curt Arnold</creator> +<description> + 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 "html" or "xml". + The method should return a boolean "true". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-5CED94D7"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=245"/> +</metadata> +<var name="doc" type="Document"/> +<var name="domImpl" type="DOMImplementation"/> +<var name="state" type="boolean"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<implementation obj="doc" var="domImpl"/> +<if><contentType type="text/html"/> +<hasFeature obj="domImpl" var="state" feature='"html"' version='"1.0"'/> +<assertTrue actual="state" id="supports_html_1.0"/> +<else> +<hasFeature obj="domImpl" var="state" feature='"xml"' version='"1.0"'/> +<assertTrue actual="state" id="supports_xml_1.0"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_elementaddnewattribute.xml b/test/testcases/tests/level1/core/hc_elementaddnewattribute.xml new file mode 100644 index 0000000..e7a494d --- /dev/null +++ b/test/testcases/tests/level1/core/hc_elementaddnewattribute.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_elementaddnewattribute"> +<metadata> +<title>hc_elementAddNewAttribute</title> +<creator>Curt Arnold</creator> +<description> + The "setAttribute(name,value)" method adds a new attribute + to the Element + + Retrieve the last child of the last employee, then + add an attribute to it by invoking the + "setAttribute(name,value)" method. It should create + a "strong" attribute with an assigned value equal to + "value". +</description> + +<date qualifier="created">2002-06-09</date> +<!--setAttribute--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68F082"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=243"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Element"/> +<var name="attrValue" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="4" var="testEmployee"/> +<setAttribute obj="testEmployee" name='"lang"' value='"EN-us"'/> +<getAttribute obj="testEmployee" var="attrValue" name='"lang"'/> +<assertEquals actual="attrValue" expected='"EN-us"' id="attrValue" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_elementassociatedattribute.xml b/test/testcases/tests/level1/core/hc_elementassociatedattribute.xml new file mode 100644 index 0000000..c79b153 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_elementassociatedattribute.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_elementassociatedattribute"> +<metadata> +<title>hc_elementAssociatedAttribute</title> +<creator>Curt Arnold</creator> +<description> + Retrieve the first attribute from the last child of + the first employee and invoke the "getSpecified()" + method. This test is only intended to show that + Elements can actually have attributes. This test uses + the "getNamedItem(name)" method from the NamedNodeMap + interface. +</description> + +<date qualifier="created">2002-06-09</date> +<!--attributes attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="domesticAttr" type="Attr"/> +<var name="specified" type="boolean"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="testEmployee"/> +<attributes obj="testEmployee" var="attributes"/> +<getNamedItem obj="attributes" var="domesticAttr" name='"title"'/> +<specified obj="domesticAttr" var="specified"/> +<assertTrue actual="specified" id="acronymTitleSpecified"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_elementchangeattributevalue.xml b/test/testcases/tests/level1/core/hc_elementchangeattributevalue.xml new file mode 100644 index 0000000..cabca5b --- /dev/null +++ b/test/testcases/tests/level1/core/hc_elementchangeattributevalue.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_elementchangeattributevalue"> +<metadata> +<title>hc_elementChangeAttributeValue</title> +<creator>Curt Arnold</creator> +<description> + The "setAttribute(name,value)" method adds a new attribute + to the Element. If the "strong" is already present, then + its value should be changed to the new one that is in + the "value" parameter. + + Retrieve the last child of the fourth employee, then add + an attribute to it by invoking the + "setAttribute(name,value)" method. Since the name of the + used attribute("class") is already present in this + element, then its value should be changed to the new one + of the "value" parameter. +</description> + +<date qualifier="created">2002-06-09</date> +<!--setAttribute--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68F082"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Element"/> +<var name="attrValue" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="3" var="testEmployee"/> +<setAttribute obj="testEmployee" name='"class"' value='"Neither"'/> +<getAttribute obj="testEmployee" var="attrValue" name='"class"'/> +<assertEquals actual="attrValue" expected='"Neither"' id="elementChangeAttributeValueAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_elementcreatenewattribute.xml b/test/testcases/tests/level1/core/hc_elementcreatenewattribute.xml new file mode 100644 index 0000000..aac3a12 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_elementcreatenewattribute.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_elementcreatenewattribute"> +<metadata> +<title>hc_elementCreateNewAttribute</title> +<creator>Curt Arnold</creator> +<description> + The "setAttributeNode(newAttr)" method adds a new + attribute to the Element. + + Retrieve first address element and add + a new attribute node to it by invoking its + "setAttributeNode(newAttr)" method. This test makes use + of the "createAttribute(name)" method from the Document + interface. +</description> + +<date qualifier="created">2002-06-09</date> +<!--setAttributeNode--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-887236154"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=243"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddress" type="Element"/> +<var name="newAttribute" type="Attr"/> +<var name="oldAttr" type="Attr"/> +<var name="districtAttr" type="Attr"/> +<var name="attrVal" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="testAddress"/> +<createAttribute obj="doc" var="newAttribute" name='"lang"'/> +<setAttributeNode obj="testAddress" var="oldAttr" newAttr="newAttribute"/> +<assertNull actual="oldAttr" id="old_attr_doesnt_exist"/> +<getAttributeNode obj="testAddress" var="districtAttr" name='"lang"'/> +<assertNotNull actual="districtAttr" id="new_district_accessible"/> +<getAttribute var="attrVal" obj="testAddress" name='"lang"'/> +<assertEquals actual="attrVal" expected='""' id="attr_value" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_elementgetattributenode.xml b/test/testcases/tests/level1/core/hc_elementgetattributenode.xml new file mode 100644 index 0000000..2896efa --- /dev/null +++ b/test/testcases/tests/level1/core/hc_elementgetattributenode.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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_elementgetattributenode"> +<metadata> +<title>hc_elementgetattributenode</title> +<creator>Curt Arnold</creator> +<description> + Retrieve the attribute "title" from the last child + of the first "p" element and check its node name. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-217A91B8"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=236"/> +<subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2003Jun/0011.html"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Element"/> +<var name="domesticAttr" type="Attr"/> +<var name="nodeName" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="testEmployee"/> +<getAttributeNode obj="testEmployee" var="domesticAttr" name='"title"'/> +<nodeName obj="domesticAttr" var="nodeName"/> +<assertEquals actual="nodeName" expected='"title"' id="nodeName" ignoreCase="auto" context="attribute"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_elementgetattributenodenull.xml b/test/testcases/tests/level1/core/hc_elementgetattributenodenull.xml new file mode 100644 index 0000000..3bab65b --- /dev/null +++ b/test/testcases/tests/level1/core/hc_elementgetattributenodenull.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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_elementgetattributenodenull"> +<metadata> +<title>hc_elementGetAttributeNodeNull</title> +<creator>Curt Arnold</creator> +<description> + The "getAttributeNode(name)" method retrieves an + attribute node by name. It should return null if the + "strong" attribute does not exist. + + Retrieve the last child of the first employee and attempt + to retrieve a non-existing attribute. The method should + return "null". The non-existing attribute to be used + is "invalidAttribute". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-217A91B8"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Element"/> +<var name="domesticAttr" type="Attr"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="testEmployee"/> +<getAttributeNode obj="testEmployee" var="domesticAttr" name='"invalidAttribute"'/> +<assertNull actual="domesticAttr" id="elementGetAttributeNodeNullAssert"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_elementgetelementempty.xml b/test/testcases/tests/level1/core/hc_elementgetelementempty.xml new file mode 100644 index 0000000..90606a2 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_elementgetelementempty.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_elementgetelementempty"> +<metadata> +<title>hc_elementGetElementEmpty</title> +<creator>Curt Arnold</creator> +<description> + The "getAttribute(name)" method returns an empty + string if no value was assigned to an attribute and + no default value was given in the DTD file. + + Retrieve the last child of the last employee, then + invoke "getAttribute(name)" method, where "strong" is an + attribute without a specified or DTD default value. + The "getAttribute(name)" method should return the empty + string. This method makes use of the + "createAttribute(newAttr)" method from the Document + interface. +</description> + +<date qualifier="created">2002-06-09</date> +<!--getAttribute--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-666EE0F9"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=243"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newAttribute" type="Attr"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Element"/> +<var name="domesticAttr" type="Attr"/> +<var name="attrValue" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<createAttribute obj="doc" var="newAttribute" name='"lang"'/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="3" var="testEmployee"/> +<setAttributeNode obj="testEmployee" var="domesticAttr" newAttr="newAttribute"/> +<getAttribute obj="testEmployee" var="attrValue" name='"lang"'/> +<assertEquals actual="attrValue" expected='""' id="elementGetElementEmptyAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_elementgetelementsbytagname.xml b/test/testcases/tests/level1/core/hc_elementgetelementsbytagname.xml new file mode 100644 index 0000000..9284ce2 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_elementgetelementsbytagname.xml @@ -0,0 +1,39 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_elementgetelementsbytagname"> +<metadata> +<title>hc_elementGetElementsByTagName</title> +<creator>Curt Arnold</creator> +<description> +The "getElementsByTagName(name)" method returns a list +of all descendant Elements with the given tag name. +Test for an empty list. + +Create a NodeList of all the descendant elements +using the string "noMatch" as the tagName. +The method should return a NodeList whose length is +"0" since there are not any descendant elements +that match the given tag name. +</description> + +<date qualifier="created">2002-06-09</date> +<!--getElementsByTagName--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1938918D"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<assertSize collection="elementList" size="5" id="elementGetElementsByTagNameAssert"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_elementgetelementsbytagnameaccessnodelist.xml b/test/testcases/tests/level1/core/hc_elementgetelementsbytagnameaccessnodelist.xml new file mode 100644 index 0000000..d7af247 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_elementgetelementsbytagnameaccessnodelist.xml @@ -0,0 +1,61 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_elementgetelementsbytagnameaccessnodelist"> +<metadata> +<title>hc_elementGetElementsByTagName</title> +<creator>Curt Arnold</creator> +<description> +The "getElementsByTagName(name)" method returns a list +of all descendant Elements in the order the children +were encountered in a pre order traversal of the element +tree. + +Create a NodeList of all the descendant elements +using the string "p" as the tagName. +The method should return a NodeList whose length is +"5" in the order the children were encountered. +Access the FOURTH element in the NodeList. The FOURTH +element, the first or second should be an "em" node with +the content "EMP0004". +</description> + +<date qualifier="created">2002-06-09</date> +<!--getElementsByTagName--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1938918D"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=246"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Element"/> +<var name="firstC" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="nodeType" type="int"/> +<var name="employeeIDNode" type="CharacterData"/> +<var name="employeeID" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="3" var="testEmployee"/> +<firstChild interface="Node" obj="testEmployee" var="firstC"/> +<nodeType var="nodeType" obj="firstC"/> +<!-- if a text node, get the next sibling --> +<while><equals actual="nodeType" expected="3"/> +<nextSibling interface="Node" var="firstC" obj="firstC"/> +<nodeType var="nodeType" obj="firstC"/> +</while> +<nodeName obj="firstC" var="childName"/> +<assertEquals actual="childName" expected='"em"' id="childName" ignoreCase="auto"/> +<firstChild interface="Node" var="employeeIDNode" obj="firstC"/> +<nodeValue var="employeeID" obj="employeeIDNode"/> +<assertEquals actual="employeeID" expected='"EMP0004"' ignoreCase="false" id="employeeID"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_elementgetelementsbytagnamenomatch.xml b/test/testcases/tests/level1/core/hc_elementgetelementsbytagnamenomatch.xml new file mode 100644 index 0000000..6576b8c --- /dev/null +++ b/test/testcases/tests/level1/core/hc_elementgetelementsbytagnamenomatch.xml @@ -0,0 +1,37 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_elementgetelementsbytagnamenomatch"> +<metadata> +<title>hc_elementGetElementsByTagName</title> +<creator>Curt Arnold</creator> +<description> +The "getElementsByTagName(name)" method returns a list +of all descendant Elements with the given tag name. + +Create a NodeList of all the descendant elements +using the string "employee" as the tagName. +The method should return a NodeList whose length is +"5". +</description> + +<date qualifier="created">2002-06-09</date> +<!--getElementsByTagName--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1938918D"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"noMatch"' var="elementList"/> +<assertSize collection="elementList" size="0" id="elementGetElementsByTagNameNoMatchNoMatchAssert"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_elementgetelementsbytagnamespecialvalue.xml b/test/testcases/tests/level1/core/hc_elementgetelementsbytagnamespecialvalue.xml new file mode 100644 index 0000000..66a9013 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_elementgetelementsbytagnamespecialvalue.xml @@ -0,0 +1,56 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_elementgetelementsbytagnamespecialvalue"> +<metadata> +<title>hc_elementGetElementsByTagNamesSpecialValue</title> +<creator>Curt Arnold</creator> +<description> +The "getElementsByTagName(name)" method may use the +special value "*" to match all tags in the element +tree. + +Create a NodeList of all the descendant elements +of the last employee by using the special value "*". +The method should return all the descendant children(6) +in the order the children were encountered. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1938918D"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="lastEmployee" type="Element"/> +<var name="lastempList" type="NodeList"/> +<var name="child" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="result" type="List"/> +<var name="expectedResult" type="List"> +<member>"em"</member> +<member>"strong"</member> +<member>"code"</member> +<member>"sup"</member> +<member>"var"</member> +<member>"acronym"</member> +</var> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="4" var="lastEmployee"/> +<getElementsByTagName interface="Element" obj="lastEmployee" var="lastempList" tagname='"*"'/> +<for-each collection="lastempList" member="child"> +<nodeName obj="child" var="childName"/> +<append collection="result" item="childName"/> +</for-each> +<assertEquals actual="result" expected="expectedResult" id="tagNames" ignoreCase="auto"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_elementgettagname.xml b/test/testcases/tests/level1/core/hc_elementgettagname.xml new file mode 100644 index 0000000..25601a5 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_elementgettagname.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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_elementgettagname"> +<metadata> +<title>hc_elementgettagname</title> +<creator>Curt Arnold</creator> +<description> + Invoke the "getTagName()" method one the + root node. The value returned should be "html" or "svg". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-104682815"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=251"/> +</metadata> +<var name="doc" type="Document"/> +<var name="root" type="Element"/> +<var name="tagname" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<documentElement obj="doc" var="root"/> +<tagName obj="root" var="tagname"/> +<if><contentType type="image/svg+xml"/> +<assertEquals actual="tagname" expected='"svg"' id="svgTagname" ignoreCase="false"/> +<else> +<assertEquals actual="tagname" expected='"html"' id="tagname" ignoreCase="auto"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_elementinuseattributeerr.xml b/test/testcases/tests/level1/core/hc_elementinuseattributeerr.xml new file mode 100644 index 0000000..6a5e8df --- /dev/null +++ b/test/testcases/tests/level1/core/hc_elementinuseattributeerr.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_elementinuseattributeerr"> +<metadata> +<title>hc_elementInUseAttributeErr</title> +<creator>Curt Arnold</creator> +<description> + The "setAttributeNode(newAttr)" method raises an + "INUSE_ATTRIBUTE_ERR DOMException if the "newAttr" + is already an attribute of another element. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INUSE_ATTRIBUTE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-887236154"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-887236154')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INUSE_ATTRIBUTE_ERR'])"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=244"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newAttribute" type="Attr"/> +<var name="addressElementList" type="NodeList"/> +<var name="testAddress" type="Element"/> +<var name="newElement" type="Element"/> +<var name="attrAddress" type="Attr"/> +<var name="appendedChild" type="Node"/> +<var name="setAttr1" type="Attr"/> +<var name="setAttr2" type="Attr"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"body"' var="addressElementList"/> +<item interface="NodeList" obj="addressElementList" index="0" var="testAddress"/> +<createElement obj="doc" var="newElement" tagName='"p"'/> +<appendChild var="appendedChild" obj="testAddress" newChild="newElement"/> +<createAttribute obj="doc" var="newAttribute" name='"title"'/> +<setAttributeNode var="setAttr1" obj="newElement" newAttr="newAttribute"/> +<assertDOMException id="throw_INUSE_ATTRIBUTE_ERR"> + <INUSE_ATTRIBUTE_ERR> + <setAttributeNode var="setAttr2" obj="testAddress" newAttr="newAttribute"/> + </INUSE_ATTRIBUTE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_elementinvalidcharacterexception.xml b/test/testcases/tests/level1/core/hc_elementinvalidcharacterexception.xml new file mode 100644 index 0000000..3695b93 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_elementinvalidcharacterexception.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_elementinvalidcharacterexception"> +<metadata> +<title>hc_elementInvalidCharacterException</title> +<creator>Curt Arnold</creator> +<description> + The "setAttribute(name,value)" method raises an + "INVALID_CHARACTER_ERR DOMException if the specified + name contains an invalid character. + + Retrieve the last child of the first employee and + call its "setAttribute(name,value)" method with + "strong" containing an invalid character. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INVALID_CHARACTER_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68F082"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-F68F082')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INVALID_CHARACTER_ERR'])"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddress" type="Element"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="testAddress"/> +<assertDOMException id="throw_INVALID_CHARACTER_ERR"> +<INVALID_CHARACTER_ERR> +<setAttribute obj="testAddress" name='"invalid^Name"' value='"value"'/> +</INVALID_CHARACTER_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_elementinvalidcharacterexception1.xml b/test/testcases/tests/level1/core/hc_elementinvalidcharacterexception1.xml new file mode 100644 index 0000000..2953282 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_elementinvalidcharacterexception1.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_elementinvalidcharacterexception1"> +<metadata> +<title>hc_elementinvalidcharacterexception1</title> +<creator>Curt Arnold</creator> +<description> +Calling Element.setAttribute with an empty name will cause an INVALID_CHARACTER_ERR. +</description> +<date qualifier="created">2004-03-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INVALID_CHARACTER_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68F082"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-F68F082')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INVALID_CHARACTER_ERR'])"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=525"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddress" type="Element"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""acronym"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="testAddress"/> +<assertDOMException id="throw_INVALID_CHARACTER_ERR"> +<INVALID_CHARACTER_ERR> +<setAttribute obj="testAddress" name='""' value=""value""/> +</INVALID_CHARACTER_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_elementnormalize.xml b/test/testcases/tests/level1/core/hc_elementnormalize.xml new file mode 100644 index 0000000..e1df08f --- /dev/null +++ b/test/testcases/tests/level1/core/hc_elementnormalize.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_elementnormalize"> +<metadata> +<title>hc_elementnormalize</title> +<creator>Curt Arnold</creator> +<description> +Append a couple of text nodes to the first sup element, normalize the +document element and check that the element has been normalized. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-162CF083"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=546"/> +</metadata> +<var name="doc" type="Document"/> +<var name="root" type="Element"/> +<var name="elementList" type="NodeList"/> +<var name="testName" type="Element"/> +<var name="firstChild" type="Node"/> +<var name="childValue" type="DOMString"/> +<var name="textNode" type="Text"/> +<var name="retNode" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"sup"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="testName"/> +<createTextNode var="textNode" obj="doc" data='""'/> +<appendChild var="retNode" obj="testName" newChild="textNode"/> +<createTextNode var="textNode" obj="doc" data='",000"'/> +<appendChild var="retNode" obj="testName" newChild="textNode"/> +<documentElement obj="doc" var="root"/> +<normalize obj="root"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"sup"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="testName"/> +<firstChild interface="Node" obj="testName" var="firstChild"/> +<nodeValue obj="firstChild" var="childValue"/> +<assertEquals actual="childValue" expected='"56,000,000"' id="elementNormalizeAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_elementnormalize2.xml b/test/testcases/tests/level1/core/hc_elementnormalize2.xml new file mode 100644 index 0000000..0adf0d8 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_elementnormalize2.xml @@ -0,0 +1,51 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_elementnormalize2"> +<metadata> +<title>hc_elementnormalize2</title> +<creator>Curt Arnold</creator> +<description> +Add an empty text node to an existing attribute node, normalize the containing element +and check that the attribute node has eliminated the empty text. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-162CF083"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=482"/> +</metadata> +<var name="doc" type="Document"/> +<var name="root" type="Element"/> +<var name="elementList" type="NodeList"/> +<var name="element" type="Element"/> +<var name="firstChild" type="Node"/> +<var name="secondChild" type="Node"/> +<var name="childValue" type="DOMString"/> +<var name="emptyText" type="Text"/> +<var name="attrNode" type="Attr"/> +<var name="retval" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<documentElement obj="doc" var="root"/> +<createTextNode var="emptyText" obj="doc" data='""'/> +<getElementsByTagName interface="Element" obj="root" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="element"/> +<getAttributeNode var="attrNode" obj="element" name='"title"'/> +<appendChild var="retval" obj="attrNode" newChild="emptyText"/> +<normalize obj="element"/> +<getAttributeNode var="attrNode" obj="element" name='"title"'/> +<firstChild interface="Node" obj="attrNode" var="firstChild"/> +<nodeValue obj="firstChild" var="childValue"/> +<assertEquals actual="childValue" expected='"Yes"' id="firstChild" ignoreCase="false"/> +<nextSibling var="secondChild" obj="firstChild" interface="Node"/> +<assertNull actual="secondChild" id="secondChildNull"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_elementnotfounderr.xml b/test/testcases/tests/level1/core/hc_elementnotfounderr.xml new file mode 100644 index 0000000..73de389 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_elementnotfounderr.xml @@ -0,0 +1,50 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_elementnotfounderr"> +<metadata> +<title>hc_elementNotFoundErr</title> +<creator>Curt Arnold</creator> +<description> + The "removeAttributeNode(oldAttr)" method raises a + NOT_FOUND_ERR DOMException if the "oldAttr" attribute + is not an attribute of the element. + + Retrieve the last employee and attempt to remove + a non existing attribute node. This should cause the + intended exception to be raised. This test makes use + of the "createAttribute(name)" method from the Document + interface. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INUSE_ATTRIBUTE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-D589198"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-D589198')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INUSE_ATTRIBUTE_ERR'])"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="oldAttribute" type="Attr"/> +<var name="addressElementList" type="NodeList"/> +<var name="testAddress" type="Element"/> +<var name="attrAddress" type="Attr"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="addressElementList"/> +<item interface="NodeList" obj="addressElementList" index="4" var="testAddress"/> +<createAttribute obj="doc" var="oldAttribute" name='"title"'/> +<assertDOMException id="throw_NOT_FOUND_ERR"> +<NOT_FOUND_ERR> +<removeAttributeNode obj="testAddress" oldAttr="oldAttribute" var="attrAddress"/> +</NOT_FOUND_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_elementremoveattribute.xml b/test/testcases/tests/level1/core/hc_elementremoveattribute.xml new file mode 100644 index 0000000..f5d46f2 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_elementremoveattribute.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_elementremoveattribute"> +<metadata> +<title>hc_elementRemoveAttribute</title> +<creator>Curt Arnold</creator> +<description> + The "removeAttribute(name)" removes an attribute by name. + If the attribute has a default value, it is immediately + replaced. However, there is no default values in the HTML + compatible tests, so its value is "". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6D6AC0F9"/> +<!-- DOM WG opinion on default attributes --> +<subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2002Mar/0002.html"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Element"/> +<var name="attrValue" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="3" var="testEmployee"/> +<removeAttribute obj="testEmployee" name='"class"'/> +<getAttribute obj="testEmployee" var="attrValue" name='"class"'/> +<assertEquals actual="attrValue" expected='""' id="attrValue" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_elementremoveattributeaftercreate.xml b/test/testcases/tests/level1/core/hc_elementremoveattributeaftercreate.xml new file mode 100644 index 0000000..b3339e7 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_elementremoveattributeaftercreate.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_elementremoveattributeaftercreate"> +<metadata> +<title>hc_elementRemoveAttributeAfterCreate</title> +<creator>Curt Arnold</creator> +<description> + The "removeAttributeNode(oldAttr)" method removes the + specified attribute. + + Retrieve the last child of the third employee, add a + new "lang" attribute to it and then try to remove it. + To verify that the node was removed use the + "getNamedItem(name)" method from the NamedNodeMap + interface. It also uses the "getAttributes()" method + from the Node interface. +</description> + +<date qualifier="created">2002-06-09</date> +<!--removeAttributeNode--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-D589198"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=243"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Element"/> +<var name="newAttribute" type="Attr"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="districtAttr" type="Attr"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="2" var="testEmployee"/> +<createAttribute obj="doc" var="newAttribute" name='"lang"'/> +<setAttributeNode obj="testEmployee" var="districtAttr" newAttr="newAttribute"/> +<removeAttributeNode obj="testEmployee" var="districtAttr" oldAttr="newAttribute"/> +<attributes obj="testEmployee" var="attributes"/> +<getNamedItem obj="attributes" var="districtAttr" name='"lang"'/> +<assertNull actual="districtAttr" id="removed_item_null"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_elementremoveattributenode.xml b/test/testcases/tests/level1/core/hc_elementremoveattributenode.xml new file mode 100644 index 0000000..ccb4ae6 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_elementremoveattributenode.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_elementremoveattributenode"> +<metadata> +<title>hc_elementRemoveAttributeNode</title> +<creator>Curt Arnold</creator> +<description> + The "removeAttributeNode(oldAttr)" method returns the + node that was removed. + + Retrieve the last child of the third employee and + remove its "class" Attr node. The method should + return the old attribute node. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-D589198"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Element"/> +<var name="streetAttr" type="Attr"/> +<var name="removedAttr" type="Attr"/> +<var name="removedValue" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="2" var="testEmployee"/> +<getAttributeNode obj="testEmployee" var="streetAttr" name='"class"'/> +<removeAttributeNode obj="testEmployee" var="removedAttr" oldAttr="streetAttr"/> +<assertNotNull actual="removedAttr" id="removedAttrNotNull"/> +<value interface="Attr" obj="removedAttr" var="removedValue"/> +<assertEquals actual="removedValue" expected='"No"' id="elementRemoveAttributeNodeAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_elementreplaceattributewithself.xml b/test/testcases/tests/level1/core/hc_elementreplaceattributewithself.xml new file mode 100644 index 0000000..927b8e5 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_elementreplaceattributewithself.xml @@ -0,0 +1,43 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_elementreplaceattributewithself"> +<metadata> +<title>hc_elementReplaceAttributeWithSelf</title> +<creator>Curt Arnold</creator> +<description> +This test calls setAttributeNode to replace an attribute with itself. +Since the node is not an attribute of another Element, it would +be inappropriate to throw an INUSE_ATTRIBUTE_ERR. + +This test was derived from elementinuserattributeerr which +inadvertanly made this test. +</description> +<contributor>Curt Arnold</contributor> +<date qualifier="created">2002-06-09</date> +<!--setAttributeNode--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-887236154"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Element"/> +<var name="streetAttr" type="Attr"/> +<var name="replacedAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="2" var="testEmployee"/> +<getAttributeNode var="streetAttr" obj="testEmployee" name='"class"'/> +<setAttributeNode obj="testEmployee" var="replacedAttr" newAttr="streetAttr"/> +<assertSame actual="replacedAttr" expected="streetAttr" id="replacedAttr"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_elementreplaceexistingattribute.xml b/test/testcases/tests/level1/core/hc_elementreplaceexistingattribute.xml new file mode 100644 index 0000000..6af3483 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_elementreplaceexistingattribute.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_elementreplaceexistingattribute"> +<metadata> +<title>hc_elementReplaceExistingAttribute</title> +<creator>Curt Arnold</creator> +<description> + The "setAttributeNode(newAttr)" method adds a new + attribute to the Element. If the "newAttr" Attr node is + already present in this element, it should replace the + existing one. + + Retrieve the last child of the third employee and add a + new attribute node by invoking the "setAttributeNode(new + Attr)" method. The new attribute node to be added is + "class", which is already present in this element. The + method should replace the existing Attr node with the + new one. This test uses the "createAttribute(name)" + method from the Document interface. +</description> + +<date qualifier="created">2002-06-09</date> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Element"/> +<var name="newAttribute" type="Attr"/> +<var name="strong" type="DOMString"/> +<var name="setAttr" type="Attr"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="2" var="testEmployee"/> +<createAttribute obj="doc" var="newAttribute" name='"class"'/> +<setAttributeNode var="setAttr" obj="testEmployee" newAttr="newAttribute"/> +<getAttribute obj="testEmployee" var="strong" name='"class"'/> +<assertEquals actual="strong" expected='""' id="replacedValue" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_elementreplaceexistingattributegevalue.xml b/test/testcases/tests/level1/core/hc_elementreplaceexistingattributegevalue.xml new file mode 100644 index 0000000..5c04a86 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_elementreplaceexistingattributegevalue.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_elementreplaceexistingattributegevalue"> +<metadata> +<title>hc_elementReplaceExistingAttributeGeValue</title> +<creator>Curt Arnold</creator> +<description> +If the "setAttributeNode(newAttr)" method replaces an +existing Attr node with the same name, then it should +return the previously existing Attr node. + +Retrieve the last child of the third employee and add a +new attribute node. The new attribute node is "class", +which is already present in this Element. The method +should return the existing Attr node(old "class" Attr). +This test uses the "createAttribute(name)" method +from the Document interface. +</description> + +<date qualifier="created">2002-06-09</date> +<!--setAttributeNode--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-887236154"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Element"/> +<var name="newAttribute" type="Attr"/> +<var name="streetAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="2" var="testEmployee"/> +<createAttribute obj="doc" var="newAttribute" name='"class"'/> +<setAttributeNode obj="testEmployee" var="streetAttr" newAttr="newAttribute"/> +<assertNotNull actual="streetAttr" id="previousAttrNotNull"/> +<value interface="Attr" obj="streetAttr" var="value"/> +<assertEquals actual="value" expected='"No"' id="previousAttrValue" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_elementretrieveallattributes.xml b/test/testcases/tests/level1/core/hc_elementretrieveallattributes.xml new file mode 100644 index 0000000..9b50924 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_elementretrieveallattributes.xml @@ -0,0 +1,59 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_elementretrieveallattributes"> +<metadata> +<title>hc_elementretrieveallattributes</title> +<creator>Curt Arnold</creator> +<description> + Create a list of all the attributes of the last child + of the first "p" element by using the "getAttributes()" + method. +</description> + +<date qualifier="created">2002-06-09</date> +<!--attributes attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +<!-- DOM WG opinion on default attributes --> +<subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2002Mar/0002.html"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=184"/> +</metadata> +<var name="doc" type="Document"/> +<var name="addressList" type="NodeList"/> +<var name="testAddress" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="attribute" type="Attr"/> +<var name="attributeName" type="DOMString"/> +<var name="actual" type="Collection"/> +<var name="htmlExpected" type="Collection"> + <member>"title"</member> +</var> +<var name="expected" type="Collection"> + <member>"title"</member> + <member>"dir"</member> +</var> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="addressList"/> +<item interface="NodeList" obj="addressList" index="0" var="testAddress"/> +<attributes obj="testAddress" var="attributes"/> +<for-each collection="attributes" member="attribute"> + <nodeName var="attributeName" obj="attribute"/> + <append collection="actual" item="attributeName"/> +</for-each> +<if><contentType type="text/html"/> + <assertEquals id="htmlAttributeNames" actual="actual" expected="htmlExpected" ignoreCase="true"/> + <else> + <assertEquals id="attributeNames" actual="actual" expected="expected" ignoreCase="true"/> + </else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_elementretrieveattrvalue.xml b/test/testcases/tests/level1/core/hc_elementretrieveattrvalue.xml new file mode 100644 index 0000000..6d5a96e --- /dev/null +++ b/test/testcases/tests/level1/core/hc_elementretrieveattrvalue.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_elementretrieveattrvalue"> +<metadata> +<title>hc_elementRetrieveAttrValue</title> +<creator>Curt Arnold</creator> +<description> + The "getAttribute(name)" method returns an attribute + value by name. + + Retrieve the second address element, then + invoke the 'getAttribute("class")' method. This should + return the value of the attribute("No"). +</description> + +<date qualifier="created">2002-06-09</date> +<!--getAttribute--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-666EE0F9"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddress" type="Element"/> +<var name="attrValue" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="2" var="testAddress"/> +<getAttribute obj="testAddress" var="attrValue" name='"class"'/> +<assertEquals actual="attrValue" expected='"No"' id="attrValue" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_elementretrievetagname.xml b/test/testcases/tests/level1/core/hc_elementretrievetagname.xml new file mode 100644 index 0000000..d6f5744 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_elementretrievetagname.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_elementretrievetagname"> +<metadata> +<title>hc_elementRetrieveTagName</title> +<creator>Curt Arnold</creator> +<description> + The "getElementsByTagName()" method returns a NodeList + of all descendant elements with a given tagName. + + Invoke the "getElementsByTagName()" method and create + a NodeList of "code" elements. Retrieve the second + "code" element in the list and return the NodeName. +</description> + +<date qualifier="created">2002-06-09</date> +<!--nodeName attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +<!--tagName attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-104682815"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Node"/> +<var name="strong" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"code"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="testEmployee"/> +<nodeName obj="testEmployee" var="strong"/> +<assertEquals actual="strong" expected='"code"' id="nodename" ignoreCase="auto"/> +<tagName obj="testEmployee" var="strong"/> +<assertEquals actual="strong" expected='"code"' id="tagname" ignoreCase="auto"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_elementsetattributenodenull.xml b/test/testcases/tests/level1/core/hc_elementsetattributenodenull.xml new file mode 100644 index 0000000..49e6df9 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_elementsetattributenodenull.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_elementsetattributenodenull"> +<metadata> +<title>hc_elementSetAttributeNodeNull</title> +<creator>Curt Arnold</creator> +<description> + The "setAttributeNode(newAttr)" method returns the + null value if no previously existing Attr node with the + same name was replaced. + + Retrieve the last child of the third employee and add a + new attribute to it. The new attribute node added is + "lang", which is not part of this Element. The + method should return the null value. + This test uses the "createAttribute(name)" + method from the Document interface. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-887236154"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=243"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Element"/> +<var name="newAttribute" type="Attr"/> +<var name="districtAttr" type="Attr"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="2" var="testEmployee"/> +<createAttribute obj="doc" var="newAttribute" name='"lang"'/> +<setAttributeNode obj="testEmployee" var="districtAttr" newAttr="newAttribute"/> +<assertNull actual="districtAttr" id="elementSetAttributeNodeNullAssert"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_elementwrongdocumenterr.xml b/test/testcases/tests/level1/core/hc_elementwrongdocumenterr.xml new file mode 100644 index 0000000..8d36120 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_elementwrongdocumenterr.xml @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_elementwrongdocumenterr"> +<metadata> +<title>hc_elementWrongDocumentErr</title> +<creator>Curt Arnold</creator> +<description> + The "setAttributeNode(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 last employee and attempt to set a new + attribute node for its "employee" element. 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 "createAttribute(newAttr)" method + from the Document interface. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='WRONG_DOCUMENT_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-887236154"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-887236154')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='WRONG_DOCUMENT_ERR'])"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc1" type="Document"/> +<var name="doc2" type="Document"/> +<var name="newAttribute" type="Attr"/> +<var name="addressElementList" type="NodeList"/> +<var name="testAddress" type="Element"/> +<var name="attrAddress" type="Attr"/> +<load var="doc1" href="hc_staff" willBeModified="true"/> +<load var="doc2" href="hc_staff" willBeModified="false"/> +<createAttribute obj="doc2" var="newAttribute" name='"newAttribute"'/> +<getElementsByTagName interface="Document" obj="doc1" tagname='"acronym"' var="addressElementList"/> +<item interface="NodeList" obj="addressElementList" index="4" var="testAddress"/> +<assertDOMException id="throw_WRONG_DOCUMENT_ERR"> +<WRONG_DOCUMENT_ERR> +<setAttributeNode obj="testAddress" newAttr="newAttribute" var="attrAddress"/> +</WRONG_DOCUMENT_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_entitiesremovenameditem1.xml b/test/testcases/tests/level1/core/hc_entitiesremovenameditem1.xml new file mode 100644 index 0000000..0bd5d38 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_entitiesremovenameditem1.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_entitiesremovenameditem1"> +<metadata> +<title>hc_entitiesremovenameditem1</title> +<creator>Curt Arnold</creator> +<description> +An attempt to add remove an entity should result in a NO_MODIFICATION_ERR. +</description> +<date qualifier="created">2004-01-11</date> +<!-- DocumentType.entities --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1788794630"/> +<!-- NamedNodeMap.removeNamedItem --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-D58B193"/> +</metadata> +<hasFeature feature='"XML"'/> +<var name="doc" type="Document"/> +<var name="entities" type="NamedNodeMap"/> +<var name="docType" type="DocumentType"/> +<var name="retval" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<doctype var="docType" obj="doc"/> +<if><not><contentType type="text/html"/></not> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<entities var="entities" obj="docType"/> +<assertNotNull actual="entities" id="entitiesNotNull"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> + <NO_MODIFICATION_ALLOWED_ERR> + <removeNamedItem var="retval" obj="entities" name='"alpha"'/> + </NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_entitiessetnameditem1.xml b/test/testcases/tests/level1/core/hc_entitiessetnameditem1.xml new file mode 100644 index 0000000..301bdf1 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_entitiessetnameditem1.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_entitiessetnameditem1"> +<metadata> +<title>hc_entitiessetnameditem1</title> +<creator>Curt Arnold</creator> +<description> +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. +</description> +<date qualifier="created">2004-01-11</date> +<!-- DocumentType.entities --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1788794630"/> +<!-- NamedNodeMap.setNamedItem --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1025163788"/> +</metadata> +<hasFeature feature='"XML"'/> +<var name="doc" type="Document"/> +<var name="entities" type="NamedNodeMap"/> +<var name="docType" type="DocumentType"/> +<var name="retval" type="Node"/> +<var name="elem" type="Element"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<doctype var="docType" obj="doc"/> +<if><not><contentType type="text/html"/></not> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<entities var="entities" obj="docType"/> +<assertNotNull actual="entities" id="entitiesNotNull"/> +<createElement var="elem" obj="doc" tagName='"br"'/> +<try> + <setNamedItem var="retval" obj="entities" arg="elem"/> + <fail id="throw_HIER_OR_NO_MOD_ERR"/> + <catch> + <DOMException code="HIERARCHY_REQUEST_ERR"/> + <DOMException code="NO_MODIFICATION_ALLOWED_ERR"/> + </catch> +</try> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_namednodemapchildnoderange.xml b/test/testcases/tests/level1/core/hc_namednodemapchildnoderange.xml new file mode 100644 index 0000000..d7c8b7d --- /dev/null +++ b/test/testcases/tests/level1/core/hc_namednodemapchildnoderange.xml @@ -0,0 +1,60 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_namednodemapchildnoderange"> +<metadata> +<title>hc_namednodemapchildnoderange</title> +<creator>Curt Arnold</creator> +<description> + Create a NamedNodeMap object from the attributes of the + last child of the third "p" element and traverse the + list from index 0 thru length -1. All indices should + be valid. +</description> + +<date qualifier="created">2002-06-09</date> +<!--attributes attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +<!--item--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-349467F9"/> +<!--length attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6D0FB19E"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=250"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="child" type="Node"/> +<var name="strong" type="DOMString"/> +<var name="length" type="int"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"acronym"'/> +<item interface="NodeList" obj="elementList" var="testEmployee" index="2"/> +<attributes obj="testEmployee" var="attributes"/> +<length var="length" obj="attributes" interface="NamedNodeMap"/> +<if><contentType type="text/html"/> +<assertEquals actual="length" expected="2" id="htmlLength" ignoreCase="false"/> +<else> +<assertEquals actual="length" expected="3" id="length" ignoreCase="false"/> +<item var="child" index="2" obj="attributes" interface="NamedNodeMap"/> +<assertNotNull actual="child" id="attr2"/> +</else> +</if> +<item var="child" index="0" obj="attributes" interface="NamedNodeMap"/> +<assertNotNull actual="child" id="attr0"/> +<item var="child" index="1" obj="attributes" interface="NamedNodeMap"/> +<assertNotNull actual="child" id="attr1"/> +<item var="child" index="3" obj="attributes" interface="NamedNodeMap"/> +<assertNull actual="child" id="attr3"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_namednodemapgetnameditem.xml b/test/testcases/tests/level1/core/hc_namednodemapgetnameditem.xml new file mode 100644 index 0000000..a8802ab --- /dev/null +++ b/test/testcases/tests/level1/core/hc_namednodemapgetnameditem.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_namednodemapgetnameditem"> +<metadata> +<title>hc_namednodemapgetnameditem</title> +<creator>Curt Arnold</creator> +<description> + Retrieve the second "p" element and create a NamedNodeMap + listing of the attributes of the last child. Once the + list is created an invocation of the "getNamedItem(name)" + method is done with name="title". This should result + in the title Attr node being returned. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1074577549"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-349467F9"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=236"/> +<subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2003Jun/0011.html"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="domesticAttr" type="Attr"/> +<var name="attrName" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"acronym"'/> +<item interface="NodeList" obj="elementList" var="testEmployee" index="1"/> +<attributes obj="testEmployee" var="attributes"/> +<getNamedItem obj="attributes" var="domesticAttr" name='"title"'/> +<nodeName obj="domesticAttr" var="attrName"/> +<assertEquals actual="attrName" expected='"title"' + id="nodeName" ignoreCase="auto" context="attribute"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_namednodemapinuseattributeerr.xml b/test/testcases/tests/level1/core/hc_namednodemapinuseattributeerr.xml new file mode 100644 index 0000000..0220da5 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_namednodemapinuseattributeerr.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_namednodemapinuseattributeerr"> +<metadata> +<title>hc_namedNodeMapInUseAttributeErr</title> +<creator>Curt Arnold</creator> +<description> +The "setNamedItem(arg)" method raises a +INUSE_ATTRIBUTE_ERR DOMException if "arg" is an +Attr that is already in an attribute of another Element. + +Create a NamedNodeMap object from the attributes of the +last child of the third employee and attempt to add +an attribute that is already being used by the first +employee. This should raise the desired exception. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INUSE_ATTRIBUTE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1025163788"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-1025163788')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INUSE_ATTRIBUTE_ERR'])"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="firstNode" type="Element"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="domesticAttr" type="Attr"/> +<var name="setAttr" type="Attr"/> +<var name="setNode" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"acronym"'/> +<item interface="NodeList" obj="elementList" var="firstNode" index="0"/> +<createAttribute obj="doc" var="domesticAttr" name='"title"'/> +<value interface="Attr" obj="domesticAttr" value='"Yα"'/> +<setAttributeNode var="setAttr" obj="firstNode" newAttr="domesticAttr"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"acronym"'/> +<item interface="NodeList" obj="elementList" var="testNode" index="2"/> +<attributes obj="testNode" var="attributes"/> +<assertDOMException id="throw_INUSE_ATTRIBUTE_ERR"> +<INUSE_ATTRIBUTE_ERR> +<setNamedItem var="setNode" interface="NamedNodeMap" obj="attributes" arg="domesticAttr"/> +</INUSE_ATTRIBUTE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_namednodemapnotfounderr.xml b/test/testcases/tests/level1/core/hc_namednodemapnotfounderr.xml new file mode 100644 index 0000000..d3d2c64 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_namednodemapnotfounderr.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_namednodemapnotfounderr"> +<metadata> +<title>hc_namednodemapNotFoundErr</title> +<creator>Curt Arnold</creator> +<description> + The "removeNamedItem(name)" method raises a + NOT_FOUND_ERR DOMException if there is not a node + named "strong" in the map. + + Create a NamedNodeMap object from the attributes of the + last child of the third employee and attempt to remove + the "lang" attribute. There is not a node named + "lang" in the list and therefore the desired + exception should be raised. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INUSE_ATTRIBUTE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-D58B193"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-D58B193')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INUSE_ATTRIBUTE_ERR'])"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=243"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Element"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="removedNode" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"acronym"'/> +<item interface="NodeList" obj="elementList" var="testEmployee" index="2"/> +<attributes obj="testEmployee" var="attributes"/> +<assertDOMException id="throw_NOT_FOUND_ERR"> +<NOT_FOUND_ERR> +<removeNamedItem var="removedNode" interface="NamedNodeMap" obj="attributes" name='"lang"'/> +</NOT_FOUND_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_namednodemapnumberofnodes.xml b/test/testcases/tests/level1/core/hc_namednodemapnumberofnodes.xml new file mode 100644 index 0000000..488b258 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_namednodemapnumberofnodes.xml @@ -0,0 +1,45 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_namednodemapnumberofnodes"> +<metadata> +<title>hc_namednodemapnumberofnodes</title> +<creator>Curt Arnold</creator> +<description> + Retrieve the second "p" element and evaluate Node.attributes.length. +</description> + +<date qualifier="created">2002-06-09</date> +<!--attributes attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +<!--length attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6D0FB19E"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=250"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="length" type="int"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"acronym"'/> +<item interface="NodeList" obj="elementList" var="testEmployee" index="2"/> +<attributes obj="testEmployee" var="attributes"/> +<length var="length" obj="attributes" interface="NamedNodeMap"/> +<if><contentType type="text/html"/> +<assertEquals actual="length" expected="2" id="htmlLength" ignoreCase="false"/> +<else> +<assertEquals actual="length" expected="3" id="length" ignoreCase="false"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_namednodemapremovenameditem.xml b/test/testcases/tests/level1/core/hc_namednodemapremovenameditem.xml new file mode 100644 index 0000000..b686f9a --- /dev/null +++ b/test/testcases/tests/level1/core/hc_namednodemapremovenameditem.xml @@ -0,0 +1,50 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_namednodemapremovenameditem"> +<metadata> +<title>hc_namednodemapRemoveNamedItem</title> +<creator>Curt Arnold</creator> +<description> + The "removeNamedItem(name)" method removes a node + specified by name. + + Retrieve the third employee and create a NamedNodeMap + object of the attributes of the last child. Once the + list is created invoke the "removeNamedItem(name)" + method with name="class". This should result + in the removal of the specified attribute. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-D58B193"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-349467F9"/> +<!-- DOM WG opinion on default attributes --> +<subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2002Mar/0002.html"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="newAttribute" type="Attr"/> +<var name="testAddress" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="streetAttr" type="Attr"/> +<var name="specified" type="boolean"/> +<var name="removedNode" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"acronym"'/> +<item interface="NodeList" obj="elementList" var="testAddress" index="2"/> +<attributes obj="testAddress" var="attributes"/> +<removeNamedItem var="removedNode" interface="NamedNodeMap" obj="attributes" name='"class"'/> +<getNamedItem obj="attributes" var="streetAttr" name='"class"'/> +<assertNull actual="streetAttr" id="isnull"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_namednodemapreturnattrnode.xml b/test/testcases/tests/level1/core/hc_namednodemapreturnattrnode.xml new file mode 100644 index 0000000..53edc6b --- /dev/null +++ b/test/testcases/tests/level1/core/hc_namednodemapreturnattrnode.xml @@ -0,0 +1,53 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_namednodemapreturnattrnode"> +<metadata> +<title>hc_namednodemapreturnattrnode</title> +<creator>Curt Arnold</creator> +<description> + Retrieve the second p element and create a NamedNodeMap + listing of the attributes of the last child. Once the + list is created an invocation of the "getNamedItem(name)" + method is done with name="class". This should result + in the method returning an Attr node. +</description> + +<date qualifier="created">2002-06-09</date> +<!--getNamedItem--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1074577549"/> +<!--attributes attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +<!--name attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1112119403"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=236"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="streetAttr" type="Node"/> +<var name="attrName" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"acronym"'/> +<item interface="NodeList" obj="elementList" var="testEmployee" index="1"/> +<attributes obj="testEmployee" var="attributes"/> +<getNamedItem obj="attributes" var="streetAttr" name='"class"'/> +<assertInstanceOf obj="streetAttr" type="Attr" id="typeAssert"/> +<nodeName obj="streetAttr" var="attrName"/> +<assertEquals actual="attrName" expected='"class"' id="nodeName" ignoreCase="auto" context="attribute"/> +<name obj="streetAttr" var="attrName" interface="Attr"/> +<assertEquals actual="attrName" expected='"class"' id="name" ignoreCase="auto" context="attribute"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_namednodemapreturnfirstitem.xml b/test/testcases/tests/level1/core/hc_namednodemapreturnfirstitem.xml new file mode 100644 index 0000000..a7a6ebd --- /dev/null +++ b/test/testcases/tests/level1/core/hc_namednodemapreturnfirstitem.xml @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_namednodemapreturnfirstitem"> +<metadata> +<title>hc_namednodemapReturnFirstItem</title> +<creator>Curt Arnold</creator> +<description> + The "item(index)" method returns the indexth item in + the map(test for first item). + + Retrieve the second "acronym" get the NamedNodeMap of the attributes. Since the + DOM does not specify an order of these nodes the contents + of the FIRST node can contain either "title", "class" or "dir". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-349467F9"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=236"/> +<subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2003Jun/0011.html"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=184"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddress" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="child" type="Node"/> +<var name="nodeName" type="DOMString"/> +<var name="htmlExpected" type="Collection"> + <member>"title"</member> + <member>"class"</member> +</var> +<var name="expected" type="Collection"> + <member>"title"</member> + <member>"class"</member> + <member>"dir"</member> +</var> +<var name="actual" type="Collection"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"acronym"'/> +<item interface="NodeList" obj="elementList" var="testAddress" index="1"/> +<attributes obj="testAddress" var="attributes"/> +<for-each collection="attributes" member="child"> +<nodeName obj="child" var="nodeName"/> +<append collection="actual" item="nodeName"/> +</for-each> +<if><contentType type="text/html"/> +<assertEquals id="attrName_html" actual="actual" expected="htmlExpected" ignoreCase="true"/> +<else> +<assertEquals id="attrName" actual="actual" expected="expected" ignoreCase="false"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_namednodemapreturnlastitem.xml b/test/testcases/tests/level1/core/hc_namednodemapreturnlastitem.xml new file mode 100644 index 0000000..bd6f7a8 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_namednodemapreturnlastitem.xml @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_namednodemapreturnlastitem"> +<metadata> +<title>hc_namednodemapReturnLastItem</title> +<creator>Curt Arnold</creator> +<description> + The "item(index)" method returns the indexth item in + the map(test for last item). + + Retrieve the second "acronym" and get the attribute name. Since the + DOM does not specify an order of these nodes the contents + of the LAST node can contain either "title" or "class". + The test should return "true" if the LAST node is either + of these values. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-349467F9"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=236"/> +<subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2003Jun/0011.html"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=184"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="child" type="Node"/> +<var name="nodeName" type="DOMString"/> +<var name="htmlExpected" type="Collection"> + <member>"title"</member> + <member>"class"</member> +</var> +<var name="expected" type="Collection"> + <member>"title"</member> + <member>"class"</member> + <member>"dir"</member> +</var> +<var name="actual" type="Collection"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"acronym"'/> +<item interface="NodeList" obj="elementList" var="testEmployee" index="1"/> +<attributes obj="testEmployee" var="attributes"/> +<for-each collection="attributes" member="child"> +<nodeName obj="child" var="nodeName"/> +<append collection="actual" item="nodeName"/> +</for-each> +<if><contentType type="text/html"/> +<assertEquals id="attrName_html" actual="actual" expected="htmlExpected" ignoreCase="true"/> +<else> +<assertEquals id="attrName" actual="actual" expected="expected" ignoreCase="false"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_namednodemapreturnnull.xml b/test/testcases/tests/level1/core/hc_namednodemapreturnnull.xml new file mode 100644 index 0000000..12037d8 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_namednodemapreturnnull.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_namednodemapreturnnull"> +<metadata> +<title>hc_namednodemapReturnNull</title> +<creator>Curt Arnold</creator> +<description> + The "getNamedItem(name)" method returns null of the + specified name did not identify any node in the map. + + Retrieve the second employee and create a NamedNodeMap + listing of the attributes of the last child. Once the + list is created an invocation of the "getNamedItem(name)" + method is done with name="lang". This name does not + match any names in the list therefore the method should + return null. +</description> + +<date qualifier="created">2002-06-09</date> +<!--getNamedItem--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1074577549"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=243"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="districtNode" type="Attr"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"acronym"'/> +<item interface="NodeList" obj="elementList" var="testEmployee" index="1"/> +<attributes obj="testEmployee" var="attributes"/> +<getNamedItem obj="attributes" var="districtNode" name='"lang"'/> +<assertNull actual="districtNode" id="langAttrNull"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_namednodemapsetnameditem.xml b/test/testcases/tests/level1/core/hc_namednodemapsetnameditem.xml new file mode 100644 index 0000000..e4dcfd7 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_namednodemapsetnameditem.xml @@ -0,0 +1,56 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_namednodemapsetnameditem"> +<metadata> +<title>hc_namednodemapsetnameditem</title> +<creator>Curt Arnold</creator> +<description> + Retrieve the second "p" element and create a NamedNodeMap + object from the attributes of the last child by + invoking the "getAttributes()" method. Once the + list is created an invocation of the "setNamedItem(arg)" + method is done with arg=newAttr, where newAttr is a + new Attr Node previously created. The "setNamedItem(arg)" + method should add then new node to the NamedNodeItem + object by using its "nodeName" attribute("lang'). + This node is then retrieved using the "getNamedItem(name)" + method. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1025163788"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-349467F9"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=236"/> +<subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2003Jun/0011.html"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=243"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="newAttribute" type="Attr"/> +<var name="testAddress" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="districtNode" type="Attr"/> +<var name="attrName" type="DOMString"/> +<var name="setNode" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"acronym"'/> +<item interface="NodeList" obj="elementList" var="testAddress" index="1"/> +<createAttribute obj="doc" var="newAttribute" name='"lang"'/> +<attributes obj="testAddress" var="attributes"/> +<setNamedItem var="setNode" obj="attributes" arg="newAttribute"/> +<getNamedItem obj="attributes" var="districtNode" name='"lang"'/> +<nodeName obj="districtNode" var="attrName"/> +<assertEquals actual="attrName" expected='"lang"' id="nodeName" + ignoreCase="auto" context="attribute"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_namednodemapsetnameditemreturnvalue.xml b/test/testcases/tests/level1/core/hc_namednodemapsetnameditemreturnvalue.xml new file mode 100644 index 0000000..1470e4c --- /dev/null +++ b/test/testcases/tests/level1/core/hc_namednodemapsetnameditemreturnvalue.xml @@ -0,0 +1,56 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_namednodemapsetnameditemreturnvalue"> +<metadata> +<title>hc_namednodemapSetNamedItemReturnValue</title> +<creator>Curt Arnold</creator> +<description> + If the "setNamedItem(arg)" method replaces an already + existing node with the same name then the already + existing node is returned. + + Retrieve the third employee and create a NamedNodeMap + object from the attributes of the last child by + invoking the "getAttributes()" method. Once the + list is created an invocation of the "setNamedItem(arg)" + method is done with arg=newAttr, where newAttr is a + new Attr Node previously created and whose node name + already exists in the map. The "setNamedItem(arg)" + method should replace the already existing node with + the new one and return the existing node. + This test uses the "createAttribute(name)" method from + the document interface. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1025163788"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-349467F9"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="newAttribute" type="Attr"/> +<var name="testAddress" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="newNode" type="Node"/> +<var name="attrValue" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"acronym"'/> +<item interface="NodeList" obj="elementList" var="testAddress" index="2"/> +<createAttribute obj="doc" var="newAttribute" name='"class"'/> +<attributes obj="testAddress" var="attributes"/> +<setNamedItem interface="NamedNodeMap" obj="attributes" var="newNode" arg="newAttribute"/> +<assertNotNull actual="newNode" id="previousAttrNotNull"/> +<nodeValue obj="newNode" var="attrValue"/> +<assertEquals actual="attrValue" expected='"No"' id="previousAttrValue" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_namednodemapsetnameditemthatexists.xml b/test/testcases/tests/level1/core/hc_namednodemapsetnameditemthatexists.xml new file mode 100644 index 0000000..d7a6407 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_namednodemapsetnameditemthatexists.xml @@ -0,0 +1,58 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_namednodemapsetnameditemthatexists"> +<metadata> +<title>hc_namednodemapSetNamedItemThatExists</title> +<creator>Curt Arnold</creator> +<description> + If the node to be added by the "setNamedItem(arg)" method + already exists in the NamedNodeMap, it is replaced by + the new one. + + Retrieve the second employee and create a NamedNodeMap + object from the attributes of the last child by + invoking the "getAttributes()" method. Once the + list is created an invocation of the "setNamedItem(arg)" + method is done with arg=newAttr, where newAttr is a + new Attr Node previously created and whose node name + already exists in the map. The "setNamedItem(arg)" + method should replace the already existing node with + the new one. + This node is then retrieved using the "getNamedItem(name)" + method. This test uses the "createAttribute(name)" + method from the document interface +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1025163788"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-349467F9"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="newAttribute" type="Attr"/> +<var name="testAddress" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="districtNode" type="Attr"/> +<var name="attrValue" type="DOMString"/> +<var name="setNode" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"acronym"'/> +<item interface="NodeList" obj="elementList" var="testAddress" index="1"/> +<createAttribute obj="doc" var="newAttribute" name='"class"'/> +<attributes obj="testAddress" var="attributes"/> +<setNamedItem var="setNode" obj="attributes" arg="newAttribute"/> +<getNamedItem obj="attributes" var="districtNode" name='"class"'/> +<nodeValue obj="districtNode" var="attrValue"/> +<assertEquals actual="attrValue" expected='""' id="namednodemapSetNamedItemThatExistsAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_namednodemapsetnameditemwithnewvalue.xml b/test/testcases/tests/level1/core/hc_namednodemapsetnameditemwithnewvalue.xml new file mode 100644 index 0000000..087e7df --- /dev/null +++ b/test/testcases/tests/level1/core/hc_namednodemapsetnameditemwithnewvalue.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_namednodemapsetnameditemwithnewvalue"> +<metadata> +<title>hc_namednodemapSetNamedItemWithNewValue</title> +<creator>Curt Arnold</creator> +<description> + If the "setNamedItem(arg)" method does not replace an + existing node with the same name then it returns null. + + Retrieve the third employee and create a NamedNodeMap + object from the attributes of the last child. + Once the list is created the "setNamedItem(arg)" method + is invoked with arg=newAttr, where newAttr is a + newly created Attr Node and whose node name + already exists in the map. The "setNamedItem(arg)" + method should add the new node and return null. + This test uses the "createAttribute(name)" method from + the document interface. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1025163788"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-349467F9"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=243"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="newAttribute" type="Attr"/> +<var name="testAddress" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="newNode" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"acronym"'/> +<item interface="NodeList" obj="elementList" var="testAddress" index="2"/> +<createAttribute obj="doc" var="newAttribute" name='"lang"'/> +<attributes obj="testAddress" var="attributes"/> +<setNamedItem interface="NamedNodeMap" obj="attributes" var="newNode" arg="newAttribute"/> +<assertNull actual="newNode" id="prevValueNull"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_namednodemapwrongdocumenterr.xml b/test/testcases/tests/level1/core/hc_namednodemapwrongdocumenterr.xml new file mode 100644 index 0000000..bd2fedb --- /dev/null +++ b/test/testcases/tests/level1/core/hc_namednodemapwrongdocumenterr.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_namednodemapwrongdocumenterr"> +<metadata> +<title>hc_namednodemapWrongDocumentErr</title> +<creator>Curt Arnold</creator> +<description> + The "setNamedItem(arg)" method raises a + WRONG_DOCUMENT_ERR DOMException if "arg" was created + from a different document than the one that created + the NamedNodeMap. + + Create a NamedNodeMap object from the attributes of the + last child of the third employee and attempt to add + another Attr node to it that was created from a + different DOM document. This should raise the desired + exception. This method uses the "createAttribute(name)" + method from the Document interface. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='WRONG_DOCUMENT_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1025163788"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-1025163788')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='WRONG_DOCUMENT_ERR'])"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc1" type="Document"/> +<var name="doc2" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddress" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="newAttribute" type="Node"/> +<var name="strong" type="DOMString"/> +<var name="setNode" type="Node"/> +<load var="doc1" href="hc_staff" willBeModified="true"/> +<load var="doc2" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc1" var="elementList" tagname='"acronym"'/> +<item interface="NodeList" obj="elementList" var="testAddress" index="2"/> +<createAttribute obj="doc2" var="newAttribute" name='"newAttribute"'/> +<attributes obj="testAddress" var="attributes"/> +<assertDOMException id="throw_WRONG_DOCUMENT_ERR"> +<WRONG_DOCUMENT_ERR> +<setNamedItem var="setNode" obj="attributes" arg="newAttribute"/> +</WRONG_DOCUMENT_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeappendchild.xml b/test/testcases/tests/level1/core/hc_nodeappendchild.xml new file mode 100644 index 0000000..3ab84d7 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeappendchild.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeappendchild"> +<metadata> +<title>hc_nodeAppendChild</title> +<creator>Curt Arnold</creator> +<description> + Retrieve the second "p" and append a "br" Element + node to the list of children. The last node in the list + is then retrieved and its NodeName examined. The + "getNodeName()" method should return "br". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=247"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="createdNode" type="Node"/> +<var name="lchild" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="appendedChild" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<createElement obj="doc" tagName='"br"' var="createdNode"/> +<appendChild var="appendedChild" obj="employeeNode" newChild="createdNode"/> +<lastChild interface="Node" obj="employeeNode" var="lchild"/> +<nodeName obj="lchild" var="childName"/> +<assertEquals actual="childName" expected='"br"' id="nodeName" ignoreCase="auto"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeappendchildchildexists.xml b/test/testcases/tests/level1/core/hc_nodeappendchildchildexists.xml new file mode 100644 index 0000000..b832113 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeappendchildchildexists.xml @@ -0,0 +1,72 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeappendchildchildexists"> +<metadata> +<title>hc_nodeAppendChildChildExists</title> +<creator>Curt Arnold</creator> +<description> + If the "newChild" is already in the tree, it is first + removed before the new one is appended. + + Retrieve the "em" second employee and + append the first child to the end of the list. After + the "appendChild(newChild)" method is invoked the first + child should be the one that was second and the last + child should be the one that was first. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=246"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="childList" type="NodeList"/> +<var name="childNode" type="Node"/> +<var name="newChild" type="Node"/> +<var name="memberNode" type="Node"/> +<var name="memberName" type="DOMString"/> +<var name="refreshedActual" type="List"/> +<var name="actual" type="List"/> +<var name="nodeType" type="int"/> +<var name="expected" type="List"> +<member>"strong"</member> +<member>"code"</member> +<member>"sup"</member> +<member>"var"</member> +<member>"acronym"</member> +<member>"em"</member> +</var> +<var name="appendedChild" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="childNode"/> +<getElementsByTagName interface="Element" obj="childNode" var="childList" tagname='"*"'/> +<item interface="NodeList" obj="childList" index="0" var="newChild"/> +<appendChild var="appendedChild" obj="childNode" newChild="newChild"/> +<for-each collection="childList" member="memberNode"> + <nodeName var="memberName" obj="memberNode"/> + <append collection="actual" item="memberName"/> +</for-each> +<assertEquals id="liveByTagName" actual="actual" expected='expected' ignoreCase="auto"/> +<childNodes var="childList" obj="childNode"/> +<for-each collection="childList" member="memberNode"> + <nodeType var="nodeType" obj="memberNode"/> + <if><equals actual="nodeType" expected="1"/> + <nodeName var="memberName" obj="memberNode"/> + <append collection="refreshedActual" item="memberName"/> + </if> +</for-each> +<assertEquals id="refreshedChildNodes" actual="refreshedActual" expected='expected' ignoreCase="auto"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeappendchilddocfragment.xml b/test/testcases/tests/level1/core/hc_nodeappendchilddocfragment.xml new file mode 100644 index 0000000..79879fe --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeappendchilddocfragment.xml @@ -0,0 +1,74 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeappendchilddocfragment"> +<metadata> +<title>hc_nodeAppendChildDocFragment</title> +<creator>Curt Arnold</creator> +<description> + If the "newChild" is a DocumentFragment object then + all its content is added to the child list of this node. + + Create and populate a new DocumentFragment object and + append it to the second employee. After the + "appendChild(newChild)" method is invoked retrieve the + new nodes at the end of the list, they should be the + two Element nodes from the DocumentFragment. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=246"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=247"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="newdocFragment" type="DocumentFragment"/> +<var name="newChild1" type="Node"/> +<var name="newChild2" type="Node"/> +<var name="child" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="result" type="List"/> +<var name="appendedChild" type="Node"/> +<var name="nodeType" type="int"/> +<var name="expected" type="List"> +<member>"em"</member> +<member>"strong"</member> +<member>"code"</member> +<member>"sup"</member> +<member>"var"</member> +<member>"acronym"</member> +<member>"br"</member> +<member>"b"</member> +</var> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<createDocumentFragment obj="doc" var="newdocFragment"/> +<createElement obj="doc" tagName='"br"' var="newChild1"/> +<createElement obj="doc" tagName='"b"' var="newChild2"/> +<appendChild var="appendedChild" obj="newdocFragment" newChild="newChild1"/> +<appendChild var="appendedChild" obj="newdocFragment" newChild="newChild2"/> +<appendChild var="appendedChild" obj="employeeNode" newChild="newdocFragment"/> +<for-each collection="childList" member="child"> +<nodeType var="nodeType" obj="child"/> +<if><equals actual="nodeType" expected="1"/> +<nodeName var="childName" obj="child"/> +<append collection="result" item="childName"/> +</if> +</for-each> +<assertEquals actual="result" expected="expected" ignoreCase="auto" id="nodeNames"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeappendchildgetnodename.xml b/test/testcases/tests/level1/core/hc_nodeappendchildgetnodename.xml new file mode 100644 index 0000000..ed29709 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeappendchildgetnodename.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeappendchildgetnodename"> +<metadata> +<title>hc_nodeAppendChildGetNodeName</title> +<creator>Curt Arnold</creator> +<description> + The "appendChild(newChild)" method returns the node + added. + + Append a newly created node to the child list of the + second employee and check the NodeName returned. The + "getNodeName()" method should return "br". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=247"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="newChild" type="Node"/> +<var name="appendNode" type="Node"/> +<var name="childName" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<createElement obj="doc" tagName='"br"' var="newChild"/> +<appendChild obj="employeeNode" newChild="newChild" var="appendNode"/> +<nodeName obj="appendNode" var="childName"/> +<assertEquals actual="childName" expected='"br"' id="nodeName" ignoreCase="auto"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeappendchildinvalidnodetype.xml b/test/testcases/tests/level1/core/hc_nodeappendchildinvalidnodetype.xml new file mode 100644 index 0000000..6db51ab --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeappendchildinvalidnodetype.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeappendchildinvalidnodetype"> +<metadata> +<title>hc_nodeAppendChildInvalidNodeType</title> +<creator>Curt Arnold</creator> +<description> + The "appendChild(newChild)" method raises a + HIERARCHY_REQUEST_ERR DOMException if this node is of + a type that does not allow children of the type "newChild" + to be inserted. + + Retrieve the root node and attempt to append a newly + created Attr node. An Element node cannot have children + of the "Attr" type, therefore the desired exception + should be raised. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='HIERARCHY_REQUEST_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-184E7107')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='HIERARCHY_REQUEST_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="rootNode" type="Element"/> +<var name="newChild" type="Node"/> +<var name="appendedChild" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<documentElement obj="doc" var="rootNode"/> +<createAttribute obj="doc" name='"newAttribute"' var="newChild"/> +<assertDOMException id="throw_HIERARCHY_REQUEST_ERR"> +<HIERARCHY_REQUEST_ERR> +<appendChild var="appendedChild" obj="rootNode" newChild="newChild"/> +</HIERARCHY_REQUEST_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeappendchildnewchilddiffdocument.xml b/test/testcases/tests/level1/core/hc_nodeappendchildnewchilddiffdocument.xml new file mode 100644 index 0000000..8730502 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeappendchildnewchilddiffdocument.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeappendchildnewchilddiffdocument"> +<metadata> +<title>hc_nodeAppendChildNewChildDiffDocument</title> +<creator>Curt Arnold</creator> +<description> + The "appendChild(newChild)" method raises a + WRONG_DOCUMENT_ERR DOMException if the "newChild" was + created from a different document than the one that + created this node. + + Retrieve the second employee and attempt to append + a node created from a different document. An attempt + to make such a replacement should raise the desired + exception. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NOT_FOUND_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-184E7107')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NOT_FOUND_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=247"/> +</metadata> +<var name="doc1" type="Document"/> +<var name="doc2" type="Document"/> +<var name="newChild" type="Node"/> +<var name="elementList" type="NodeList"/> +<var name="elementNode" type="Node"/> +<var name="appendedChild" type="Node"/> +<load var="doc1" href="hc_staff" willBeModified="false"/> +<load var="doc2" href="hc_staff" willBeModified="true"/> +<createElement obj="doc1" tagName='"br"' var="newChild"/> +<getElementsByTagName interface="Document" obj="doc2" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="elementNode"/> +<assertDOMException id="throw_WRONG_DOCUMENT_ERR"> +<WRONG_DOCUMENT_ERR> +<appendChild var="appendedChild" obj="elementNode" newChild="newChild"/> +</WRONG_DOCUMENT_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeappendchildnodeancestor.xml b/test/testcases/tests/level1/core/hc_nodeappendchildnodeancestor.xml new file mode 100644 index 0000000..3fe2efc --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeappendchildnodeancestor.xml @@ -0,0 +1,51 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeappendchildnodeancestor"> +<metadata> +<title>hc_nodeAppendChildNodeAncestor</title> +<creator>Curt Arnold</creator> +<description> + The "appendChild(newChild)" method raises a + HIERARCHY_REQUEST_ERR DOMException if the node to + append is one of this node's ancestors. + + Retrieve the second employee and attempt to append + an ancestor node(root node) to it. + An attempt to make such an addition should raise the + desired exception. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='HIERARCHY_REQUEST_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-184E7107')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='HIERARCHY_REQUEST_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newChild" type="Node"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="oldChild" type="Node"/> +<var name="appendedChild" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<documentElement obj="doc" var="newChild"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<assertDOMException id="throw_HIERARCHY_REQUEST_ERR"> +<HIERARCHY_REQUEST_ERR> +<appendChild var="appendedChild" obj="employeeNode" newChild="newChild"/> +</HIERARCHY_REQUEST_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeattributenodeattribute.xml b/test/testcases/tests/level1/core/hc_nodeattributenodeattribute.xml new file mode 100644 index 0000000..34886a8 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeattributenodeattribute.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeattributenodeattribute"> +<metadata> +<title>hc_characterdataDeleteDataEnd</title> +<creator>Curt Arnold</creator> +<description> +The "getAttributes()" method invoked on an Attribute +Node returns null. + +Retrieve the first attribute from the last child of the +first employee and invoke the "getAttributes()" method +on the Attribute Node. It should return null. +</description> + +<date qualifier="created">2002-06-09</date> +<!--attributes attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddr" type="Element"/> +<var name="addrAttr" type="NamedNodeMap"/> +<var name="attrNode" type="Node"/> +<var name="attrList" type="NamedNodeMap"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"acronym"'/> +<item interface="NodeList" obj="elementList" index="0" var="testAddr"/> +<attributes obj="testAddr" var="addrAttr"/> +<item interface="NamedNodeMap" obj="addrAttr" var="attrNode" index="0"/> +<attributes obj="attrNode" var="attrList"/> +<assertNull actual="attrList" id="nodeAttributeNodeAttributeAssert1"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeattributenodename.xml b/test/testcases/tests/level1/core/hc_nodeattributenodename.xml new file mode 100644 index 0000000..3c14306 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeattributenodename.xml @@ -0,0 +1,41 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeattributenodename"> +<metadata> +<title>hc_nodeattributenodename</title> +<creator>Curt Arnold</creator> +<description> + Retrieve the Attribute named "title" from the last + child of the first p element and check the string returned + by the "getNodeName()" method. It should be equal to + "title". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=236"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddr" type="Element"/> +<var name="addrAttr" type="Attr"/> +<var name="attrName" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"acronym"'/> +<item interface="NodeList" obj="elementList" index="0" var="testAddr"/> +<getAttributeNode obj="testAddr" name='"title"' var="addrAttr"/> +<nodeName obj="addrAttr" var="attrName"/> +<assertEquals actual="attrName" expected='"title"' id="nodeName" + ignoreCase="auto" context="attribute"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeattributenodetype.xml b/test/testcases/tests/level1/core/hc_nodeattributenodetype.xml new file mode 100644 index 0000000..0aea5d1 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeattributenodetype.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeattributenodetype"> +<metadata> +<title>hc_nodeAttributeNodeType</title> +<creator>Curt Arnold</creator> +<description> + + The "getNodeType()" method for an Attribute Node + + returns the constant value 2. + + + + Retrieve the first attribute from the last child of + + the first employee and invoke the "getNodeType()" + + method. The method should return 2. + +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-111237558"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddr" type="Element"/> +<var name="addrAttr" type="Attr"/> +<var name="nodeType" type="int"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="testAddr"/> +<getAttributeNode obj="testAddr" name='"title"' var="addrAttr"/> +<nodeType obj="addrAttr" var="nodeType"/> +<assertEquals actual="nodeType" expected="2" id="nodeAttrNodeTypeAssert1" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeattributenodevalue.xml b/test/testcases/tests/level1/core/hc_nodeattributenodevalue.xml new file mode 100644 index 0000000..a59db72 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeattributenodevalue.xml @@ -0,0 +1,43 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeattributenodevalue"> +<metadata> +<title>hc_nodeAttributeNodeValue</title> +<creator>Curt Arnold</creator> +<description> + + The string returned by the "getNodeValue()" method for an + Attribute Node is the value of the Attribute. + + Retrieve the Attribute named "title" from the last + child of the first "p" and check the string returned + by the "getNodeValue()" method. It should be equal to + "Yes". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddr" type="Element"/> +<var name="addrAttr" type="Attr"/> +<var name="attrValue" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"acronym"'/> +<item interface="NodeList" obj="elementList" index="0" var="testAddr"/> +<getAttributeNode obj="testAddr" name='"title"' var="addrAttr"/> +<nodeValue obj="addrAttr" var="attrValue"/> +<assertEquals actual="attrValue" expected='"Yes"' id="nodeValue" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodechildnodes.xml b/test/testcases/tests/level1/core/hc_nodechildnodes.xml new file mode 100644 index 0000000..30864d6 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodechildnodes.xml @@ -0,0 +1,63 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodechildnodes"> +<metadata> +<title>hc_nodeChildNodes</title> +<creator>Curt Arnold</creator> +<description> + + The "getChildNodes()" method returns a NodeList + that contains all children of this node. + + Retrieve the second employee and check the NodeList + returned by the "getChildNodes()" method. The + length of the list should be 13. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1451460987"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=246"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childNode" type="Node"/> +<var name="childNodes" type="NodeList"/> +<var name="nodeType" type="int"/> +<var name="childName" type="DOMString"/> +<var name="actual" type="List"/> +<var name="expected" type="List"> +<member>"em"</member> +<member>"strong"</member> +<member>"code"</member> +<member>"sup"</member> +<member>"var"</member> +<member>"acronym"</member> +</var> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childNodes"/> +<for-each collection="childNodes" member="childNode"> + <nodeType var="nodeType" obj="childNode"/> + <nodeName var="childName" obj="childNode"/> + <if><equals actual="nodeType" expected="1"/> + <append collection="actual" item="childName"/> + <else> + <assertEquals actual="nodeType" expected="3" ignoreCase="false" id="textNodeType"/> + </else> + </if> +</for-each> +<assertEquals actual="actual" expected="expected" id="elementNames" ignoreCase="auto"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodechildnodesappendchild.xml b/test/testcases/tests/level1/core/hc_nodechildnodesappendchild.xml new file mode 100644 index 0000000..654877b --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodechildnodesappendchild.xml @@ -0,0 +1,73 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodechildnodesappendchild"> +<metadata> +<title>hc_nodeChildNodesAppendChild</title> +<creator>Curt Arnold</creator> +<description> + The NodeList returned by the "getChildNodes()" method + is live. Changes on the node's children are immediately + reflected on the nodes returned in the NodeList. + + Create a NodeList of the children of the second employee + and then add a newly created element that was created + by the "createElement()" method(Document Interface) to + the second employee by using the "appendChild()" method. + The length of the NodeList should reflect this new + addition to the child list. It should return the value 14. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1451460987"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=246"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=247"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="createdNode" type="Node"/> +<var name="childNode" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="childType" type="int"/> +<var name="textNode" type="Node"/> +<var name="actual" type="List"/> +<var name="expected" type="List"> +<member>"em"</member> +<member>"strong"</member> +<member>"code"</member> +<member>"sup"</member> +<member>"var"</member> +<member>"acronym"</member> +<member>"br"</member> +</var> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<createElement obj="doc" var="createdNode" tagName='"br"'/> +<appendChild obj="employeeNode" newChild="createdNode" var="employeeNode"/> +<for-each collection="childList" member="childNode"> + <nodeName var="childName" obj="childNode"/> + <nodeType var="childType" obj="childNode"/> + <if><equals actual="childType" expected="1"/> + <append collection="actual" item="childName"/> + <else> + <assertEquals id="textNodeType" actual="childType" expected="3" ignoreCase="false"/> + </else> + </if> +</for-each> +<assertEquals actual="actual" expected="expected" id="childElements" ignoreCase="auto"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodechildnodesempty.xml b/test/testcases/tests/level1/core/hc_nodechildnodesempty.xml new file mode 100644 index 0000000..1cc01da --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodechildnodesempty.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodechildnodesempty"> +<metadata> +<title>hc_nodeChildNodesEmpty</title> +<creator>Curt Arnold</creator> +<description> + The "getChildNodes()" method returns a NodeList + that contains all children of this node. If there + are not any children, this is a NodeList that does not + contain any nodes. + + Retrieve the character data of the second "em" node and + invoke the "getChildNodes()" method. The + NodeList returned should not have any nodes. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1451460987"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=246"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="childList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="textNode" type="Node"/> +<var name="length" type="int"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"em"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<firstChild var="textNode" obj="employeeNode"/> +<childNodes var="childList" obj="textNode"/> +<length var="length" obj="childList" interface="NodeList"/> +<assertEquals expected="0" actual="length" id="length_zero" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodecloneattributescopied.xml b/test/testcases/tests/level1/core/hc_nodecloneattributescopied.xml new file mode 100644 index 0000000..e03df1b --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodecloneattributescopied.xml @@ -0,0 +1,62 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodecloneattributescopied"> +<metadata> +<title>hc_nodecloneattributescopied</title> +<creator>Curt Arnold</creator> +<description> + Retrieve the second acronym element and invoke + the cloneNode method. The + duplicate node returned by the method should copy the + attributes associated with this node. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=236"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=184"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="addressNode" type="Node"/> +<var name="clonedNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="attributeNode" type="Node"/> +<var name="attributeName" type="DOMString"/> +<var name="result" type="Collection"/> +<var name="htmlExpected" type="Collection"> +<member>"class"</member> +<member>"title"</member> +</var> +<var name="expected" type="Collection"> +<member>"class"</member> +<member>"title"</member> +<member>"dir"</member> +</var> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="addressNode"/> +<cloneNode obj="addressNode" deep="false" var="clonedNode"/> +<attributes obj="clonedNode" var="attributes"/> +<for-each collection="attributes" member="attributeNode"> +<nodeName obj="attributeNode" var="attributeName"/> +<append collection="result" item="attributeName"/> +</for-each> +<if><contentType type="text/html"/> +<assertEquals actual="result" expected="htmlExpected" id="nodeNames_html" ignoreCase="true"/> +<else> +<assertEquals actual="result" expected="expected" id="nodeNames" ignoreCase="false"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeclonefalsenocopytext.xml b/test/testcases/tests/level1/core/hc_nodeclonefalsenocopytext.xml new file mode 100644 index 0000000..2b43302 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeclonefalsenocopytext.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeclonefalsenocopytext"> +<metadata> +<title>hc_nodeCloneFalseNoCopyText</title> +<creator>Curt Arnold</creator> +<description> + The "cloneNode(deep)" method does not copy text unless it + is deep cloned.(Test for deep=false) + + Retrieve the fourth child of the second employee and + the "cloneNode(deep)" method with deep=false. The + duplicate node returned by the method should not copy + any text data contained in this node. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-3A0ED0A4"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="childNode" type="Node"/> +<var name="clonedNode" type="Node"/> +<var name="lastChildNode" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<item interface="NodeList" obj="childList" index="3" var="childNode"/> +<cloneNode obj="childNode" deep="false" var="clonedNode"/> +<lastChild interface="Node" obj="clonedNode" var="lastChildNode"/> +<assertNull actual="lastChildNode" id="nodeCloneFalseNoCopyTextAssert1"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeclonegetparentnull.xml b/test/testcases/tests/level1/core/hc_nodeclonegetparentnull.xml new file mode 100644 index 0000000..ee2b0a2 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeclonegetparentnull.xml @@ -0,0 +1,42 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeclonegetparentnull"> +<metadata> +<title>hc_nodeCloneGetParentNull</title> +<creator>Curt Arnold</creator> +<description> + The duplicate node returned by the "cloneNode(deep)" + method does not have a ParentNode. + + Retrieve the second employee and invoke the + "cloneNode(deep)" method with deep=false. The + duplicate node returned should return null when the + "getParentNode()" is invoked. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-3A0ED0A4"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="clonedNode" type="Node"/> +<var name="parentNode" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<cloneNode obj="employeeNode" deep="false" var="clonedNode"/> +<parentNode interface="Node" obj="clonedNode" var="parentNode"/> +<assertNull actual="parentNode" id="nodeCloneGetParentNullAssert1"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeclonenodefalse.xml b/test/testcases/tests/level1/core/hc_nodeclonenodefalse.xml new file mode 100644 index 0000000..fd919fe --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeclonenodefalse.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeclonenodefalse"> +<metadata> +<title>hc_nodeCloneNodeFalse</title> +<creator>Curt Arnold</creator> +<description> + The "cloneNode(deep)" method returns a copy of the node + only if deep=false. + + Retrieve the second employee and invoke the + "cloneNode(deep)" method with deep=false. The + method should only clone this node. The NodeName and + length of the NodeList are checked. The "getNodeName()" + method should return "employee" and the "getLength()" + method should return 0. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-3A0ED0A4"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="clonedNode" type="Node"/> +<var name="cloneName" type="DOMString"/> +<var name="cloneChildren" type="NodeList"/> +<var name="length" type="int"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<cloneNode obj="employeeNode" deep="false" var="clonedNode"/> +<nodeName obj="clonedNode" var="cloneName"/> +<assertEquals actual="cloneName" expected='"p"' ignoreCase="auto" id="strong"/> +<childNodes obj="clonedNode" var="cloneChildren"/> +<length interface="NodeList" obj="cloneChildren" var="length"/> +<assertEquals actual="length" expected="0" ignoreCase="false" id="length"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeclonenodetrue.xml b/test/testcases/tests/level1/core/hc_nodeclonenodetrue.xml new file mode 100644 index 0000000..45889d9 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeclonenodetrue.xml @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeclonenodetrue"> +<metadata> +<title>hc_nodeCloneNodeTrue</title> +<creator>Curt Arnold</creator> +<description> + The "cloneNode(deep)" method returns a copy of the node + and the subtree under it if deep=true. + + Retrieve the second employee and invoke the + "cloneNode(deep)" method with deep=true. The + method should clone this node and the subtree under it. + The NodeName of each child in the returned node is + checked to insure the entire subtree under the second + employee was cloned. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-3A0ED0A4"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=246"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="clonedNode" type="Node"/> +<var name="clonedList" type="NodeList"/> +<var name="clonedChild" type="Node"/> +<var name="clonedChildName" type="DOMString"/> +<var name="origList" type="NodeList"/> +<var name="origChild" type="Node"/> +<var name="origChildName" type="DOMString"/> +<var name="result" type="List"/> +<var name="expected" type="List"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="origList"/> +<for-each collection="origList" member="origChild"> +<nodeName obj="origChild" var="origChildName"/> +<append collection="expected" item="origChildName"/> +</for-each> +<cloneNode obj="employeeNode" deep="true" var="clonedNode"/> +<childNodes obj="clonedNode" var="clonedList"/> +<for-each collection="clonedList" member="clonedChild"> +<nodeName obj="clonedChild" var="clonedChildName"/> +<append collection="result" item="clonedChildName"/> +</for-each> +<assertEquals actual="result" expected="expected" id="clone" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeclonetruecopytext.xml b/test/testcases/tests/level1/core/hc_nodeclonetruecopytext.xml new file mode 100644 index 0000000..8e4572f --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeclonetruecopytext.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeclonetruecopytext"> +<metadata> +<title>hc_nodeCloneTrueCopyText</title> +<creator>Curt Arnold</creator> +<description> + The "cloneNode(deep)" method does not copy text unless it + is deep cloned.(Test for deep=true) + + Retrieve the eighth child of the second employee and + the "cloneNode(deep)" method with deep=true. The + duplicate node returned by the method should copy + any text data contained in this node. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-3A0ED0A4"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=246"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="childNode" type="Node"/> +<var name="clonedNode" type="Node"/> +<var name="lastChildNode" type="Node"/> +<var name="childValue" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"sup"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="childNode"/> +<cloneNode obj="childNode" deep="true" var="clonedNode"/> +<lastChild interface="Node" obj="clonedNode" var="lastChildNode"/> +<nodeValue obj="lastChildNode" var="childValue"/> +<assertEquals actual="childValue" expected='"35,000"' id="cloneContainsText" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodecommentnodeattributes.xml b/test/testcases/tests/level1/core/hc_nodecommentnodeattributes.xml new file mode 100644 index 0000000..c469443 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodecommentnodeattributes.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodecommentnodeattributes"> +<metadata> +<title>hc_nodeCommentNodeAttributes</title> +<creator>Curt Arnold</creator> +<description> + The "getAttributes()" method invoked on a Comment + Node returns null. + + Find any comment that is an immediate child of the root + and assert that Node.attributes is null. Then create + a new comment node (in case they had been omitted) and + make the assertion. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1728279322"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=248"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=263"/> +</metadata> +<var name="doc" type="Document"/> +<var name="commentNode" type="Node"/> +<var name="nodeList" type="NodeList"/> +<var name="attrList" type="NamedNodeMap"/> +<var name="nodeType" type="int"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<childNodes obj="doc" var="nodeList"/> +<for-each collection="nodeList" member="commentNode"> +<nodeType obj="commentNode" var="nodeType"/> +<if> +<equals actual="nodeType" expected="8" ignoreCase="false"/> +<attributes obj="commentNode" var="attrList"/> +<assertNull actual="attrList" id="existingCommentAttributesNull"/> +</if> +</for-each> +<createComment var="commentNode" obj="doc" data='"This is a comment"'/> +<attributes obj="commentNode" var="attrList"/> +<assertNull actual="attrList" id="createdCommentAttributesNull"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodecommentnodename.xml b/test/testcases/tests/level1/core/hc_nodecommentnodename.xml new file mode 100644 index 0000000..61a6ea7 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodecommentnodename.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodecommentnodename"> +<metadata> +<title>hc_nodeCommentNodeName</title> +<creator>Curt Arnold</creator> +<description> + The string returned by the "getNodeName()" method for a + Comment Node is "#comment". + + Retrieve the Comment node in the XML file + and check the string returned by the "getNodeName()" + method. It should be equal to "#comment". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1728279322"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=248"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="commentNode" type="Node"/> +<var name="nodeType" type="int"/> +<var name="commentName" type="DOMString"/> +<var name="commentNodeName" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<childNodes obj="doc" var="elementList"/> +<for-each collection="elementList" member="commentNode"> +<nodeType obj="commentNode" var="nodeType"/> +<if> +<equals actual="nodeType" expected="8" ignoreCase="false"/> +<nodeName obj="commentNode" var="commentNodeName"/> +<assertEquals actual="commentNodeName" expected='"#comment"' id="existingNodeName" ignoreCase="false"/> +</if> +</for-each> +<createComment var="commentNode" obj="doc" data='"This is a comment"'/> +<nodeName obj="commentNode" var="commentNodeName"/> +<assertEquals actual="commentNodeName" expected='"#comment"' id="createdNodeName" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodecommentnodetype.xml b/test/testcases/tests/level1/core/hc_nodecommentnodetype.xml new file mode 100644 index 0000000..78abc40 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodecommentnodetype.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodecommentnodetype"> +<metadata> +<title>hc_nodeCommentNodeType</title> +<creator>Curt Arnold</creator> +<description> + The "getNodeType()" method for a Comment Node + returns the constant value 8. + + Retrieve the nodes from the document and check for + a comment node and invoke the "getNodeType()" method. This should + return 8. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-111237558"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1728279322"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=248"/> +</metadata> +<var name="doc" type="Document"/> +<var name="testList" type="NodeList"/> +<var name="commentNode" type="Node"/> +<var name="commentNodeName" type="DOMString"/> +<var name="nodeType" type="int"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<childNodes obj="doc" var="testList"/> +<for-each collection="testList" member="commentNode"> +<nodeName obj="commentNode" var="commentNodeName"/> +<if> +<equals actual="commentNodeName" expected='"#comment"' ignoreCase="false"/> +<nodeType obj="commentNode" var="nodeType"/> +<assertEquals actual="nodeType" expected="8" id="existingCommentNodeType" ignoreCase="false"/> +</if> +</for-each> +<createComment var="commentNode" obj="doc" data='"This is a comment"'/> +<nodeType obj="commentNode" var="nodeType"/> +<assertEquals actual="nodeType" expected="8" id="createdCommentNodeType" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodecommentnodevalue.xml b/test/testcases/tests/level1/core/hc_nodecommentnodevalue.xml new file mode 100644 index 0000000..cc802c8 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodecommentnodevalue.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodecommentnodevalue"> +<metadata> +<title>hc_nodeCommentNodeValue</title> +<creator>Curt Arnold</creator> +<description> + The string returned by the "getNodeValue()" method for a + Comment Node is the content of the comment. + + Retrieve the comment in the XML file and + check the string returned by the "getNodeValue()" method. + It should be equal to "This is comment number 1". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1728279322"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=248"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="commentNode" type="Node"/> +<var name="commentName" type="DOMString"/> +<var name="commentValue" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<childNodes obj="doc" var="elementList"/> +<for-each collection="elementList" member="commentNode"> +<nodeName obj="commentNode" var="commentName"/> +<if> +<equals actual="commentName" expected='"#comment"' ignoreCase="false"/> +<nodeValue obj="commentNode" var="commentValue"/> +<assertEquals actual="commentValue" expected='" This is comment number 1."' id="value" ignoreCase="false"/> +</if> +</for-each> +<createComment var="commentNode" obj="doc" data='" This is a comment"'/> +<nodeValue obj="commentNode" var="commentValue"/> +<assertEquals actual="commentValue" expected='" This is a comment"' id="createdCommentNodeValue" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodedocumentfragmentnodename.xml b/test/testcases/tests/level1/core/hc_nodedocumentfragmentnodename.xml new file mode 100644 index 0000000..e39d866 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodedocumentfragmentnodename.xml @@ -0,0 +1,39 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodedocumentfragmentnodename"> +<metadata> +<title>hc_nodeDocumentFragmentNodeName</title> +<creator>Curt Arnold</creator> +<description> + The string returned by the "getNodeName()" method for a + DocumentFragment Node is "#document-frament". + + Retrieve the DOM document and invoke the + "createDocumentFragment()" method and check the string + returned by the "getNodeName()" method. It should be + equal to "#document-fragment". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-B63ED1A3"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docFragment" type="DocumentFragment"/> +<var name="documentFragmentName" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<createDocumentFragment obj="doc" var="docFragment"/> +<nodeName obj="docFragment" var="documentFragmentName"/> +<assertEquals actual="documentFragmentName" expected='"#document-fragment"' id="nodeDocumentFragmentNodeNameAssert1" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodedocumentfragmentnodetype.xml b/test/testcases/tests/level1/core/hc_nodedocumentfragmentnodetype.xml new file mode 100644 index 0000000..fcc8dd0 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodedocumentfragmentnodetype.xml @@ -0,0 +1,39 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodedocumentfragmentnodetype"> +<metadata> +<title>hc_nodeDocumentFragmentNodeType</title> +<creator>Curt Arnold</creator> +<description> + The "getNodeType()" method for a DocumentFragment Node + returns the constant value 11. + + Invoke the "createDocumentFragment()" method and + examine the NodeType of the document fragment + returned by the "getNodeType()" method. The method + should return 11. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-111237558"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-B63ED1A3"/> +</metadata> +<var name="doc" type="Document"/> +<var name="documentFragmentNode" type="DocumentFragment"/> +<var name="nodeType" type="int"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<createDocumentFragment obj="doc" var="documentFragmentNode"/> +<nodeType obj="documentFragmentNode" var="nodeType"/> +<assertEquals actual="nodeType" expected="11" id="nodeDocumentFragmentNodeTypeAssert1" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodedocumentfragmentnodevalue.xml b/test/testcases/tests/level1/core/hc_nodedocumentfragmentnodevalue.xml new file mode 100644 index 0000000..b446835 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodedocumentfragmentnodevalue.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodedocumentfragmentnodevalue"> +<metadata> +<title>hc_nodeDocumentFragmentNodeValue</title> +<creator>Curt Arnold</creator> +<description> + The string returned by the "getNodeValue()" method for a + DocumentFragment Node is null. + + Retrieve the DOM document and invoke the + "createDocumentFragment()" method and check the string + returned by the "getNodeValue()" method. It should be + equal to null. +</description> + +<contributor>Curt Arnold</contributor> +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-B63ED1A3"/> +<!--nodeValue attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<!-- Node.attributes --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docFragment" type="DocumentFragment"/> +<var name="attrList" type="NamedNodeMap"/> +<var name="value" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<createDocumentFragment obj="doc" var="docFragment"/> +<!-- despite the name, this was the only assertion in the original test --> +<attributes obj="docFragment" var="attrList"/> +<assertNull actual="attrList" id="attributesNull"/> +<!-- now actually test the initial value of nodeValue --> +<nodeValue obj="docFragment" var="value"/> +<assertNull actual="value" id="initiallyNull"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodedocumentnodeattribute.xml b/test/testcases/tests/level1/core/hc_nodedocumentnodeattribute.xml new file mode 100644 index 0000000..87ac348 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodedocumentnodeattribute.xml @@ -0,0 +1,38 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodedocumentnodeattribute"> +<metadata> +<title>hc_nodedocumentnodeattribute</title> +<creator>Curt Arnold</creator> +<description> +The "getAttributes()" method invoked on a Document +Node returns null. + +Retrieve the DOM Document and invoke the +"getAttributes()" method on the Document Node. +It should return null. +</description> + +<date qualifier="created">2002-06-09</date> +<!--attributes attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +<!-- Document interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#i-Document"/> +</metadata> +<var name="doc" type="Document"/> +<var name="attrList" type="NamedNodeMap"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<attributes obj="doc" var="attrList"/> +<assertNull actual="attrList" id="doc_attributes_is_null"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodedocumentnodename.xml b/test/testcases/tests/level1/core/hc_nodedocumentnodename.xml new file mode 100644 index 0000000..e2c4882 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodedocumentnodename.xml @@ -0,0 +1,37 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodedocumentnodename"> +<metadata> +<title>hc_nodeDocumentNodeName</title> +<creator>Curt Arnold</creator> +<description> + The string returned by the "getNodeName()" method for a + Document Node is "#document". + + Retrieve the DOM document and check the string returned + by the "getNodeName()" method. It should be equal to + "#document". +</description> + +<date qualifier="created">2002-06-09</date> +<!-- Document interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#i-Document"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +</metadata> +<var name="doc" type="Document"/> +<var name="documentName" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<nodeName obj="doc" var="documentName"/> +<assertEquals actual="documentName" expected='"#document"' id="documentNodeName" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodedocumentnodetype.xml b/test/testcases/tests/level1/core/hc_nodedocumentnodetype.xml new file mode 100644 index 0000000..dd0ea93 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodedocumentnodetype.xml @@ -0,0 +1,36 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodedocumentnodetype"> +<metadata> +<title>hc_nodeDocumentNodeType</title> +<creator>Curt Arnold</creator> +<description> +The "getNodeType()" method for a Document Node +returns the constant value 9. + +Retrieve the document and invoke the "getNodeType()" +method. The method should return 9. +</description> + +<date qualifier="created">2002-06-09</date> +<!-- Document interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#i-Document"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-111237558"/> +</metadata> +<var name="doc" type="Document"/> +<var name="nodeType" type="int"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<nodeType obj="doc" var="nodeType"/> +<assertEquals actual="nodeType" expected="9" id="nodeDocumentNodeTypeAssert1" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodedocumentnodevalue.xml b/test/testcases/tests/level1/core/hc_nodedocumentnodevalue.xml new file mode 100644 index 0000000..101372f --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodedocumentnodevalue.xml @@ -0,0 +1,38 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodedocumentnodevalue"> +<metadata> +<title>hc_nodeDocumentNodeValue</title> +<creator>Curt Arnold</creator> +<description> + The string returned by the "getNodeValue()" method for a + Document Node is null. + + Retrieve the DOM Document and check the string returned + by the "getNodeValue()" method. It should be equal to + null. + +</description> + +<date qualifier="created">2002-06-09</date> +<!-- Document interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#i-Document"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +</metadata> +<var name="doc" type="Document"/> +<var name="documentValue" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<nodeValue obj="doc" var="documentValue"/> +<assertNull actual="documentValue" id="documentNodeValue"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeelementnodeattributes.xml b/test/testcases/tests/level1/core/hc_nodeelementnodeattributes.xml new file mode 100644 index 0000000..bba5013 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeelementnodeattributes.xml @@ -0,0 +1,59 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeelementnodeattributes"> +<metadata> +<title>hc_nodeelementnodeattributes</title> +<creator>Curt Arnold</creator> +<description> + Retrieve the third "acronym" element and evaluate Node.attributes. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=236"/> +<subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2003Jun/0011.html"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=184"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddr" type="Element"/> +<var name="addrAttr" type="NamedNodeMap"/> +<var name="attrNode" type="Node"/> +<var name="attrName" type="DOMString"/> +<var name="attrList" type="Collection"/> +<var name="htmlExpected" type="Collection"> +<member>"title"</member> +<member>"class"</member> +</var> +<var name="expected" type="Collection"> +<member>"title"</member> +<member>"class"</member> +<member>"dir"</member> +</var> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="2" var="testAddr"/> +<attributes obj="testAddr" var="addrAttr"/> +<for-each collection="addrAttr" member="attrNode"> +<nodeName obj="attrNode" var="attrName"/> +<append collection="attrList" item="attrName"/> +</for-each> +<if><contentType type="text/html"/> +<assertEquals actual="attrList" expected="htmlExpected" id="attrNames_html" + ignoreCase="true"/> +<else> +<assertEquals actual="attrList" expected="expected" id="attrNames" ignoreCase="false"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeelementnodename.xml b/test/testcases/tests/level1/core/hc_nodeelementnodename.xml new file mode 100644 index 0000000..8a7188c --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeelementnodename.xml @@ -0,0 +1,41 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeelementnodename"> +<metadata> +<title>hc_nodeelementnodename</title> +<creator>Curt Arnold</creator> +<description> + Retrieve the first Element Node(Root Node) of the + DOM object and check the string returned by the + "getNodeName()" method. It should be equal to its + tagName. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=251"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementNode" type="Element"/> +<var name="elementName" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<documentElement obj="doc" var="elementNode"/> +<nodeName obj="elementNode" var="elementName"/> +<if><contentType type="image/svg+xml"/> +<assertEquals actual="elementName" expected='"svg"' id="svgNodeName" ignoreCase="false"/> +<else> +<assertEquals actual="elementName" expected='"html"' id="nodeName" ignoreCase="auto"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeelementnodetype.xml b/test/testcases/tests/level1/core/hc_nodeelementnodetype.xml new file mode 100644 index 0000000..704a9c3 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeelementnodetype.xml @@ -0,0 +1,36 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeelementnodetype"> +<metadata> +<title>hc_nodeElementNodeType</title> +<creator>Curt Arnold</creator> +<description> + The "getNodeType()" method for an Element Node + returns the constant value 1. + + Retrieve the root node and invoke the "getNodeType()" + method. The method should return 1. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-111237558"/> +</metadata> +<var name="doc" type="Document"/> +<var name="rootNode" type="Element"/> +<var name="nodeType" type="int"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<documentElement obj="doc" var="rootNode"/> +<nodeType obj="rootNode" var="nodeType"/> +<assertEquals actual="nodeType" expected="1" id="nodeElementNodeTypeAssert1" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeelementnodevalue.xml b/test/testcases/tests/level1/core/hc_nodeelementnodevalue.xml new file mode 100644 index 0000000..50f8912 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeelementnodevalue.xml @@ -0,0 +1,33 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeelementnodevalue"> +<metadata> +<title>hc_nodeElementNodeValue</title> +<creator>Curt Arnold</creator> +<description> + The string returned by the "getNodeValue()" method for an + Element Node is null. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementNode" type="Element"/> +<var name="elementValue" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<documentElement obj="doc" var="elementNode"/> +<nodeValue obj="elementNode" var="elementValue"/> +<assertNull actual="elementValue" id="elementNodeValue"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodegetfirstchild.xml b/test/testcases/tests/level1/core/hc_nodegetfirstchild.xml new file mode 100644 index 0000000..76d1b93 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodegetfirstchild.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodegetfirstchild"> +<metadata> +<title>hc_nodeGetFirstChild</title> +<creator>Curt Arnold</creator> +<description> + The "getFirstChild()" method returns the first child + of this node. + + Retrieve the second employee and invoke the + "getFirstChild()" method. The NodeName returned + should be "#text" or "EM". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-169727388"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=246"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="fchildNode" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="nodeType" type="int"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<firstChild interface="Node" obj="employeeNode" var="fchildNode"/> +<nodeName obj="fchildNode" var="childName"/> +<if><equals expected='"#text"' actual="childName"/> +<assertEquals actual="childName" expected='"#text"' id="firstChild_w_whitespace" ignoreCase="false"/> +<else> +<assertEquals actual="childName" expected='"em"' id="firstChild_wo_whitespace" ignoreCase="auto"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodegetfirstchildnull.xml b/test/testcases/tests/level1/core/hc_nodegetfirstchildnull.xml new file mode 100644 index 0000000..2d85cc2 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodegetfirstchildnull.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodegetfirstchildnull"> +<metadata> +<title>hc_nodeGetFirstChildNull</title> +<creator>Curt Arnold</creator> +<description> + If there is not a first child then the "getFirstChild()" + method returns null. + + Retrieve the text of the first "em" element and invoke the "getFirstChild()" method. It + should return null. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-169727388"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=246"/> +</metadata> +<var name="doc" type="Document"/> +<var name="emList" type="NodeList"/> +<var name="emNode" type="Node"/> +<var name="emText" type="CharacterData"/> +<var name="nullChild" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"em"' var="emList"/> +<item interface="NodeList" obj="emList" index="0" var="emNode"/> +<firstChild var="emText" obj="emNode" interface="Node"/> +<firstChild var="nullChild" obj="emText" interface="Node"/> +<assertNull actual="nullChild" id="nullChild"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodegetlastchild.xml b/test/testcases/tests/level1/core/hc_nodegetlastchild.xml new file mode 100644 index 0000000..37952f6 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodegetlastchild.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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodegetlastchild"> +<metadata> +<title>hc_nodeGetLastChild</title> +<creator>Curt Arnold</creator> +<description> + The "getLastChild()" method returns the last child + of this node. + + Retrieve the second employee and invoke the + "getLastChild()" method. The NodeName returned + should be "#text". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-61AD09FB"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="lchildNode" type="Node"/> +<var name="childName" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<lastChild interface="Node" obj="employeeNode" var="lchildNode"/> +<nodeName obj="lchildNode" var="childName"/> +<assertEquals actual="childName" expected='"#text"' id="whitespace" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodegetlastchildnull.xml b/test/testcases/tests/level1/core/hc_nodegetlastchildnull.xml new file mode 100644 index 0000000..dd6e9f8 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodegetlastchildnull.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodegetlastchildnull"> +<metadata> +<title>hc_nodeGetLastChildNull</title> +<creator>Curt Arnold</creator> +<description> + + If there is not a last child then the "getLastChild()" + method returns null. + + Retrieve the text of the first "em" element and invoke the "getFirstChild()" method. It + should return null. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-61AD09FB"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=246"/> +</metadata> +<var name="doc" type="Document"/> +<var name="emList" type="NodeList"/> +<var name="emNode" type="Node"/> +<var name="emText" type="CharacterData"/> +<var name="nullChild" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"em"' var="emList"/> +<item interface="NodeList" obj="emList" index="0" var="emNode"/> +<firstChild var="emText" obj="emNode" interface="Node"/> +<lastChild var="nullChild" obj="emText" interface="Node"/> +<assertNull actual="nullChild" id="nullChild"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodegetnextsibling.xml b/test/testcases/tests/level1/core/hc_nodegetnextsibling.xml new file mode 100644 index 0000000..9410116 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodegetnextsibling.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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodegetnextsibling"> +<metadata> +<title>hc_nodeGetNextSibling</title> +<creator>Curt Arnold</creator> +<description> + The "getNextSibling()" method returns the node immediately + following this node. + + Retrieve the first child of the second employee and + invoke the "getNextSibling()" method. It should return + a node with the NodeName of "#text". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6AC54C2F"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="emNode" type="Node"/> +<var name="nsNode" type="Node"/> +<var name="nsName" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"em"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="emNode"/> +<nextSibling interface="Node" obj="emNode" var="nsNode"/> +<nodeName obj="nsNode" var="nsName"/> +<assertEquals actual="nsName" expected='"#text"' id="whitespace" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodegetnextsiblingnull.xml b/test/testcases/tests/level1/core/hc_nodegetnextsiblingnull.xml new file mode 100644 index 0000000..069f877 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodegetnextsiblingnull.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodegetnextsiblingnull"> +<metadata> +<title>hc_nodeGetNextSiblingNull</title> +<creator>Curt Arnold</creator> +<description> + + If there is not a node immediately following this node the + + "getNextSibling()" method returns null. + + + + Retrieve the first child of the second employee and + + invoke the "getNextSibling()" method. It should + + be set to null. + +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6AC54C2F"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="lcNode" type="Node"/> +<var name="nsNode" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<lastChild interface="Node" obj="employeeNode" var="lcNode"/> +<nextSibling interface="Node" obj="lcNode" var="nsNode"/> +<assertNull actual="nsNode" id="nodeGetNextSiblingNullAssert1"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodegetownerdocument.xml b/test/testcases/tests/level1/core/hc_nodegetownerdocument.xml new file mode 100644 index 0000000..524b786 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodegetownerdocument.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodegetownerdocument"> +<metadata> +<title>hc_nodegetownerdocument</title> +<creator>Curt Arnold</creator> +<description> +Evaluate Node.ownerDocument on the second "p" element. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#node-ownerDoc"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=251"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="docNode" type="Node"/> +<var name="ownerDocument" type="Document"/> +<var name="docElement" type="Element"/> +<var name="elementName" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="docNode"/> +<ownerDocument obj="docNode" var="ownerDocument"/> +<documentElement obj="ownerDocument" var="docElement"/> +<nodeName obj="docElement" var="elementName"/> +<if><contentType type="image/svg+xml"/> +<assertEquals actual="elementName" expected='"svg"' id="svgNodeName" ignoreCase="false"/> +<else> +<assertEquals actual="elementName" expected='"html"' id="ownerDocElemTagName" ignoreCase="auto"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodegetownerdocumentnull.xml b/test/testcases/tests/level1/core/hc_nodegetownerdocumentnull.xml new file mode 100644 index 0000000..4366b19 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodegetownerdocumentnull.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodegetownerdocumentnull"> +<metadata> +<title>hc_nodeGetOwnerDocumentNull</title> +<creator>Curt Arnold</creator> +<description> + + The "getOwnerDocument()" method returns null if the target + + node itself is a document. + + + + Invoke the "getOwnerDocument()" method on the master + + document. The Document returned should be null. + +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#node-ownerDoc"/> +</metadata> +<var name="doc" type="Document"/> +<var name="ownerDocument" type="Document"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<ownerDocument obj="doc" var="ownerDocument"/> +<assertNull actual="ownerDocument" id="nodeGetOwnerDocumentNullAssert1"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodegetprevioussibling.xml b/test/testcases/tests/level1/core/hc_nodegetprevioussibling.xml new file mode 100644 index 0000000..0ececda --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodegetprevioussibling.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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodegetprevioussibling"> +<metadata> +<title>hc_nodeGetPreviousSibling</title> +<creator>Curt Arnold</creator> +<description> + The "getPreviousSibling()" method returns the node + immediately preceding this node. + + Retrieve the second child of the second employee and + invoke the "getPreviousSibling()" method. It should + return a node with a NodeName of "#text". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-640FB3C8"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="psNode" type="Node"/> +<var name="psName" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"strong"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="nameNode"/> +<previousSibling interface="Node" obj="nameNode" var="psNode"/> +<nodeName obj="psNode" var="psName"/> +<assertEquals actual="psName" expected='"#text"' id="whitespace" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodegetprevioussiblingnull.xml b/test/testcases/tests/level1/core/hc_nodegetprevioussiblingnull.xml new file mode 100644 index 0000000..c9cc459 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodegetprevioussiblingnull.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodegetprevioussiblingnull"> +<metadata> +<title>hc_nodeGetPreviousSiblingNull</title> +<creator>Curt Arnold</creator> +<description> + + If there is not a node immediately preceding this node the + + "getPreviousSibling()" method returns null. + + + + Retrieve the first child of the second employee and + + invoke the "getPreviousSibling()" method. It should + + be set to null. + +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-640FB3C8"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="fcNode" type="Node"/> +<var name="psNode" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="2" var="employeeNode"/> +<firstChild interface="Node" obj="employeeNode" var="fcNode"/> +<previousSibling interface="Node" obj="fcNode" var="psNode"/> +<assertNull actual="psNode" id="nodeGetPreviousSiblingNullAssert1"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodehaschildnodes.xml b/test/testcases/tests/level1/core/hc_nodehaschildnodes.xml new file mode 100644 index 0000000..eaba4da --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodehaschildnodes.xml @@ -0,0 +1,39 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodehaschildnodes"> +<metadata> +<title>hc_nodeHasChildNodes</title> +<creator>Curt Arnold</creator> +<description> + The "hasChildNodes()" method returns true if the node + has children. + + Retrieve the root node("staff") and invoke the + "hasChildNodes()" method. It should return the boolean + value "true". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-810594187"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="state" type="boolean"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<hasChildNodes obj="employeeNode" var="state"/> +<assertTrue actual="state" id="nodeHasChildAssert1"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodehaschildnodesfalse.xml b/test/testcases/tests/level1/core/hc_nodehaschildnodesfalse.xml new file mode 100644 index 0000000..15d29d7 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodehaschildnodesfalse.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodehaschildnodesfalse"> +<metadata> +<title>hc_nodeHasChildNodesFalse</title> +<creator>Curt Arnold</creator> +<description> + The "hasChildNodes()" method returns false if the node + does not have any children. + + Retrieve the text of the first "em" element and invoke the "hasChildNodes()" method. It + should return false. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1451460987"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-810594187"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=246"/> +</metadata> +<var name="doc" type="Document"/> +<var name="emList" type="NodeList"/> +<var name="emNode" type="Node"/> +<var name="emText" type="CharacterData"/> +<var name="hasChild" type="boolean"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"em"' var="emList"/> +<item interface="NodeList" obj="emList" index="0" var="emNode"/> +<firstChild var="emText" obj="emNode" interface="Node"/> +<hasChildNodes var="hasChild" obj="emText" interface="Node"/> +<assertFalse actual="hasChild" id="hasChild"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeinsertbefore.xml b/test/testcases/tests/level1/core/hc_nodeinsertbefore.xml new file mode 100644 index 0000000..eb5d415 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeinsertbefore.xml @@ -0,0 +1,68 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeinsertbefore"> +<metadata> +<title>hc_nodeInsertBefore</title> +<creator>Curt Arnold</creator> +<description> + The "insertBefore(newChild,refChild)" method inserts the + node "newChild" before the node "refChild". + + Insert a newly created Element node before the second + sup element in the document and check the "newChild" + and "refChild" after insertion for correct placement. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=246"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=247"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=261"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="refChild" type="Node"/> +<var name="newChild" type="Node"/> +<var name="child" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="insertedNode" type="Node"/> +<var name="actual" type="List"/> +<var name="expected" type="List"> +<member>"em"</member> +<member>"strong"</member> +<member>"code"</member> +<member>"br"</member> +<member>"sup"</member> +<member>"var"</member> +<member>"acronym"</member> +</var> +<var name="nodeType" type="int"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"sup"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="2" var="refChild"/> +<parentNode interface="Node" var="employeeNode" obj="refChild"/> +<childNodes var="childList" obj="employeeNode"/> +<createElement obj="doc" tagName='"br"' var="newChild"/> +<insertBefore var="insertedNode" obj="employeeNode" newChild="newChild" refChild="refChild"/> +<for-each collection="childList" member="child"> +<nodeType var="nodeType" obj="child"/> +<if><equals actual="nodeType" expected="1"/> +<nodeName obj="child" var="childName"/> +<append collection="actual" item="childName"/> +</if> +</for-each> +<assertEquals actual="actual" expected="expected" id="nodeNames" ignoreCase="auto"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeinsertbeforedocfragment.xml b/test/testcases/tests/level1/core/hc_nodeinsertbeforedocfragment.xml new file mode 100644 index 0000000..9f52561 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeinsertbeforedocfragment.xml @@ -0,0 +1,64 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeinsertbeforedocfragment"> +<metadata> +<title>hc_nodeInsertBeforeDocFragment</title> +<creator>Curt Arnold</creator> +<description> + If the "newChild" is a DocumentFragment object then all + its children are inserted in the same order before the + the "refChild". + + Create a DocumentFragment object and populate it with + two Element nodes. Retrieve the second employee and + insert the newly created DocumentFragment before its + fourth child. The second employee should now have two + extra children("newChild1" and "newChild2") at + positions fourth and fifth respectively. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=247"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="refChild" type="Node"/> +<var name="newdocFragment" type="DocumentFragment"/> +<var name="newChild1" type="Node"/> +<var name="newChild2" type="Node"/> +<var name="child" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="appendedChild" type="Node"/> +<var name="insertedNode" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<item interface="NodeList" obj="childList" index="3" var="refChild"/> +<createDocumentFragment obj="doc" var="newdocFragment"/> +<createElement obj="doc" tagName='"br"' var="newChild1"/> +<createElement obj="doc" tagName='"b"' var="newChild2"/> +<appendChild var="appendedChild" obj="newdocFragment" newChild="newChild1"/> +<appendChild var="appendedChild" obj="newdocFragment" newChild="newChild2"/> +<insertBefore var="insertedNode" obj="employeeNode" newChild="newdocFragment" refChild="refChild"/> +<item interface="NodeList" obj="childList" index="3" var="child"/> +<nodeName obj="child" var="childName"/> +<assertEquals actual="childName" expected='"br"' ignoreCase="auto" id="childName3"/> +<item interface="NodeList" obj="childList" index="4" var="child"/> +<nodeName obj="child" var="childName"/> +<assertEquals actual="childName" expected='"b"' ignoreCase="auto" id="childName4"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeinsertbeforeinvalidnodetype.xml b/test/testcases/tests/level1/core/hc_nodeinsertbeforeinvalidnodetype.xml new file mode 100644 index 0000000..9340f54 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeinsertbeforeinvalidnodetype.xml @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeinsertbeforeinvalidnodetype"> +<metadata> +<title>hc_nodeInsertBeforeInvalidNodeType</title> +<creator>Curt Arnold</creator> +<description> + The "insertBefore(newChild,refChild)" method raises a + HIERARCHY_REQUEST_ERR DOMException if this node is of + a type that does not allow children of the type "newChild" + to be inserted. + + Retrieve the root node and attempt to insert a newly + created Attr node. An Element node cannot have children + of the "Attr" type, therefore the desired exception + should be raised. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='HIERARCHY_REQUEST_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-952280727')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='HIERARCHY_REQUEST_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=247"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=406"/> +</metadata> +<var name="doc" type="Document"/> +<var name="rootNode" type="Element"/> +<var name="newChild" type="Node"/> +<var name="elementList" type="NodeList"/> +<var name="refChild" type="Node"/> +<var name="insertedNode" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<createAttribute obj="doc" name='"title"' var="newChild"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="refChild"/> +<parentNode var="rootNode" obj="refChild" interface="Node"/> +<assertDOMException id="throw_HIERARCHY_REQUEST_ERR"> +<HIERARCHY_REQUEST_ERR> +<insertBefore var="insertedNode" obj="rootNode" newChild="newChild" refChild="refChild"/> +</HIERARCHY_REQUEST_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeinsertbeforenewchilddiffdocument.xml b/test/testcases/tests/level1/core/hc_nodeinsertbeforenewchilddiffdocument.xml new file mode 100644 index 0000000..58e4b92 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeinsertbeforenewchilddiffdocument.xml @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeinsertbeforenewchilddiffdocument"> +<metadata> +<title>hc_nodeInsertBeforeNewChildDiffDocument</title> +<creator>Curt Arnold</creator> +<description> + The "insertBefore(newChild,refChild)" method raises a + WRONG_DOCUMENT_ERR DOMException if the "newChild" was + created from a different document than the one that + created this node. + + Retrieve the second employee and attempt to insert a new + child that was created from a different document than the + one that created the second employee. An attempt to + insert such a child should raise the desired exception. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='WRONG_DOCUMENT_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-952280727')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='WRONG_DOCUMENT_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=247"/> +</metadata> +<var name="doc1" type="Document"/> +<var name="doc2" type="Document"/> +<var name="refChild" type="Node"/> +<var name="newChild" type="Node"/> +<var name="elementList" type="NodeList"/> +<var name="elementNode" type="Node"/> +<var name="insertedNode" type="Node"/> +<load var="doc1" href="hc_staff" willBeModified="false"/> +<load var="doc2" href="hc_staff" willBeModified="true"/> +<createElement obj="doc1" tagName='"br"' var="newChild"/> +<getElementsByTagName interface="Document" obj="doc2" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="elementNode"/> +<firstChild var="refChild" obj="elementNode" interface="Node"/> +<assertDOMException id="throw_WRONG_DOCUMENT_ERR"> +<WRONG_DOCUMENT_ERR> +<insertBefore var="insertedNode" obj="elementNode" newChild="newChild" refChild="refChild"/> +</WRONG_DOCUMENT_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeinsertbeforenewchildexists.xml b/test/testcases/tests/level1/core/hc_nodeinsertbeforenewchildexists.xml new file mode 100644 index 0000000..db8edbd --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeinsertbeforenewchildexists.xml @@ -0,0 +1,68 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeinsertbeforenewchildexists"> +<metadata> +<title>hc_nodeInsertBeforeNewChildExists</title> +<creator>Curt Arnold</creator> +<description> + If the "newChild" is already in the tree, the + "insertBefore(newChild,refChild)" method must first + remove it before the insertion takes place. + + Insert a node Element ("em") that is already + present in the tree. The existing node should be + removed first and the new one inserted. The node is + inserted at a different position in the tree to assure + that it was indeed inserted. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=246"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="refChild" type="Node"/> +<var name="newChild" type="Node"/> +<var name="child" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="insertedNode" type="Node"/> +<var name="expected" type="List"> +<member>"strong"</member> +<member>"code"</member> +<member>"sup"</member> +<member>"var"</member> +<member>"em"</member> +<member>"acronym"</member> +</var> +<var name="result" type="List"/> +<var name="nodeType" type="int"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<getElementsByTagName interface="Element" obj="employeeNode" tagname='"*"' var="childList"/> +<item interface="NodeList" obj="childList" index="5" var="refChild"/> +<item interface="NodeList" obj="childList" index="0" var="newChild"/> +<insertBefore var="insertedNode" obj="employeeNode" newChild="newChild" refChild="refChild"/> +<for-each collection="childList" member="child"> +<nodeType obj="child" var="nodeType"/> +<if><equals actual="nodeType" expected="1"/> +<nodeName obj="child" var="childName"/> +<append collection="result" item="childName"/> +</if> +</for-each> +<assertEquals id="childNames" actual="result" expected="expected" ignoreCase="auto"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeinsertbeforenodeancestor.xml b/test/testcases/tests/level1/core/hc_nodeinsertbeforenodeancestor.xml new file mode 100644 index 0000000..7381374 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeinsertbeforenodeancestor.xml @@ -0,0 +1,53 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeinsertbeforenodeancestor"> +<metadata> +<title>hc_nodeInsertBeforeNodeAncestor</title> +<creator>Curt Arnold</creator> +<description> + The "insertBefore(newChild,refChild)" method raises a + HIERARCHY_REQUEST_ERR DOMException if the node to be + inserted is one of this nodes ancestors. + + Retrieve the second employee and attempt to insert a + node that is one of its ancestors(root node). An + attempt to insert such a node should raise the + desired exception. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='HIERARCHY_REQUEST_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-952280727')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='HIERARCHY_REQUEST_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newChild" type="Node"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="refChild" type="Node"/> +<var name="insertedNode" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<documentElement obj="doc" var="newChild"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<item interface="NodeList" obj="childList" index="0" var="refChild"/> +<assertDOMException id="throw_HIERARCHY_REQUEST_ERR"> +<HIERARCHY_REQUEST_ERR> +<insertBefore var="insertedNode" obj="employeeNode" newChild="newChild" refChild="refChild"/> +</HIERARCHY_REQUEST_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeinsertbeforenodename.xml b/test/testcases/tests/level1/core/hc_nodeinsertbeforenodename.xml new file mode 100644 index 0000000..98a06a1 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeinsertbeforenodename.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeinsertbeforenodename"> +<metadata> +<title>hc_nodeInsertBeforeNodeName</title> +<creator>Curt Arnold</creator> +<description> + The "insertBefore(newChild,refchild)" method returns + the node being inserted. + + Insert an Element node before the fourth + child of the second employee and check the node + returned from the "insertBefore(newChild,refChild)" + method. The node returned should be "newChild". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=247"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="refChild" type="Node"/> +<var name="newChild" type="Node"/> +<var name="insertedNode" type="Node"/> +<var name="childName" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<item interface="NodeList" obj="childList" index="3" var="refChild"/> +<createElement obj="doc" tagName='"br"' var="newChild"/> +<insertBefore obj="employeeNode" newChild="newChild" refChild="refChild" var="insertedNode"/> +<nodeName obj="insertedNode" var="childName"/> +<assertEquals actual="childName" expected='"br"' id="nodeName" ignoreCase="auto"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeinsertbeforerefchildnonexistent.xml b/test/testcases/tests/level1/core/hc_nodeinsertbeforerefchildnonexistent.xml new file mode 100644 index 0000000..339d37b --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeinsertbeforerefchildnonexistent.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeinsertbeforerefchildnonexistent"> +<metadata> +<title>hc_nodeInsertBeforeRefChildNonexistent</title> +<creator>Curt Arnold</creator> +<description> + The "insertBefore(newChild,refChild)" method raises a + NOT_FOUND_ERR DOMException if the reference child is + not a child of this node. + + Retrieve the second employee and attempt to insert a + new node before a reference node that is not a child + of this node. An attempt to insert before a non child + node should raise the desired exception. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NOT_FOUND_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-952280727')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NOT_FOUND_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=247"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="refChild" type="Node"/> +<var name="newChild" type="Node"/> +<var name="elementList" type="NodeList"/> +<var name="elementNode" type="Node"/> +<var name="insertedNode" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<createElement obj="doc" tagName='"br"' var="newChild"/> +<createElement obj="doc" tagName='"b"' var="refChild"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="elementNode"/> +<assertDOMException id="throw_NOT_FOUND_ERR"> +<NOT_FOUND_ERR> +<insertBefore var="insertedNode" obj="elementNode" newChild="newChild" refChild="refChild"/> +</NOT_FOUND_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeinsertbeforerefchildnull.xml b/test/testcases/tests/level1/core/hc_nodeinsertbeforerefchildnull.xml new file mode 100644 index 0000000..355ddf1 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeinsertbeforerefchildnull.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeinsertbeforerefchildnull"> +<metadata> +<title>hc_nodeInsertBeforeRefChildNull</title> +<creator>Curt Arnold</creator> +<description> + If the "refChild" is null then the + "insertBefore(newChild,refChild)" method inserts the + node "newChild" at the end of the list of children. + + Retrieve the second employee and invoke the + "insertBefore(newChild,refChild)" method with + refChild=null. Since "refChild" is null the "newChild" + should be added to the end of the list. The last item + in the list is checked after insertion. The last Element + node of the list should be "newChild". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=247"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="refChild" type="Node" isNull="true"/> +<var name="newChild" type="Node"/> +<var name="child" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="insertedNode" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<createElement obj="doc" tagName='"br"' var="newChild"/> +<insertBefore var="insertedNode" obj="employeeNode" newChild="newChild" refChild="refChild"/> +<lastChild interface="Node" obj="employeeNode" var="child"/> +<nodeName obj="child" var="childName"/> +<assertEquals actual="childName" expected='"br"' id="nodeName" ignoreCase="auto"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodelistindexequalzero.xml b/test/testcases/tests/level1/core/hc_nodelistindexequalzero.xml new file mode 100644 index 0000000..0b19fd5 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodelistindexequalzero.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodelistindexequalzero"> +<metadata> +<title>hc_nodelistIndexEqualZero</title> +<creator>Curt Arnold</creator> +<description> + Create a list of all the children elements of the third + employee and access its first child by using an index + of 0. This should result in the whitspace before "em" being + selected (em when ignoring whitespace). + Further we evaluate its content(by using + the "getNodeName()" method) to ensure the proper + element was accessed. +</description> + +<date qualifier="created">2002-06-09</date> +<!--item--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-844377136"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=246"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="employeeList" type="NodeList"/> +<var name="child" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="length" type="int"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"p"'/> +<item interface="NodeList" obj="elementList" var="employeeNode" index="2"/> +<childNodes obj="employeeNode" var="employeeList"/> +<length var="length" obj="employeeList" interface="NodeList"/> +<item interface="NodeList" obj="employeeList" var="child" index="0"/> +<nodeName obj="child" var="childName"/> +<if><equals expected='13' actual="length" ignoreCase="false"/> +<assertEquals actual="childName" expected='"#text"' ignoreCase="false" id="childName_w_whitespace"/> +<else> +<assertEquals actual="childName" expected='"em"' ignoreCase="auto" id="childName_wo_whitespace"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodelistindexgetlength.xml b/test/testcases/tests/level1/core/hc_nodelistindexgetlength.xml new file mode 100644 index 0000000..65e05bb --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodelistindexgetlength.xml @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodelistindexgetlength"> +<metadata> +<title>hc_nodelistIndexGetLength</title> +<creator>Curt Arnold</creator> +<description> + The "getLength()" method returns the number of nodes + in the list. + + Create a list of all the children elements of the third + employee and invoke the "getLength()" method. + It should contain the value 13. +</description> + +<date qualifier="created">2002-06-09</date> +<!--length attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-203510337"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=246"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="employeeList" type="NodeList"/> +<var name="length" type="int"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"p"'/> +<item interface="NodeList" obj="elementList" var="employeeNode" index="2"/> +<childNodes obj="employeeNode" var="employeeList"/> +<length var="length" obj="employeeList" interface="NodeList"/> +<if><equals actual="length" expected="6"/> +<assertEquals actual="length" expected="6" ignoreCase="false" id="length_wo_space"/> +<else> +<assertEquals actual="length" expected="13" ignoreCase="false" id="length_w_space"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodelistindexgetlengthofemptylist.xml b/test/testcases/tests/level1/core/hc_nodelistindexgetlengthofemptylist.xml new file mode 100644 index 0000000..d75bb7f --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodelistindexgetlengthofemptylist.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodelistindexgetlengthofemptylist"> +<metadata> +<title>hc_nodelistIndexGetLengthOfEmptyList</title> +<creator>Curt Arnold</creator> +<description> + The "getLength()" method returns the number of nodes + in the list.(Test for EMPTY list) + + Create a list of all the children of the Text node + inside the first child of the third employee and + invoke the "getLength()" method. It should contain + the value 0. +</description> + +<date qualifier="created">2002-06-09</date> +<!--length attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-203510337"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=246"/> +</metadata> +<var name="doc" type="Document"/> +<var name="emList" type="NodeList"/> +<var name="emNode" type="Node"/> +<var name="textNode" type="Node"/> +<var name="textList" type="NodeList"/> +<var name="length" type="int"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="emList" tagname='"em"'/> +<item interface="NodeList" obj="emList" var="emNode" index="2"/> +<firstChild var="textNode" obj="emNode"/> +<childNodes var="textList" obj="textNode"/> +<length var="length" obj="textList" interface="NodeList"/> +<assertEquals actual="length" expected="0" id="length" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodelistindexnotzero.xml b/test/testcases/tests/level1/core/hc_nodelistindexnotzero.xml new file mode 100644 index 0000000..8b91ec7 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodelistindexnotzero.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodelistindexnotzero"> +<metadata> +<title>hc_nodelistIndexNotZero</title> +<creator>Curt Arnold</creator> +<description> + The items in the list are accessible via an integral + index starting from zero. + (Index not equal 0) + + Create a list of all the children elements of the third + employee and access its fourth child by using an index + of 3 and calling getNodeName() which should return + "strong" (no whitespace) or "#text" (with whitespace). +</description> + +<date qualifier="created">2002-06-09</date> +<!--item--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-844377136"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=246"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="employeeList" type="NodeList"/> +<var name="child" type="Node"/> +<var name="childName" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"p"'/> +<item interface="NodeList" obj="elementList" var="employeeNode" index="2"/> +<childNodes obj="employeeNode" var="employeeList"/> +<item interface="NodeList" obj="employeeList" var="child" index="3"/> +<nodeName obj="child" var="childName"/> +<if><equals expected='"#text"' actual="childName"/> +<assertEquals id="childName_space" actual="childName" expected='"#text"' ignoreCase="false"/> +<else> +<assertEquals id="childName_strong" actual="childName" expected='"strong"' ignoreCase="auto"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodelistreturnfirstitem.xml b/test/testcases/tests/level1/core/hc_nodelistreturnfirstitem.xml new file mode 100644 index 0000000..f36a9c0 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodelistreturnfirstitem.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodelistreturnfirstitem"> +<metadata> +<title>hc_nodelistReturnFirstItem</title> +<creator>Curt Arnold</creator> +<description> + Create a list of all the children elements of the third + employee and access its first child by invoking the + "item(index)" method with an index=0. This should + result in node with a nodeName of "#text" or "em". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-844377136"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=246"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="employeeList" type="NodeList"/> +<var name="child" type="Node"/> +<var name="childName" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"p"'/> +<item interface="NodeList" obj="elementList" var="employeeNode" index="2"/> +<childNodes obj="employeeNode" var="employeeList"/> +<item interface="NodeList" obj="employeeList" var="child" index="0"/> +<nodeName obj="child" var="childName"/> +<if><equals actual="childName" expected='"#text"'/> +<assertEquals actual="childName" expected='"#text"' ignoreCase="false" id="nodeName_w_space"/> +<else> +<assertEquals actual="childName" expected='"em"' ignoreCase="auto" id="nodeName_wo_space"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodelistreturnlastitem.xml b/test/testcases/tests/level1/core/hc_nodelistreturnlastitem.xml new file mode 100644 index 0000000..f268f20 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodelistreturnlastitem.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodelistreturnlastitem"> +<metadata> +<title>hc_nodelistReturnLastItem</title> +<creator>Curt Arnold</creator> +<description> + Create a list of all the children elements of the third + employee and access its last child by invoking the + "item(index)" method with an index=length-1. This should + result in node with nodeName="#text" or acronym.</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-844377136"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=246"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="employeeList" type="NodeList"/> +<var name="child" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="index" type="int"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"p"'/> +<item interface="NodeList" obj="elementList" var="employeeNode" index="2"/> +<childNodes obj="employeeNode" var="employeeList"/> +<length var="index" obj="employeeList" interface="NodeList"/> +<decrement var="index" value="1"/> +<item interface="NodeList" obj="employeeList" var="child" index="index"/> +<nodeName obj="child" var="childName"/> +<if><equals actual="index" expected="12"/> +<assertEquals actual="childName" expected='"#text"' id="lastNodeName_w_whitespace" ignoreCase="false"/> +<else> +<assertEquals actual="childName" expected='"acronym"' id="lastNodeName" ignoreCase="auto"/> +<assertEquals actual="index" expected="5" id="index" ignoreCase="false"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodelisttraverselist.xml b/test/testcases/tests/level1/core/hc_nodelisttraverselist.xml new file mode 100644 index 0000000..cc8408f --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodelisttraverselist.xml @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodelisttraverselist"> +<metadata> +<title>hc_nodelistTraverseList</title> +<creator>Curt Arnold</creator> +<description> + The range of valid child node indices is 0 thru length -1 + + Create a list of all the children elements of the third + employee and traverse the list from index=0 thru + length -1. +</description> + +<date qualifier="created">2002-06-09</date> +<!--length attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-203510337"/> +<!--item--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-844377136"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=246"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="employeeList" type="NodeList"/> +<var name="child" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="nodeType" type="int"/> +<var name="result" type="List"/> +<var name="expected" type="List"> +<member>"em"</member> +<member>"strong"</member> +<member>"code"</member> +<member>"sup"</member> +<member>"var"</member> +<member>"acronym"</member> +</var> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"p"'/> +<item interface="NodeList" obj="elementList" var="employeeNode" index="2"/> +<childNodes obj="employeeNode" var="employeeList"/> +<for-each collection="employeeList" member="child"> +<nodeType var="nodeType" obj="child"/> +<nodeName obj="child" var="childName"/> +<if><equals actual="nodeType" expected="1"/> +<append collection="result" item="childName"/> +<else> +<assertEquals actual="nodeType" expected="3" id="textNodeType" ignoreCase="false"/> +<assertEquals actual="childName" expected='"#text"' id="textNodeName" ignoreCase="false"/> +</else> +</if> +</for-each> +<assertEquals actual="result" expected="expected" id="nodeNames" ignoreCase="auto"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeparentnode.xml b/test/testcases/tests/level1/core/hc_nodeparentnode.xml new file mode 100644 index 0000000..84ef073 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeparentnode.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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeparentnode"> +<metadata> +<title>hc_nodeParentNode</title> +<creator>Curt Arnold</creator> +<description> + The "getParentNode()" method returns the parent + of this node. + + Retrieve the second employee and invoke the + "getParentNode()" method on this node. It should + be set to "body". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1060184317"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="parentNode" type="Node"/> +<var name="parentName" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<parentNode interface="Node" obj="employeeNode" var="parentNode"/> +<nodeName obj="parentNode" var="parentName"/> +<assertEquals actual="parentName" expected='"body"' id="parentNodeName" ignoreCase="auto"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodeparentnodenull.xml b/test/testcases/tests/level1/core/hc_nodeparentnodenull.xml new file mode 100644 index 0000000..64e4fb2 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodeparentnodenull.xml @@ -0,0 +1,38 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodeparentnodenull"> +<metadata> +<title>hc_nodeParentNodeNull</title> +<creator>Curt Arnold</creator> +<description> + The "getParentNode()" method invoked on a node that has + just been created and not yet added to the tree is null. + + Create a new "employee" Element node using the + "createElement(name)" method from the Document interface. + Since this new node has not yet been added to the tree, + the "getParentNode()" method will return null. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1060184317"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=247"/> +</metadata> +<var name="doc" type="Document"/> +<var name="createdNode" type="Element"/> +<var name="parentNode" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<createElement obj="doc" tagName='"br"' var="createdNode"/> +<parentNode interface="Node" obj="createdNode" var="parentNode"/> +<assertNull actual="parentNode" id="parentNode"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_noderemovechild.xml b/test/testcases/tests/level1/core/hc_noderemovechild.xml new file mode 100644 index 0000000..246a237 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_noderemovechild.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_noderemovechild"> +<metadata> +<title>hc_nodeRemoveChild</title> +<creator>Curt Arnold</creator> +<description> + The "removeChild(oldChild)" method removes the child node + indicated by "oldChild" from the list of children and + returns it. + + Remove the first employee by invoking the + "removeChild(oldChild)" method an checking the + node returned by the "getParentNode()" method. It + should be set to null. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1734834066"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="rootNode" type="Element"/> +<var name="childList" type="NodeList"/> +<var name="childToRemove" type="Node"/> +<var name="removedChild" type="Node"/> +<var name="parentNode" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<documentElement obj="doc" var="rootNode"/> +<childNodes obj="rootNode" var="childList"/> +<item interface="NodeList" obj="childList" index="1" var="childToRemove"/> +<removeChild obj="rootNode" var="removedChild" oldChild="childToRemove"/> +<parentNode interface="Node" obj="removedChild" var="parentNode"/> +<assertNull actual="parentNode" id="parentNodeNull"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_noderemovechildgetnodename.xml b/test/testcases/tests/level1/core/hc_noderemovechildgetnodename.xml new file mode 100644 index 0000000..8d5aaba --- /dev/null +++ b/test/testcases/tests/level1/core/hc_noderemovechildgetnodename.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_noderemovechildgetnodename"> +<metadata> +<title>hc_nodeRemoveChildGetNodeName</title> +<creator>Curt Arnold</creator> +<description> + The "removeChild(oldChild)" method returns + the node being removed. + + Remove the first child of the second employee + and check the NodeName returned by the + "removeChild(oldChild)" method. The returned node + should have a NodeName equal to "#text". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1734834066"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=246"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="oldChild" type="Node"/> +<var name="removedChild" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="oldName" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<item interface="NodeList" obj="childList" index="0" var="oldChild"/> +<nodeName obj="oldChild" var="oldName"/> +<removeChild obj="employeeNode" oldChild="oldChild" var="removedChild"/> +<assertNotNull actual="removedChild" id="notnull"/> +<nodeName obj="removedChild" var="childName"/> +<assertEquals actual="childName" expected='oldName' id="nodeName" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_noderemovechildnode.xml b/test/testcases/tests/level1/core/hc_noderemovechildnode.xml new file mode 100644 index 0000000..823129c --- /dev/null +++ b/test/testcases/tests/level1/core/hc_noderemovechildnode.xml @@ -0,0 +1,73 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_noderemovechildnode"> +<metadata> +<title>hc_noderemovechildnode</title> +<creator>Curt Arnold</creator> +<description> + The "removeChild(oldChild)" method removes the node + indicated by "oldChild". + + Retrieve the second p element and remove its first child. + After the removal, the second p element should have 5 element + children and the first child should now be the child + that used to be at the second position in the list. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1734834066"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=246"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="emList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="oldChild" type="Node"/> +<var name="child" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="length" type="int"/> +<var name="removedChild" type="Node"/> +<var name="removedName" type="DOMString"/> +<var name="nodeType" type="int"/> +<var name="expected" type="List"> +<member>"strong"</member> +<member>"code"</member> +<member>"sup"</member> +<member>"var"</member> +<member>"acronym"</member> +</var> +<var name="actual" type="List"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<getElementsByTagName interface="Element" var="emList" obj="employeeNode" tagname='"em"'/> +<item interface="NodeList" obj="emList" index="0" var="oldChild"/> +<removeChild var="removedChild" obj="employeeNode" oldChild="oldChild"/> +<nodeName obj="removedChild" var="removedName"/> +<assertEquals actual="removedName" expected='"em"' ignoreCase="auto" id="removedName"/> +<for-each collection="childList" member="child"> +<nodeType var="nodeType" obj="child"/> +<nodeName var="childName" obj="child"/> +<if><equals expected="1" actual="nodeType"/> +<append collection="actual" item="childName"/> +<else> +<assertEquals expected="3" actual="nodeType" id="textNodeType" ignoreCase="false"/> +<assertEquals expected='"#text"' actual="childName" id="textNodeName" ignoreCase="false"/> +</else> +</if> +</for-each> +<assertEquals actual="actual" expected='expected' ignoreCase="auto" id="childNames"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_noderemovechildoldchildnonexistent.xml b/test/testcases/tests/level1/core/hc_noderemovechildoldchildnonexistent.xml new file mode 100644 index 0000000..553f1fe --- /dev/null +++ b/test/testcases/tests/level1/core/hc_noderemovechildoldchildnonexistent.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_noderemovechildoldchildnonexistent"> +<metadata> +<title>hc_nodeRemoveChildOldChildNonexistent</title> +<creator>Curt Arnold</creator> +<description> + The "removeChild(oldChild)" method raises a + NOT_FOUND_ERR DOMException if the old child is + not a child of this node. + + Retrieve the second employee and attempt to remove a + node that is not one of its children. An attempt to + remove such a node should raise the desired exception. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NOT_FOUND_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1734834066"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-1734834066')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NOT_FOUND_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1734834066"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=247"/> +</metadata> +<var name="doc" type="Document"/> +<var name="oldChild" type="Node"/> +<var name="elementList" type="NodeList"/> +<var name="elementNode" type="Node"/> +<var name="removedChild" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<createElement obj="doc" tagName='"br"' var="oldChild"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="elementNode"/> +<assertDOMException id="throw_NOT_FOUND_ERR"> +<NOT_FOUND_ERR> +<removeChild var="removedChild" obj="elementNode" oldChild="oldChild"/> +</NOT_FOUND_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodereplacechild.xml b/test/testcases/tests/level1/core/hc_nodereplacechild.xml new file mode 100644 index 0000000..9e08082 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodereplacechild.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodereplacechild"> +<metadata> +<title>hc_nodeReplaceChild</title> +<creator>Curt Arnold</creator> +<description> + The "replaceChild(newChild,oldChild)" method replaces + the node "oldChild" with the node "newChild". + + Replace the first element of the second employee with + a newly created Element node. Check the first position + after the replacement operation is completed. The new + Element should be "newChild". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=247"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="oldChild" type="Node"/> +<var name="newChild" type="Node"/> +<var name="child" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="replacedNode" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<item interface="NodeList" obj="childList" index="0" var="oldChild"/> +<createElement obj="doc" tagName='"br"' var="newChild"/> +<replaceChild var="replacedNode" obj="employeeNode" newChild="newChild" oldChild="oldChild"/> +<item interface="NodeList" obj="childList" index="0" var="child"/> +<nodeName obj="child" var="childName"/> +<assertEquals actual="childName" expected='"br"' id="nodeName" ignoreCase="auto"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodereplacechildinvalidnodetype.xml b/test/testcases/tests/level1/core/hc_nodereplacechildinvalidnodetype.xml new file mode 100644 index 0000000..f1bbfac --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodereplacechildinvalidnodetype.xml @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodereplacechildinvalidnodetype"> +<metadata> +<title>hc_nodeReplaceChildInvalidNodeType</title> +<creator>Curt Arnold</creator> +<description> + The "replaceChild(newChild,oldChild)" method raises a + HIERARCHY_REQUEST_ERR DOMException if this node is of + a type that does not allow children of the type "newChild" + to be inserted. + + Retrieve the root node and attempt to replace + one of its children with a newly created Attr node. + An Element node cannot have children of the "Attr" + type, therefore the desired exception should be raised. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='HIERARCHY_REQUEST_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-785887307')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='HIERARCHY_REQUEST_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=247"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=406"/> +</metadata> +<var name="doc" type="Document"/> +<var name="rootNode" type="Element"/> +<var name="newChild" type="Node"/> +<var name="elementList" type="NodeList"/> +<var name="oldChild" type="Node"/> +<var name="replacedChild" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<createAttribute obj="doc" name='"lang"' var="newChild"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="oldChild"/> +<parentNode var="rootNode" obj="oldChild" interface="Node"/> +<assertDOMException id="throw_HIERARCHY_REQUEST_ERR"> +<HIERARCHY_REQUEST_ERR> +<replaceChild var="replacedChild" obj="rootNode" newChild="newChild" oldChild="oldChild"/> +</HIERARCHY_REQUEST_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodereplacechildnewchilddiffdocument.xml b/test/testcases/tests/level1/core/hc_nodereplacechildnewchilddiffdocument.xml new file mode 100644 index 0000000..4c57934 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodereplacechildnewchilddiffdocument.xml @@ -0,0 +1,55 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodereplacechildnewchilddiffdocument"> +<metadata> +<title>hc_nodeReplaceChildNewChildDiffDocument</title> +<creator>Curt Arnold</creator> +<description> + The "replaceChild(newChild,oldChild)" method raises a + WRONG_DOCUMENT_ERR DOMException if the "newChild" was + created from a different document than the one that + created this node. + + Retrieve the second employee and attempt to replace one + of its children with a node created from a different + document. An attempt to make such a replacement + should raise the desired exception. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NOT_FOUND_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-785887307')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NOT_FOUND_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=247"/> +</metadata> +<var name="doc1" type="Document"/> +<var name="doc2" type="Document"/> +<var name="oldChild" type="Node"/> +<var name="newChild" type="Node"/> +<var name="elementList" type="NodeList"/> +<var name="elementNode" type="Node"/> +<var name="replacedChild" type="Node"/> +<load var="doc1" href="hc_staff" willBeModified="false"/> +<load var="doc2" href="hc_staff" willBeModified="true"/> +<createElement obj="doc1" tagName='"br"' var="newChild"/> +<getElementsByTagName interface="Document" obj="doc2" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="elementNode"/> +<firstChild obj="elementNode" var="oldChild" interface="Node"/> +<assertDOMException id="throw_WRONG_DOCUMENT_ERR"> +<WRONG_DOCUMENT_ERR> +<replaceChild var="replacedChild" obj="elementNode" newChild="newChild" oldChild="oldChild"/> +</WRONG_DOCUMENT_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodereplacechildnewchildexists.xml b/test/testcases/tests/level1/core/hc_nodereplacechildnewchildexists.xml new file mode 100644 index 0000000..66c9b06 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodereplacechildnewchildexists.xml @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodereplacechildnewchildexists"> +<metadata> +<title>hc_nodeReplaceChildNewChildExists</title> +<creator>Curt Arnold</creator> +<description> + If the "newChild" is already in the tree, it is first + removed before the new one is added. + + Retrieve the second "p" and replace "acronym" with its "em". +</description> +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=246"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="oldChild" type="Node" isNull="true"/> +<var name="newChild" type="Node" isNull="true"/> +<var name="child" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="childNode" type="Node"/> +<var name="actual" type="List"/> +<var name="expected" type="List"> +<member>"strong"</member> +<member>"code"</member> +<member>"sup"</member> +<member>"var"</member> +<member>"em"</member> +</var> +<var name="replacedChild" type="Node"/> +<var name="nodeType" type="int"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<getElementsByTagName interface="Element" obj="employeeNode" var="childList" tagname='"*"'/> +<item interface="NodeList" obj="childList" index="0" var="newChild"/> +<item interface="NodeList" obj="childList" index="5" var="oldChild"/> +<replaceChild var="replacedChild" obj="employeeNode" newChild="newChild" oldChild="oldChild"/> +<assertSame actual="replacedChild" expected="oldChild" id="return_value_same"/> +<for-each collection="childList" member="childNode"> +<nodeName var="childName" obj="childNode"/> +<nodeType var="nodeType" obj="childNode"/> +<if><equals actual="nodeType" expected="1"/> +<append collection="actual" item="childName"/> +<else> +<assertEquals actual="nodeType" expected="3" id="textNodeType" ignoreCase="false"/> +<assertEquals actual="childName" expected='"#text"' id="textNodeName" ignoreCase="false"/> +</else> +</if> +</for-each> +<assertEquals actual="actual" expected="expected" id="childNames" ignoreCase="auto"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodereplacechildnodeancestor.xml b/test/testcases/tests/level1/core/hc_nodereplacechildnodeancestor.xml new file mode 100644 index 0000000..3c5ec89 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodereplacechildnodeancestor.xml @@ -0,0 +1,53 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodereplacechildnodeancestor"> +<metadata> +<title>hc_nodeReplaceChildNodeAncestor</title> +<creator>Curt Arnold</creator> +<description> + The "replaceChild(newChild,oldChild)" method raises a + HIERARCHY_REQUEST_ERR DOMException if the node to put + in is one of this node's ancestors. + + Retrieve the second employee and attempt to replace + one of its children with an ancestor node(root node). + An attempt to make such a replacement should raise the + desired exception. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='HIERARCHY_REQUEST_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-785887307')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='HIERARCHY_REQUEST_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newChild" type="Node"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="oldChild" type="Node"/> +<var name="replacedNode" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<documentElement obj="doc" var="newChild"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<item interface="NodeList" obj="childList" index="0" var="oldChild"/> +<assertDOMException id="throw_HIERARCHY_REQUEST_ERR"> +<HIERARCHY_REQUEST_ERR> +<replaceChild var="replacedNode" obj="employeeNode" newChild="newChild" oldChild="oldChild"/> +</HIERARCHY_REQUEST_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodereplacechildnodename.xml b/test/testcases/tests/level1/core/hc_nodereplacechildnodename.xml new file mode 100644 index 0000000..d8d73ad --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodereplacechildnodename.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodereplacechildnodename"> +<metadata> +<title>hc_nodeReplaceChildNodeName</title> +<creator>Curt Arnold</creator> +<description> + The "replaceChild(newChild,oldChild)" method returns + the node being replaced. + + Replace the second Element of the second employee with + a newly created node Element and check the NodeName + returned by the "replaceChild(newChild,oldChild)" + method. The returned node should have a NodeName equal + to "em". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=247"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="oldChild" type="Node"/> +<var name="newChild" type="Node"/> +<var name="replacedNode" type="Node"/> +<var name="childName" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<getElementsByTagName obj="employeeNode" var="childList" interface="Element" tagname='"em"'/> +<item interface="NodeList" obj="childList" index="0" var="oldChild"/> +<createElement obj="doc" tagName='"br"' var="newChild"/> +<replaceChild obj="employeeNode" newChild="newChild" oldChild="oldChild" var="replacedNode"/> +<nodeName obj="replacedNode" var="childName"/> +<assertEquals actual="childName" expected='"em"' id="replacedNodeName" ignoreCase="auto"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodereplacechildoldchildnonexistent.xml b/test/testcases/tests/level1/core/hc_nodereplacechildoldchildnonexistent.xml new file mode 100644 index 0000000..907da84 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodereplacechildoldchildnonexistent.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodereplacechildoldchildnonexistent"> +<metadata> +<title>hc_nodeReplaceChildOldChildNonexistent</title> +<creator>Curt Arnold</creator> +<description> + The "replaceChild(newChild,oldChild)" method raises a + NOT_FOUND_ERR DOMException if the old child is + not a child of this node. + + Retrieve the second employee and attempt to replace a + node that is not one of its children. An attempt to + replace such a node should raise the desired exception. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NOT_FOUND_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-785887307')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NOT_FOUND_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=247"/> +</metadata> +<var name="doc" type="Document"/> +<var name="oldChild" type="Node"/> +<var name="newChild" type="Node"/> +<var name="elementList" type="NodeList"/> +<var name="elementNode" type="Node"/> +<var name="replacedNode" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<createElement obj="doc" tagName='"br"' var="newChild"/> +<createElement obj="doc" tagName='"b"' var="oldChild"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"p"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="elementNode"/> +<assertDOMException id="throw_NOT_FOUND_ERR"> +<NOT_FOUND_ERR> +<replaceChild var="replacedNode" obj="elementNode" newChild="newChild" oldChild="oldChild"/> +</NOT_FOUND_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodetextnodeattribute.xml b/test/testcases/tests/level1/core/hc_nodetextnodeattribute.xml new file mode 100644 index 0000000..f7a14ac --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodetextnodeattribute.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodetextnodeattribute"> +<metadata> +<title>hc_nodeTextNodeAttribute</title> +<creator>Curt Arnold</creator> +<description> +The "getAttributes()" method invoked on a Text +Node returns null. + +Retrieve the Text node from the last child of the +first employee and invoke the "getAttributes()" method +on the Text Node. It should return null. +</description> + +<date qualifier="created">2002-06-09</date> +<!--attributes attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +<!-- Text interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1312295772"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddr" type="Node"/> +<var name="textNode" type="Node"/> +<var name="attrList" type="NamedNodeMap"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"acronym"'/> +<item interface="NodeList" obj="elementList" index="0" var="testAddr"/> +<firstChild interface="Node" obj="testAddr" var="textNode"/> +<attributes obj="textNode" var="attrList"/> +<assertNull actual="attrList" id="text_attributes_is_null"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodetextnodename.xml b/test/testcases/tests/level1/core/hc_nodetextnodename.xml new file mode 100644 index 0000000..54f4a8b --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodetextnodename.xml @@ -0,0 +1,37 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodetextnodename"> +<metadata> +<title>hc_nodeTextNodeName</title> +<creator>Curt Arnold</creator> +<description> + The string returned by the "getNodeName()" method for a + Text Node is "#text". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddr" type="Element"/> +<var name="textNode" type="Node"/> +<var name="textName" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"acronym"'/> +<item interface="NodeList" obj="elementList" index="0" var="testAddr"/> +<firstChild interface="Node" obj="testAddr" var="textNode"/> +<nodeName obj="textNode" var="textName"/> +<assertEquals actual="textName" expected='"#text"' id="textNodeName" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodetextnodetype.xml b/test/testcases/tests/level1/core/hc_nodetextnodetype.xml new file mode 100644 index 0000000..dfadb11 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodetextnodetype.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodetextnodetype"> +<metadata> +<title>hc_nodeTextNodeType</title> +<creator>Curt Arnold</creator> +<description> + + The "getNodeType()" method for a Text Node + + returns the constant value 3. + + + + Retrieve the Text node from the last child of + + the first employee and invoke the "getNodeType()" + + method. The method should return 3. + +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-111237558"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddr" type="Element"/> +<var name="textNode" type="Node"/> +<var name="nodeType" type="int"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"acronym"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="testAddr"/> +<firstChild interface="Node" obj="testAddr" var="textNode"/> +<nodeType obj="textNode" var="nodeType"/> +<assertEquals actual="nodeType" expected="3" id="nodeTextNodeTypeAssert1" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodetextnodevalue.xml b/test/testcases/tests/level1/core/hc_nodetextnodevalue.xml new file mode 100644 index 0000000..83286f8 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodetextnodevalue.xml @@ -0,0 +1,43 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodetextnodevalue"> +<metadata> +<title>hc_nodeTextNodeValue</title> +<creator>Curt Arnold</creator> +<description> + The string returned by the "getNodeValue()" method for a + Text Node is the content of the Text node. + + Retrieve the Text node from the last child of the first + employee and check the string returned by the + "getNodeValue()" method. It should be equal to + "1230 North Ave. Dallas, Texas 98551". +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddr" type="Element"/> +<var name="textNode" type="Node"/> +<var name="textValue" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"acronym"'/> +<item interface="NodeList" obj="elementList" index="0" var="testAddr"/> +<firstChild interface="Node" obj="testAddr" var="textNode"/> +<nodeValue obj="textNode" var="textValue"/> +<assertEquals actual="textValue" expected='"1230 North Ave. Dallas, Texas 98551"' + id="textNodeValue" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodevalue01.xml b/test/testcases/tests/level1/core/hc_nodevalue01.xml new file mode 100644 index 0000000..62a4e3d --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodevalue01.xml @@ -0,0 +1,37 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodevalue01"> +<metadata> +<title>hc_nodevalue01</title> +<creator>Curt Arnold</creator> +<description> +An element is created, setNodeValue is called with a non-null argument, but getNodeValue +should still return null. +</description> +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#i-Document"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newNode" type="Element"/> +<var name="newValue" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<createElement obj="doc" var="newNode" tagName='"acronym"'/> +<nodeValue obj="newNode" var="newValue"/> +<assertNull actual="newValue" id="initiallyNull"/> +<!-- attempt to change the value and make sure that it stays null --> +<nodeValue obj="newNode" value='"This should have no effect"'/> +<nodeValue obj="newNode" var="newValue"/> +<assertNull actual="newValue" id="nullAfterAttemptedChange"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodevalue02.xml b/test/testcases/tests/level1/core/hc_nodevalue02.xml new file mode 100644 index 0000000..2c31f8a --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodevalue02.xml @@ -0,0 +1,38 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodevalue02"> +<metadata> +<title>hc_nodevalue02</title> +<creator>Curt Arnold</creator> +<description> +An comment is created, setNodeValue is called with a non-null argument, but getNodeValue +should still return null. +</description> +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1728279322"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newNode" type="Node"/> +<var name="newValue" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<createComment obj="doc" var="newNode" data='"This is a new Comment node"'/> +<nodeValue obj="newNode" var="newValue"/> +<assertEquals actual="newValue" expected='"This is a new Comment node"' ignoreCase="false" id="initial"/> +<!-- attempt to change the value --> +<nodeValue obj="newNode" value='"This should have an effect"'/> +<!-- retrieve the value --> +<nodeValue obj="newNode" var="newValue"/> +<assertEquals actual="newValue" expected='"This should have an effect"' id="afterChange" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodevalue03.xml b/test/testcases/tests/level1/core/hc_nodevalue03.xml new file mode 100644 index 0000000..6e7ac63 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodevalue03.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodevalue03"> +<metadata> +<title>hc_nodevalue03</title> +<creator>Curt Arnold</creator> +<description> +An entity reference is created, setNodeValue is called with a non-null argument, but getNodeValue +should still return null. +</description> +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-11C98490"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newNode" type="Node"/> +<var name="newValue" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<if><contentType type="text/html"/> + <assertDOMException id="throw_NOT_SUPPORTED_ERR"> + <NOT_SUPPORTED_ERR> + <createEntityReference obj="doc" var="newNode" name='"ent1"'/> + </NOT_SUPPORTED_ERR> + </assertDOMException> +<else> +<createEntityReference obj="doc" var="newNode" name='"ent1"'/> +<assertNotNull actual="newNode" id="createdEntRefNotNull"/> +<nodeValue obj="newNode" var="newValue"/> +<assertNull actual="newValue" id="initiallyNull"/> +<!-- attempt to change the value and make sure that it stays null --> +<nodeValue obj="newNode" value='"This should have no effect"'/> +<nodeValue obj="newNode" var="newValue"/> +<assertNull actual="newValue" id="nullAfterAttemptedChange"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodevalue04.xml b/test/testcases/tests/level1/core/hc_nodevalue04.xml new file mode 100644 index 0000000..f85ff65 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodevalue04.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodevalue04"> +<metadata> +<title>hc_nodevalue04</title> +<creator>Curt Arnold</creator> +<description> +An document type accessed, setNodeValue is called with a non-null argument, but getNodeValue +should still return null. +</description> +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-B63ED1A31"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newNode" type="Node"/> +<var name="newValue" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<doctype obj="doc" var="newNode"/> +<assertTrue id="docTypeNotNullOrDocIsHTML"> + <or> + <notNull obj="newNode"/> + <contentType type="text/html"/> + </or> +</assertTrue> +<if><notNull obj="newNode"/> +<assertNotNull actual="newNode" id="docTypeNotNull"/> +<nodeValue obj="newNode" var="newValue"/> +<assertNull actual="newValue" id="initiallyNull"/> +<!-- attempt to change the value and make sure that it stays null --> +<nodeValue obj="newNode" value='"This should have no effect"'/> +<nodeValue obj="newNode" var="newValue"/> +<assertNull actual="newValue" id="nullAfterAttemptedChange"/> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodevalue05.xml b/test/testcases/tests/level1/core/hc_nodevalue05.xml new file mode 100644 index 0000000..9476bf4 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodevalue05.xml @@ -0,0 +1,37 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodevalue05"> +<metadata> +<title>hc_nodevalue05</title> +<creator>Curt Arnold</creator> +<description> +A document fragment is created, setNodeValue is called with a non-null argument, but getNodeValue +should still return null. +</description> +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-B63ED1A3"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newNode" type="Node"/> +<var name="newValue" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<createDocumentFragment obj="doc" var="newNode"/> +<nodeValue obj="newNode" var="newValue"/> +<assertNull actual="newValue" id="initiallyNull"/> +<!-- attempt to change the value and make sure that it stays null --> +<nodeValue obj="newNode" value='"This should have no effect"'/> +<nodeValue obj="newNode" var="newValue"/> +<assertNull actual="newValue" id="nullAfterAttemptedChange"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodevalue06.xml b/test/testcases/tests/level1/core/hc_nodevalue06.xml new file mode 100644 index 0000000..2f8b0a4 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodevalue06.xml @@ -0,0 +1,35 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodevalue06"> +<metadata> +<title>hc_nodevalue06</title> +<creator>Curt Arnold</creator> +<description> +An document is accessed, setNodeValue is called with a non-null argument, but getNodeValue +should still return null. +</description> +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#i-Document"/> +</metadata> +<var name="newNode" type="Document"/> +<var name="newValue" type="DOMString"/> +<load var="newNode" href="hc_staff" willBeModified="true"/> +<nodeValue obj="newNode" var="newValue"/> +<assertNull actual="newValue" id="initiallyNull"/> +<!-- attempt to change the value and make sure that it stays null --> +<nodeValue obj="newNode" value='"This should have no effect"'/> +<nodeValue obj="newNode" var="newValue"/> +<assertNull actual="newValue" id="nullAfterAttemptedChange"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodevalue07.xml b/test/testcases/tests/level1/core/hc_nodevalue07.xml new file mode 100644 index 0000000..0c99f89 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodevalue07.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodevalue07"> +<metadata> +<title>hc_nodevalue07</title> +<creator>Curt Arnold</creator> +<description> +An Entity is accessed, setNodeValue is called with a non-null argument, but getNodeValue +should still return null. +</description> +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-527DCFF2"/> +</metadata> +<hasFeature feature='"XML"'/> +<var name="doc" type="Document"/> +<var name="newNode" type="Node"/> +<var name="newValue" type="DOMString"/> +<var name="nodeMap" type="NamedNodeMap"/> +<var name="docType" type="DocumentType"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<doctype obj="doc" var="docType"/> +<if><not><contentType type="text/html"/></not> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<entities obj="docType" var="nodeMap"/> +<assertNotNull actual="nodeMap" id="entitiesNotNull"/> +<getNamedItem obj="nodeMap" name='"alpha"' var="newNode"/> +<assertNotNull actual="newNode" id="entityNotNull"/> +<nodeValue obj="newNode" var="newValue"/> +<assertNull actual="newValue" id="initiallyNull"/> +<!-- attempt to change the value and make sure that it stays null --> +<nodeValue obj="newNode" value='"This should have no effect"'/> +<nodeValue obj="newNode" var="newValue"/> +<assertNull actual="newValue" id="nullAfterAttemptedChange"/> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_nodevalue08.xml b/test/testcases/tests/level1/core/hc_nodevalue08.xml new file mode 100644 index 0000000..e753f87 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_nodevalue08.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_nodevalue08"> +<metadata> +<title>hc_nodevalue08</title> +<creator>Curt Arnold</creator> +<description> +An notation is accessed, setNodeValue is called with a non-null argument, but getNodeValue +should still return null. +</description> +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-5431D1B9"/> +</metadata> +<hasFeature feature='"XML"'/> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<var name="newNode" type="Node"/> +<var name="newValue" type="DOMString"/> +<var name="nodeMap" type="NamedNodeMap"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<doctype obj="doc" var="docType"/> +<if><not><contentType type="text/html"/></not> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<notations obj="docType" var="nodeMap"/> +<assertNotNull actual="nodeMap" id="notationsNotNull"/> +<getNamedItem obj="nodeMap" name='"notation1"' var="newNode"/> +<assertNotNull actual="newNode" id="notationNotNull"/> +<nodeValue obj="newNode" var="newValue"/> +<assertNull actual="newValue" id="initiallyNull"/> +<!-- attempt to change the value and make sure that it stays null --> +<nodeValue obj="newNode" value='"This should have no effect"'/> +<nodeValue obj="newNode" var="newValue"/> +<assertNull actual="newValue" id="nullAfterAttemptedChange"/> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_notationsremovenameditem1.xml b/test/testcases/tests/level1/core/hc_notationsremovenameditem1.xml new file mode 100644 index 0000000..b565e18 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_notationsremovenameditem1.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_notationsremovenameditem1"> +<metadata> +<title>hc_notationsremovenameditem1</title> +<creator>Curt Arnold</creator> +<description> +An attempt to add remove an notation should result in a NO_MODIFICATION_ERR. +</description> +<date qualifier="created">2004-01-11</date> +<!-- DocumentType.notations --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-D46829EF"/> +<!-- NamedNodeMap.removeNamedItem --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-D58B193"/> +</metadata> +<hasFeature feature='"XML"'/> +<var name="doc" type="Document"/> +<var name="notations" type="NamedNodeMap"/> +<var name="docType" type="DocumentType"/> +<var name="retval" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<doctype var="docType" obj="doc"/> +<if><not><contentType type="text/html"/></not> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<notations var="notations" obj="docType"/> +<assertNotNull actual="notations" id="notationsNotNull"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> + <NO_MODIFICATION_ALLOWED_ERR> + <removeNamedItem var="retval" obj="notations" name='"notation1"'/> + </NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_notationssetnameditem1.xml b/test/testcases/tests/level1/core/hc_notationssetnameditem1.xml new file mode 100644 index 0000000..575b80b --- /dev/null +++ b/test/testcases/tests/level1/core/hc_notationssetnameditem1.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_notationssetnameditem1"> +<metadata> +<title>hc_notationssetnameditem1</title> +<creator>Curt Arnold</creator> +<description> +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. +</description> +<date qualifier="created">2004-01-11</date> +<!-- DocumentType.notations --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-D46829EF"/> +<!-- NamedNodeMap.setNamedItem --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1025163788"/> +</metadata> +<hasFeature feature='"XML"'/> +<var name="doc" type="Document"/> +<var name="notations" type="NamedNodeMap"/> +<var name="docType" type="DocumentType"/> +<var name="retval" type="Node"/> +<var name="elem" type="Element"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<doctype var="docType" obj="doc"/> +<if><not><contentType type="text/html"/></not> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<notations var="notations" obj="docType"/> +<assertNotNull actual="notations" id="notationsNotNull"/> +<createElement var="elem" obj="doc" tagName='"br"'/> +<try> + <setNamedItem var="retval" obj="notations" arg="elem"/> + <fail id="throw_HIER_OR_NO_MOD_ERR"/> + <catch> + <DOMException code="HIERARCHY_REQUEST_ERR"/> + <DOMException code="NO_MODIFICATION_ALLOWED_ERR"/> + </catch> +</try> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_textindexsizeerrnegativeoffset.xml b/test/testcases/tests/level1/core/hc_textindexsizeerrnegativeoffset.xml new file mode 100644 index 0000000..7e51807 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_textindexsizeerrnegativeoffset.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_textindexsizeerrnegativeoffset"> +<metadata> +<title>hc_textIndexSizeErrNegativeOffset</title> +<creator>Curt Arnold</creator> +<description> + The "splitText(offset)" method raises an + INDEX_SIZE_ERR DOMException if the specified offset is + negative. + + Retrieve the textual data from the second child of the + third employee and invoke the "splitText(offset)" method. + The desired exception should be raised since the offset + is a negative number. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-38853C1D"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-38853C1D')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INDEX_SIZE_ERR'])"/> +</metadata> +<implementationAttribute name="signed" value="true"/> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="textNode" type="Text"/> +<var name="splitNode" type="Text"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"strong"'/> +<item interface="NodeList" obj="elementList" var="nameNode" index="2"/> +<firstChild interface="Node" obj="nameNode" var="textNode"/> +<assertDOMException id="throws_INDEX_SIZE_ERR"> +<INDEX_SIZE_ERR> +<splitText obj="textNode" var="splitNode" offset="-69"/> +</INDEX_SIZE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_textindexsizeerroffsetoutofbounds.xml b/test/testcases/tests/level1/core/hc_textindexsizeerroffsetoutofbounds.xml new file mode 100644 index 0000000..fc3f23b --- /dev/null +++ b/test/testcases/tests/level1/core/hc_textindexsizeerroffsetoutofbounds.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_textindexsizeerroffsetoutofbounds"> +<metadata> +<title>hc_textIndexSizeErrOffsetOutOfBounds</title> +<creator>Curt Arnold</creator> +<description> + The "splitText(offset)" method raises an + INDEX_SIZE_ERR DOMException if the specified offset is + greater than the number of characters in the Text node. + + Retrieve the textual data from the second child of the + third employee and invoke the "splitText(offset)" method. + The desired exception should be raised since the offset + is a greater than the number of characters in the Text + node. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-38853C1D"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-38853C1D')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="textNode" type="Text"/> +<var name="splitNode" type="Text"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"strong"'/> +<item interface="NodeList" obj="elementList" var="nameNode" index="2"/> +<firstChild interface="Node" obj="nameNode" var="textNode"/> +<assertDOMException id="throw_INDEX_SIZE_ERR"> +<INDEX_SIZE_ERR> +<splitText obj="textNode" var="splitNode" offset="300"/> +</INDEX_SIZE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/hc_textparseintolistofelements.xml b/test/testcases/tests/level1/core/hc_textparseintolistofelements.xml new file mode 100644 index 0000000..280b79c --- /dev/null +++ b/test/testcases/tests/level1/core/hc_textparseintolistofelements.xml @@ -0,0 +1,75 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_textparseintolistofelements"> +<metadata> +<title>hc_textParseIntoListOfElements</title> +<creator>Curt Arnold</creator> +<description> + Retrieve the textual data from the last child of the + second employee. That node is composed of two + EntityReference nodes and two Text nodes. After + the content node is parsed, the "acronym" Element + should contain four children with each one of the + EntityReferences containing one child. +</description> + +<date qualifier="created">2002-06-09</date> +<!--childNodes attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1451460987"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-11C98490"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-745549614"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="addressNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="child" type="Node"/> +<var name="value" type="DOMString"/> +<var name="grandChild" type="Node"/> +<var name="length" type="int"/> +<var name="result" type="List"/> +<var name="expectedNormal" type="List"> +<member>"β"</member> +<member>" Dallas, "</member> +<member>"γ"</member> +<member>"\n 98554"</member> +</var> +<var name="expectedExpanded" type="List"> +<member>"β Dallas, γ\n 98554"</member> +</var> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"acronym"'/> +<item interface="NodeList" obj="elementList" var="addressNode" index="1"/> +<childNodes obj="addressNode" var="childList"/> +<length var="length" obj="childList" interface="NodeList"/> +<for-each collection="childList" member="child"> + <nodeValue obj="child" var="value"/> + <if> + <isNull obj="value"/> + <firstChild interface="Node" obj="child" var="grandChild"/> + <assertNotNull actual="grandChild" id="grandChildNotNull"/> + <nodeValue obj="grandChild" var="value"/> + <append collection="result" item="value"/> + <else> + <append collection="result" item="value"/> + </else> + </if> +</for-each> +<if><equals actual="length" expected="1" ignoreCase="false"/> + <assertEquals actual="result" expected="expectedExpanded" ignoreCase="false" id="assertEqCoalescing"/> + <else> + <assertEquals actual="result" expected="expectedNormal" ignoreCase="false" id="assertEqNormal"/> + </else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/hc_textsplittextfour.xml b/test/testcases/tests/level1/core/hc_textsplittextfour.xml new file mode 100644 index 0000000..0adfa92 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_textsplittextfour.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_textsplittextfour"> +<metadata> +<title>hc_textSplitTextFour</title> +<creator>Curt Arnold</creator> +<description> + The "splitText(offset)" method returns the new Text node. + + Retrieve the textual data from the last child of the + first employee and invoke the "splitText(offset)" method. + The method should return the new Text node. The offset + value used for this test is 30. The "getNodeValue()" + method is called to check that the new node now contains + the characters at and after position 30. + (Starting count at 0) +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-38853C1D"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="addressNode" type="Node"/> +<var name="textNode" type="Text"/> +<var name="splitNode" type="Text"/> +<var name="value" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"acronym"'/> +<item interface="NodeList" obj="elementList" var="addressNode" index="0"/> +<firstChild interface="Node" obj="addressNode" var="textNode"/> +<splitText obj="textNode" var="splitNode" offset="30"/> +<nodeValue obj="splitNode" var="value"/> +<assertEquals actual="value" expected='"98551"' id="textSplitTextFourAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_textsplittextone.xml b/test/testcases/tests/level1/core/hc_textsplittextone.xml new file mode 100644 index 0000000..9fc5307 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_textsplittextone.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_textsplittextone"> +<metadata> +<title>hc_textSplitTextOne</title> +<creator>Curt Arnold</creator> +<description> + The "splitText(offset)" method breaks the Text node into + two Text nodes at the specified offset keeping each node + as siblings in the tree. + + Retrieve the textual data from the second child of the + third employee and invoke the "splitText(offset)" method. + The method splits the Text node into two new sibling + Text nodes keeping both of them in the tree. This test + checks the "nextSibling()" method of the original node + to ensure that the two nodes are indeed siblings. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-38853C1D"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="textNode" type="Text"/> +<var name="splitNode" type="Text"/> +<var name="secondPart" type="Node"/> +<var name="value" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"strong"'/> +<item interface="NodeList" obj="elementList" var="nameNode" index="2"/> +<firstChild interface="Node" obj="nameNode" var="textNode"/> +<splitText obj="textNode" var="splitNode" offset="7"/> +<nextSibling interface="Node" obj="textNode" var="secondPart"/> +<nodeValue obj="secondPart" var="value"/> +<assertEquals actual="value" expected='"Jones"' id="textSplitTextOneAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_textsplittextthree.xml b/test/testcases/tests/level1/core/hc_textsplittextthree.xml new file mode 100644 index 0000000..bb4f55b --- /dev/null +++ b/test/testcases/tests/level1/core/hc_textsplittextthree.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_textsplittextthree"> +<metadata> +<title>hc_textSplitTextThree</title> +<creator>Curt Arnold</creator> +<description> + After the "splitText(offset)" method breaks the Text node + into two Text nodes, the new Text node contains all the + content at and after the offset point. + + Retrieve the textual data from the second child of the + third employee and invoke the "splitText(offset)" method. + The new Text node should contain all the content + at and after the offset point. The "getNodeValue()" + method is called to check that the new node now contains + the characters at and after position seven. + (Starting count at 0) +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-38853C1D"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="textNode" type="Text"/> +<var name="splitNode" type="Text"/> +<var name="value" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"strong"'/> +<item interface="NodeList" obj="elementList" var="nameNode" index="2"/> +<firstChild interface="Node" obj="nameNode" var="textNode"/> +<splitText obj="textNode" var="splitNode" offset="6"/> +<nodeValue obj="splitNode" var="value"/> +<assertEquals actual="value" expected='" Jones"' id="textSplitTextThreeAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_textsplittexttwo.xml b/test/testcases/tests/level1/core/hc_textsplittexttwo.xml new file mode 100644 index 0000000..86f8f17 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_textsplittexttwo.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_textsplittexttwo"> +<metadata> +<title>hc_textSplitTextTwo</title> +<creator>Curt Arnold</creator> +<description> + After the "splitText(offset)" method breaks the Text node + into two Text nodes, the original node contains all the + content up to the offset point. + + Retrieve the textual data from the second child of the + third employee and invoke the "splitText(offset)" method. + The original Text node should contain all the content + up to the offset point. The "getNodeValue()" method + is called to check that the original node now contains + the first five characters. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-38853C1D"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="textNode" type="Text"/> +<var name="splitNode" type="Text"/> +<var name="value" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"strong"'/> +<item interface="NodeList" obj="elementList" var="nameNode" index="2"/> +<firstChild interface="Node" obj="nameNode" var="textNode"/> +<splitText obj="textNode" var="splitNode" offset="5"/> +<nodeValue obj="textNode" var="value"/> +<assertEquals actual="value" expected='"Roger"' id="textSplitTextTwoAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/hc_textwithnomarkup.xml b/test/testcases/tests/level1/core/hc_textwithnomarkup.xml new file mode 100644 index 0000000..3b263c5 --- /dev/null +++ b/test/testcases/tests/level1/core/hc_textwithnomarkup.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hc_textwithnomarkup"> +<metadata> +<title>hc_textWithNoMarkup</title> +<creator>Curt Arnold</creator> +<description> + If there is not any markup inside an Element or Attr node + content, then the text is contained in a single object + implementing the Text interface that is the only child + of the element. + + Retrieve the textual data from the second child of the + third employee. That Text node contains a block of + multiple text lines without markup, so they should be + treated as a single Text node. The "getNodeValue()" + method should contain the combination of the two lines. +</description> + +<date qualifier="created">2002-06-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1312295772"/> +<!--nodeValue attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="nodeV" type="Node"/> +<var name="value" type="DOMString"/> +<load var="doc" href="hc_staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"strong"'/> +<item interface="NodeList" obj="elementList" var="nameNode" index="2"/> +<firstChild interface="Node" obj="nameNode" var="nodeV"/> +<nodeValue obj="nodeV" var="value"/> +<assertEquals actual="value" expected='"Roger\n Jones"' id="textWithNoMarkupAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/metadata.xml b/test/testcases/tests/level1/core/metadata.xml new file mode 100644 index 0000000..6826b5c --- /dev/null +++ b/test/testcases/tests/level1/core/metadata.xml @@ -0,0 +1,15 @@ +<?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 metadata SYSTEM "dom1.dtd"> + +<metadata xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"> +</metadata> diff --git a/test/testcases/tests/level1/core/namednodemapchildnoderange.xml b/test/testcases/tests/level1/core/namednodemapchildnoderange.xml new file mode 100644 index 0000000..12dbd09 --- /dev/null +++ b/test/testcases/tests/level1/core/namednodemapchildnoderange.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="namednodemapchildnoderange"> +<metadata> +<title>namednodemapChildNodeRange</title> +<creator>NIST</creator> +<description> + The range of valid child node indices is 0 to Length -1. + + Create a NamedNodeMap object from the attributes of the + last child of the third employee and traverse the + list from index 0 thru length -1. All indices should + be valid. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--attributes attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +<!--item--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-349467F9"/> +<!--length attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6D0FB19E"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="child" type="Node"/> +<var name="length" type="int"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""address""/> +<item interface="NodeList" obj="elementList" var="testEmployee" index="2"/> +<attributes obj="testEmployee" var="attributes"/> +<length var="length" obj="attributes" interface="NamedNodeMap"/> +<assertEquals actual="length" expected="2" id="length" ignoreCase="false"/> +<item var="child" index="0" obj="attributes" interface="NamedNodeMap"/> +<item var="child" index="1" obj="attributes" interface="NamedNodeMap"/> +</test> diff --git a/test/testcases/tests/level1/core/namednodemapgetnameditem.xml b/test/testcases/tests/level1/core/namednodemapgetnameditem.xml new file mode 100644 index 0000000..ab7a012 --- /dev/null +++ b/test/testcases/tests/level1/core/namednodemapgetnameditem.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="namednodemapgetnameditem"> +<metadata> +<title>namednodemapGetNamedItem</title> +<creator>NIST</creator> +<description> + The "getNamedItem(name)" method retrieves a node + specified by name. + + Retrieve the second employee and create a NamedNodeMap + listing of the attributes of the last child. Once the + list is created an invocation of the "getNamedItem(name)" + method is done with name="domestic". This should result + in the domestic Attr node being returned. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1074577549"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-349467F9"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="domesticAttr" type="Attr"/> +<var name="attrName" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""address""/> +<item interface="NodeList" obj="elementList" var="testEmployee" index="1"/> +<attributes obj="testEmployee" var="attributes"/> +<getNamedItem obj="attributes" var="domesticAttr" name=""domestic""/> +<nodeName obj="domesticAttr" var="attrName"/> +<assertEquals actual="attrName" expected=""domestic"" id="namednodemapGetNamedItemAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/namednodemapinuseattributeerr.xml b/test/testcases/tests/level1/core/namednodemapinuseattributeerr.xml new file mode 100644 index 0000000..9a530a6 --- /dev/null +++ b/test/testcases/tests/level1/core/namednodemapinuseattributeerr.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="namednodemapinuseattributeerr"> +<metadata> +<title>namedNodeMapInUseAttributeErr</title> +<creator>NIST</creator> +<description> +The "setNamedItem(arg)" method raises a +INUSE_ATTRIBUTE_ERR DOMException if "arg" is an +Attr that is already in an attribute of another Element. + +Create a NamedNodeMap object from the attributes of the +last child of the third employee and attempt to add +an attribute that is already being used by the first +employee. This should raise the desired exception. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INUSE_ATTRIBUTE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1025163788"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-1025163788')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INUSE_ATTRIBUTE_ERR'])"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="firstNode" type="Element"/> +<var name="testNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="domesticAttr" type="Attr"/> +<var name="setAttr" type="Attr"/> +<var name="setNode" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""address""/> +<item interface="NodeList" obj="elementList" var="firstNode" index="0"/> +<createAttribute obj="doc" var="domesticAttr" name=""domestic""/> +<value interface="Attr" obj="domesticAttr" value=""Yes""/> +<setAttributeNode var="setAttr" obj="firstNode" newAttr="domesticAttr"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""address""/> +<item interface="NodeList" obj="elementList" var="testNode" index="2"/> +<attributes obj="testNode" var="attributes"/> +<assertDOMException id="throw_INUSE_ATTRIBUTE_ERR"> +<INUSE_ATTRIBUTE_ERR> +<setNamedItem var="setNode" interface="NamedNodeMap" obj="attributes" arg="domesticAttr"/> +</INUSE_ATTRIBUTE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/namednodemapnotfounderr.xml b/test/testcases/tests/level1/core/namednodemapnotfounderr.xml new file mode 100644 index 0000000..f608066 --- /dev/null +++ b/test/testcases/tests/level1/core/namednodemapnotfounderr.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="namednodemapnotfounderr"> +<metadata> +<title>namednodemapNotFoundErr</title> +<creator>NIST</creator> +<description> + The "removeNamedItem(name)" method raises a + NOT_FOUND_ERR DOMException if there is not a node + named "name" in the map. + + Create a NamedNodeMap object from the attributes of the + last child of the third employee and attempt to remove + the "district" attribute. There is not a node named + "district" in the list and therefore the desired + exception should be raised. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INUSE_ATTRIBUTE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-D58B193"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-D58B193')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INUSE_ATTRIBUTE_ERR'])"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Element"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="removedNode" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""address""/> +<item interface="NodeList" obj="elementList" var="testEmployee" index="2"/> +<attributes obj="testEmployee" var="attributes"/> +<assertDOMException id="throw_NOT_FOUND_ERR"> +<NOT_FOUND_ERR> +<removeNamedItem var="removedNode" interface="NamedNodeMap" obj="attributes" name=""district""/> +</NOT_FOUND_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/namednodemapnumberofnodes.xml b/test/testcases/tests/level1/core/namednodemapnumberofnodes.xml new file mode 100644 index 0000000..03c61f5 --- /dev/null +++ b/test/testcases/tests/level1/core/namednodemapnumberofnodes.xml @@ -0,0 +1,45 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="namednodemapnumberofnodes"> +<metadata> +<title>namednodemapNumberOfNodes</title> +<creator>NIST</creator> +<description> + The "getLength()" method returns the number of nodes + in the map. + + Retrieve the second employee and create a NamedNodeMap + listing of the attributes of the last child. Once the + list is created an invocation of the "getLength()" + method is executed. The number of nodes should be 2. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--attributes attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +<!--length attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6D0FB19E"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="length" type="int"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""address""/> +<item interface="NodeList" obj="elementList" var="testEmployee" index="2"/> +<attributes obj="testEmployee" var="attributes"/> +<length var="length" obj="attributes" interface="NamedNodeMap"/> +<assertEquals actual="length" expected="2" id="length" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/namednodemapremovenameditem.xml b/test/testcases/tests/level1/core/namednodemapremovenameditem.xml new file mode 100644 index 0000000..da7c3c2 --- /dev/null +++ b/test/testcases/tests/level1/core/namednodemapremovenameditem.xml @@ -0,0 +1,54 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="namednodemapremovenameditem"> +<metadata> +<title>namednodemapRemoveNamedItem</title> +<creator>NIST</creator> +<description> + The "removeNamedItem(name)" method removes a node + specified by name. + + Retrieve the third employee and create a NamedNodeMap + object of the attributes of the last child. Once the + list is created invoke the "removeNamedItem(name)" + method with name="street". This should result + in the removal of the specified attribute and + the "getSpecified()" method should return false. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-D58B193"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-349467F9"/> +<!-- DOM WG opinion on default attributes --> +<subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2002Mar/0002.html"/> +</metadata> +<implementationAttribute name="validating" value="true"/> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddress" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="streetAttr" type="Attr"/> +<var name="specified" type="boolean"/> +<var name="removedNode" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""address""/> +<item interface="NodeList" obj="elementList" var="testAddress" index="2"/> +<attributes obj="testAddress" var="attributes"/> +<assertNotNull actual="attributes" id="attributesNotNull"/> +<removeNamedItem var="removedNode" interface="NamedNodeMap" obj="attributes" name=""street""/> +<getNamedItem obj="attributes" var="streetAttr" name=""street""/> +<assertNotNull actual="streetAttr" id="streetAttrNotNull"/> +<specified obj="streetAttr" var="specified"/> +<assertFalse actual="specified" id="attrNotSpecified"/> +</test> diff --git a/test/testcases/tests/level1/core/namednodemapremovenameditemgetvalue.xml b/test/testcases/tests/level1/core/namednodemapremovenameditemgetvalue.xml new file mode 100644 index 0000000..f1d221f --- /dev/null +++ b/test/testcases/tests/level1/core/namednodemapremovenameditemgetvalue.xml @@ -0,0 +1,56 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="namednodemapremovenameditemgetvalue"> +<metadata> +<title>namednodemapRemoveNamedItemGetValue</title> +<creator>NIST</creator> +<description> + If the node removed by the "removeNamedItem(name)" method + is an Attr node with a default value it is immediately + replaced. + + Retrieve the third employee and create a NamedNodeMap + object of the attributes of the last child. Once the + list is created invoke the "removeNamedItem(name)" + method with name="street". The "removeNamedItem(name)" + method should remove the "street" attribute and since + it has a default value of "Yes", that value should + immediately be the attributes value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-D58B193"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-349467F9"/> +<!-- DOM WG opinion on default attributes --> +<subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2002Mar/0002.html"/> +</metadata> +<implementationAttribute name="validating" value="true"/> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="streetAttr" type="Attr"/> +<var name="value" type="DOMString"/> +<var name="removedNode" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""address""/> +<item interface="NodeList" obj="elementList" var="testEmployee" index="2"/> +<attributes obj="testEmployee" var="attributes"/> +<assertNotNull actual="attributes" id="attributesNotNull"/> +<removeNamedItem var="removedNode" obj="attributes" name=""street""/> +<getNamedItem obj="attributes" var="streetAttr" name=""street""/> +<assertNotNull actual="streetAttr" id="streetAttrNotNull"/> +<value interface="Attr" obj="streetAttr" var="value"/> +<assertEquals actual="value" expected=""Yes"" id="namednodemapRemoveNamedItemGetValueAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/namednodemapremovenameditemreturnnodevalue.xml b/test/testcases/tests/level1/core/namednodemapremovenameditemreturnnodevalue.xml new file mode 100644 index 0000000..043edfe --- /dev/null +++ b/test/testcases/tests/level1/core/namednodemapremovenameditemreturnnodevalue.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="namednodemapremovenameditemreturnnodevalue"> +<metadata> +<title>namednodemapRemoveNamedItemReturnNodeValue</title> +<creator>NIST</creator> +<description> + The "removeNamedItem(name)" method returns the node + removed from the map. + + Retrieve the third employee and create a NamedNodeMap + object of the attributes of the last child. Once the + list is created invoke the "removeNamedItem(name)" + method with name="street". The "removeNamedItem(name)" + method should remove the existing "street" attribute + and return it. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-D58B193"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-349467F9"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddress" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="removedNode" type="Node"/> +<var name="value" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""address""/> +<item interface="NodeList" obj="elementList" var="testAddress" index="2"/> +<attributes obj="testAddress" var="attributes"/> +<removeNamedItem interface="NamedNodeMap" obj="attributes" var="removedNode" name=""street""/> +<nodeValue obj="removedNode" var="value"/> +<assertEquals actual="value" expected=""No"" id="namednodemapRemoveNamedItemReturnNodeValueAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/namednodemapreturnattrnode.xml b/test/testcases/tests/level1/core/namednodemapreturnattrnode.xml new file mode 100644 index 0000000..ed53288 --- /dev/null +++ b/test/testcases/tests/level1/core/namednodemapreturnattrnode.xml @@ -0,0 +1,55 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="namednodemapreturnattrnode"> +<metadata> +<title>namednodemapReturnAttrNode</title> +<creator>NIST</creator> +<description> + The "getNamedItem(name)" method returns a node of any + type specified by name. + + Retrieve the second employee and create a NamedNodeMap + listing of the attributes of the last child. Once the + list is created an invocation of the "getNamedItem(name)" + method is done with name="street". This should result + in the method returning an Attr node. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--getNamedItem--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1074577549"/> +<!--attributes attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +<!--name attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1112119403"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="streetAttr" type="Node"/> +<var name="attrName" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""address""/> +<item interface="NodeList" obj="elementList" var="testEmployee" index="1"/> +<attributes obj="testEmployee" var="attributes"/> +<getNamedItem obj="attributes" var="streetAttr" name=""street""/> +<assertInstanceOf obj="streetAttr" type="Attr" id="typeAssert"/> +<nodeName obj="streetAttr" var="attrName"/> +<assertEquals actual="attrName" expected=""street"" id="nodeName" ignoreCase="false"/> +<name obj="streetAttr" var="attrName" interface="Attr"/> +<assertEquals actual="attrName" expected=""street"" id="attrName" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/namednodemapreturnfirstitem.xml b/test/testcases/tests/level1/core/namednodemapreturnfirstitem.xml new file mode 100644 index 0000000..1eb5004 --- /dev/null +++ b/test/testcases/tests/level1/core/namednodemapreturnfirstitem.xml @@ -0,0 +1,51 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="namednodemapreturnfirstitem"> +<metadata> +<title>namednodemapReturnFirstItem</title> +<creator>NIST</creator> +<description> + The "item(index)" method returns the indexth item in + the map(test for first item). + + Retrieve the second employee and create a NamedNodeMap + listing of the attributes of the last child. Since the + DOM does not specify an order of these nodes the contents + of the FIRST node can contain either "domestic" or "street". + The test should return "true" if the FIRST node is either + of these values. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-349467F9"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddress" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="child" type="Node"/> +<var name="name" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""address""/> +<item interface="NodeList" obj="elementList" var="testAddress" index="1"/> +<attributes obj="testAddress" var="attributes"/> +<item interface="NamedNodeMap" obj="attributes" var="child" index="0"/> +<nodeName obj="child" var="name"/> +<assertTrue id="namednodemapReturnFirstItemAssert"> +<or> +<equals actual="name" expected=""domestic"" ignoreCase="false"/> +<equals actual="name" expected=""street"" ignoreCase="false"/> +</or> +</assertTrue> +</test> diff --git a/test/testcases/tests/level1/core/namednodemapreturnlastitem.xml b/test/testcases/tests/level1/core/namednodemapreturnlastitem.xml new file mode 100644 index 0000000..cc6bd27 --- /dev/null +++ b/test/testcases/tests/level1/core/namednodemapreturnlastitem.xml @@ -0,0 +1,51 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="namednodemapreturnlastitem"> +<metadata> +<title>namednodemapReturnLastItem</title> +<creator>NIST</creator> +<description> + The "item(index)" method returns the indexth item in + the map(test for last item). + + Retrieve the second employee and create a NamedNodeMap + listing of the attributes of the last child. Since the + DOM does not specify an order of these nodes the contents + of the LAST node can contain either "domestic" or "street". + The test should return "true" if the LAST node is either + of these values. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-349467F9"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="child" type="Node"/> +<var name="name" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""address""/> +<item interface="NodeList" obj="elementList" var="testEmployee" index="1"/> +<attributes obj="testEmployee" var="attributes"/> +<item interface="NamedNodeMap" obj="attributes" var="child" index="1"/> +<nodeName obj="child" var="name"/> +<assertTrue id="namednodemapReturnLastItemAssert"> +<or> +<equals actual="name" expected=""domestic"" ignoreCase="false"/> +<equals actual="name" expected=""street"" ignoreCase="false"/> +</or> +</assertTrue> +</test> diff --git a/test/testcases/tests/level1/core/namednodemapreturnnull.xml b/test/testcases/tests/level1/core/namednodemapreturnnull.xml new file mode 100644 index 0000000..fef7d3c --- /dev/null +++ b/test/testcases/tests/level1/core/namednodemapreturnnull.xml @@ -0,0 +1,45 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="namednodemapreturnnull"> +<metadata> +<title>namednodemapReturnNull</title> +<creator>NIST</creator> +<description> + The "getNamedItem(name)" method returns null of the + specified name did not identify any node in the map. + + Retrieve the second employee and create a NamedNodeMap + listing of the attributes of the last child. Once the + list is created an invocation of the "getNamedItem(name)" + method is done with name="district". This name does not + match any names in the list therefore the method should + return null. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--getNamedItem--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1074577549"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testEmployee" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="districtNode" type="Attr"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""address""/> +<item interface="NodeList" obj="elementList" var="testEmployee" index="1"/> +<attributes obj="testEmployee" var="attributes"/> +<getNamedItem obj="attributes" var="districtNode" name=""district""/> +<assertNull actual="districtNode" id="namednodemapReturnNullAssert"/> +</test> diff --git a/test/testcases/tests/level1/core/namednodemapsetnameditem.xml b/test/testcases/tests/level1/core/namednodemapsetnameditem.xml new file mode 100644 index 0000000..6114520 --- /dev/null +++ b/test/testcases/tests/level1/core/namednodemapsetnameditem.xml @@ -0,0 +1,56 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="namednodemapsetnameditem"> +<metadata> +<title>namednodemapSetNamedItem</title> +<creator>NIST</creator> +<description> + The "setNamedItem(arg)" method adds a node using its + nodeName attribute. + + Retrieve the second employee and create a NamedNodeMap + object from the attributes of the last child by + invoking the "getAttributes()" method. Once the + list is created an invocation of the "setNamedItem(arg)" + method is done with arg=newAttr, where newAttr is a + new Attr Node previously created. The "setNamedItem(arg)" + method should add then new node to the NamedNodeItem + object by using its "nodeName" attribute("district'). + This node is then retrieved using the "getNamedItem(name)" + method. This test uses the "createAttribute(name)" + method from the document interface. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1025163788"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-349467F9"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="newAttribute" type="Attr"/> +<var name="testAddress" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="districtNode" type="Attr"/> +<var name="attrName" type="DOMString"/> +<var name="setNode" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""address""/> +<item interface="NodeList" obj="elementList" var="testAddress" index="1"/> +<createAttribute obj="doc" var="newAttribute" name=""district""/> +<attributes obj="testAddress" var="attributes"/> +<setNamedItem var="setNode" obj="attributes" arg="newAttribute"/> +<getNamedItem obj="attributes" var="districtNode" name=""district""/> +<nodeName obj="districtNode" var="attrName"/> +<assertEquals actual="attrName" expected=""district"" id="namednodemapSetNamedItemAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/namednodemapsetnameditemreturnvalue.xml b/test/testcases/tests/level1/core/namednodemapsetnameditemreturnvalue.xml new file mode 100644 index 0000000..948c972 --- /dev/null +++ b/test/testcases/tests/level1/core/namednodemapsetnameditemreturnvalue.xml @@ -0,0 +1,56 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="namednodemapsetnameditemreturnvalue"> +<metadata> +<title>namednodemapSetNamedItemReturnValue</title> +<creator>NIST</creator> +<description> + If the "setNamedItem(arg)" method replaces an already + existing node with the same name then the already + existing node is returned. + + Retrieve the third employee and create a NamedNodeMap + object from the attributes of the last child by + invoking the "getAttributes()" method. Once the + list is created an invocation of the "setNamedItem(arg)" + method is done with arg=newAttr, where newAttr is a + new Attr Node previously created and whose node name + already exists in the map. The "setNamedItem(arg)" + method should replace the already existing node with + the new one and return the existing node. + This test uses the "createAttribute(name)" method from + the document interface. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1025163788"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-349467F9"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="newAttribute" type="Attr"/> +<var name="testAddress" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="newNode" type="Node"/> +<var name="attrValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""address""/> +<item interface="NodeList" obj="elementList" var="testAddress" index="2"/> +<createAttribute obj="doc" var="newAttribute" name=""street""/> +<attributes obj="testAddress" var="attributes"/> +<setNamedItem interface="NamedNodeMap" obj="attributes" var="newNode" arg="newAttribute"/> +<nodeValue obj="newNode" var="attrValue"/> +<assertEquals actual="attrValue" expected=""No"" + id="returnedNodeValue" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/namednodemapsetnameditemthatexists.xml b/test/testcases/tests/level1/core/namednodemapsetnameditemthatexists.xml new file mode 100644 index 0000000..7ae5aac --- /dev/null +++ b/test/testcases/tests/level1/core/namednodemapsetnameditemthatexists.xml @@ -0,0 +1,59 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="namednodemapsetnameditemthatexists"> +<metadata> +<title>namednodemapSetNamedItemThatExists</title> +<creator>NIST</creator> +<description> + If the node to be added by the "setNamedItem(arg)" method + already exists in the NamedNodeMap, it is replaced by + the new one. + + Retrieve the second employee and create a NamedNodeMap + object from the attributes of the last child by + invoking the "getAttributes()" method. Once the + list is created an invocation of the "setNamedItem(arg)" + method is done with arg=newAttr, where newAttr is a + new Attr Node previously created and whose node name + already exists in the map. The "setNamedItem(arg)" + method should replace the already existing node with + the new one. + This node is then retrieved using the "getNamedItem(name)" + method. This test uses the "createAttribute(name)" + method from the document interface +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1025163788"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-349467F9"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="newAttribute" type="Attr"/> +<var name="testAddress" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="districtNode" type="Attr"/> +<var name="attrValue" type="DOMString"/> +<var name="setNode" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""address""/> +<item interface="NodeList" obj="elementList" var="testAddress" index="1"/> +<createAttribute obj="doc" var="newAttribute" name=""street""/> +<attributes obj="testAddress" var="attributes"/> +<setNamedItem var="setNode" obj="attributes" arg="newAttribute"/> +<getNamedItem obj="attributes" var="districtNode" name=""street""/> +<nodeValue obj="districtNode" var="attrValue"/> +<assertEquals actual="attrValue" expected="""" + id="streetValue" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/namednodemapsetnameditemwithnewvalue.xml b/test/testcases/tests/level1/core/namednodemapsetnameditemwithnewvalue.xml new file mode 100644 index 0000000..bfc17a7 --- /dev/null +++ b/test/testcases/tests/level1/core/namednodemapsetnameditemwithnewvalue.xml @@ -0,0 +1,50 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="namednodemapsetnameditemwithnewvalue"> +<metadata> +<title>namednodemapSetNamedItemWithNewValue</title> +<creator>NIST</creator> +<description> + If the "setNamedItem(arg)" method does not replace an + existing node with the same name then it returns null. + + Retrieve the third employee and create a NamedNodeMap + object from the attributes of the last child. + Once the list is created the "setNamedItem(arg)" method + is invoked with arg=newAttr, where newAttr is a + newly created Attr Node and whose node name + already exists in the map. The "setNamedItem(arg)" + method should add the new node and return null. + This test uses the "createAttribute(name)" method from + the document interface. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1025163788"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-349467F9"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="newAttribute" type="Attr"/> +<var name="testAddress" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="newNode" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""address""/> +<item interface="NodeList" obj="elementList" var="testAddress" index="2"/> +<createAttribute obj="doc" var="newAttribute" name=""district""/> +<attributes obj="testAddress" var="attributes"/> +<setNamedItem interface="NamedNodeMap" obj="attributes" var="newNode" arg="newAttribute"/> +<assertNull actual="newNode" id="returnedNodeNull"/> +</test> diff --git a/test/testcases/tests/level1/core/namednodemapwrongdocumenterr.xml b/test/testcases/tests/level1/core/namednodemapwrongdocumenterr.xml new file mode 100644 index 0000000..9f1971c --- /dev/null +++ b/test/testcases/tests/level1/core/namednodemapwrongdocumenterr.xml @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="namednodemapwrongdocumenterr"> +<metadata> +<title>namednodemapWrongDocumentErr</title> +<creator>NIST</creator> +<description> + The "setNamedItem(arg)" method raises a + WRONG_DOCUMENT_ERR DOMException if "arg" was created + from a different document than the one that created + the NamedNodeMap. + + Create a NamedNodeMap object from the attributes of the + last child of the third employee and attempt to add + another Attr node to it that was created from a + different DOM document. This should raise the desired + exception. This method uses the "createAttribute(name)" + method from the Document interface. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='WRONG_DOCUMENT_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1025163788"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-1025163788')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='WRONG_DOCUMENT_ERR'])"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc1" type="Document"/> +<var name="doc2" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddress" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="newAttribute" type="Node"/> +<var name="setNode" type="Node"/> +<load var="doc1" href="staff" willBeModified="true"/> +<load var="doc2" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc1" var="elementList" tagname=""address""/> +<item interface="NodeList" obj="elementList" var="testAddress" index="2"/> +<createAttribute obj="doc2" var="newAttribute" name=""newAttribute""/> +<attributes obj="testAddress" var="attributes"/> +<assertDOMException id="throw_WRONG_DOCUMENT_ERR"> +<WRONG_DOCUMENT_ERR> +<setNamedItem var="setNode" obj="attributes" arg="newAttribute"/> +</WRONG_DOCUMENT_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/nodeappendchild.xml b/test/testcases/tests/level1/core/nodeappendchild.xml new file mode 100644 index 0000000..1af00a1 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeappendchild.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeappendchild"> +<metadata> +<title>nodeAppendChild</title> +<creator>NIST</creator> +<description> + The "appendChild(newChild)" method adds the node + "newChild" to the end of the list of children of the + node. + + Retrieve the second employee and append a new Element + node to the list of children. The last node in the list + is then retrieved and its NodeName examined. The + "getNodeName()" method should return "newChild". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="createdNode" type="Node"/> +<var name="lchild" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="appendedChild" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<createElement obj="doc" tagName=""newChild"" var="createdNode"/> +<appendChild var="appendedChild" obj="employeeNode" newChild="createdNode"/> +<lastChild interface="Node" obj="employeeNode" var="lchild"/> +<nodeName obj="lchild" var="childName"/> +<assertEquals actual="childName" expected=""newChild"" id="nodeAppendChildAssert1" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeappendchildchildexists.xml b/test/testcases/tests/level1/core/nodeappendchildchildexists.xml new file mode 100644 index 0000000..f8d1888 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeappendchildchildexists.xml @@ -0,0 +1,60 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeappendchildchildexists"> +<metadata> +<title>nodeAppendChildChildExists</title> +<creator>NIST</creator> +<description> + If the "newChild" is already in the tree, it is first + removed before the new one is appended. + + Retrieve the first child of the second employee and + append the first child to the end of the list. After + the "appendChild(newChild)" method is invoked the first + child should be the one that was second and the last + child should be the one that was first. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="childNode" type="Node"/> +<var name="newChild" type="Node"/> +<var name="lchild" type="Node"/> +<var name="fchild" type="Node"/> +<var name="lchildName" type="DOMString"/> +<var name="fchildName" type="DOMString"/> +<var name="appendedChild" type="Node"/> +<var name="initialName" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"employee"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="childNode"/> +<firstChild interface="Node" obj="childNode" var="newChild"/> +<nodeName var="initialName" obj="newChild"/> +<appendChild var="appendedChild" obj="childNode" newChild="newChild"/> +<firstChild interface="Node" obj="childNode" var="fchild"/> +<nodeName obj="fchild" var="fchildName"/> +<lastChild interface="Node" obj="childNode" var="lchild"/> +<nodeName obj="lchild" var="lchildName"/> +<if><equals actual="initialName" expected='"employeeId"' ignoreCase="false"/> + <assertEquals id="assert1_nowhitespace" actual="fchildName" expected='"name"' ignoreCase="false"/> + <assertEquals id="assert2_nowhitespace" actual="lchildName" expected='"employeeId"' ignoreCase="false"/> +<else> + <assertEquals id="assert1" actual="fchildName" expected='"employeeId"' ignoreCase="false"/> + <assertEquals id="assert2" actual="lchildName" expected='"#text"' ignoreCase="false"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/nodeappendchilddocfragment.xml b/test/testcases/tests/level1/core/nodeappendchilddocfragment.xml new file mode 100644 index 0000000..b10cdc0 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeappendchilddocfragment.xml @@ -0,0 +1,70 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeappendchilddocfragment"> +<metadata> +<title>nodeAppendChildDocFragment</title> +<creator>NIST</creator> +<description> + Create and populate a new DocumentFragment object and + append it to the second employee. After the + "appendChild(newChild)" method is invoked retrieve the + new nodes at the end of the list, they should be the + two Element nodes from the DocumentFragment. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="newdocFragment" type="DocumentFragment"/> +<var name="newChild1" type="Node"/> +<var name="newChild2" type="Node"/> +<var name="child" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="result" type="List"/> +<var name="nodeType" type="int"/> +<var name="appendedChild" type="Node"/> +<var name="expected" type="List"> +<member>"employeeId"</member> +<member>"name"</member> +<member>"position"</member> +<member>"salary"</member> +<member>"gender"</member> +<member>"address"</member> +<member>"newChild1"</member> +<member>"newChild2"</member> +</var> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" + tagname='"employee"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<createDocumentFragment obj="doc" var="newdocFragment"/> +<createElement obj="doc" tagName=""newChild1"" var="newChild1"/> +<createElement obj="doc" tagName=""newChild2"" var="newChild2"/> +<appendChild var="appendedChild" obj="newdocFragment" newChild="newChild1"/> +<appendChild var="appendedChild" obj="newdocFragment" newChild="newChild2"/> +<appendChild var="appendedChild" obj="employeeNode" newChild="newdocFragment"/> +<for-each collection="childList" member="child"> +<nodeType var="nodeType" obj="child"/> +<if><equals actual="nodeType" expected="1" ignoreCase="false"/> + <nodeName var="childName" obj="child"/> + <append collection="result" item="childName"/> +</if> +</for-each> +<assertEquals actual="result" expected="expected" ignoreCase="false" id="elementNames"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeappendchildgetnodename.xml b/test/testcases/tests/level1/core/nodeappendchildgetnodename.xml new file mode 100644 index 0000000..bf34ad1 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeappendchildgetnodename.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeappendchildgetnodename"> +<metadata> +<title>nodeAppendChildGetNodeName</title> +<creator>NIST</creator> +<description> + The "appendChild(newChild)" method returns the node + added. + + Append a newly created node to the child list of the + second employee and check the NodeName returned. The + "getNodeName()" method should return "newChild". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="newChild" type="Node"/> +<var name="appendNode" type="Node"/> +<var name="childName" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<createElement obj="doc" tagName=""newChild"" var="newChild"/> +<appendChild obj="employeeNode" newChild="newChild" var="appendNode"/> +<nodeName obj="appendNode" var="childName"/> +<assertEquals actual="childName" expected=""newChild"" id="nodeAppendChildGetNodeNameAssert1" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeappendchildinvalidnodetype.xml b/test/testcases/tests/level1/core/nodeappendchildinvalidnodetype.xml new file mode 100644 index 0000000..fa17937 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeappendchildinvalidnodetype.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeappendchildinvalidnodetype"> +<metadata> +<title>nodeAppendChildInvalidNodeType</title> +<creator>NIST</creator> +<description> + The "appendChild(newChild)" method raises a + HIERARCHY_REQUEST_ERR DOMException if this node is of + a type that does not allow children of the type "newChild" + to be inserted. + + Retrieve the root node and attempt to append a newly + created Attr node. An Element node cannot have children + of the "Attr" type, therefore the desired exception + should be raised. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='HIERARCHY_REQUEST_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-184E7107')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='HIERARCHY_REQUEST_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="rootNode" type="Element"/> +<var name="newChild" type="Node"/> +<var name="appendedChild" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<documentElement obj="doc" var="rootNode"/> +<createAttribute obj="doc" name=""newAttribute"" var="newChild"/> +<assertDOMException id="throw_HIERARCHY_REQUEST_ERR"> +<HIERARCHY_REQUEST_ERR> +<appendChild var="appendedChild" obj="rootNode" newChild="newChild"/> +</HIERARCHY_REQUEST_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/nodeappendchildnewchilddiffdocument.xml b/test/testcases/tests/level1/core/nodeappendchildnewchilddiffdocument.xml new file mode 100644 index 0000000..2d773bf --- /dev/null +++ b/test/testcases/tests/level1/core/nodeappendchildnewchilddiffdocument.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeappendchildnewchilddiffdocument"> +<metadata> +<title>nodeAppendChildNewChildDiffDocument</title> +<creator>NIST</creator> +<description> + The "appendChild(newChild)" method raises a + WRONG_DOCUMENT_ERR DOMException if the "newChild" was + created from a different document than the one that + created this node. + + Retrieve the second employee and attempt to append + a node created from a different document. An attempt + to make such a replacement should raise the desired + exception. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NOT_FOUND_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-184E7107')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NOT_FOUND_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc1" type="Document"/> +<var name="doc2" type="Document"/> +<var name="newChild" type="Node"/> +<var name="elementList" type="NodeList"/> +<var name="elementNode" type="Node"/> +<var name="appendedChild" type="Node"/> +<load var="doc1" href="staff" willBeModified="false"/> +<load var="doc2" href="staff" willBeModified="true"/> +<createElement obj="doc1" tagName=""newChild"" var="newChild"/> +<getElementsByTagName interface="Document" obj="doc2" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="elementNode"/> +<assertDOMException id="throw_WRONG_DOCUMENT_ERR"> +<WRONG_DOCUMENT_ERR> +<appendChild var="appendedChild" obj="elementNode" newChild="newChild"/> +</WRONG_DOCUMENT_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/nodeappendchildnodeancestor.xml b/test/testcases/tests/level1/core/nodeappendchildnodeancestor.xml new file mode 100644 index 0000000..cb50075 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeappendchildnodeancestor.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeappendchildnodeancestor"> +<metadata> +<title>nodeAppendChildNodeAncestor</title> +<creator>NIST</creator> +<description> + The "appendChild(newChild)" method raises a + HIERARCHY_REQUEST_ERR DOMException if the node to + append is one of this node's ancestors. + + Retrieve the second employee and attempt to append + an ancestor node(root node) to it. + An attempt to make such an addition should raise the + desired exception. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='HIERARCHY_REQUEST_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-184E7107')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='HIERARCHY_REQUEST_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newChild" type="Node"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="appendedChild" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<documentElement obj="doc" var="newChild"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<assertDOMException id="throw_HIERARCHY_REQUEST_ERR"> +<HIERARCHY_REQUEST_ERR> +<appendChild var="appendedChild" obj="employeeNode" newChild="newChild"/> +</HIERARCHY_REQUEST_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/nodeappendchildnomodificationallowederr.xml b/test/testcases/tests/level1/core/nodeappendchildnomodificationallowederr.xml new file mode 100644 index 0000000..f748185 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeappendchildnomodificationallowederr.xml @@ -0,0 +1,61 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeappendchildnomodificationallowederr"> +<metadata> +<title>nodeAppendChildNoModificationAllowedErr</title> +<creator>NIST</creator> +<description> + The "appendChild(newChild)" 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 "appendChild(newChild)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-184E7107')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +</metadata> +<var name="doc" type="Document"/> +<var name="genderList" type="NodeList"/> +<var name="genderNode" type="Node"/> +<var name="entRef" type="Node"/> +<var name="entElement" type="Node"/> +<var name="createdNode" type="Node"/> +<var name="appendedNode" type="Node"/> +<var name="nodeType" type="int"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""gender"" var="genderList"/> +<item obj="genderList" index="2" var="genderNode" interface="NodeList"/> +<firstChild interface="Node" var="entRef" obj="genderNode"/> +<assertNotNull actual="entRef" id="entRefNotNull"/> +<nodeType var="nodeType" obj="entRef"/> +<if><equals actual="nodeType" expected="1" ignoreCase="false"/> + <createEntityReference var="entRef" obj="doc" name='"ent4"'/> + <assertNotNull actual="entRef" id="createdEntRefNotNull"/> +</if> +<firstChild interface="Node" var="entElement" obj="entRef"/> +<assertNotNull actual="entElement" id="entElementNotNull"/> +<createElement obj="doc" tagName='"text3"' var="createdNode"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<appendChild var="appendedNode" obj="entElement" newChild="createdNode"/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/nodeappendchildnomodificationallowederrEE.xml b/test/testcases/tests/level1/core/nodeappendchildnomodificationallowederrEE.xml new file mode 100644 index 0000000..475ab94 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeappendchildnomodificationallowederrEE.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeappendchildnomodificationallowederrEE"> +<metadata> +<title>nodeAppendChildNoModificationAllowedErrEE</title> +<creator>Curt Arnold</creator> +<description> + The "appendChild(newChild)" method causes the + DOMException NO_MODIFICATION_ALLOWED_ERR to be raised + if the node is readonly. + + Create an ent4 entity reference and the "appendChild(newChild)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. +</description> +<date qualifier="created">2001-08-21</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-184E7107')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +<source resource="http://www.w3.org/2001/DOM-Test-Suite/level1/core/nodeappendchildnomodificationallowederr.xml"/> +</metadata> +<var name="doc" type="Document"/> +<var name="entRef" type="Node"/> +<var name="createdNode" type="Node"/> +<var name="appendedNode" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<createEntityReference var="entRef" obj="doc" name='"ent4"'/> +<assertNotNull actual="entRef" id="createdEntRefNotNull"/> +<createElement obj="doc" tagName=""text3"" var="createdNode"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<appendChild var="appendedNode" obj="entRef" newChild="createdNode"/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/nodeattributenodeattribute.xml b/test/testcases/tests/level1/core/nodeattributenodeattribute.xml new file mode 100644 index 0000000..e3e7857 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeattributenodeattribute.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeattributenodeattribute"> +<metadata> +<title>characterdataDeleteDataEnd</title> +<creator>NIST</creator> +<description> +The "getAttributes()" method invoked on an Attribute +Node returns null. + +Retrieve the first attribute from the last child of the +first employee and invoke the "getAttributes()" method +on the Attribute Node. It should return null. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--attributes attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +<!-- Attr interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-637646024"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddr" type="Element"/> +<var name="addrAttr" type="NamedNodeMap"/> +<var name="attrNode" type="Node"/> +<var name="attrList" type="NamedNodeMap"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""address""/> +<item interface="NodeList" obj="elementList" index="0" var="testAddr"/> +<attributes obj="testAddr" var="addrAttr"/> +<item interface="NamedNodeMap" obj="addrAttr" var="attrNode" index="0"/> +<attributes obj="attrNode" var="attrList"/> +<assertNull actual="attrList" id="nodeAttributeNodeAttributeAssert1"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeattributenodename.xml b/test/testcases/tests/level1/core/nodeattributenodename.xml new file mode 100644 index 0000000..2e540e6 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeattributenodename.xml @@ -0,0 +1,50 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeattributenodename"> +<metadata> +<title>nodeAttributeNodeName</title> +<creator>NIST</creator> +<description> + + The string returned by the "getNodeName()" method for an + + Attribute Node is the name of the Attribute. + + + + Retrieve the Attribute named "domestic" from the last + + child of the first employee and check the string returned + + by the "getNodeName()" method. It should be equal to + + "domestic". + +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddr" type="Element"/> +<var name="addrAttr" type="Attr"/> +<var name="attrName" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""address""/> +<item interface="NodeList" obj="elementList" index="0" var="testAddr"/> +<getAttributeNode obj="testAddr" name=""domestic"" var="addrAttr"/> +<nodeName obj="addrAttr" var="attrName"/> +<assertEquals actual="attrName" expected=""domestic"" id="nodeAttributeNodeNameAssert1" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeattributenodetype.xml b/test/testcases/tests/level1/core/nodeattributenodetype.xml new file mode 100644 index 0000000..409970c --- /dev/null +++ b/test/testcases/tests/level1/core/nodeattributenodetype.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeattributenodetype"> +<metadata> +<title>nodeAttributeNodeType</title> +<creator>NIST</creator> +<description> + + The "getNodeType()" method for an Attribute Node + + returns the constant value 2. + + + + Retrieve the first attribute from the last child of + + the first employee and invoke the "getNodeType()" + + method. The method should return 2. + +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-111237558"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddr" type="Element"/> +<var name="addrAttr" type="Attr"/> +<var name="nodeType" type="int"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="testAddr"/> +<getAttributeNode obj="testAddr" name=""domestic"" var="addrAttr"/> +<nodeType obj="addrAttr" var="nodeType"/> +<assertEquals actual="nodeType" expected="2" id="nodeAttrNodeTypeAssert1" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeattributenodevalue.xml b/test/testcases/tests/level1/core/nodeattributenodevalue.xml new file mode 100644 index 0000000..6a4a603 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeattributenodevalue.xml @@ -0,0 +1,50 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeattributenodevalue"> +<metadata> +<title>nodeAttributeNodeValue</title> +<creator>NIST</creator> +<description> + + The string returned by the "getNodeValue()" method for an + + Attribute Node is the value of the Attribute. + + + + Retrieve the Attribute named "domestic" from the last + + child of the first employee and check the string returned + + by the "getNodeValue()" method. It should be equal to + + "Yes". + +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddr" type="Element"/> +<var name="addrAttr" type="Attr"/> +<var name="attrValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""address""/> +<item interface="NodeList" obj="elementList" index="0" var="testAddr"/> +<getAttributeNode obj="testAddr" name=""domestic"" var="addrAttr"/> +<nodeValue obj="addrAttr" var="attrValue"/> +<assertEquals actual="attrValue" expected=""Yes"" id="nodeAttributeNodeValueAssert1" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodecdatasectionnodeattribute.xml b/test/testcases/tests/level1/core/nodecdatasectionnodeattribute.xml new file mode 100644 index 0000000..69d7c5b --- /dev/null +++ b/test/testcases/tests/level1/core/nodecdatasectionnodeattribute.xml @@ -0,0 +1,50 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodecdatasectionnodeattribute"> +<metadata> +<title>nodeCDATASectionNodeAttribute</title> +<creator>NIST</creator> +<description> +The "getAttributes()" method invoked on a CDATASection +Node returns null. + +Retrieve the CDATASection node contained inside the +second child of the second employee and invoke the +"getAttributes()" method on the CDATASection node. +It should return null. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--attributes attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +<!-- CDATASection interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-667469212"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="cdataName" type="Element"/> +<var name="cdataNode" type="Node"/> +<var name="attrList" type="NamedNodeMap"/> +<var name="nodeType" type="int"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""name""/> +<item interface="NodeList" obj="elementList" index="1" var="cdataName"/> +<lastChild interface="Node" obj="cdataName" var="cdataNode"/> +<nodeType var="nodeType" obj="cdataNode"/> +<if><notEquals actual="nodeType" expected="4" ignoreCase="false"/> + <createCDATASection var="cdataNode" obj="doc" data='""'/> +</if> +<attributes obj="cdataNode" var="attrList"/> +<assertNull actual="attrList" id="cdataSection"/> +</test> diff --git a/test/testcases/tests/level1/core/nodecdatasectionnodename.xml b/test/testcases/tests/level1/core/nodecdatasectionnodename.xml new file mode 100644 index 0000000..4c0d99b --- /dev/null +++ b/test/testcases/tests/level1/core/nodecdatasectionnodename.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodecdatasectionnodename"> +<metadata> +<title>nodeCDATASectionNodeName</title> +<creator>NIST</creator> +<description> + The string returned by the "getNodeName()" method for a + CDATASection Node is #cdata-section". + + Retrieve the CDATASection node inside the second child + of the second employee and check the string returned + by the "getNodeName()" method. It should be equal to + "#cdata-section". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-667469212"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="cdataName" type="Element"/> +<var name="cdataNode" type="Node"/> +<var name="nodeType" type="int"/> +<var name="cdataNodeName" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""name""/> +<item interface="NodeList" obj="elementList" index="1" var="cdataName"/> +<lastChild interface="Node" obj="cdataName" var="cdataNode"/> +<nodeType var="nodeType" obj="cdataNode"/> +<if><notEquals actual="nodeType" expected="4" ignoreCase="false"/> + <createCDATASection var="cdataNode" obj="doc" data='""'/> +</if> +<nodeName obj="cdataNode" var="cdataNodeName"/> +<assertEquals actual="cdataNodeName" expected='"#cdata-section"' id="cdataNodeName" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodecdatasectionnodetype.xml b/test/testcases/tests/level1/core/nodecdatasectionnodetype.xml new file mode 100644 index 0000000..9ffe7dc --- /dev/null +++ b/test/testcases/tests/level1/core/nodecdatasectionnodetype.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodecdatasectionnodetype"> +<metadata> +<title>nodeCDATASectionNodeType</title> +<creator>NIST</creator> +<description> + The "getNodeType()" method for a CDATASection Node + returns the constant value 4. + + Retrieve the CDATASection node contained inside the + second child of the second employee and invoke the + "getNodeType()" method. The method should return 4. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-111237558"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-667469212"/> +</metadata> +<implementationAttribute name="coalescing" value="false"/> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testName" type="Element"/> +<var name="cdataNode" type="Node"/> +<var name="nodeType" type="int"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"name"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="testName"/> +<lastChild interface="Node" obj="testName" var="cdataNode"/> +<nodeType obj="cdataNode" var="nodeType"/> +<if><equals actual="nodeType" expected="3" ignoreCase="false"/> + <createCDATASection var="cdataNode" obj="doc" data='""'/> + <nodeType obj="cdataNode" var="nodeType"/> +</if> +<assertEquals actual="nodeType" expected="4" id="nodeTypeCDATA" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodecdatasectionnodevalue.xml b/test/testcases/tests/level1/core/nodecdatasectionnodevalue.xml new file mode 100644 index 0000000..905b114 --- /dev/null +++ b/test/testcases/tests/level1/core/nodecdatasectionnodevalue.xml @@ -0,0 +1,51 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodecdatasectionnodevalue"> +<metadata> +<title>nodeCDATASectionNodeValue</title> +<creator>NIST</creator> +<description> + The string returned by the "getNodeValue()" method for a + CDATASection Node is the content of the CDATASection. + + Retrieve the CDATASection node inside the second child + of the second employee and check the string returned + by the "getNodeValue()" method. It should be equal to + "This is a CDATA Section with EntityReference number 2 + &ent2;". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-667469212"/> +</metadata> +<implementationAttribute name="coalescing" value="false"/> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="cdataName" type="Element"/> +<var name="childList" type="NodeList"/> +<var name="child" type="Node"/> +<var name="cdataNodeValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""name""/> +<item interface="NodeList" obj="elementList" index="1" var="cdataName"/> +<childNodes obj="cdataName" var="childList"/> +<item interface="NodeList" obj="childList" index="1" var="child"/> +<!-- if coalescing, create a CDATASection --> +<if><isNull obj="child"/> + <createCDATASection var="child" obj="doc" data='"This is a CDATASection with EntityReference number 2 &ent2;"'/> +</if> +<nodeValue obj="child" var="cdataNodeValue"/> +<assertEquals actual="cdataNodeValue" expected='"This is a CDATASection with EntityReference number 2 &ent2;"' id="value" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodechildnodes.xml b/test/testcases/tests/level1/core/nodechildnodes.xml new file mode 100644 index 0000000..65bc32f --- /dev/null +++ b/test/testcases/tests/level1/core/nodechildnodes.xml @@ -0,0 +1,53 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodechildnodes"> +<metadata> +<title>nodechildnodes</title> +<creator>NIST</creator> +<description> +Collect the element names from Node.childNodes and check against expectations. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1451460987"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childNodes" type="NodeList"/> +<var name="childNode" type="Node"/> +<var name="childType" type="int"/> +<var name="childName" type="DOMString"/> +<var name="elementNames" type="List"/> +<var name="expectedElementNames" type="List"> + <member>"employeeId"</member> + <member>"name"</member> + <member>"position"</member> + <member>"salary"</member> + <member>"gender"</member> + <member>"address"</member> +</var> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"employee"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childNodes"/> +<for-each collection="childNodes" member="childNode"> + <nodeType var="childType" obj="childNode"/> + <if><equals actual="childType" expected="1" ignoreCase="false"/> + <nodeName var="childName" obj="childNode"/> + <append collection="elementNames" item="childName"/> + </if> +</for-each> +<assertEquals actual="elementNames" expected="expectedElementNames" id="elementNames" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodechildnodesappendchild.xml b/test/testcases/tests/level1/core/nodechildnodesappendchild.xml new file mode 100644 index 0000000..8297b0a --- /dev/null +++ b/test/testcases/tests/level1/core/nodechildnodesappendchild.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodechildnodesappendchild"> +<metadata> +<title>nodechildnodesappendchild</title> +<creator>NIST</creator> +<description> +Add an element and check that the previously retrieved childNodes NodeList +is live. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1451460987"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-184E7107"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="createdNode" type="Node"/> +<var name="expectedLength" type="int"/> +<var name="length" type="int"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"employee"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<length var="expectedLength" obj="childList" interface="NodeList"/> +<increment var="expectedLength" value="1"/> +<createElement obj="doc" var="createdNode" tagName='"text3"'/> +<appendChild obj="employeeNode" newChild="createdNode" var="employeeNode"/> +<length var="length" obj="childList" interface="NodeList"/> +<assertEquals actual="length" expected="expectedLength" ignoreCase="false" id="childNodeLength"/> +</test> diff --git a/test/testcases/tests/level1/core/nodechildnodesempty.xml b/test/testcases/tests/level1/core/nodechildnodesempty.xml new file mode 100644 index 0000000..5588e18 --- /dev/null +++ b/test/testcases/tests/level1/core/nodechildnodesempty.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodechildnodesempty"> +<metadata> +<title>nodeChildNodesEmpty</title> +<creator>NIST</creator> +<description> + The "getChildNodes()" method returns a NodeList + that contains all children of this node. If there + are not any children, this is a NodeList that does not + contain any nodes. + + Retrieve the Text node from the second child of the second + employee and invoke the "getChildNodes()" method. The + NodeList returned should not have any nodes. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1451460987"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="secondCNode" type="Node"/> +<var name="textNode" type="Node"/> +<var name="childNodesList" type="NodeList"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<item interface="NodeList" obj="childList" index="1" var="secondCNode"/> +<firstChild interface="Node" obj="secondCNode" var="textNode"/> +<childNodes obj="textNode" var="childNodesList"/> +<assertSize collection="childNodesList" size="0" id="nodeChildNodesEmptyAssert1"/> +</test> diff --git a/test/testcases/tests/level1/core/nodecloneattributescopied.xml b/test/testcases/tests/level1/core/nodecloneattributescopied.xml new file mode 100644 index 0000000..ddfdc18 --- /dev/null +++ b/test/testcases/tests/level1/core/nodecloneattributescopied.xml @@ -0,0 +1,54 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodecloneattributescopied"> +<metadata> +<title>nodeCloneAttributesCopied</title> +<creator>NIST</creator> +<description> + If the cloneNode method is used to clone an + Element node, all the attributes of the Element are + copied along with their values. + + Retrieve the last child of the second employee and invoke + the cloneNode method. The + duplicate node returned by the method should copy the + attributes associated with this node. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="addressNode" type="Node"/> +<var name="clonedNode" type="Node"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="attributeNode" type="Node"/> +<var name="attributeName" type="DOMString"/> +<var name="result" type="Collection"/> +<var name="expectedResult" type="Collection"> +<member>"domestic"</member> +<member>"street"</member> +</var> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="addressNode"/> +<cloneNode obj="addressNode" deep="false" var="clonedNode"/> +<attributes obj="clonedNode" var="attributes"/> +<for-each collection="attributes" member="attributeNode"> +<nodeName obj="attributeNode" var="attributeName"/> +<append collection="result" item="attributeName"/> +</for-each> +<assertEquals actual="result" expected="expectedResult" id="nodeCloneAttributesCopiedAssert1" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeclonefalsenocopytext.xml b/test/testcases/tests/level1/core/nodeclonefalsenocopytext.xml new file mode 100644 index 0000000..175c936 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeclonefalsenocopytext.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeclonefalsenocopytext"> +<metadata> +<title>nodeCloneFalseNoCopyText</title> +<creator>NIST</creator> +<description> + The "cloneNode(deep)" method does not copy text unless it + is deep cloned.(Test for deep=false) + + Retrieve the fourth child of the second employee and + the "cloneNode(deep)" method with deep=false. The + duplicate node returned by the method should not copy + any text data contained in this node. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-3A0ED0A4"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="childNode" type="Node"/> +<var name="clonedNode" type="Node"/> +<var name="lastChildNode" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<item interface="NodeList" obj="childList" index="3" var="childNode"/> +<cloneNode obj="childNode" deep="false" var="clonedNode"/> +<lastChild interface="Node" obj="clonedNode" var="lastChildNode"/> +<assertNull actual="lastChildNode" id="noTextNodes"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeclonegetparentnull.xml b/test/testcases/tests/level1/core/nodeclonegetparentnull.xml new file mode 100644 index 0000000..dcaa41a --- /dev/null +++ b/test/testcases/tests/level1/core/nodeclonegetparentnull.xml @@ -0,0 +1,42 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeclonegetparentnull"> +<metadata> +<title>nodeCloneGetParentNull</title> +<creator>NIST</creator> +<description> + The duplicate node returned by the "cloneNode(deep)" + method does not have a ParentNode. + + Retrieve the second employee and invoke the + "cloneNode(deep)" method with deep=false. The + duplicate node returned should return null when the + "getParentNode()" is invoked. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-3A0ED0A4"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="clonedNode" type="Node"/> +<var name="parentNode" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<cloneNode obj="employeeNode" deep="false" var="clonedNode"/> +<parentNode interface="Node" obj="clonedNode" var="parentNode"/> +<assertNull actual="parentNode" id="nodeCloneGetParentNullAssert1"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeclonenodefalse.xml b/test/testcases/tests/level1/core/nodeclonenodefalse.xml new file mode 100644 index 0000000..e51c7d0 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeclonenodefalse.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeclonenodefalse"> +<metadata> +<title>nodeCloneNodeFalse</title> +<creator>NIST</creator> +<description> + The "cloneNode(deep)" method returns a copy of the node + only if deep=false. + + Retrieve the second employee and invoke the + "cloneNode(deep)" method with deep=false. The + method should only clone this node. The NodeName and + length of the NodeList are checked. The "getNodeName()" + method should return "employee" and the "getLength()" + method should return 0. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-3A0ED0A4"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="clonedNode" type="Node"/> +<var name="cloneName" type="DOMString"/> +<var name="cloneChildren" type="NodeList"/> +<var name="length" type="int"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<cloneNode obj="employeeNode" deep="false" var="clonedNode"/> +<nodeName obj="clonedNode" var="cloneName"/> +<assertEquals actual="cloneName" expected=""employee"" ignoreCase="false" id="name"/> +<childNodes obj="clonedNode" var="cloneChildren"/> +<length interface="NodeList" obj="cloneChildren" var="length"/> +<assertEquals actual="length" expected="0" ignoreCase="false" id="length"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeclonenodetrue.xml b/test/testcases/tests/level1/core/nodeclonenodetrue.xml new file mode 100644 index 0000000..812e235 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeclonenodetrue.xml @@ -0,0 +1,83 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeclonenodetrue"> +<metadata> +<title>nodeCloneNodeTrue</title> +<creator>NIST</creator> +<description> + The "cloneNode(deep)" method returns a copy of the node + and the subtree under it if deep=true. + + Retrieve the second employee and invoke the + "cloneNode(deep)" method with deep=true. The + method should clone this node and the subtree under it. + The NodeName of each child in the returned node is + checked to insure the entire subtree under the second + employee was cloned. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-3A0ED0A4"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="clonedNode" type="Node"/> +<var name="clonedList" type="NodeList"/> +<var name="clonedChild" type="Node"/> +<var name="clonedChildName" type="DOMString"/> +<var name="length" type="int"/> +<var name="result" type="List"/> +<var name="expectedWhitespace" type="List"> +<member>"#text"</member> +<member>"employeeId"</member> +<member>"#text"</member> +<member>"name"</member> +<member>"#text"</member> +<member>"position"</member> +<member>"#text"</member> +<member>"salary"</member> +<member>"#text"</member> +<member>"gender"</member> +<member>"#text"</member> +<member>"address"</member> +<member>"#text"</member> +</var> +<var name="expectedNoWhitespace" type="List"> +<member>"employeeId"</member> +<member>"name"</member> +<member>"position"</member> +<member>"salary"</member> +<member>"gender"</member> +<member>"address"</member> +</var> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"employee"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes var="childList" obj="employeeNode"/> +<length var="length" obj="childList" interface="NodeList"/> +<cloneNode obj="employeeNode" deep="true" var="clonedNode"/> +<childNodes obj="clonedNode" var="clonedList"/> +<for-each collection="clonedList" member="clonedChild"> +<nodeName obj="clonedChild" var="clonedChildName"/> +<append collection="result" item="clonedChildName"/> +</for-each> +<if><equals actual="length" expected="6" ignoreCase="false"/> + <assertEquals actual="result" expected="expectedNoWhitespace" id="nowhitespace" ignoreCase="false"/> +<else> + <assertEquals actual="result" expected="expectedWhitespace" id="whitespace" ignoreCase="false"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/nodeclonetruecopytext.xml b/test/testcases/tests/level1/core/nodeclonetruecopytext.xml new file mode 100644 index 0000000..a4cacc9 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeclonetruecopytext.xml @@ -0,0 +1,42 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeclonetruecopytext"> +<metadata> +<title>nodeclonetruecopytext</title> +<creator>NIST</creator> +<description> + Retrieve the second salary and + the "cloneNode(deep)" method with deep=true. The + duplicate node returned by the method should copy + any text data contained in this node. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-3A0ED0A4"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="childList" type="NodeList"/> +<var name="childNode" type="Node"/> +<var name="clonedNode" type="Node"/> +<var name="lastChildNode" type="Node"/> +<var name="childValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"salary"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="childNode"/> +<cloneNode obj="childNode" deep="true" var="clonedNode"/> +<lastChild interface="Node" obj="clonedNode" var="lastChildNode"/> +<nodeValue obj="lastChildNode" var="childValue"/> +<assertEquals actual="childValue" expected='"35,000"' id="nodeCloneTrueCopyTextAssert1" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodecommentnodeattributes.xml b/test/testcases/tests/level1/core/nodecommentnodeattributes.xml new file mode 100644 index 0000000..0a3b8c2 --- /dev/null +++ b/test/testcases/tests/level1/core/nodecommentnodeattributes.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodecommentnodeattributes"> +<metadata> +<title>nodeCommentNodeAttributes</title> +<creator>NIST</creator> +<description> + The "getAttributes()" method invoked on a Comment + Node returns null. + + Find any comment that is an immediate child of the root + and assert that Node.attributes is null. Then create + a new comment node (in case they had been omitted) and + make the assertion. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1728279322"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=248"/> +</metadata> +<var name="doc" type="Document"/> +<var name="childList" type="NodeList"/> +<var name="childNode" type="Node"/> +<var name="attrList" type="NamedNodeMap"/> +<var name="nodeType" type="int"/> +<load var="doc" href="staff" willBeModified="false"/> +<childNodes obj="doc" var="childList"/> +<for-each collection="childList" member="childNode"> +<nodeType var="nodeType" obj="childNode"/> +<if><equals actual="nodeType" expected="8"/> +<attributes obj="childNode" var="attrList"/> +<assertNull actual="attrList" id="attributesNull"/> +</if> +</for-each> +<createComment var="childNode" obj="doc" data='"This is a comment"'/> +<attributes obj="childNode" var="attrList"/> +<assertNull actual="attrList" id="createdAttributesNull"/> +</test> diff --git a/test/testcases/tests/level1/core/nodecommentnodename.xml b/test/testcases/tests/level1/core/nodecommentnodename.xml new file mode 100644 index 0000000..a907ba7 --- /dev/null +++ b/test/testcases/tests/level1/core/nodecommentnodename.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodecommentnodename"> +<metadata> +<title>nodeCommentNodeName</title> +<creator>NIST</creator> +<description> + The string returned by the "getNodeName()" method for a + Comment Node is "#comment". + + Retrieve the Comment node in the XML file + and check the string returned by the "getNodeName()" + method. It should be equal to "#comment". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1728279322"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="commentNode" type="Node"/> +<var name="nodeType" type="int"/> +<var name="commentNodeName" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<childNodes obj="doc" var="elementList"/> +<for-each collection="elementList" member="commentNode"> +<nodeType obj="commentNode" var="nodeType"/> +<if> +<equals actual="nodeType" expected="8" ignoreCase="false"/> +<nodeName obj="commentNode" var="commentNodeName"/> +<assertEquals actual="commentNodeName" expected=""#comment"" + id="commentNodeName" ignoreCase="false"/> +</if> +</for-each> +</test> diff --git a/test/testcases/tests/level1/core/nodecommentnodetype.xml b/test/testcases/tests/level1/core/nodecommentnodetype.xml new file mode 100644 index 0000000..d5817b5 --- /dev/null +++ b/test/testcases/tests/level1/core/nodecommentnodetype.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodecommentnodetype"> +<metadata> +<title>nodeCommentNodeType</title> +<creator>NIST</creator> +<description> + The "getNodeType()" method for a Comment Node + returns the constant value 8. + + Retrieve the nodes from the document and check for + a comment node and invoke the "getNodeType()" method. This should + return 8. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-111237558"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1728279322"/> +</metadata> +<var name="doc" type="Document"/> +<var name="testList" type="NodeList"/> +<var name="commentNode" type="Node"/> +<var name="commentNodeName" type="DOMString"/> +<var name="nodeType" type="int"/> +<load var="doc" href="staff" willBeModified="false"/> +<childNodes obj="doc" var="testList"/> +<for-each collection="testList" member="commentNode"> +<nodeName obj="commentNode" var="commentNodeName"/> +<if> +<equals actual="commentNodeName" expected=""#comment"" ignoreCase="false"/> +<nodeType obj="commentNode" var="nodeType"/> +<assertEquals actual="nodeType" expected="8" id="nodeCommentNodeTypeAssert1" ignoreCase="false"/> +</if> +</for-each> +</test> diff --git a/test/testcases/tests/level1/core/nodecommentnodevalue.xml b/test/testcases/tests/level1/core/nodecommentnodevalue.xml new file mode 100644 index 0000000..4dc430c --- /dev/null +++ b/test/testcases/tests/level1/core/nodecommentnodevalue.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodecommentnodevalue"> +<metadata> +<title>nodeCommentNodeValue</title> +<creator>NIST</creator> +<description> + The string returned by the "getNodeValue()" method for a + Comment Node is the content of the comment. + + Retrieve the comment in the XML file and + check the string returned by the "getNodeValue()" method. + It should be equal to "This is comment number 1". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1728279322"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="commentNode" type="Node"/> +<var name="commentName" type="DOMString"/> +<var name="commentValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<childNodes obj="doc" var="elementList"/> +<for-each collection="elementList" member="commentNode"> +<nodeName obj="commentNode" var="commentName"/> +<if> +<equals actual="commentName" expected=""#comment"" ignoreCase="false"/> +<nodeValue obj="commentNode" var="commentValue"/> +<assertEquals actual="commentValue" expected="" This is comment number 1."" id="value" ignoreCase="false"/> +</if> +</for-each> +</test> diff --git a/test/testcases/tests/level1/core/nodedocumentfragmentnodename.xml b/test/testcases/tests/level1/core/nodedocumentfragmentnodename.xml new file mode 100644 index 0000000..a1fdda6 --- /dev/null +++ b/test/testcases/tests/level1/core/nodedocumentfragmentnodename.xml @@ -0,0 +1,39 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodedocumentfragmentnodename"> +<metadata> +<title>nodeDocumentFragmentNodeName</title> +<creator>NIST</creator> +<description> + The string returned by the "getNodeName()" method for a + DocumentFragment Node is "#document-frament". + + Retrieve the DOM document and invoke the + "createDocumentFragment()" method and check the string + returned by the "getNodeName()" method. It should be + equal to "#document-fragment". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-B63ED1A3"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docFragment" type="DocumentFragment"/> +<var name="documentFragmentName" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<createDocumentFragment obj="doc" var="docFragment"/> +<nodeName obj="docFragment" var="documentFragmentName"/> +<assertEquals actual="documentFragmentName" expected=""#document-fragment"" id="nodeDocumentFragmentNodeNameAssert1" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodedocumentfragmentnodetype.xml b/test/testcases/tests/level1/core/nodedocumentfragmentnodetype.xml new file mode 100644 index 0000000..42e46da --- /dev/null +++ b/test/testcases/tests/level1/core/nodedocumentfragmentnodetype.xml @@ -0,0 +1,39 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodedocumentfragmentnodetype"> +<metadata> +<title>nodeDocumentFragmentNodeType</title> +<creator>NIST</creator> +<description> + The "getNodeType()" method for a DocumentFragment Node + returns the constant value 11. + + Invoke the "createDocumentFragment()" method and + examine the NodeType of the document fragment + returned by the "getNodeType()" method. The method + should return 11. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-111237558"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-B63ED1A3"/> +</metadata> +<var name="doc" type="Document"/> +<var name="documentFragmentNode" type="DocumentFragment"/> +<var name="nodeType" type="int"/> +<load var="doc" href="staff" willBeModified="true"/> +<createDocumentFragment obj="doc" var="documentFragmentNode"/> +<nodeType obj="documentFragmentNode" var="nodeType"/> +<assertEquals actual="nodeType" expected="11" id="nodeDocumentFragmentNodeTypeAssert1" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodedocumentfragmentnodevalue.xml b/test/testcases/tests/level1/core/nodedocumentfragmentnodevalue.xml new file mode 100644 index 0000000..906b5b9 --- /dev/null +++ b/test/testcases/tests/level1/core/nodedocumentfragmentnodevalue.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodedocumentfragmentnodevalue"> +<metadata> +<title>nodeDocumentFragmentNodeValue</title> +<creator>NIST</creator> +<description> + The string returned by the "getNodeValue()" method for a + DocumentFragment Node is null. + + Retrieve the DOM document and invoke the + "createDocumentFragment()" method and check the string + returned by the "getNodeValue()" method. It should be + equal to null. +</description> +<contributor>Mary Brady</contributor> +<contributor>Curt Arnold</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-B63ED1A3"/> +<!--nodeValue attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<!-- Node.attributes --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docFragment" type="DocumentFragment"/> +<var name="attrList" type="NamedNodeMap"/> +<var name="value" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<createDocumentFragment obj="doc" var="docFragment"/> +<!-- despite the name, this was the only assertion in the original test --> +<attributes obj="docFragment" var="attrList"/> +<assertNull actual="attrList" id="attributesNull"/> +<!-- now actually test the initial value of nodeValue --> +<nodeValue obj="docFragment" var="value"/> +<assertNull actual="value" id="initiallyNull"/> +</test> diff --git a/test/testcases/tests/level1/core/nodedocumentnodeattribute.xml b/test/testcases/tests/level1/core/nodedocumentnodeattribute.xml new file mode 100644 index 0000000..2fc6b8b --- /dev/null +++ b/test/testcases/tests/level1/core/nodedocumentnodeattribute.xml @@ -0,0 +1,34 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodedocumentnodeattribute"> +<metadata> +<title>nodedocumentnodeattribute</title> +<creator>NIST</creator> +<description> +The "getAttributes()" method invoked on a Document +Node returns null. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--attributes attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +<!-- Document interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#i-Document"/> +</metadata> +<var name="doc" type="Document"/> +<var name="attrList" type="NamedNodeMap"/> +<load var="doc" href="staff" willBeModified="false"/> +<attributes obj="doc" var="attrList"/> +<assertNull actual="attrList" id="documentAttributesNull"/> +</test> diff --git a/test/testcases/tests/level1/core/nodedocumentnodename.xml b/test/testcases/tests/level1/core/nodedocumentnodename.xml new file mode 100644 index 0000000..4560d2a --- /dev/null +++ b/test/testcases/tests/level1/core/nodedocumentnodename.xml @@ -0,0 +1,38 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodedocumentnodename"> +<metadata> +<title>nodeDocumentNodeName</title> +<creator>NIST</creator> +<description> + The string returned by the "getNodeName()" method for a + Document Node is "#document". + + Retrieve the DOM document and check the string returned + by the "getNodeName()" method. It should be equal to + "#document". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!-- Document interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#i-Document"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +</metadata> +<var name="doc" type="Document"/> +<var name="documentName" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<nodeName obj="doc" var="documentName"/> +<assertEquals actual="documentName" expected=""#document"" + id="documentNodeName" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodedocumentnodetype.xml b/test/testcases/tests/level1/core/nodedocumentnodetype.xml new file mode 100644 index 0000000..9f1e85d --- /dev/null +++ b/test/testcases/tests/level1/core/nodedocumentnodetype.xml @@ -0,0 +1,36 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodedocumentnodetype"> +<metadata> +<title>nodeDocumentNodeType</title> +<creator>NIST</creator> +<description> +The "getNodeType()" method for a Document Node +returns the constant value 9. + +Retrieve the document and invoke the "getNodeType()" +method. The method should return 9. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!-- Document interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#i-Document"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-111237558"/> +</metadata> +<var name="doc" type="Document"/> +<var name="nodeType" type="int"/> +<load var="doc" href="staff" willBeModified="false"/> +<nodeType obj="doc" var="nodeType"/> +<assertEquals actual="nodeType" expected="9" id="nodeDocumentNodeTypeAssert1" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodedocumentnodevalue.xml b/test/testcases/tests/level1/core/nodedocumentnodevalue.xml new file mode 100644 index 0000000..6ff28e5 --- /dev/null +++ b/test/testcases/tests/level1/core/nodedocumentnodevalue.xml @@ -0,0 +1,38 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodedocumentnodevalue"> +<metadata> +<title>nodeDocumentNodeValue</title> +<creator>NIST</creator> +<description> + The string returned by the "getNodeValue()" method for a + Document Node is null. + + Retrieve the DOM Document and check the string returned + by the "getNodeValue()" method. It should be equal to + null. + +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!-- Document interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#i-Document"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +</metadata> +<var name="doc" type="Document"/> +<var name="documentValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<nodeValue obj="doc" var="documentValue"/> +<assertNull actual="documentValue" id="documentNodeValueNull"/> +</test> diff --git a/test/testcases/tests/level1/core/nodedocumenttypenodename.xml b/test/testcases/tests/level1/core/nodedocumenttypenodename.xml new file mode 100644 index 0000000..a168320 --- /dev/null +++ b/test/testcases/tests/level1/core/nodedocumenttypenodename.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodedocumenttypenodename"> +<metadata> +<title>nodedocumenttypenodename</title> +<creator>NIST</creator> +<description> + Retrieve the DOCTYPE declaration from the XML file and + check the string returned by the "getNodeName()" + method. It should be equal to "staff" or "svg". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<var name="documentTypeName" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<doctype obj="doc" var="docType"/> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<nodeName obj="docType" var="documentTypeName"/> +<if><contentType type="image/svg+xml"/> +<assertEquals actual="documentTypeName" expected='"svg"' id="doctypeNameSVG" ignoreCase="false"/> +<else> +<assertEquals actual="documentTypeName" expected='"staff"' id="documentName" ignoreCase="false"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/nodedocumenttypenodetype.xml b/test/testcases/tests/level1/core/nodedocumenttypenodetype.xml new file mode 100644 index 0000000..30db085 --- /dev/null +++ b/test/testcases/tests/level1/core/nodedocumenttypenodetype.xml @@ -0,0 +1,34 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodedocumenttypenodetype"> +<metadata> +<title>nodedocumenttypenodetype</title> +<creator>NIST</creator> +<description> + The "getNodeType()" method for a DocumentType Node + returns the constant value 10. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-111237558"/> +</metadata> +<var name="doc" type="Document"/> +<var name="documentTypeNode" type="DocumentType"/> +<var name="nodeType" type="int"/> +<load var="doc" href="staff" willBeModified="false"/> +<doctype obj="doc" var="documentTypeNode"/> +<assertNotNull actual="documentTypeNode" id="doctypeNotNull"/> +<nodeType obj="documentTypeNode" var="nodeType"/> +<assertEquals actual="nodeType" expected="10" id="nodeType" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodedocumenttypenodevalue.xml b/test/testcases/tests/level1/core/nodedocumenttypenodevalue.xml new file mode 100644 index 0000000..188761a --- /dev/null +++ b/test/testcases/tests/level1/core/nodedocumenttypenodevalue.xml @@ -0,0 +1,33 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodedocumenttypenodevalue"> +<metadata> +<title>nodedocumenttypenodevalue</title> +<creator>NIST</creator> +<description> + The string returned by the "getNodeValue()" method for a + DocumentType Node is null. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +</metadata> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<var name="attrList" type="NamedNodeMap"/> +<load var="doc" href="staff" willBeModified="false"/> +<doctype obj="doc" var="docType"/> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<attributes obj="docType" var="attrList"/> +<assertNull actual="attrList" id="doctypeAttributesNull"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeelementnodeattributes.xml b/test/testcases/tests/level1/core/nodeelementnodeattributes.xml new file mode 100644 index 0000000..3620d18 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeelementnodeattributes.xml @@ -0,0 +1,52 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeelementnodeattributes"> +<metadata> +<title>nodeElementNodeAttributes</title> +<creator>NIST</creator> +<description> + The "getAttributes()" method invoked on an Element + Node returns a NamedNodeMap containing the attributes + of this node. + + Retrieve the last child of the third employee and + invoke the "getAttributes()" method. It should return + a NamedNodeMap containing the attributes of the Element + node. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddr" type="Element"/> +<var name="addrAttr" type="NamedNodeMap"/> +<var name="attrNode" type="Node"/> +<var name="attrName" type="DOMString"/> +<var name="attrList" type="Collection"/> +<var name="expected" type="Collection"> +<member>"domestic"</member> +<member>"street"</member> +</var> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="2" var="testAddr"/> +<attributes obj="testAddr" var="addrAttr"/> +<for-each collection="addrAttr" member="attrNode"> +<nodeName obj="attrNode" var="attrName"/> +<append collection="attrList" item="attrName"/> +</for-each> +<assertEquals actual="attrList" expected="expected" id="nodeElementNodeValueAssert1" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeelementnodename.xml b/test/testcases/tests/level1/core/nodeelementnodename.xml new file mode 100644 index 0000000..6f7028b --- /dev/null +++ b/test/testcases/tests/level1/core/nodeelementnodename.xml @@ -0,0 +1,52 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeelementnodename"> +<metadata> +<title>nodeElementNodeName</title> +<creator>NIST</creator> +<description> + + The string returned by the "getNodeName()" method for an + + Element Node is its tagName. + + + + Retrieve the first Element Node(Root Node) of the + + DOM object and check the string returned by the + + "getNodeName()" method. It should be equal to its + + tagName. + +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=251"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementNode" type="Element"/> +<var name="elementName" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<documentElement obj="doc" var="elementNode"/> +<nodeName obj="elementNode" var="elementName"/> +<if><contentType type="image/svg+xml"/> +<assertEquals actual="elementName" expected='"svg"' id="svgNodeName" ignoreCase="false"/> +<else> +<assertEquals actual="elementName" expected='"staff"' id="nodeElementNodeNameAssert1" ignoreCase="false"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/nodeelementnodetype.xml b/test/testcases/tests/level1/core/nodeelementnodetype.xml new file mode 100644 index 0000000..84fdb9c --- /dev/null +++ b/test/testcases/tests/level1/core/nodeelementnodetype.xml @@ -0,0 +1,36 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeelementnodetype"> +<metadata> +<title>nodeElementNodeType</title> +<creator>NIST</creator> +<description> + The "getNodeType()" method for an Element Node + returns the constant value 1. + + Retrieve the root node and invoke the "getNodeType()" + method. The method should return 1. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-111237558"/> +</metadata> +<var name="doc" type="Document"/> +<var name="rootNode" type="Element"/> +<var name="nodeType" type="int"/> +<load var="doc" href="staff" willBeModified="false"/> +<documentElement obj="doc" var="rootNode"/> +<nodeType obj="rootNode" var="nodeType"/> +<assertEquals actual="nodeType" expected="1" id="nodeElementNodeTypeAssert1" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeelementnodevalue.xml b/test/testcases/tests/level1/core/nodeelementnodevalue.xml new file mode 100644 index 0000000..cffc9d5 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeelementnodevalue.xml @@ -0,0 +1,33 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeelementnodevalue"> +<metadata> +<title>nodeElementNodeValue</title> +<creator>NIST</creator> +<description> + The string returned by the "getNodeValue()" method for an + Element Node is null. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementNode" type="Element"/> +<var name="elementValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<documentElement obj="doc" var="elementNode"/> +<nodeValue obj="elementNode" var="elementValue"/> +<assertNull actual="elementValue" id="elementNodeValueNull"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeentitynodeattributes.xml b/test/testcases/tests/level1/core/nodeentitynodeattributes.xml new file mode 100644 index 0000000..b8806d2 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeentitynodeattributes.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeentitynodeattributes"> +<metadata> +<title>nodeentitynodeattributes</title> +<creator>NIST</creator> +<description> + The "getAttributes()" method invoked on an Entity + Node returns null. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<var name="entities" type="NamedNodeMap"/> +<var name="entityNode" type="Node"/> +<var name="attrList" type="NamedNodeMap"/> +<load var="doc" href="staff" willBeModified="false"/> +<doctype obj="doc" var="docType"/> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<entities obj="docType" var="entities"/> +<assertNotNull actual="entities" id="entitiesNotNull"/> +<getNamedItem obj="entities" name='"ent1"' var="entityNode"/> +<assertNotNull actual="entityNode" id="ent1NotNull"/> +<attributes obj="entityNode" var="attrList"/> +<assertNull actual="attrList" id="entityAttributesNull"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeentitynodename.xml b/test/testcases/tests/level1/core/nodeentitynodename.xml new file mode 100644 index 0000000..e511a53 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeentitynodename.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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeentitynodename"> +<metadata> +<title>nodeEntityNodeName</title> +<creator>NIST</creator> +<description> +Check the nodeName of the entity returned by DocumentType.entities.getNamedItem("ent1"). +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<var name="entities" type="NamedNodeMap"/> +<var name="entityNode" type="Node"/> +<var name="entityName" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<doctype obj="doc" var="docType"/> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<entities obj="docType" var="entities"/> +<assertNotNull actual="entities" id="entitiesNotNull"/> +<getNamedItem obj="entities" name='"ent1"' var="entityNode"/> +<assertNotNull actual="entityNode" id="entityNodeNotNull"/> +<nodeName obj="entityNode" var="entityName"/> +<assertEquals actual="entityName" expected='"ent1"' id="entityNodeName" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeentitynodetype.xml b/test/testcases/tests/level1/core/nodeentitynodetype.xml new file mode 100644 index 0000000..a033257 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeentitynodetype.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeentitynodetype"> +<metadata> +<title>nodeEntityNodeType</title> +<creator>NIST</creator> +<description> + The "getNodeType()" method for an Entity Node + returns the constant value 6. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-111237558"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<var name="entities" type="NamedNodeMap"/> +<var name="entityNode" type="Node"/> +<var name="nodeType" type="int"/> +<load var="doc" href="staff" willBeModified="false"/> +<doctype obj="doc" var="docType"/> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<entities obj="docType" var="entities"/> +<assertNotNull actual="entities" id="entitiesNotNull"/> +<getNamedItem obj="entities" var="entityNode" name='"ent1"'/> +<assertNotNull actual="entityNode" id="ent1NotNull"/> +<nodeType obj="entityNode" var="nodeType"/> +<assertEquals actual="nodeType" expected="6" id="entityNodeType" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeentitynodevalue.xml b/test/testcases/tests/level1/core/nodeentitynodevalue.xml new file mode 100644 index 0000000..d02b393 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeentitynodevalue.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeentitynodevalue"> +<metadata> +<title>nodeEntityNodeValue</title> +<creator>NIST</creator> +<description> + The string returned by the "getNodeValue()" method for an + Entity Node is null. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<var name="entities" type="NamedNodeMap"/> +<var name="entityNode" type="Node"/> +<var name="entityValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<doctype obj="doc" var="docType"/> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<entities obj="docType" var="entities"/> +<assertNotNull actual="entities" id="entitiesNotNull"/> +<getNamedItem obj="entities" name='"ent1"' var="entityNode"/> +<assertNotNull actual="entityNode" id="ent1NotNull"/> +<nodeValue obj="entityNode" var="entityValue"/> +<assertNull actual="entityValue" id="entityNodeValue"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeentityreferencenodeattributes.xml b/test/testcases/tests/level1/core/nodeentityreferencenodeattributes.xml new file mode 100644 index 0000000..dd37ec9 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeentityreferencenodeattributes.xml @@ -0,0 +1,43 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeentityreferencenodeattributes"> +<metadata> +<title>nodeentityreferencenodeattributes</title> +<creator>NIST</creator> +<description> + The "getAttributes()" method invoked on an EntityReference + Node returns null. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="entRefAddr" type="Element"/> +<var name="entRefNode" type="Node"/> +<var name="attrList" type="NamedNodeMap"/> +<var name="nodeType" type="int"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"address"'/> +<item interface="NodeList" obj="elementList" index="1" var="entRefAddr"/> +<firstChild interface="Node" obj="entRefAddr" var="entRefNode"/> +<nodeType var="nodeType" obj="entRefNode"/> +<if><notEquals actual="nodeType" expected="5" ignoreCase="false"/> + <createEntityReference var="entRefNode" obj="doc" name='"ent2"'/> + <assertNotNull actual="entRefNode" id="createdEntRefNotNull"/> +</if> +<attributes obj="entRefNode" var="attrList"/> +<assertNull actual="attrList" id="attrList"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeentityreferencenodename.xml b/test/testcases/tests/level1/core/nodeentityreferencenodename.xml new file mode 100644 index 0000000..1cfc361 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeentityreferencenodename.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeentityreferencenodename"> +<metadata> +<title>nodeEntityReferenceNodeName</title> +<creator>NIST</creator> +<description> + The string returned by the "getNodeName()" method for an + EntityReference Node is the name of the entity referenced. + + Retrieve the first Entity Reference node from the last + child of the second employee and check the string + returned by the "getNodeName()" method. It should be + equal to "ent2". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="entRefAddr" type="Element"/> +<var name="entRefNode" type="Node"/> +<var name="entRefName" type="DOMString"/> +<var name="nodeType" type="int"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" + var="elementList" tagname='"address"'/> +<item interface="NodeList" obj="elementList" index="1" var="entRefAddr"/> +<firstChild interface="Node" obj="entRefAddr" var="entRefNode"/> +<nodeType var="nodeType" obj="entRefNode"/> +<if><notEquals actual="nodeType" expected="5" ignoreCase="false"/> + <createEntityReference var="entRefNode" obj="doc" name='"ent2"'/> + <assertNotNull actual="entRefNode" id="createdEntRefNotNull"/> +</if> +<nodeName obj="entRefNode" var="entRefName"/> +<assertEquals actual="entRefName" expected='"ent2"' id="nodeEntityReferenceNodeNameAssert1" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeentityreferencenodetype.xml b/test/testcases/tests/level1/core/nodeentityreferencenodetype.xml new file mode 100644 index 0000000..e512e17 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeentityreferencenodetype.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeentityreferencenodetype"> +<metadata> +<title>nodeEntityReferenceNodeType</title> +<creator>NIST</creator> +<description> + The "getNodeType()" method for an EntityReference Node + returns the constant value 5. + + Retrieve the EntityReference node from the last child + of the second employee and invoke the "getNodeType()" + method. The method should return 5. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-111237558"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="entRefAddr" type="Element"/> +<var name="entRefNode" type="Node"/> +<var name="nodeType" type="int"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" + var="elementList" tagname='"address"'/> +<item interface="NodeList" obj="elementList" index="1" var="entRefAddr"/> +<firstChild interface="Node" obj="entRefAddr" var="entRefNode"/> +<nodeType obj="entRefNode" var="nodeType"/> +<if><equals actual="nodeType" expected="3" ignoreCase="false"/> + <createEntityReference var="entRefNode" obj="doc" name='"ent2"'/> + <assertNotNull actual="entRefNode" id="createdEntRefNotNull"/> + <nodeType obj="entRefNode" var="nodeType"/> +</if> +<assertEquals actual="nodeType" expected="5" id="entityNodeType" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeentityreferencenodevalue.xml b/test/testcases/tests/level1/core/nodeentityreferencenodevalue.xml new file mode 100644 index 0000000..eef360e --- /dev/null +++ b/test/testcases/tests/level1/core/nodeentityreferencenodevalue.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeentityreferencenodevalue"> +<metadata> +<title>nodeEntityReferenceNodeValue</title> +<creator>NIST</creator> +<description> + The string returned by the "getNodeValue()" method for an + EntityReference Node is null. + + Retrieve the first Entity Reference node from the last + child of the second employee and check the string + returned by the "getNodeValue()" method. It should be + equal to null. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="entRefAddr" type="Element"/> +<var name="entRefNode" type="Node"/> +<var name="entRefValue" type="DOMString"/> +<var name="nodeType" type="int"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" + var="elementList" tagname='"address"'/> +<item interface="NodeList" obj="elementList" index="1" var="entRefAddr"/> +<firstChild interface="Node" obj="entRefAddr" var="entRefNode"/> +<nodeType var="nodeType" obj="entRefNode"/> +<if><equals actual="nodeType" expected="3" ignoreCase="false"/> + <createEntityReference var="entRefNode" obj="doc" name='"ent2"'/> + <assertNotNull actual="entRefNode" id="createdEntRefNotNull"/> +</if> +<nodeValue obj="entRefNode" var="entRefValue"/> +<assertNull actual="entRefValue" id="entRefNodeValue"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeentitysetnodevalue.xml b/test/testcases/tests/level1/core/nodeentitysetnodevalue.xml new file mode 100644 index 0000000..6a1c836 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeentitysetnodevalue.xml @@ -0,0 +1,43 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeentitysetnodevalue"> +<metadata> +<title>nodeentitysetnodevalue</title> +<creator>Curt Arnold</creator> +<description> + The string returned by the "getNodeValue()" method for an + Entity Node is always null and "setNodeValue" should have no effect. +</description> +<date qualifier="created">2001-10-21</date> +<!-- Node.nodeValue --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<!-- Entity interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-527DCFF2"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<var name="entities" type="NamedNodeMap"/> +<var name="entityNode" type="Node"/> +<var name="entityValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<doctype obj="doc" var="docType"/> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<entities obj="docType" var="entities"/> +<assertNotNull actual="entities" id="entitiesNotNull"/> +<getNamedItem obj="entities" name='"ent1"' var="entityNode"/> +<assertNotNull actual="entityNode" id="ent1NotNull"/> +<nodeValue obj="entityNode" value='"This should have no effect"'/> +<nodeValue obj="entityNode" var="entityValue"/> +<assertNull actual="entityValue" id="nodeValueNull"/> +</test> diff --git a/test/testcases/tests/level1/core/nodegetfirstchild.xml b/test/testcases/tests/level1/core/nodegetfirstchild.xml new file mode 100644 index 0000000..488eeef --- /dev/null +++ b/test/testcases/tests/level1/core/nodegetfirstchild.xml @@ -0,0 +1,41 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodegetfirstchild"> +<metadata> +<title>nodegetfirstchild</title> +<creator>NIST</creator> +<description> + The "getFirstChild()" method returns the first child + of this node. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-169727388"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="fchildNode" type="Node"/> +<var name="childName" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<firstChild interface="Node" obj="employeeNode" var="fchildNode"/> +<nodeName obj="fchildNode" var="childName"/> +<if><equals actual="childName" expected='"#text"' ignoreCase="false"/> +<nextSibling var="fchildNode" obj="fchildNode" interface="Node"/> +<nodeName obj="fchildNode" var="childName"/> +</if> +<assertEquals actual="childName" expected='"employeeId"' id="nodeName" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodegetfirstchildnull.xml b/test/testcases/tests/level1/core/nodegetfirstchildnull.xml new file mode 100644 index 0000000..cd67a6f --- /dev/null +++ b/test/testcases/tests/level1/core/nodegetfirstchildnull.xml @@ -0,0 +1,52 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodegetfirstchildnull"> +<metadata> +<title>nodeGetFirstChildNull</title> +<creator>NIST</creator> +<description> + + If there is not a first child then the "getFirstChild()" + + method returns null. + + + + Retrieve the Text node form the second child of the first + + employee and invoke the "getFirstChild()" method. It + + should return null. + +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-169727388"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="employeeList" type="NodeList"/> +<var name="secondChildNode" type="Node"/> +<var name="textNode" type="Node"/> +<var name="noChildNode" type="Node"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="employeeNode"/> +<childNodes obj="employeeNode" var="employeeList"/> +<item interface="NodeList" obj="employeeList" index="1" var="secondChildNode"/> +<firstChild interface="Node" obj="secondChildNode" var="textNode"/> +<firstChild interface="Node" obj="textNode" var="noChildNode"/> +<assertNull actual="noChildNode" id="nodeGetFirstChildNullAssert1"/> +</test> diff --git a/test/testcases/tests/level1/core/nodegetlastchild.xml b/test/testcases/tests/level1/core/nodegetlastchild.xml new file mode 100644 index 0000000..27a55ad --- /dev/null +++ b/test/testcases/tests/level1/core/nodegetlastchild.xml @@ -0,0 +1,41 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodegetlastchild"> +<metadata> +<title>nodegetlastchild</title> +<creator>NIST</creator> +<description> + The "getLastChild()" method returns the last child + of this node. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-61AD09FB"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="lchildNode" type="Node"/> +<var name="childName" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<lastChild interface="Node" obj="employeeNode" var="lchildNode"/> +<nodeName obj="lchildNode" var="childName"/> +<if><equals actual="childName" expected='"#text"' ignoreCase="false"/> +<previousSibling interface="Node" obj="lchildNode" var="lchildNode"/> +<nodeName obj="lchildNode" var="childName"/> +</if> +<assertEquals actual="childName" expected='"address"' id="nodeName" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodegetlastchildnull.xml b/test/testcases/tests/level1/core/nodegetlastchildnull.xml new file mode 100644 index 0000000..f493e1c --- /dev/null +++ b/test/testcases/tests/level1/core/nodegetlastchildnull.xml @@ -0,0 +1,52 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodegetlastchildnull"> +<metadata> +<title>nodeGetLastChildNull</title> +<creator>NIST</creator> +<description> + + If there is not a last child then the "getLastChild()" + + method returns null. + + + + Retrieve the Text node from the second child of the first + + employee and invoke the "getLastChild()" method. It + + should return null. + +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-61AD09FB"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="employeeList" type="NodeList"/> +<var name="secondChildNode" type="Node"/> +<var name="textNode" type="Node"/> +<var name="noChildNode" type="Node"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="employeeNode"/> +<childNodes obj="employeeNode" var="employeeList"/> +<item interface="NodeList" obj="employeeList" index="1" var="secondChildNode"/> +<firstChild interface="Node" obj="secondChildNode" var="textNode"/> +<lastChild interface="Node" obj="textNode" var="noChildNode"/> +<assertNull actual="noChildNode" id="nodeGetLastChildNullAssert1"/> +</test> diff --git a/test/testcases/tests/level1/core/nodegetnextsibling.xml b/test/testcases/tests/level1/core/nodegetnextsibling.xml new file mode 100644 index 0000000..a77741f --- /dev/null +++ b/test/testcases/tests/level1/core/nodegetnextsibling.xml @@ -0,0 +1,41 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodegetnextsibling"> +<metadata> +<title>nodegetnextsibling</title> +<creator>NIST</creator> +<description> + The "getNextSibling()" method returns the node immediately + following this node. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6AC54C2F"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeIdNode" type="Node"/> +<var name="nsNode" type="Node"/> +<var name="nsName" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"employeeId"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeIdNode"/> +<nextSibling interface="Node" obj="employeeIdNode" var="nsNode"/> +<nodeName obj="nsNode" var="nsName"/> +<if><equals actual="nsName" expected='"#text"' ignoreCase="false"/> +<nextSibling interface="Node" obj="nsNode" var="nsNode"/> +<nodeName obj="nsNode" var="nsName"/> +</if> +<assertEquals actual="nsName" expected='"name"' id="nodeName" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodegetnextsiblingnull.xml b/test/testcases/tests/level1/core/nodegetnextsiblingnull.xml new file mode 100644 index 0000000..b9ab799 --- /dev/null +++ b/test/testcases/tests/level1/core/nodegetnextsiblingnull.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodegetnextsiblingnull"> +<metadata> +<title>nodeGetNextSiblingNull</title> +<creator>NIST</creator> +<description> + + If there is not a node immediately following this node the + + "getNextSibling()" method returns null. + + + + Retrieve the first child of the second employee and + + invoke the "getNextSibling()" method. It should + + be set to null. + +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-6AC54C2F"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="lcNode" type="Node"/> +<var name="nsNode" type="Node"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<lastChild interface="Node" obj="employeeNode" var="lcNode"/> +<nextSibling interface="Node" obj="lcNode" var="nsNode"/> +<assertNull actual="nsNode" id="nodeGetNextSiblingNullAssert1"/> +</test> diff --git a/test/testcases/tests/level1/core/nodegetownerdocument.xml b/test/testcases/tests/level1/core/nodegetownerdocument.xml new file mode 100644 index 0000000..414a607 --- /dev/null +++ b/test/testcases/tests/level1/core/nodegetownerdocument.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodegetownerdocument"> +<metadata> +<title>nodeGetOwnerDocument</title> +<creator>NIST</creator> +<description> + The "getOwnerDocument()" method returns the Document + object associated with this node. + + Retrieve the second employee and examine Document + returned by the "getOwnerDocument()" method. Invoke + the "getDocumentElement()" on the Document which will + return an Element that is equal to "staff". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#node-ownerDoc"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=251"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="docNode" type="Node"/> +<var name="ownerDocument" type="Document"/> +<var name="docElement" type="Element"/> +<var name="elementName" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="docNode"/> +<ownerDocument obj="docNode" var="ownerDocument"/> +<documentElement obj="ownerDocument" var="docElement"/> +<nodeName obj="docElement" var="elementName"/> +<if><contentType type="image/svg+xml"/> +<assertEquals actual="elementName" expected='"svg"' id="svgTagName" ignoreCase="false"/> +<else> +<assertEquals actual="elementName" expected=""staff"" id="nodeGetOwnerDocumentAssert1" ignoreCase="false"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/nodegetownerdocumentnull.xml b/test/testcases/tests/level1/core/nodegetownerdocumentnull.xml new file mode 100644 index 0000000..ca50949 --- /dev/null +++ b/test/testcases/tests/level1/core/nodegetownerdocumentnull.xml @@ -0,0 +1,31 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodegetownerdocumentnull"> +<metadata> +<title>nodeGetOwnerDocumentNull</title> +<creator>NIST</creator> +<description> + The "getOwnerDocument()" method returns null if the target + node itself is a document. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#node-ownerDoc"/> +</metadata> +<var name="doc" type="Document"/> +<var name="ownerDocument" type="Document"/> +<load var="doc" href="staff" willBeModified="false"/> +<ownerDocument obj="doc" var="ownerDocument"/> +<assertNull actual="ownerDocument" id="documentOwnerDocumentNull"/> +</test> diff --git a/test/testcases/tests/level1/core/nodegetprevioussibling.xml b/test/testcases/tests/level1/core/nodegetprevioussibling.xml new file mode 100644 index 0000000..9ee58f2 --- /dev/null +++ b/test/testcases/tests/level1/core/nodegetprevioussibling.xml @@ -0,0 +1,41 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodegetprevioussibling"> +<metadata> +<title>nodegetprevioussibling</title> +<creator>NIST</creator> +<description> + The "getPreviousSibling()" method returns the node + immediately preceding this node. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-640FB3C8"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="psNode" type="Node"/> +<var name="psName" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""name"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="nameNode"/> +<previousSibling interface="Node" obj="nameNode" var="psNode"/> +<nodeName obj="psNode" var="psName"/> +<if><equals actual="psName" expected='"#text"' ignoreCase="false"/> +<previousSibling interface="Node" obj="psNode" var="psNode"/> +<nodeName obj="psNode" var="psName"/> +</if> +<assertEquals actual="psName" expected='"employeeId"' id="nodeName" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodegetprevioussiblingnull.xml b/test/testcases/tests/level1/core/nodegetprevioussiblingnull.xml new file mode 100644 index 0000000..6050c98 --- /dev/null +++ b/test/testcases/tests/level1/core/nodegetprevioussiblingnull.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodegetprevioussiblingnull"> +<metadata> +<title>nodeGetPreviousSiblingNull</title> +<creator>NIST</creator> +<description> + + If there is not a node immediately preceding this node the + + "getPreviousSibling()" method returns null. + + + + Retrieve the first child of the second employee and + + invoke the "getPreviousSibling()" method. It should + + be set to null. + +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-640FB3C8"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="fcNode" type="Node"/> +<var name="psNode" type="Node"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="2" var="employeeNode"/> +<firstChild interface="Node" obj="employeeNode" var="fcNode"/> +<previousSibling interface="Node" obj="fcNode" var="psNode"/> +<assertNull actual="psNode" id="nodeGetPreviousSiblingNullAssert1"/> +</test> diff --git a/test/testcases/tests/level1/core/nodehaschildnodes.xml b/test/testcases/tests/level1/core/nodehaschildnodes.xml new file mode 100644 index 0000000..edc5151 --- /dev/null +++ b/test/testcases/tests/level1/core/nodehaschildnodes.xml @@ -0,0 +1,39 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodehaschildnodes"> +<metadata> +<title>nodeHasChildNodes</title> +<creator>NIST</creator> +<description> + The "hasChildNodes()" method returns true if the node + has children. + + Retrieve the root node("staff") and invoke the + "hasChildNodes()" method. It should return the boolean + value "true". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-810594187"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="state" type="boolean"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<hasChildNodes obj="employeeNode" var="state"/> +<assertTrue actual="state" id="nodeHasChildAssert1"/> +</test> diff --git a/test/testcases/tests/level1/core/nodehaschildnodesfalse.xml b/test/testcases/tests/level1/core/nodehaschildnodesfalse.xml new file mode 100644 index 0000000..dd64125 --- /dev/null +++ b/test/testcases/tests/level1/core/nodehaschildnodesfalse.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodehaschildnodesfalse"> +<metadata> +<title>nodeHasChildNodesFalse</title> +<creator>NIST</creator> +<description> + The "hasChildNodes()" method returns false if the node + does not have any children. + + Retrieve the Text node inside the first child of the + second employee and invoke the "hasChildNodes()" method. + It should return the boolean value "false". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1451460987"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-810594187"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="child" type="Node"/> +<var name="employeeIdList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="textNode" type="Node"/> +<var name="state" type="boolean"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="child"/> +<childNodes obj="child" var="employeeIdList"/> +<item interface="NodeList" obj="employeeIdList" index="1" var="employeeNode"/> +<firstChild interface="Node" obj="employeeNode" var="textNode"/> +<hasChildNodes obj="textNode" var="state"/> +<assertFalse actual="state" id="nodeHasChildFalseAssert1"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeinsertbefore.xml b/test/testcases/tests/level1/core/nodeinsertbefore.xml new file mode 100644 index 0000000..810b427 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeinsertbefore.xml @@ -0,0 +1,87 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeinsertbefore"> +<metadata> +<title>nodeInsertBefore</title> +<creator>NIST</creator> +<description> + The "insertBefore(newChild,refChild)" method inserts the + node "newChild" before the node "refChild". + + Insert a newly created Element node before the eigth + child of the second employee and check the "newChild" + and "refChild" after insertion for correct placement. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="refChild" type="Node"/> +<var name="newChild" type="Node"/> +<var name="child" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="length" type="int"/> +<var name="insertedNode" type="Node"/> +<var name="actual" type="List"/> +<var name="expectedWithWhitespace" type="List"> +<member>"#text"</member> +<member>"employeeId"</member> +<member>"#text"</member> +<member>"name"</member> +<member>"#text"</member> +<member>"position"</member> +<member>"#text"</member> +<member>"newChild"</member> +<member>"salary"</member> +<member>"#text"</member> +<member>"gender"</member> +<member>"#text"</member> +<member>"address"</member> +<member>"#text"</member> +</var> +<var name="expectedWithoutWhitespace" type="List"> +<member>"employeeId"</member> +<member>"name"</member> +<member>"position"</member> +<member>"newChild"</member> +<member>"salary"</member> +<member>"gender"</member> +<member>"address"</member> +</var> +<var name="expected" type="List"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"employee"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<length var="length" obj="childList" interface="NodeList"/> +<if><equals actual="length" expected="6" ignoreCase="false"/> + <item interface="NodeList" obj="childList" index="3" var="refChild"/> + <assign var="expected" value="expectedWithoutWhitespace"/> + <else> + <item interface="NodeList" obj="childList" index="7" var="refChild"/> + <assign var="expected" value="expectedWithWhitespace"/> + </else> +</if> +<createElement obj="doc" tagName='"newChild"' var="newChild"/> +<insertBefore var="insertedNode" obj="employeeNode" newChild="newChild" refChild="refChild"/> +<for-each collection="childList" member="child"> + <nodeName obj="child" var="childName"/> + <append collection="actual" item="childName"/> +</for-each> +<assertEquals actual="actual" expected="expected" id="nodeNames" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeinsertbeforedocfragment.xml b/test/testcases/tests/level1/core/nodeinsertbeforedocfragment.xml new file mode 100644 index 0000000..6fd3579 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeinsertbeforedocfragment.xml @@ -0,0 +1,63 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeinsertbeforedocfragment"> +<metadata> +<title>nodeInsertBeforeDocFragment</title> +<creator>NIST</creator> +<description> + If the "newChild" is a DocumentFragment object then all + its children are inserted in the same order before the + the "refChild". + + Create a DocumentFragment object and populate it with + two Element nodes. Retrieve the second employee and + insert the newly created DocumentFragment before its + fourth child. The second employee should now have two + extra children("newChild1" and "newChild2") at + positions fourth and fifth respectively. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="refChild" type="Node"/> +<var name="newdocFragment" type="DocumentFragment"/> +<var name="newChild1" type="Node"/> +<var name="newChild2" type="Node"/> +<var name="child" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="appendedChild" type="Node"/> +<var name="insertedNode" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<item interface="NodeList" obj="childList" index="3" var="refChild"/> +<createDocumentFragment obj="doc" var="newdocFragment"/> +<createElement obj="doc" tagName=""newChild1"" var="newChild1"/> +<createElement obj="doc" tagName=""newChild2"" var="newChild2"/> +<appendChild var="appendedChild" obj="newdocFragment" newChild="newChild1"/> +<appendChild var="appendedChild" obj="newdocFragment" newChild="newChild2"/> +<insertBefore var="insertedNode" obj="employeeNode" newChild="newdocFragment" refChild="refChild"/> +<item interface="NodeList" obj="childList" index="3" var="child"/> +<nodeName obj="child" var="childName"/> +<assertEquals actual="childName" expected='"newChild1"' ignoreCase="false" id="childName3"/> +<item interface="NodeList" obj="childList" index="4" var="child"/> +<nodeName obj="child" var="childName"/> +<assertEquals actual="childName" expected='"newChild2"' ignoreCase="false" id="childName4"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeinsertbeforeinvalidnodetype.xml b/test/testcases/tests/level1/core/nodeinsertbeforeinvalidnodetype.xml new file mode 100644 index 0000000..3c0b3a7 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeinsertbeforeinvalidnodetype.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeinsertbeforeinvalidnodetype"> +<metadata> +<title>nodeInsertBeforeInvalidNodeType</title> +<creator>NIST</creator> +<description> + The "insertBefore(newChild,refChild)" method raises a + HIERARCHY_REQUEST_ERR DOMException if this node is of + a type that does not allow children of the type "newChild" + to be inserted. + + Retrieve the root node and attempt to insert a newly + created Attr node. An Element node cannot have children + of the "Attr" type, therefore the desired exception + should be raised. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='HIERARCHY_REQUEST_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-952280727')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='HIERARCHY_REQUEST_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="rootNode" type="Element"/> +<var name="newChild" type="Node"/> +<var name="elementList" type="NodeList"/> +<var name="refChild" type="Node"/> +<var name="insertedNode" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<documentElement obj="doc" var="rootNode"/> +<createAttribute obj="doc" name=""newAttribute"" var="newChild"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="refChild"/> +<assertDOMException id="throw_HIERARCHY_REQUEST_ERR"> +<HIERARCHY_REQUEST_ERR> +<insertBefore var="insertedNode" obj="rootNode" newChild="newChild" refChild="refChild"/> +</HIERARCHY_REQUEST_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/nodeinsertbeforenewchilddiffdocument.xml b/test/testcases/tests/level1/core/nodeinsertbeforenewchilddiffdocument.xml new file mode 100644 index 0000000..46a8aad --- /dev/null +++ b/test/testcases/tests/level1/core/nodeinsertbeforenewchilddiffdocument.xml @@ -0,0 +1,54 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeinsertbeforenewchilddiffdocument"> +<metadata> +<title>nodeInsertBeforeNewChildDiffDocument</title> +<creator>NIST</creator> +<description> + The "insertBefore(newChild,refChild)" method raises a + WRONG_DOCUMENT_ERR DOMException if the "newChild" was + created from a different document than the one that + created this node. + + Retrieve the second employee and attempt to insert a new + child that was created from a different document than the + one that created the second employee. An attempt to + insert such a child should raise the desired exception. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='WRONG_DOCUMENT_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-952280727')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='WRONG_DOCUMENT_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +</metadata> +<var name="doc1" type="Document"/> +<var name="doc2" type="Document"/> +<var name="refChild" type="Node"/> +<var name="newChild" type="Node"/> +<var name="elementList" type="NodeList"/> +<var name="elementNode" type="Node"/> +<var name="insertedNode" type="Node"/> +<load var="doc1" href="staff" willBeModified="false"/> +<load var="doc2" href="staff" willBeModified="true"/> +<createElement obj="doc1" tagName=""newChild"" var="newChild"/> +<getElementsByTagName interface="Document" obj="doc2" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="elementNode"/> +<firstChild var="refChild" obj="elementNode" interface="Node"/> +<assertDOMException id="throw_WRONG_DOCUMENT_ERR"> +<WRONG_DOCUMENT_ERR> +<insertBefore var="insertedNode" obj="elementNode" newChild="newChild" refChild="refChild"/> +</WRONG_DOCUMENT_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/nodeinsertbeforenewchildexists.xml b/test/testcases/tests/level1/core/nodeinsertbeforenewchildexists.xml new file mode 100644 index 0000000..c202d0f --- /dev/null +++ b/test/testcases/tests/level1/core/nodeinsertbeforenewchildexists.xml @@ -0,0 +1,89 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeinsertbeforenewchildexists"> +<metadata> +<title>nodeInsertBeforeNewChildExists</title> +<creator>NIST</creator> +<description> + If the "newChild" is already in the tree, the + "insertBefore(newChild,refChild)" method must first + remove it before the insertion takes place. + + Insert a node Element ("employeeId") that is already + present in the tree. The existing node should be + removed first and the new one inserted. The node is + inserted at a different position in the tree to assure + that it was indeed inserted. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="refChild" type="Node"/> +<var name="newChild" type="Node"/> +<var name="child" type="Node"/> +<var name="length" type="int"/> +<var name="childName" type="DOMString"/> +<var name="insertedNode" type="Node"/> +<var name="expectedWhitespace" type="List"> +<member>"#text"</member> +<member>"#text"</member> +<member>"name"</member> +<member>"#text"</member> +<member>"position"</member> +<member>"#text"</member> +<member>"salary"</member> +<member>"#text"</member> +<member>"gender"</member> +<member>"#text"</member> +<member>"employeeId"</member> +<member>"address"</member> +<member>"#text"</member> +</var> +<var name="expectedNoWhitespace" type="List"> +<member>"name"</member> +<member>"position"</member> +<member>"salary"</member> +<member>"gender"</member> +<member>"employeeId"</member> +<member>"address"</member> +</var> +<var name="expected" type="List"/> +<var name="result" type="List"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<length var="length" obj="childList" interface="NodeList"/> +<if><equals actual="length" expected="6" ignoreCase="false"/> + <assign var="expected" value="expectedNoWhitespace"/> + <item interface="NodeList" obj="childList" index="5" var="refChild"/> + <item interface="NodeList" obj="childList" index="0" var="newChild"/> + <else> + <assign var="expected" value="expectedWhitespace"/> + <item interface="NodeList" obj="childList" index="11" var="refChild"/> + <item interface="NodeList" obj="childList" index="1" var="newChild"/> + </else> +</if> +<insertBefore var="insertedNode" obj="employeeNode" newChild="newChild" refChild="refChild"/> +<for-each collection="childList" member="child"> + <nodeName obj="child" var="childName"/> + <append collection="result" item="childName"/> +</for-each> +<assertEquals id="childNames" actual="result" expected="expected" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeinsertbeforenodeancestor.xml b/test/testcases/tests/level1/core/nodeinsertbeforenodeancestor.xml new file mode 100644 index 0000000..6bcbea4 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeinsertbeforenodeancestor.xml @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeinsertbeforenodeancestor"> +<metadata> +<title>nodeInsertBeforeNodeAncestor</title> +<creator>NIST</creator> +<description> + The "insertBefore(newChild,refChild)" method raises a + HIERARCHY_REQUEST_ERR DOMException if the node to be + inserted is one of this nodes ancestors. + + Retrieve the second employee and attempt to insert a + node that is one of its ancestors(root node). An + attempt to insert such a node should raise the + desired exception. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='HIERARCHY_REQUEST_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-952280727')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='HIERARCHY_REQUEST_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newChild" type="Node"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="refChild" type="Node"/> +<var name="insertedNode" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<documentElement obj="doc" var="newChild"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<item interface="NodeList" obj="childList" index="0" var="refChild"/> +<assertDOMException id="throw_HIERARCHY_REQUEST_ERR"> +<HIERARCHY_REQUEST_ERR> +<insertBefore var="insertedNode" obj="employeeNode" newChild="newChild" refChild="refChild"/> +</HIERARCHY_REQUEST_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/nodeinsertbeforenodename.xml b/test/testcases/tests/level1/core/nodeinsertbeforenodename.xml new file mode 100644 index 0000000..b8333a2 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeinsertbeforenodename.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeinsertbeforenodename"> +<metadata> +<title>nodeInsertBeforeNodeName</title> +<creator>NIST</creator> +<description> + The "insertBefore(newChild,refchild)" method returns + the node being inserted. + + Insert an Element node before the fourth + child of the second employee and check the node + returned from the "insertBefore(newChild,refChild)" + method. The node returned should be "newChild". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="refChild" type="Node"/> +<var name="newChild" type="Node"/> +<var name="insertedNode" type="Node"/> +<var name="childName" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<item interface="NodeList" obj="childList" index="3" var="refChild"/> +<createElement obj="doc" tagName=""newChild"" var="newChild"/> +<insertBefore obj="employeeNode" newChild="newChild" refChild="refChild" var="insertedNode"/> +<nodeName obj="insertedNode" var="childName"/> +<assertEquals actual="childName" expected=""newChild"" id="nodeInsertBeforeNodeNameAssert1" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeinsertbeforenomodificationallowederr.xml b/test/testcases/tests/level1/core/nodeinsertbeforenomodificationallowederr.xml new file mode 100644 index 0000000..5fe4165 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeinsertbeforenomodificationallowederr.xml @@ -0,0 +1,62 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeinsertbeforenomodificationallowederr"> +<metadata> +<title>nodeInsertBeforeNoModificationAllowedErr</title> +<creator>NIST</creator> +<description> + The "insertBefore(newChild,refChild)" 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 "insertBefore(newChild,refChild)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-952280727')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +</metadata> +<var name="doc" type="Document"/> +<var name="genderList" type="NodeList"/> +<var name="genderNode" type="Node"/> +<var name="entRef" type="Node"/> +<var name="entElement" type="Node"/> +<var name="createdNode" type="Node"/> +<var name="insertedNode" type="Node"/> +<var name="refChild" type="Node" isNull="true"/> +<var name="nodeType" type="int"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""gender"" var="genderList"/> +<item obj="genderList" index="2" var="genderNode" interface="NodeList"/> +<firstChild interface="Node" var="entRef" obj="genderNode"/> +<assertNotNull actual="entRef" id="entRefNotNull"/> +<nodeType var="nodeType" obj="entRef"/> +<if><equals actual="nodeType" expected="1" ignoreCase="false"/> + <createEntityReference var="entRef" obj="doc" name='"ent4"'/> + <assertNotNull actual="entRef" id="createdEntRefNotNull"/> +</if> +<firstChild interface="Node" var="entElement" obj="entRef"/> +<assertNotNull actual="entElement" id="entElementNotNull"/> +<createElement obj="doc" tagName='"text3"' var="createdNode"/> +<assertDOMException id="throw_NOT_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<insertBefore var="insertedNode" obj="entElement" newChild="createdNode" refChild="refChild"/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/nodeinsertbeforenomodificationallowederrEE.xml b/test/testcases/tests/level1/core/nodeinsertbeforenomodificationallowederrEE.xml new file mode 100644 index 0000000..91033a4 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeinsertbeforenomodificationallowederrEE.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeinsertbeforenomodificationallowederrEE"> +<metadata> +<title>nodeInsertBeforeNoModificationAllowedErrEE</title> +<creator>Curt Arnold</creator> +<description> + The "insertBefore(newChild,refChild)" method causes the + DOMException NO_MODIFICATION_ALLOWED_ERR to be raised + if the node is readonly. + + Create an ent4 entity reference and and execute the "insertBefore(newChild,refChild)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. +</description> +<date qualifier="created">2001-08-21</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-952280727')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +<source resource="http://www.w3.org/2001/DOM-Test-Suite/level1/core/nodeinsertbeforenomodificationallowederr.xml"/> +</metadata> +<var name="doc" type="Document"/> +<var name="entRef" type="Node"/> +<var name="createdNode" type="Node"/> +<var name="insertedNode" type="Node"/> +<var name="refChild" type="Node" isNull="true"/> +<load var="doc" href="staff" willBeModified="true"/> +<createEntityReference var="entRef" obj="doc" name='"ent4"'/> +<assertNotNull actual="entRef" id="createdEntRefNotNull"/> +<createElement obj="doc" tagName='"text3"' var="createdNode"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<insertBefore var="insertedNode" obj="entRef" newChild="createdNode" refChild="refChild"/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/nodeinsertbeforerefchildnonexistent.xml b/test/testcases/tests/level1/core/nodeinsertbeforerefchildnonexistent.xml new file mode 100644 index 0000000..196814e --- /dev/null +++ b/test/testcases/tests/level1/core/nodeinsertbeforerefchildnonexistent.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeinsertbeforerefchildnonexistent"> +<metadata> +<title>nodeInsertBeforeRefChildNonexistent</title> +<creator>NIST</creator> +<description> + The "insertBefore(newChild,refChild)" method raises a + NOT_FOUND_ERR DOMException if the reference child is + not a child of this node. + + Retrieve the second employee and attempt to insert a + new node before a reference node that is not a child + of this node. An attempt to insert before a non child + node should raise the desired exception. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NOT_FOUND_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-952280727')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NOT_FOUND_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="refChild" type="Node"/> +<var name="newChild" type="Node"/> +<var name="elementList" type="NodeList"/> +<var name="elementNode" type="Node"/> +<var name="insertedNode" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<createElement obj="doc" tagName=""newChild"" var="newChild"/> +<createElement obj="doc" tagName=""refChild"" var="refChild"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="elementNode"/> +<assertDOMException id="throw_NOT_FOUND_ERR"> +<NOT_FOUND_ERR> +<insertBefore var="insertedNode" obj="elementNode" newChild="newChild" refChild="refChild"/> +</NOT_FOUND_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/nodeinsertbeforerefchildnull.xml b/test/testcases/tests/level1/core/nodeinsertbeforerefchildnull.xml new file mode 100644 index 0000000..a104b02 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeinsertbeforerefchildnull.xml @@ -0,0 +1,52 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeinsertbeforerefchildnull"> +<metadata> +<title>nodeInsertBeforeRefChildNull</title> +<creator>NIST</creator> +<description> + If the "refChild" is null then the + "insertBefore(newChild,refChild)" method inserts the + node "newChild" at the end of the list of children. + + Retrieve the second employee and invoke the + "insertBefore(newChild,refChild)" method with + refChild=null. Since "refChild" is null the "newChild" + should be added to the end of the list. The last item + in the list is checked after insertion. The last Element + node of the list should be "newChild". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-952280727"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="refChild" type="Node" isNull="true"/> +<var name="newChild" type="Node"/> +<var name="child" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="insertedNode" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<createElement obj="doc" tagName=""newChild"" var="newChild"/> +<insertBefore var="insertedNode" obj="employeeNode" newChild="newChild" refChild="refChild"/> +<lastChild interface="Node" obj="employeeNode" var="child"/> +<nodeName obj="child" var="childName"/> +<assertEquals actual="childName" expected=""newChild"" id="nodeInsertBeforeRefChildNullAssert1" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodelistindexequalzero.xml b/test/testcases/tests/level1/core/nodelistindexequalzero.xml new file mode 100644 index 0000000..19b3a33 --- /dev/null +++ b/test/testcases/tests/level1/core/nodelistindexequalzero.xml @@ -0,0 +1,43 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodelistindexequalzero"> +<metadata> +<title>nodelistindexequalzero</title> +<creator>NIST</creator> +<description> + Create a list of all the children elements of the third + employee and access its first child by using an index + of 0. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--item--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-844377136"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="employeeList" type="NodeList"/> +<var name="child" type="Node"/> +<var name="childName" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"employee"'/> +<item interface="NodeList" obj="elementList" var="employeeNode" index="2"/> +<childNodes obj="employeeNode" var="employeeList"/> +<item interface="NodeList" obj="employeeList" var="child" index="0"/> +<nodeName obj="child" var="childName"/> +<if><notEquals actual="childName" expected='"#text"' ignoreCase="false"/> +<assertEquals actual="childName" expected='"employeeId"' id="childName" ignoreCase="false"/> +</if> +</test> diff --git a/test/testcases/tests/level1/core/nodelistindexgetlength.xml b/test/testcases/tests/level1/core/nodelistindexgetlength.xml new file mode 100644 index 0000000..bd32f4f --- /dev/null +++ b/test/testcases/tests/level1/core/nodelistindexgetlength.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodelistindexgetlength"> +<metadata> +<title>nodelistIndexGetLength</title> +<creator>NIST</creator> +<description> + The "getLength()" method returns the number of nodes + in the list should be 6 (no whitespace) or 13. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--length attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-203510337"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="employeeList" type="NodeList"/> +<var name="length" type="int"/> +<var name="expectedCount" type="int" value="0"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""employee""/> +<item interface="NodeList" obj="elementList" var="employeeNode" index="2"/> +<childNodes obj="employeeNode" var="employeeList"/> +<length var="length" obj="employeeList" interface="NodeList"/> +<assertTrue id="lengthIs6or13"> + <or> + <equals actual="length" expected="6" ignoreCase="false"/> + <equals actual="length" expected="13" ignoreCase="false"/> + </or> +</assertTrue> +</test> diff --git a/test/testcases/tests/level1/core/nodelistindexgetlengthofemptylist.xml b/test/testcases/tests/level1/core/nodelistindexgetlengthofemptylist.xml new file mode 100644 index 0000000..f33c17b --- /dev/null +++ b/test/testcases/tests/level1/core/nodelistindexgetlengthofemptylist.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodelistindexgetlengthofemptylist"> +<metadata> +<title>nodelistIndexGetLengthOfEmptyList</title> +<creator>NIST</creator> +<description> + The "getLength()" method returns the number of nodes + in the list.(Test for EMPTY list) + + Create a list of all the children of the Text node + inside the first child of the third employee and + invoke the "getLength()" method. It should contain + the value 0. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--length attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-203510337"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="employeeList" type="NodeList"/> +<var name="childNode" type="Node"/> +<var name="textNode" type="Node"/> +<var name="textList" type="NodeList"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""employee""/> +<item interface="NodeList" obj="elementList" var="employeeNode" index="2"/> +<childNodes obj="employeeNode" var="employeeList"/> +<item interface="NodeList" obj="employeeList" var="childNode" index="1"/> +<firstChild interface="Node" obj="childNode" var="textNode"/> +<childNodes obj="textNode" var="textList"/> +<assertSize collection="textList" size="0" id="nodelistIndexGetLengthOfEmptyListAssert"/> +</test> diff --git a/test/testcases/tests/level1/core/nodelistindexnotzero.xml b/test/testcases/tests/level1/core/nodelistindexnotzero.xml new file mode 100644 index 0000000..f0331f0 --- /dev/null +++ b/test/testcases/tests/level1/core/nodelistindexnotzero.xml @@ -0,0 +1,52 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodelistindexnotzero"> +<metadata> +<title>nodelistIndexNotZero</title> +<creator>NIST</creator> +<description> + Create a list of all the children elements of the third + employee and access its fourth child by using an index + of 3. This should result in "name" being + selected. Further we evaluate its content(by using + the "getNodeName()" method) to ensure the proper + element was accessed. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--item--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-844377136"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="employeeList" type="NodeList"/> +<var name="child" type="Node"/> +<var name="length" type="int"/> +<var name="childName" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""employee""/> +<item interface="NodeList" obj="elementList" var="employeeNode" index="2"/> +<childNodes obj="employeeNode" var="employeeList"/> +<length var="length" obj="employeeList" interface="NodeList"/> +<if><equals actual="length" expected="6" ignoreCase="false"/> + <item interface="NodeList" obj="employeeList" var="child" index="1"/> +<else> + <item interface="NodeList" obj="employeeList" var="child" index="3"/> +</else> +</if> +<nodeName obj="child" var="childName"/> +<assertEquals actual="childName" expected='"name"' + id="nodeName" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodelistreturnfirstitem.xml b/test/testcases/tests/level1/core/nodelistreturnfirstitem.xml new file mode 100644 index 0000000..177c8e3 --- /dev/null +++ b/test/testcases/tests/level1/core/nodelistreturnfirstitem.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodelistreturnfirstitem"> +<metadata> +<title>nodelistReturnFirstItem</title> +<creator>NIST</creator> +<description> +Get the first child of the third employee using NodeList.item(0) +which will either be a Text node (whitespace) or employeeId element. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-844377136"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="employeeList" type="NodeList"/> +<var name="child" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="length" type="int"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname='"employee"'/> +<item interface="NodeList" obj="elementList" var="employeeNode" index="2"/> +<childNodes obj="employeeNode" var="employeeList"/> +<item interface="NodeList" obj="employeeList" var="child" index="0"/> +<nodeName obj="child" var="childName"/> +<length var="length" obj="employeeList" interface="NodeList"/> +<if><equals actual="length" expected="6" ignoreCase="false"/> +<assertEquals actual="childName" expected='"employeeId"' ignoreCase="true" id="firstChildNoWhitespace"/> +<else> +<assertEquals actual="childName" expected='"#text"' ignoreCase="true" id="firstChildWithWhitespace"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/nodelistreturnlastitem.xml b/test/testcases/tests/level1/core/nodelistreturnlastitem.xml new file mode 100644 index 0000000..fcf0700 --- /dev/null +++ b/test/testcases/tests/level1/core/nodelistreturnlastitem.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodelistreturnlastitem"> +<metadata> +<title>nodelistReturnLastItem</title> +<creator>NIST</creator> +<description> +Get this last child of the third employee using NodeList.item(NodeList.length - 1) +and check that it is either a Text element (with whitespace) or an address element. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-844377136"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="employeeList" type="NodeList"/> +<var name="child" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="length" type="int"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""employee""/> +<item interface="NodeList" obj="elementList" var="employeeNode" index="2"/> +<childNodes obj="employeeNode" var="employeeList"/> +<length var="length" obj="employeeList" interface="NodeList"/> +<if><equals actual="length" expected="6" ignoreCase="false"/> + <item interface="NodeList" obj="employeeList" var="child" index="5"/> + <nodeName obj="child" var="childName"/> + <assertEquals actual="childName" expected='"address"' id="nodeName1" ignoreCase="false"/> +<else> + <item interface="NodeList" obj="employeeList" var="child" index="12"/> + <nodeName obj="child" var="childName"/> + <assertEquals actual="childName" expected='"#text"' id="nodeName2" ignoreCase="false"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/nodelisttraverselist.xml b/test/testcases/tests/level1/core/nodelisttraverselist.xml new file mode 100644 index 0000000..abbcd40 --- /dev/null +++ b/test/testcases/tests/level1/core/nodelisttraverselist.xml @@ -0,0 +1,78 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodelisttraverselist"> +<metadata> +<title>nodelistTraverseList</title> +<creator>NIST</creator> +<description> + The range of valid child node indices is 0 thru length -1 + + Create a list of all the children elements of the third + employee and traverse the list from index=0 thru + length -1. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--length attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-203510337"/> +<!--item--> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-844377136"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="employeeList" type="NodeList"/> +<var name="child" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="result" type="List"/> +<var name="length" type="int"/> +<var name="expectedWhitespace" type="List"> +<member>"#text"</member> +<member>"employeeId"</member> +<member>"#text"</member> +<member>"name"</member> +<member>"#text"</member> +<member>"position"</member> +<member>"#text"</member> +<member>"salary"</member> +<member>"#text"</member> +<member>"gender"</member> +<member>"#text"</member> +<member>"address"</member> +<member>"#text"</member> +</var> +<var name="expectedNoWhitespace" type="List"> +<member>"employeeId"</member> +<member>"name"</member> +<member>"position"</member> +<member>"salary"</member> +<member>"gender"</member> +<member>"address"</member> +</var> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""employee""/> +<item interface="NodeList" obj="elementList" var="employeeNode" index="2"/> +<childNodes obj="employeeNode" var="employeeList"/> +<length var="length" obj="employeeList" interface="NodeList"/> +<for-each collection="employeeList" member="child"> + <nodeName obj="child" var="childName"/> + <append collection="result" item="childName"/> +</for-each> +<if><equals actual="length" expected="6" ignoreCase="false"/> + <assertEquals actual="result" expected="expectedNoWhitespace" id="nowhitespace" ignoreCase="false"/> +<else> + <assertEquals actual="result" expected="expectedWhitespace" id="whitespace" ignoreCase="false"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/nodenotationnodeattributes.xml b/test/testcases/tests/level1/core/nodenotationnodeattributes.xml new file mode 100644 index 0000000..09d0152 --- /dev/null +++ b/test/testcases/tests/level1/core/nodenotationnodeattributes.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodenotationnodeattributes"> +<metadata> +<title>nodeNotationNodeAttributes</title> +<creator>NIST</creator> +<description> + The "getAttributes()" method invoked on a Notation + Node returns null. + + Retrieve the Notation declaration inside the DocumentType + node and invoke the "getAttributes()" method on the + Notation Node. It should return null. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<var name="notations" type="NamedNodeMap"/> +<var name="notationNode" type="Node"/> +<var name="attrList" type="NamedNodeMap"/> +<load var="doc" href="staff" willBeModified="false"/> +<doctype obj="doc" var="docType"/> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<notations obj="docType" var="notations"/> +<assertNotNull actual="notations" id="notationsNotNull"/> +<getNamedItem obj="notations" name='"notation1"' var="notationNode"/> +<assertNotNull actual="notationNode" id="notationNotNull"/> +<attributes obj="notationNode" var="attrList"/> +<assertNull actual="attrList" id="nodeNotationNodeAttributesAssert1"/> +</test> diff --git a/test/testcases/tests/level1/core/nodenotationnodename.xml b/test/testcases/tests/level1/core/nodenotationnodename.xml new file mode 100644 index 0000000..97cd2b3 --- /dev/null +++ b/test/testcases/tests/level1/core/nodenotationnodename.xml @@ -0,0 +1,45 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodenotationnodename"> +<metadata> +<title>nodeNotationNodeName</title> +<creator>NIST</creator> +<description> + The string returned by the "getNodeName()" method for a + Notation Node is the name of the notation. + + Retrieve the Notation declaration inside the + DocumentType node and check the string returned + by the "getNodeName()" method. It should be equal to + "notation1". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<var name="notations" type="NamedNodeMap"/> +<var name="notationNode" type="Node"/> +<var name="notationName" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<doctype obj="doc" var="docType"/> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<notations obj="docType" var="notations"/> +<assertNotNull actual="notations" id="notationsNotNull"/> +<getNamedItem obj="notations" name='"notation1"' var="notationNode"/> +<assertNotNull actual="notationNode" id="notationNotNull"/> +<nodeName obj="notationNode" var="notationName"/> +<assertEquals actual="notationName" expected='"notation1"' id="nodeName" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodenotationnodetype.xml b/test/testcases/tests/level1/core/nodenotationnodetype.xml new file mode 100644 index 0000000..c2243d4 --- /dev/null +++ b/test/testcases/tests/level1/core/nodenotationnodetype.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodenotationnodetype"> +<metadata> +<title>nodeNotationNodeType</title> +<creator>NIST</creator> +<description> + The "getNodeType()" method for an Notation Node + returns the constant value 12. + + Retrieve the Notation declaration in the DocumentType + node and invoke the "getNodeType()" method. The method + should return 12. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-111237558"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<var name="notations" type="NamedNodeMap"/> +<var name="notationNode" type="Notation"/> +<var name="nodeType" type="int"/> +<load var="doc" href="staff" willBeModified="false"/> +<doctype obj="doc" var="docType"/> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<notations obj="docType" var="notations"/> +<assertNotNull actual="notations" id="notationsNotNull"/> +<getNamedItem obj="notations" var="notationNode" name='"notation1"'/> +<assertNotNull actual="notationNode" id="notationNotNull"/> +<nodeType obj="notationNode" var="nodeType"/> +<assertEquals actual="nodeType" expected="12" id="nodeNotationNodeTypeAssert1" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodenotationnodevalue.xml b/test/testcases/tests/level1/core/nodenotationnodevalue.xml new file mode 100644 index 0000000..787ae9e --- /dev/null +++ b/test/testcases/tests/level1/core/nodenotationnodevalue.xml @@ -0,0 +1,45 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodenotationnodevalue"> +<metadata> +<title>nodeNotationNodeValue</title> +<creator>NIST</creator> +<description> + The string returned by the "getNodeValue()" method for a + Notation Node is null. + + Retrieve the Notation declaration inside the + DocumentType node and check the string returned + by the "getNodeValue()" method. It should be equal to + null. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<var name="notations" type="NamedNodeMap"/> +<var name="notationNode" type="Node"/> +<var name="notationValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<doctype obj="doc" var="docType"/> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<notations obj="docType" var="notations"/> +<assertNotNull actual="notations" id="notationsNotNull"/> +<getNamedItem obj="notations" name=""notation1"" var="notationNode"/> +<assertNotNull actual="notationNode" id="notationNotNull"/> +<nodeValue obj="notationNode" var="notationValue"/> +<assertNull actual="notationValue" id="nodeValue"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeparentnode.xml b/test/testcases/tests/level1/core/nodeparentnode.xml new file mode 100644 index 0000000..1984a7b --- /dev/null +++ b/test/testcases/tests/level1/core/nodeparentnode.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeparentnode"> +<metadata> +<title>nodeParentNode</title> +<creator>NIST</creator> +<description> + The "getParentNode()" method returns the parent + of this node. + + Retrieve the second employee and invoke the + "getParentNode()" method on this node. It should + be set to "staff". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1060184317"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=251"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="parentNode" type="Node"/> +<var name="parentName" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<parentNode interface="Node" obj="employeeNode" var="parentNode"/> +<nodeName obj="parentNode" var="parentName"/> +<if><contentType type="image/svg+xml"/> +<assertEquals actual="parentName" expected='"svg"' id="svgTagName" ignoreCase="false"/> +<else> +<assertEquals actual="parentName" expected='"staff"' id="nodeParentNodeAssert1" ignoreCase="false"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/nodeparentnodenull.xml b/test/testcases/tests/level1/core/nodeparentnodenull.xml new file mode 100644 index 0000000..01dacd2 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeparentnodenull.xml @@ -0,0 +1,37 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeparentnodenull"> +<metadata> +<title>nodeParentNodeNull</title> +<creator>NIST</creator> +<description> + The "getParentNode()" method invoked on a node that has + just been created and not yet added to the tree is null. + + Create a new "employee" Element node using the + "createElement(name)" method from the Document interface. + Since this new node has not yet been added to the tree, + the "getParentNode()" method will return null. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1060184317"/> +</metadata> +<var name="doc" type="Document"/> +<var name="createdNode" type="Element"/> +<var name="parentNode" type="Node"/> +<load var="doc" href="staff" willBeModified="false"/> +<createElement obj="doc" tagName='"employee"' var="createdNode"/> +<parentNode interface="Node" obj="createdNode" var="parentNode"/> +<assertNull actual="parentNode" id="parentNode"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeprocessinginstructionnodeattributes.xml b/test/testcases/tests/level1/core/nodeprocessinginstructionnodeattributes.xml new file mode 100644 index 0000000..100fc48 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeprocessinginstructionnodeattributes.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeprocessinginstructionnodeattributes"> +<metadata> +<title>nodeProcessingInstructionNodeAttributes</title> +<creator>NIST</creator> +<description> + + The "getAttributes()" method invoked on a Processing + + Instruction Node returns null. + + + + Retrieve the Processing Instruction node and invoke + + the "getAttributes()" method. It should return null. + +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +</metadata> +<var name="doc" type="Document"/> +<var name="testList" type="NodeList"/> +<var name="piNode" type="Node"/> +<var name="attrList" type="NamedNodeMap"/> +<load var="doc" href="staff" willBeModified="false"/> +<childNodes obj="doc" var="testList"/> +<item interface="NodeList" obj="testList" index="0" var="piNode"/> +<attributes obj="piNode" var="attrList"/> +<assertNull actual="attrList" id="nodeProcessingInstructionNodeAttrAssert1"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeprocessinginstructionnodename.xml b/test/testcases/tests/level1/core/nodeprocessinginstructionnodename.xml new file mode 100644 index 0000000..e26e024 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeprocessinginstructionnodename.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeprocessinginstructionnodename"> +<metadata> +<title>nodeProcessingInstructionNodeName</title> +<creator>NIST</creator> +<description> + + The string returned by the "getNodeName()" method for a + + Processing Instruction Node is the target. + + + + Retrieve the Processing Instruction Node in the XML file + + and check the string returned by the "getNodeName()" + + method. It should be equal to "XML-STYLE". + +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +</metadata> +<var name="doc" type="Document"/> +<var name="testList" type="NodeList"/> +<var name="piNode" type="Node"/> +<var name="piName" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<childNodes obj="doc" var="testList"/> +<item interface="NodeList" obj="testList" index="0" var="piNode"/> +<nodeName obj="piNode" var="piName"/> +<assertEquals actual="piName" expected=""TEST-STYLE"" id="nodeProcessingInstructionNodeNameAssert1" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeprocessinginstructionnodetype.xml b/test/testcases/tests/level1/core/nodeprocessinginstructionnodetype.xml new file mode 100644 index 0000000..401dbbb --- /dev/null +++ b/test/testcases/tests/level1/core/nodeprocessinginstructionnodetype.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeprocessinginstructionnodetype"> +<metadata> +<title>nodeProcessingInstructionNodeType</title> +<creator>NIST</creator> +<description> + + The "getNodeType()" method for a Processing Instruction + + node returns the constant value 7. + + + + Retrieve a NodeList of child elements from the document. + + Retrieve the first child and invoke the "getNodeType()" + + method. The method should return 7. + +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-111237558"/> +</metadata> +<var name="doc" type="Document"/> +<var name="testList" type="NodeList"/> +<var name="piNode" type="Node"/> +<var name="nodeType" type="int"/> +<load var="doc" href="staff" willBeModified="false"/> +<childNodes obj="doc" var="testList"/> +<item interface="NodeList" obj="testList" var="piNode" index="0"/> +<nodeType obj="piNode" var="nodeType"/> +<assertEquals actual="nodeType" expected="7" id="nodeProcessingInstructionNodeTypeAssert1" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeprocessinginstructionnodevalue.xml b/test/testcases/tests/level1/core/nodeprocessinginstructionnodevalue.xml new file mode 100644 index 0000000..fa10a90 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeprocessinginstructionnodevalue.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeprocessinginstructionnodevalue"> +<metadata> +<title>nodeProcessingInstructionNodeValue</title> +<creator>NIST</creator> +<description> + The string returned by the "getNodeValue()" method for a + Processing Instruction Node is the content of the + Processing Instruction(exclude the target). + + Retrieve the Processing Instruction node in the XML file + and check the string returned by the "getNodeValue()" + method. It should be equal to "PIDATA". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +</metadata> +<var name="doc" type="Document"/> +<var name="testList" type="NodeList"/> +<var name="piNode" type="Node"/> +<var name="piValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<childNodes obj="doc" var="testList"/> +<item interface="NodeList" obj="testList" index="0" var="piNode"/> +<nodeValue obj="piNode" var="piValue"/> +<assertEquals actual="piValue" expected=""PIDATA"" id="value" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodeprocessinginstructionsetnodevalue.xml b/test/testcases/tests/level1/core/nodeprocessinginstructionsetnodevalue.xml new file mode 100644 index 0000000..78f0f65 --- /dev/null +++ b/test/testcases/tests/level1/core/nodeprocessinginstructionsetnodevalue.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodeprocessinginstructionsetnodevalue"> +<metadata> +<title>nodeProcessingInstructionSetNodeValue</title> +<creator>Curt Arnold</creator> +<description> + Setting the nodeValue should change the value returned by + nodeValue and ProcessingInstruction.getData. +</description> +<date qualifier="created">2001-10-21</date> +<!-- Node.nodeValue --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<!-- ProcessingInstruction interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1004215813"/> +<!--data attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-837822393"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=181"/> +</metadata> +<var name="doc" type="Document"/> +<var name="testList" type="NodeList"/> +<var name="piNode" type="Node"/> +<var name="piValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<childNodes obj="doc" var="testList"/> +<item interface="NodeList" obj="testList" index="0" var="piNode"/> +<nodeValue obj="piNode" value='"Something different"'/> +<nodeValue obj="piNode" var="piValue"/> +<assertEquals actual="piValue" expected='"Something different"' id="nodeValue" ignoreCase="false"/> +<data interface="ProcessingInstruction" obj="piNode" var="piValue"/> +<assertEquals actual="piValue" expected='"Something different"' id="data" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/noderemovechild.xml b/test/testcases/tests/level1/core/noderemovechild.xml new file mode 100644 index 0000000..4ccd597 --- /dev/null +++ b/test/testcases/tests/level1/core/noderemovechild.xml @@ -0,0 +1,45 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="noderemovechild"> +<metadata> +<title>nodeRemoveChild</title> +<creator>NIST</creator> +<description> + The "removeChild(oldChild)" method removes the child node + indicated by "oldChild" from the list of children and + returns it. + + Remove the first employee by invoking the + "removeChild(oldChild)" method an checking the + node returned by the "getParentNode()" method. It + should be set to null. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1734834066"/> +</metadata> +<var name="doc" type="Document"/> +<var name="rootNode" type="Element"/> +<var name="childList" type="NodeList"/> +<var name="childToRemove" type="Node"/> +<var name="removedChild" type="Node"/> +<var name="parentNode" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<documentElement obj="doc" var="rootNode"/> +<childNodes obj="rootNode" var="childList"/> +<item interface="NodeList" obj="childList" index="1" var="childToRemove"/> +<removeChild obj="rootNode" var="removedChild" oldChild="childToRemove"/> +<parentNode interface="Node" obj="removedChild" var="parentNode"/> +<assertNull actual="parentNode" id="nodeRemoveChildAssert1"/> +</test> diff --git a/test/testcases/tests/level1/core/noderemovechildgetnodename.xml b/test/testcases/tests/level1/core/noderemovechildgetnodename.xml new file mode 100644 index 0000000..33da6b7 --- /dev/null +++ b/test/testcases/tests/level1/core/noderemovechildgetnodename.xml @@ -0,0 +1,51 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="noderemovechildgetnodename"> +<metadata> +<title>nodeRemoveChildGetNodeName</title> +<creator>NIST</creator> +<description> + Remove the first child of the second employee + and check the NodeName returned by the + "removeChild(oldChild)" method. The returned node + should have a NodeName equal to "#text" or employeeId depending on whitespace. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1734834066"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="oldChild" type="Node"/> +<var name="removedChild" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="length" type="int"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"employee"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<length var="length" obj="childList" interface="NodeList"/> +<item interface="NodeList" obj="childList" index="0" var="oldChild"/> +<removeChild obj="employeeNode" oldChild="oldChild" var="removedChild"/> +<nodeName obj="removedChild" var="childName"/> +<if><equals actual="length" expected="6" ignoreCase="false"/> + <assertEquals actual="childName" expected='"employeeId"' id="nowhitespace" ignoreCase="false"/> +<else> + <assertEquals actual="childName" expected='"#text"' id="whitespace" ignoreCase="false"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/noderemovechildnode.xml b/test/testcases/tests/level1/core/noderemovechildnode.xml new file mode 100644 index 0000000..7d83ce3 --- /dev/null +++ b/test/testcases/tests/level1/core/noderemovechildnode.xml @@ -0,0 +1,57 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="noderemovechildnode"> +<metadata> +<title>nodeRemoveChildNode</title> +<creator>NIST</creator> +<description> + Retrieve the second employee and remove its first child. + After the removal, the second employee should have five or twelve + children and the first child should now be the child + that used to be at the second position in the list. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1734834066"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="oldChild" type="Node"/> +<var name="child" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="length" type="int"/> +<var name="removedChild" type="Node"/> +<var name="removedName" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<item interface="NodeList" obj="childList" index="0" var="oldChild"/> +<removeChild var="removedChild" obj="employeeNode" oldChild="oldChild"/> +<nodeName obj="removedChild" var="removedName"/> +<item interface="NodeList" obj="childList" index="0" var="child"/> +<nodeName obj="child" var="childName"/> +<length interface="NodeList" obj="childList" var="length"/> +<if><equals actual="length" expected="5" ignoreCase="false"/> + <assertEquals actual="removedName" expected='"employeeId"' ignoreCase="false" id="removedNameNoWhitespace"/> + <assertEquals actual="childName" expected='"name"' ignoreCase="false" id="childNameNoWhitespace"/> +<else> + <assertEquals actual="removedName" expected='"#text"' ignoreCase="false" id="removedName"/> + <assertEquals actual="childName" expected='"employeeId"' ignoreCase="false" id="childName"/> + <assertEquals actual="length" expected="12" ignoreCase="false" id="length"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/noderemovechildnomodificationallowederr.xml b/test/testcases/tests/level1/core/noderemovechildnomodificationallowederr.xml new file mode 100644 index 0000000..72c050a --- /dev/null +++ b/test/testcases/tests/level1/core/noderemovechildnomodificationallowederr.xml @@ -0,0 +1,59 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="noderemovechildnomodificationallowederr"> +<metadata> +<title>nodeRemoveChildNoModificationAllowedErr</title> +<creator>NIST</creator> +<description> + The "removeChild(oldChild)" 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 "removeChild(oldChild)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1734834066"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-1734834066')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1734834066"/> +</metadata> +<var name="doc" type="Document"/> +<var name="genderList" type="NodeList"/> +<var name="genderNode" type="Node"/> +<var name="entRef" type="Node"/> +<var name="entElement" type="Node"/> +<var name="removedNode" type="Node"/> +<var name="nodeType" type="int"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""gender"" var="genderList"/> +<item obj="genderList" index="2" var="genderNode" interface="NodeList"/> +<firstChild interface="Node" var="entRef" obj="genderNode"/> +<assertNotNull actual="entRef" id="entRefNotNull"/> +<nodeType var="nodeType" obj="entRef"/> +<if><equals actual="nodeType" expected="1" ignoreCase="false"/> + <createEntityReference var="entRef" obj="doc" name='"ent4"'/> + <assertNotNull actual="entRef" id="createdEntRefNotNull"/> +</if> +<firstChild interface="Node" var="entElement" obj="entRef"/> +<assertNotNull actual="entElement" id="entElementNotNull"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<removeChild var="removedNode" obj="entRef" oldChild="entElement"/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/noderemovechildnomodificationallowederrEE.xml b/test/testcases/tests/level1/core/noderemovechildnomodificationallowederrEE.xml new file mode 100644 index 0000000..47dc24d --- /dev/null +++ b/test/testcases/tests/level1/core/noderemovechildnomodificationallowederrEE.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="noderemovechildnomodificationallowederrEE"> +<metadata> +<title>nodeRemoveChildNoModificationAllowedErrEE</title> +<creator>Curt Arnold</creator> +<description> + The "removeChild(oldChild)" method causes the + DOMException NO_MODIFICATION_ALLOWED_ERR to be raised + if the node is readonly. + + Create an entity reference and execute the "removeChild(oldChild)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. +</description> +<date qualifier="created">2001-08-21</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1734834066"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-1734834066')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1734834066"/> +<source resource="http://www.w3.org/2001/DOM-Test-Suite/level1/core/noderemovechildnomodificationallowederr.xml"/> +</metadata> +<var name="doc" type="Document"/> +<var name="entRef" type="Node"/> +<var name="entText" type="Node"/> +<var name="removedNode" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<createEntityReference var="entRef" obj="doc" name='"ent4"'/> +<assertNotNull actual="entRef" id="createdEntRefNotNull"/> +<firstChild interface="Node" var="entText" obj="entRef"/> +<assertNotNull actual="entText" id="entTextNotNull"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<removeChild var="removedNode" obj="entRef" oldChild="entText"/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/noderemovechildoldchildnonexistent.xml b/test/testcases/tests/level1/core/noderemovechildoldchildnonexistent.xml new file mode 100644 index 0000000..472de7a --- /dev/null +++ b/test/testcases/tests/level1/core/noderemovechildoldchildnonexistent.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="noderemovechildoldchildnonexistent"> +<metadata> +<title>nodeRemoveChildOldChildNonexistent</title> +<creator>NIST</creator> +<description> + The "removeChild(oldChild)" method raises a + NOT_FOUND_ERR DOMException if the old child is + not a child of this node. + + Retrieve the second employee and attempt to remove a + node that is not one of its children. An attempt to + remove such a node should raise the desired exception. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NOT_FOUND_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1734834066"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-1734834066')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NOT_FOUND_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1734834066"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="oldChild" type="Node"/> +<var name="elementList" type="NodeList"/> +<var name="elementNode" type="Node"/> +<var name="removedChild" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<createElement obj="doc" tagName=""oldChild"" var="oldChild"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="elementNode"/> +<assertDOMException id="throw_NOT_FOUND_ERR"> +<NOT_FOUND_ERR> +<removeChild var="removedChild" obj="elementNode" oldChild="oldChild"/> +</NOT_FOUND_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/nodereplacechild.xml b/test/testcases/tests/level1/core/nodereplacechild.xml new file mode 100644 index 0000000..4e6b4e5 --- /dev/null +++ b/test/testcases/tests/level1/core/nodereplacechild.xml @@ -0,0 +1,50 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodereplacechild"> +<metadata> +<title>nodeReplaceChild</title> +<creator>NIST</creator> +<description> + The "replaceChild(newChild,oldChild)" method replaces + the node "oldChild" with the node "newChild". + + Replace the first element of the second employee with + a newly created Element node. Check the first position + after the replacement operation is completed. The new + Element should be "newChild". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="oldChild" type="Node"/> +<var name="newChild" type="Node"/> +<var name="child" type="Node"/> +<var name="childName" type="DOMString"/> +<var name="replacedNode" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<item interface="NodeList" obj="childList" index="0" var="oldChild"/> +<createElement obj="doc" tagName=""newChild"" var="newChild"/> +<replaceChild var="replacedNode" obj="employeeNode" newChild="newChild" oldChild="oldChild"/> +<item interface="NodeList" obj="childList" index="0" var="child"/> +<nodeName obj="child" var="childName"/> +<assertEquals actual="childName" expected=""newChild"" id="nodeReplaceChildAssert1" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodereplacechildinvalidnodetype.xml b/test/testcases/tests/level1/core/nodereplacechildinvalidnodetype.xml new file mode 100644 index 0000000..4ca9203 --- /dev/null +++ b/test/testcases/tests/level1/core/nodereplacechildinvalidnodetype.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodereplacechildinvalidnodetype"> +<metadata> +<title>nodeReplaceChildInvalidNodeType</title> +<creator>NIST</creator> +<description> + The "replaceChild(newChild,oldChild)" method raises a + HIERARCHY_REQUEST_ERR DOMException if this node is of + a type that does not allow children of the type "newChild" + to be inserted. + + Retrieve the root node and attempt to replace + one of its children with a newly created Attr node. + An Element node cannot have children of the "Attr" + type, therefore the desired exception should be raised. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='HIERARCHY_REQUEST_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-785887307')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='HIERARCHY_REQUEST_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="rootNode" type="Element"/> +<var name="newChild" type="Node"/> +<var name="elementList" type="NodeList"/> +<var name="oldChild" type="Node"/> +<var name="replacedChild" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<documentElement obj="doc" var="rootNode"/> +<createAttribute obj="doc" name=""newAttribute"" var="newChild"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="oldChild"/> +<assertDOMException id="throw_HIERARCHY_REQUEST_ERR"> +<HIERARCHY_REQUEST_ERR> +<replaceChild var="replacedChild" obj="rootNode" newChild="newChild" oldChild="oldChild"/> +</HIERARCHY_REQUEST_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/nodereplacechildnewchilddiffdocument.xml b/test/testcases/tests/level1/core/nodereplacechildnewchilddiffdocument.xml new file mode 100644 index 0000000..d441e65 --- /dev/null +++ b/test/testcases/tests/level1/core/nodereplacechildnewchilddiffdocument.xml @@ -0,0 +1,54 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodereplacechildnewchilddiffdocument"> +<metadata> +<title>nodeReplaceChildNewChildDiffDocument</title> +<creator>NIST</creator> +<description> + The "replaceChild(newChild,oldChild)" method raises a + WRONG_DOCUMENT_ERR DOMException if the "newChild" was + created from a different document than the one that + created this node. + + Retrieve the second employee and attempt to replace one + of its children with a node created from a different + document. An attempt to make such a replacement + should raise the desired exception. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NOT_FOUND_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-785887307')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NOT_FOUND_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307"/> +</metadata> +<var name="doc1" type="Document"/> +<var name="doc2" type="Document"/> +<var name="oldChild" type="Node"/> +<var name="newChild" type="Node"/> +<var name="elementList" type="NodeList"/> +<var name="elementNode" type="Node"/> +<var name="replacedChild" type="Node"/> +<load var="doc1" href="staff" willBeModified="false"/> +<load var="doc2" href="staff" willBeModified="true"/> +<createElement obj="doc1" tagName=""newChild"" var="newChild"/> +<getElementsByTagName interface="Document" obj="doc2" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="elementNode"/> +<firstChild obj="elementNode" var="oldChild" interface="Node"/> +<assertDOMException id="throw_WRONG_DOCUMENT_ERR"> +<WRONG_DOCUMENT_ERR> +<replaceChild var="replacedChild" obj="elementNode" newChild="newChild" oldChild="oldChild"/> +</WRONG_DOCUMENT_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/nodereplacechildnewchildexists.xml b/test/testcases/tests/level1/core/nodereplacechildnewchildexists.xml new file mode 100644 index 0000000..87a05eb --- /dev/null +++ b/test/testcases/tests/level1/core/nodereplacechildnewchildexists.xml @@ -0,0 +1,84 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodereplacechildnewchildexists"> +<metadata> +<title>nodeReplaceChildNewChildExists</title> +<creator>NIST</creator> +<description> + Retrieve the second employee and replace its TWELFTH + child(address) with its SECOND child(employeeId). After the + replacement the second child should now be the one that used + to be at the third position and the TWELFTH child should be the + one that used to be at the SECOND position. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="oldChild" type="Node" isNull="true"/> +<var name="newChild" type="Node" isNull="true"/> +<var name="childName" type="DOMString"/> +<var name="childNode" type="Node"/> +<var name="length" type="int"/> +<var name="actual" type="List"/> +<var name="expected" type="List"/> +<var name="expectedWithoutWhitespace" type="List"> +<member>"name"</member> +<member>"position"</member> +<member>"salary"</member> +<member>"gender"</member> +<member>"employeeId"</member> +</var> +<var name="expectedWithWhitespace" type="List"> +<member>"#text"</member> +<member>"#text"</member> +<member>"name"</member> +<member>"#text"</member> +<member>"position"</member> +<member>"#text"</member> +<member>"salary"</member> +<member>"#text"</member> +<member>"gender"</member> +<member>"#text"</member> +<member>"employeeId"</member> +<member>"#text"</member> +</var> +<var name="replacedChild" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname='"employee"' var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<length var="length" obj="childList" interface="NodeList"/> +<if><equals actual="length" expected="13" ignoreCase="false"/> + <item interface="NodeList" obj="childList" index="1" var="newChild"/> + <item interface="NodeList" obj="childList" index="11" var="oldChild"/> + <assign var="expected" value="expectedWithWhitespace"/> +<else> + <item interface="NodeList" obj="childList" index="0" var="newChild"/> + <item interface="NodeList" obj="childList" index="5" var="oldChild"/> + <assign var="expected" value="expectedWithoutWhitespace"/> +</else> +</if> +<replaceChild var="replacedChild" obj="employeeNode" newChild="newChild" oldChild="oldChild"/> +<assertSame actual="replacedChild" expected="oldChild" id="return_value_same"/> +<for-each collection="childList" member="childNode"> + <nodeName var="childName" obj="childNode"/> + <append collection="actual" item="childName"/> +</for-each> +<assertEquals actual="actual" expected="expected" id="childNames" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodereplacechildnodeancestor.xml b/test/testcases/tests/level1/core/nodereplacechildnodeancestor.xml new file mode 100644 index 0000000..8073e13 --- /dev/null +++ b/test/testcases/tests/level1/core/nodereplacechildnodeancestor.xml @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodereplacechildnodeancestor"> +<metadata> +<title>nodeReplaceChildNodeAncestor</title> +<creator>NIST</creator> +<description> + The "replaceChild(newChild,oldChild)" method raises a + HIERARCHY_REQUEST_ERR DOMException if the node to put + in is one of this node's ancestors. + + Retrieve the second employee and attempt to replace + one of its children with an ancestor node(root node). + An attempt to make such a replacement should raise the + desired exception. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='HIERARCHY_REQUEST_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-785887307')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='HIERARCHY_REQUEST_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newChild" type="Node"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="oldChild" type="Node"/> +<var name="replacedNode" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<documentElement obj="doc" var="newChild"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<item interface="NodeList" obj="childList" index="0" var="oldChild"/> +<assertDOMException id="throw_HIERARCHY_REQUEST_ERR"> +<HIERARCHY_REQUEST_ERR> +<replaceChild var="replacedNode" obj="employeeNode" newChild="newChild" oldChild="oldChild"/> +</HIERARCHY_REQUEST_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/nodereplacechildnodename.xml b/test/testcases/tests/level1/core/nodereplacechildnodename.xml new file mode 100644 index 0000000..174f104 --- /dev/null +++ b/test/testcases/tests/level1/core/nodereplacechildnodename.xml @@ -0,0 +1,54 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodereplacechildnodename"> +<metadata> +<title>nodeReplaceChildNodeName</title> +<creator>NIST</creator> +<description> + Replace the second Element of the second employee with + a newly created node Element and check the NodeName + returned by the "replaceChild(newChild,oldChild)" + method. The returned node should have a NodeName equal + to "employeeId". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="employeeNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="oldChild" type="Node"/> +<var name="newChild" type="Node"/> +<var name="replacedNode" type="Node"/> +<var name="length" type="int"/> +<var name="childName" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="employeeNode"/> +<childNodes obj="employeeNode" var="childList"/> +<length var="length" obj="childList" interface="NodeList"/> +<item interface="NodeList" obj="childList" index="1" var="oldChild"/> +<createElement obj="doc" tagName=""newChild"" var="newChild"/> +<replaceChild obj="employeeNode" newChild="newChild" oldChild="oldChild" var="replacedNode"/> +<nodeName obj="replacedNode" var="childName"/> +<if><equals actual="length" expected="6" ignoreCase="false"/> + <assertEquals actual="childName" expected='"name"' id="nowhitespace" ignoreCase="false"/> +<else> + <assertEquals actual="childName" expected='"employeeId"' id="whitespace" ignoreCase="false"/> +</else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/nodereplacechildnomodificationallowederr.xml b/test/testcases/tests/level1/core/nodereplacechildnomodificationallowederr.xml new file mode 100644 index 0000000..83e061d --- /dev/null +++ b/test/testcases/tests/level1/core/nodereplacechildnomodificationallowederr.xml @@ -0,0 +1,60 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodereplacechildnomodificationallowederr"> +<metadata> +<title>nodeReplaceChildNoModificationAllowedErr</title> +<creator>NIST</creator> +<description> + The "replaceChild(newChild,oldChild)" 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 "replaceChild(newChild,oldChild)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. +</description> +<contributor>Mary Brady</contributor> +<contributor>Curt Arnold</contributor> +<date qualifier="created">2001-08-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-785887307')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307"/> +</metadata> +<var name="doc" type="Document"/> +<var name="genderList" type="NodeList"/> +<var name="genderNode" type="Node"/> +<var name="entRef" type="Node"/> +<var name="entElement" type="Node"/> +<var name="createdNode" type="Node"/> +<var name="replacedChild" type="Node"/> +<var name="nodeType" type="int"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""gender"" var="genderList"/> +<item obj="genderList" index="2" var="genderNode" interface="NodeList"/> +<firstChild interface="Node" var="entRef" obj="genderNode"/> +<nodeType var="nodeType" obj="entRef"/> +<if><equals actual="nodeType" expected="1" ignoreCase="false"/> + <createEntityReference var="entRef" obj="doc" name='"ent4"'/> + <assertNotNull actual="entRef" id="createdEntRefNotNull"/> +</if> +<firstChild interface="Node" var="entElement" obj="entRef"/> +<createElement obj="doc" tagName=""newChild"" var="createdNode"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<replaceChild var="replacedChild" obj="entRef" newChild="createdNode" oldChild="entElement"/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/nodereplacechildnomodificationallowederrEE.xml b/test/testcases/tests/level1/core/nodereplacechildnomodificationallowederrEE.xml new file mode 100644 index 0000000..9007392 --- /dev/null +++ b/test/testcases/tests/level1/core/nodereplacechildnomodificationallowederrEE.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodereplacechildnomodificationallowederrEE"> +<metadata> +<title>nodeReplaceChildNoModificationAllowedErrEE</title> +<creator>Curt Arnold</creator> +<description> + The "replaceChild(newChild,oldChild)" method causes the + DOMException NO_MODIFICATION_ALLOWED_ERR to be raised + if the node is readonly. + + Create an entity reference execute the "replaceChild(newChild,oldChild)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. +</description> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-785887307')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307"/> +<source resource="http://www.w3.org/2001/DOM-Test-Suite/level1/core/nodereplacechildnomodificationallowederr.xml"/> +</metadata> +<var name="doc" type="Document"/> +<var name="entRef" type="Node"/> +<var name="entText" type="Node"/> +<var name="createdNode" type="Node"/> +<var name="replacedChild" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<createEntityReference var="entRef" obj="doc" name='"ent4"'/> +<assertNotNull actual="entRef" id="createdEntRefNotNull"/> +<firstChild interface="Node" var="entText" obj="entRef"/> +<createElement obj="doc" tagName=""newChild"" var="createdNode"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<replaceChild var="replacedChild" obj="entRef" newChild="createdNode" oldChild="entText"/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/nodereplacechildoldchildnonexistent.xml b/test/testcases/tests/level1/core/nodereplacechildoldchildnonexistent.xml new file mode 100644 index 0000000..e0d8c60 --- /dev/null +++ b/test/testcases/tests/level1/core/nodereplacechildoldchildnonexistent.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodereplacechildoldchildnonexistent"> +<metadata> +<title>nodeReplaceChildOldChildNonexistent</title> +<creator>NIST</creator> +<description> + The "replaceChild(newChild,oldChild)" method raises a + NOT_FOUND_ERR DOMException if the old child is + not a child of this node. + + Retrieve the second employee and attempt to replace a + node that is not one of its children. An attempt to + replace such a node should raise the desired exception. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NOT_FOUND_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-785887307')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NOT_FOUND_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-785887307"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="oldChild" type="Node"/> +<var name="newChild" type="Node"/> +<var name="elementList" type="NodeList"/> +<var name="elementNode" type="Node"/> +<var name="replacedNode" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<createElement obj="doc" tagName=""newChild"" var="newChild"/> +<createElement obj="doc" tagName=""oldChild"" var="oldChild"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""employee"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="1" var="elementNode"/> +<assertDOMException id="throw_NOT_FOUND_ERR"> +<NOT_FOUND_ERR> +<replaceChild var="replacedNode" obj="elementNode" newChild="newChild" oldChild="oldChild"/> +</NOT_FOUND_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/nodesetnodevaluenomodificationallowederr.xml b/test/testcases/tests/level1/core/nodesetnodevaluenomodificationallowederr.xml new file mode 100644 index 0000000..ba294e3 --- /dev/null +++ b/test/testcases/tests/level1/core/nodesetnodevaluenomodificationallowederr.xml @@ -0,0 +1,62 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodesetnodevaluenomodificationallowederr"> +<metadata> +<title>nodeSetNodeValueNoModificationAllowedErr</title> +<creator>NIST</creator> +<description> + The "setNodeValue(nodeValue)" 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 SECOND item + from the entity reference and execute the "setNodeValue(nodeValue)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. +</description> +<contributor>Mary Brady</contributor> +<contributor>Curt Arnold</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-F68D080')/setraises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +</metadata> +<var name="doc" type="Document"/> +<var name="genderList" type="NodeList"/> +<var name="genderNode" type="Node"/> +<var name="entRef" type="EntityReference"/> +<var name="entElement" type="Element"/> +<var name="entElementText" type="CharacterData"/> +<var name="nodeType" type="int"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""gender"" var="genderList"/> +<item obj="genderList" index="2" var="genderNode" interface="NodeList"/> +<firstChild interface="Node" var="entRef" obj="genderNode"/> +<assertNotNull actual="entRef" id="entRefNotNull"/> +<nodeType var="nodeType" obj="entRef"/> +<if><equals actual="nodeType" expected="1" ignoreCase="false"/> + <createEntityReference var="entRef" obj="doc" name='"ent4"'/> + <assertNotNull actual="entRef" id="createdEntRefNotNull"/> +</if> +<firstChild interface="Node" var="entElement" obj="entRef"/> +<assertNotNull actual="entElement" id="entElementNotNull"/> +<firstChild interface="Node" var="entElementText" obj="entElement"/> +<assertNotNull actual="entElementText" id="entElementTextNotNull"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<nodeValue obj="entElementText" value='"newValue"'/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/nodesetnodevaluenomodificationallowederrEE.xml b/test/testcases/tests/level1/core/nodesetnodevaluenomodificationallowederrEE.xml new file mode 100644 index 0000000..be2cd4a --- /dev/null +++ b/test/testcases/tests/level1/core/nodesetnodevaluenomodificationallowederrEE.xml @@ -0,0 +1,42 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodesetnodevaluenomodificationallowederrEE"> +<metadata> +<title>nodeSetNodeValueNoModificationAllowedErrEE</title> +<creator>Curt Arnold</creator> +<description> + Create an entity reference and execute the "setNodeValue(nodeValue)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. +</description> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-F68D080')/setraises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<source resource="http://www.w3.org/2001/DOM-Test-Suite/level1/core/nodesetnodevaluenomodificationallowederr.xml"/> +</metadata> +<var name="doc" type="Document"/> +<var name="entRef" type="EntityReference"/> +<var name="entText" type="CharacterData"/> +<load var="doc" href="staff" willBeModified="true"/> +<createEntityReference var="entRef" obj="doc" name='"ent3"'/> +<assertNotNull actual="entRef" id="createdEntRefNotNull"/> +<firstChild interface="Node" var="entText" obj="entRef"/> +<assertNotNull actual="entText" id="entTextNotNull"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<nodeValue obj="entText" value='"newValue"'/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/nodetextnodeattribute.xml b/test/testcases/tests/level1/core/nodetextnodeattribute.xml new file mode 100644 index 0000000..a0581e3 --- /dev/null +++ b/test/testcases/tests/level1/core/nodetextnodeattribute.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodetextnodeattribute"> +<metadata> +<title>nodeTextNodeAttribute</title> +<creator>NIST</creator> +<description> +The "getAttributes()" method invoked on a Text +Node returns null. + +Retrieve the Text node from the last child of the +first employee and invoke the "getAttributes()" method +on the Text Node. It should return null. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--attributes attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-84CF096"/> +<!-- Text interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1312295772"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddr" type="Node"/> +<var name="textNode" type="Node"/> +<var name="attrList" type="NamedNodeMap"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""address""/> +<item interface="NodeList" obj="elementList" index="0" var="testAddr"/> +<firstChild interface="Node" obj="testAddr" var="textNode"/> +<attributes obj="textNode" var="attrList"/> +<assertNull actual="attrList" id="nodeTextNodeAttributesAssert1"/> +</test> diff --git a/test/testcases/tests/level1/core/nodetextnodename.xml b/test/testcases/tests/level1/core/nodetextnodename.xml new file mode 100644 index 0000000..0f18aa4 --- /dev/null +++ b/test/testcases/tests/level1/core/nodetextnodename.xml @@ -0,0 +1,50 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodetextnodename"> +<metadata> +<title>nodeTextNodeName</title> +<creator>NIST</creator> +<description> + + The string returned by the "getNodeName()" method for a + + Text Node is "#text". + + + + Retrieve the Text Node from the last child of the + + first employee and check the string returned + + by the "getNodeName()" method. It should be equal to + + "#text". + +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddr" type="Element"/> +<var name="textNode" type="Node"/> +<var name="textName" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""address""/> +<item interface="NodeList" obj="elementList" index="0" var="testAddr"/> +<firstChild interface="Node" obj="testAddr" var="textNode"/> +<nodeName obj="textNode" var="textName"/> +<assertEquals actual="textName" expected=""#text"" id="nodeTextNodeNameAssert1" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodetextnodetype.xml b/test/testcases/tests/level1/core/nodetextnodetype.xml new file mode 100644 index 0000000..611d4e8 --- /dev/null +++ b/test/testcases/tests/level1/core/nodetextnodetype.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodetextnodetype"> +<metadata> +<title>nodeTextNodeType</title> +<creator>NIST</creator> +<description> + + The "getNodeType()" method for a Text Node + + returns the constant value 3. + + + + Retrieve the Text node from the last child of + + the first employee and invoke the "getNodeType()" + + method. The method should return 3. + +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-111237558"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddr" type="Element"/> +<var name="textNode" type="Node"/> +<var name="nodeType" type="int"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" tagname=""address"" var="elementList"/> +<item interface="NodeList" obj="elementList" index="0" var="testAddr"/> +<firstChild interface="Node" obj="testAddr" var="textNode"/> +<nodeType obj="textNode" var="nodeType"/> +<assertEquals actual="nodeType" expected="3" id="nodeTextNodeTypeAssert1" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodetextnodevalue.xml b/test/testcases/tests/level1/core/nodetextnodevalue.xml new file mode 100644 index 0000000..36b756f --- /dev/null +++ b/test/testcases/tests/level1/core/nodetextnodevalue.xml @@ -0,0 +1,42 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodetextnodevalue"> +<metadata> +<title>nodeTextNodeValue</title> +<creator>NIST</creator> +<description> + The string returned by the "getNodeValue()" method for a + Text Node is the content of the Text node. + + Retrieve the Text node from the last child of the first + employee and check the string returned by the + "getNodeValue()" method. It should be equal to + "1230 North Ave. Dallas, Texas 98551". +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="testAddr" type="Element"/> +<var name="textNode" type="Node"/> +<var name="textValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""address""/> +<item interface="NodeList" obj="elementList" index="0" var="testAddr"/> +<firstChild interface="Node" obj="testAddr" var="textNode"/> +<nodeValue obj="textNode" var="textValue"/> +<assertEquals actual="textValue" expected=""1230 North Ave. Dallas, Texas 98551"" id="nodeTextNodeValueAssert1" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodevalue01.xml b/test/testcases/tests/level1/core/nodevalue01.xml new file mode 100644 index 0000000..a5afffa --- /dev/null +++ b/test/testcases/tests/level1/core/nodevalue01.xml @@ -0,0 +1,37 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodevalue01"> +<metadata> +<title>nodevalue01</title> +<creator>Curt Arnold</creator> +<description> +An element is created, setNodeValue is called with a non-null argument, but getNodeValue +should still return null. +</description> +<date qualifier="created">2001-10-24</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#i-Document"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newNode" type="Element"/> +<var name="newValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<createElement obj="doc" var="newNode" tagName=""address""/> +<nodeValue obj="newNode" var="newValue"/> +<assertNull actual="newValue" id="initiallyNull"/> +<!-- attempt to change the value and make sure that it stays null --> +<nodeValue obj="newNode" value='"This should have no effect"'/> +<nodeValue obj="newNode" var="newValue"/> +<assertNull actual="newValue" id="nullAfterAttemptedChange"/> +</test> diff --git a/test/testcases/tests/level1/core/nodevalue02.xml b/test/testcases/tests/level1/core/nodevalue02.xml new file mode 100644 index 0000000..0b3c6f2 --- /dev/null +++ b/test/testcases/tests/level1/core/nodevalue02.xml @@ -0,0 +1,38 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodevalue02"> +<metadata> +<title>nodevalue02</title> +<creator>Curt Arnold</creator> +<description> +An comment is created, setNodeValue is called with a non-null argument, but getNodeValue +should still return null. +</description> +<date qualifier="created">2001-10-24</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1728279322"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newNode" type="Node"/> +<var name="newValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<createComment obj="doc" var="newNode" data=""This is a new Comment node""/> +<nodeValue obj="newNode" var="newValue"/> +<assertEquals actual="newValue" expected='"This is a new Comment node"' ignoreCase="false" id="initial"/> +<!-- attempt to change the value --> +<nodeValue obj="newNode" value='"This should have an effect"'/> +<!-- retrieve the value --> +<nodeValue obj="newNode" var="newValue"/> +<assertEquals actual="newValue" expected='"This should have an effect"' id="afterChange" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/nodevalue03.xml b/test/testcases/tests/level1/core/nodevalue03.xml new file mode 100644 index 0000000..c3bd383 --- /dev/null +++ b/test/testcases/tests/level1/core/nodevalue03.xml @@ -0,0 +1,38 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodevalue03"> +<metadata> +<title>nodevalue03</title> +<creator>Curt Arnold</creator> +<description> +An entity reference is created, setNodeValue is called with a non-null argument, but getNodeValue +should still return null. +</description> +<date qualifier="created">2001-10-24</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-11C98490"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newNode" type="Node"/> +<var name="newValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<createEntityReference obj="doc" var="newNode" name='"ent1"'/> +<assertNotNull actual="newNode" id="createdEntRefNotNull"/> +<nodeValue obj="newNode" var="newValue"/> +<assertNull actual="newValue" id="initiallyNull"/> +<!-- attempt to change the value and make sure that it stays null --> +<nodeValue obj="newNode" value='"This should have no effect"'/> +<nodeValue obj="newNode" var="newValue"/> +<assertNull actual="newValue" id="nullAfterAttemptedChange"/> +</test> diff --git a/test/testcases/tests/level1/core/nodevalue04.xml b/test/testcases/tests/level1/core/nodevalue04.xml new file mode 100644 index 0000000..a8929bb --- /dev/null +++ b/test/testcases/tests/level1/core/nodevalue04.xml @@ -0,0 +1,38 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodevalue04"> +<metadata> +<title>nodevalue04</title> +<creator>Curt Arnold</creator> +<description> +An document type accessed, setNodeValue is called with a non-null argument, but getNodeValue +should still return null. +</description> +<date qualifier="created">2001-10-24</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-B63ED1A31"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newNode" type="Node"/> +<var name="newValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<doctype obj="doc" var="newNode"/> +<assertNotNull actual="newNode" id="docTypeNotNull"/> +<nodeValue obj="newNode" var="newValue"/> +<assertNull actual="newValue" id="initiallyNull"/> +<!-- attempt to change the value and make sure that it stays null --> +<nodeValue obj="newNode" value='"This should have no effect"'/> +<nodeValue obj="newNode" var="newValue"/> +<assertNull actual="newValue" id="nullAfterAttemptedChange"/> +</test> diff --git a/test/testcases/tests/level1/core/nodevalue05.xml b/test/testcases/tests/level1/core/nodevalue05.xml new file mode 100644 index 0000000..88f19c3 --- /dev/null +++ b/test/testcases/tests/level1/core/nodevalue05.xml @@ -0,0 +1,37 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodevalue05"> +<metadata> +<title>nodevalue05</title> +<creator>Curt Arnold</creator> +<description> +A document fragment is created, setNodeValue is called with a non-null argument, but getNodeValue +should still return null. +</description> +<date qualifier="created">2001-10-24</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-B63ED1A3"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newNode" type="Node"/> +<var name="newValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<createDocumentFragment obj="doc" var="newNode"/> +<nodeValue obj="newNode" var="newValue"/> +<assertNull actual="newValue" id="initiallyNull"/> +<!-- attempt to change the value and make sure that it stays null --> +<nodeValue obj="newNode" value='"This should have no effect"'/> +<nodeValue obj="newNode" var="newValue"/> +<assertNull actual="newValue" id="nullAfterAttemptedChange"/> +</test> diff --git a/test/testcases/tests/level1/core/nodevalue06.xml b/test/testcases/tests/level1/core/nodevalue06.xml new file mode 100644 index 0000000..af42ec3 --- /dev/null +++ b/test/testcases/tests/level1/core/nodevalue06.xml @@ -0,0 +1,35 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodevalue06"> +<metadata> +<title>nodevalue06</title> +<creator>Curt Arnold</creator> +<description> +An document is accessed, setNodeValue is called with a non-null argument, but getNodeValue +should still return null. +</description> +<date qualifier="created">2001-10-24</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#i-Document"/> +</metadata> +<var name="newNode" type="Document"/> +<var name="newValue" type="DOMString"/> +<load var="newNode" href="staff" willBeModified="true"/> +<nodeValue obj="newNode" var="newValue"/> +<assertNull actual="newValue" id="initiallyNull"/> +<!-- attempt to change the value and make sure that it stays null --> +<nodeValue obj="newNode" value='"This should have no effect"'/> +<nodeValue obj="newNode" var="newValue"/> +<assertNull actual="newValue" id="nullAfterAttemptedChange"/> +</test> diff --git a/test/testcases/tests/level1/core/nodevalue07.xml b/test/testcases/tests/level1/core/nodevalue07.xml new file mode 100644 index 0000000..f0c808e --- /dev/null +++ b/test/testcases/tests/level1/core/nodevalue07.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodevalue07"> +<metadata> +<title>nodevalue07</title> +<creator>Curt Arnold</creator> +<description> +An Entity is accessed, setNodeValue is called with a non-null argument, but getNodeValue +should still return null. +</description> +<date qualifier="created">2001-10-24</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-527DCFF2"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newNode" type="Node"/> +<var name="newValue" type="DOMString"/> +<var name="nodeMap" type="NamedNodeMap"/> +<var name="docType" type="DocumentType"/> +<load var="doc" href="staff" willBeModified="true"/> +<doctype obj="doc" var="docType"/> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<entities obj="docType" var="nodeMap"/> +<assertNotNull actual="nodeMap" id="entitiesNotNull"/> +<getNamedItem obj="nodeMap" name='"ent1"' var="newNode"/> +<assertNotNull actual="newNode" id="entityNotNull"/> +<nodeValue obj="newNode" var="newValue"/> +<assertNull actual="newValue" id="initiallyNull"/> +<!-- attempt to change the value and make sure that it stays null --> +<nodeValue obj="newNode" value='"This should have no effect"'/> +<nodeValue obj="newNode" var="newValue"/> +<assertNull actual="newValue" id="nullAfterAttemptedChange"/> +</test> diff --git a/test/testcases/tests/level1/core/nodevalue08.xml b/test/testcases/tests/level1/core/nodevalue08.xml new file mode 100644 index 0000000..f64df09 --- /dev/null +++ b/test/testcases/tests/level1/core/nodevalue08.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodevalue08"> +<metadata> +<title>nodevalue08</title> +<creator>Curt Arnold</creator> +<description> +An notation is accessed, setNodeValue is called with a non-null argument, but getNodeValue +should still return null. +</description> +<date qualifier="created">2001-10-24</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-5431D1B9"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<var name="newNode" type="Node"/> +<var name="newValue" type="DOMString"/> +<var name="nodeMap" type="NamedNodeMap"/> +<load var="doc" href="staff" willBeModified="true"/> +<doctype obj="doc" var="docType"/> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<notations obj="docType" var="nodeMap"/> +<assertNotNull actual="nodeMap" id="notationsNotNull"/> +<getNamedItem obj="nodeMap" name='"notation1"' var="newNode"/> +<assertNotNull actual="newNode" id="notationNotNull"/> +<nodeValue obj="newNode" var="newValue"/> +<assertNull actual="newValue" id="initiallyNull"/> +<!-- attempt to change the value and make sure that it stays null --> +<nodeValue obj="newNode" value='"This should have no effect"'/> +<nodeValue obj="newNode" var="newValue"/> +<assertNull actual="newValue" id="nullAfterAttemptedChange"/> +</test> diff --git a/test/testcases/tests/level1/core/nodevalue09.xml b/test/testcases/tests/level1/core/nodevalue09.xml new file mode 100644 index 0000000..780cbfe --- /dev/null +++ b/test/testcases/tests/level1/core/nodevalue09.xml @@ -0,0 +1,36 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="nodevalue09"> +<metadata> +<title>nodevalue09</title> +<creator>Curt Arnold</creator> +<description> +An processing instruction is created, setNodeValue is called with a non-null argument, but getNodeValue +should still return null. +</description> +<date qualifier="created">2001-10-24</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1004215813"/> +</metadata> +<var name="doc" type="Document"/> +<var name="newNode" type="Node"/> +<var name="newValue" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<createProcessingInstruction var="newNode" obj="doc" target='"TARGET"' data='"DATA"'/> +<nodeValue obj="newNode" var="newValue"/> +<assertEquals actual="newValue" expected='"DATA"' ignoreCase="false" id="initial"/> +<nodeValue obj="newNode" value='"This should have an effect"'/> +<nodeValue obj="newNode" var="newValue"/> +<assertEquals actual="newValue" expected='"This should have an effect"' ignoreCase="false" id="after"/> +</test> diff --git a/test/testcases/tests/level1/core/notationgetnotationname.xml b/test/testcases/tests/level1/core/notationgetnotationname.xml new file mode 100644 index 0000000..ded685c --- /dev/null +++ b/test/testcases/tests/level1/core/notationgetnotationname.xml @@ -0,0 +1,43 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="notationgetnotationname"> +<metadata> +<title>notationGetNotationName</title> +<creator>NIST</creator> +<description> + Retrieve the notation named "notation1" and access its + name by invoking the "getNodeName()" method inherited + from the Node interface. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--nodeName attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D095"/> +<!--Notation interface --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-5431D1B9"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<var name="notations" type="NamedNodeMap"/> +<var name="notationNode" type="Notation"/> +<var name="notationName" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<doctype obj="doc" var="docType"/> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<notations obj="docType" var="notations"/> +<assertNotNull actual="notations" id="notationsNotNull"/> +<getNamedItem obj="notations" var="notationNode" name='"notation1"'/> +<nodeName obj="notationNode" var="notationName"/> +<assertEquals actual="notationName" expected='"notation1"' id="notationGetNotationNameAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/notationgetpublicid.xml b/test/testcases/tests/level1/core/notationgetpublicid.xml new file mode 100644 index 0000000..882cc54 --- /dev/null +++ b/test/testcases/tests/level1/core/notationgetpublicid.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="notationgetpublicid"> +<metadata> +<title>notationGetPublicId</title> +<creator>NIST</creator> +<description> + Retrieve the notation named "notation1" and access its + public identifier. The string "notation1File" should be + returned. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-54F2B4D0"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<var name="notations" type="NamedNodeMap"/> +<var name="notationNode" type="Notation"/> +<var name="publicId" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<doctype obj="doc" var="docType"/> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<notations obj="docType" var="notations"/> +<assertNotNull actual="notations" id="notationsNotNull"/> +<getNamedItem obj="notations" var="notationNode" name=""notation1""/> +<publicId interface="Notation" obj="notationNode" var="publicId"/> +<assertEquals actual="publicId" expected='"notation1File"' id="publicId" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/notationgetpublicidnull.xml b/test/testcases/tests/level1/core/notationgetpublicidnull.xml new file mode 100644 index 0000000..39e23ad --- /dev/null +++ b/test/testcases/tests/level1/core/notationgetpublicidnull.xml @@ -0,0 +1,45 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="notationgetpublicidnull"> +<metadata> +<title>notationGetPublicIdNull</title> +<creator>NIST</creator> +<description> + The "getPublicId()" method of a Notation node contains + the public identifier associated with the notation, if + one was not specified a null value should be returned. + + Retrieve the notation named "notation2" and access its + public identifier. Since a public identifier was not + specified for this notation, the "getPublicId()" method + should return null. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-54F2B4D0"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<var name="notations" type="NamedNodeMap"/> +<var name="notationNode" type="Notation"/> +<var name="publicId" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<doctype obj="doc" var="docType"/> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<notations obj="docType" var="notations"/> +<assertNotNull actual="notations" id="notationsNotNull"/> +<getNamedItem obj="notations" var="notationNode" name='"notation2"'/> +<publicId interface="Notation" obj="notationNode" var="publicId"/> +<assertNull actual="publicId" id="publicId"/> +</test> diff --git a/test/testcases/tests/level1/core/notationgetsystemid.xml b/test/testcases/tests/level1/core/notationgetsystemid.xml new file mode 100644 index 0000000..04a84ac --- /dev/null +++ b/test/testcases/tests/level1/core/notationgetsystemid.xml @@ -0,0 +1,45 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="notationgetsystemid"> +<metadata> +<title>notationGetSystemId</title> +<creator>NIST</creator> +<description> + The "getSystemId()" method of a Notation node contains + the system identifier associated with the notation, if + one was specified. + + Retrieve the notation named "notation2" and access its + system identifier. The string "notation2File" should be + returned. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-E8AAB1D0"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<var name="notations" type="NamedNodeMap"/> +<var name="notationNode" type="Notation"/> +<var name="systemId" type="DOMString"/> +<var name="index" type="int"/> +<load var="doc" href="staff" willBeModified="false"/> +<doctype obj="doc" var="docType"/> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<notations obj="docType" var="notations"/> +<assertNotNull actual="notations" id="notationsNotNull"/> +<getNamedItem obj="notations" var="notationNode" name='"notation2"'/> +<systemId interface="Notation" obj="notationNode" var="systemId"/> +<assertURIEquals actual="systemId" file='"notation2File"' id="uriEquals"/> +</test> diff --git a/test/testcases/tests/level1/core/notationgetsystemidnull.xml b/test/testcases/tests/level1/core/notationgetsystemidnull.xml new file mode 100644 index 0000000..cf15a2f --- /dev/null +++ b/test/testcases/tests/level1/core/notationgetsystemidnull.xml @@ -0,0 +1,41 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="notationgetsystemidnull"> +<metadata> +<title>notationGetSystemIdNull</title> +<creator>NIST</creator> +<description> + Retrieve the notation named "notation1" and access its + system identifier. Since a system identifier was not + specified for this notation, the "getSystemId()" method + should return null. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-E8AAB1D0"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docType" type="DocumentType"/> +<var name="notations" type="NamedNodeMap"/> +<var name="notationNode" type="Notation"/> +<var name="systemId" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<doctype obj="doc" var="docType"/> +<assertNotNull actual="docType" id="docTypeNotNull"/> +<notations obj="docType" var="notations"/> +<assertNotNull actual="notations" id="notationsNotNull"/> +<getNamedItem obj="notations" var="notationNode" name='"notation1"'/> +<systemId interface="Notation" obj="notationNode" var="systemId"/> +<assertNull actual="systemId" id="systemId"/> +</test> diff --git a/test/testcases/tests/level1/core/processinginstructiongetdata.xml b/test/testcases/tests/level1/core/processinginstructiongetdata.xml new file mode 100644 index 0000000..1760419 --- /dev/null +++ b/test/testcases/tests/level1/core/processinginstructiongetdata.xml @@ -0,0 +1,43 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="processinginstructiongetdata"> +<metadata> +<title>processinginstructionGetData</title> +<creator>NIST</creator> +<description> + The "getData()" method returns the content of the + processing instruction. It starts at the first non + white character following the target and ends at the + character immediately preceding the "?>". + + Retrieve the ProcessingInstruction node located + immediately after the prolog. Create a nodelist of the + child nodes of this document. Invoke the "getData()" + method on the first child in the list. This should + return the content of the ProcessingInstruction. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-837822393"/> +</metadata> +<var name="doc" type="Document"/> +<var name="childNodes" type="NodeList"/> +<var name="piNode" type="ProcessingInstruction"/> +<var name="data" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<childNodes obj="doc" var="childNodes"/> +<item interface="NodeList" obj="childNodes" var="piNode" index="0"/> +<data interface="ProcessingInstruction" obj="piNode" var="data"/> +<assertEquals actual="data" expected=""PIDATA"" id="processinginstructionGetTargetAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/processinginstructiongettarget.xml b/test/testcases/tests/level1/core/processinginstructiongettarget.xml new file mode 100644 index 0000000..e02e3d6 --- /dev/null +++ b/test/testcases/tests/level1/core/processinginstructiongettarget.xml @@ -0,0 +1,42 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="processinginstructiongettarget"> +<metadata> +<title>processinginstructionGetTarget</title> +<creator>NIST</creator> +<description> + The "getTarget()" method returns the target of the + processing instruction. It is the first token following + the markup that begins the processing instruction. + + Retrieve the ProcessingInstruction node located + immediately after the prolog. Create a nodelist of the + child nodes of this document. Invoke the "getTarget()" + method on the first child in the list. This should + return the target of the ProcessingInstruction. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1478689192"/> +</metadata> +<var name="doc" type="Document"/> +<var name="childNodes" type="NodeList"/> +<var name="piNode" type="ProcessingInstruction"/> +<var name="target" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<childNodes obj="doc" var="childNodes"/> +<item interface="NodeList" obj="childNodes" var="piNode" index="0"/> +<target obj="piNode" var="target" interface="ProcessingInstruction"/> +<assertEquals actual="target" expected=""TEST-STYLE"" id="processinginstructionGetTargetAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/processinginstructionsetdatanomodificationallowederr.xml b/test/testcases/tests/level1/core/processinginstructionsetdatanomodificationallowederr.xml new file mode 100644 index 0000000..8d7ed81 --- /dev/null +++ b/test/testcases/tests/level1/core/processinginstructionsetdatanomodificationallowederr.xml @@ -0,0 +1,53 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="processinginstructionsetdatanomodificationallowederr"> +<metadata> +<title>processinginstructionSetDataNoModificationAllowedErr</title> +<creator>NIST</creator> +<description> + The "setData(data)" method for a processing instruction 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 the "domestic" attribute + from the entity reference by executing the "setData(data)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-837822393"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-837822393')/setraises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-837822393"/> +</metadata> +<implementationAttribute name="expandEntityReferences" value="false"/> +<var name="doc" type="Document"/> +<var name="genderList" type="NodeList"/> +<var name="gender" type="Node"/> +<var name="entRef" type="Node"/> +<var name="piNode" type="ProcessingInstruction"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="genderList" tagname=""gender""/> +<item interface="NodeList" obj="genderList" var="gender" index="2"/> +<firstChild interface="Node" var="entRef" obj="gender"/> +<assertNotNull actual="entRef" id="entRefNotNull"/> +<lastChild interface="Node" var="piNode" obj="entRef"/> +<assertNotNull actual="piNode" id="piNodeNotNull"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<data interface="ProcessingInstruction" obj="piNode" value=""newData""/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/processinginstructionsetdatanomodificationallowederrEE.xml b/test/testcases/tests/level1/core/processinginstructionsetdatanomodificationallowederrEE.xml new file mode 100644 index 0000000..8c99919 --- /dev/null +++ b/test/testcases/tests/level1/core/processinginstructionsetdatanomodificationallowederrEE.xml @@ -0,0 +1,57 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="processinginstructionsetdatanomodificationallowederrEE"> +<metadata> +<title>processinginstructionSetDataNoModificationAllowedErrEE</title> +<creator>Curt Arnold</creator> +<description> + The "setData(data)" method for a processing instruction causes the + DOMException NO_MODIFICATION_ALLOWED_ERR to be raised + if the node is readonly. + + Create an ent4 entity reference and add to document of the THIRD "gender" element. The elements + content is an entity reference. Try to remove the "domestic" attribute + from the entity reference by executing the "setData(data)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. +</description> +<date qualifier="created">2001-08-21</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-837822393"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-837822393')/setraises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-837822393"/> +<source resource="http://www.w3.org/2001/DOM-Test-Suite/level1/core/processinginstructionsetdatanomodificationallowederr.xml"/> +<!-- bug report on earlier version --> +<subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2002Apr/0053.html"/> +</metadata> +<var name="doc" type="Document"/> +<var name="genderList" type="NodeList"/> +<var name="gender" type="Node"/> +<var name="entRef" type="Node"/> +<var name="piNode" type="ProcessingInstruction"/> +<var name="appendedChild" type="Node"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="genderList" tagname=""gender""/> +<item interface="NodeList" obj="genderList" var="gender" index="2"/> +<createEntityReference var="entRef" obj="doc" name='"ent4"'/> +<appendChild var="appendedChild" obj="gender" newChild="entRef"/> +<lastChild interface="Node" var="entRef" obj="gender"/> +<assertNotNull actual="entRef" id="entRefNotNull"/> +<lastChild interface="Node" var="piNode" obj="entRef"/> +<assertNotNull actual="piNode" id="piNodeNotNull"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<data interface="ProcessingInstruction" obj="piNode" value='"newData"'/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/textindexsizeerrnegativeoffset.xml b/test/testcases/tests/level1/core/textindexsizeerrnegativeoffset.xml new file mode 100644 index 0000000..9bf1232 --- /dev/null +++ b/test/testcases/tests/level1/core/textindexsizeerrnegativeoffset.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="textindexsizeerrnegativeoffset"> +<metadata> +<title>textIndexSizeErrNegativeOffset</title> +<creator>NIST</creator> +<description> + The "splitText(offset)" method raises an + INDEX_SIZE_ERR DOMException if the specified offset is + negative. + + Retrieve the textual data from the second child of the + third employee and invoke the "splitText(offset)" method. + The desired exception should be raised since the offset + is a negative number. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-38853C1D"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-38853C1D')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INDEX_SIZE_ERR'])"/> +</metadata> +<implementationAttribute name="signed" value="true"/> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="textNode" type="Text"/> +<var name="splitNode" type="Text"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""name""/> +<item interface="NodeList" obj="elementList" var="nameNode" index="2"/> +<firstChild interface="Node" obj="nameNode" var="textNode"/> +<assertDOMException id="throws_INDEX_SIZE_ERR"> +<INDEX_SIZE_ERR> +<splitText obj="textNode" var="splitNode" offset="-69"/> +</INDEX_SIZE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/textindexsizeerroffsetoutofbounds.xml b/test/testcases/tests/level1/core/textindexsizeerroffsetoutofbounds.xml new file mode 100644 index 0000000..35082c3 --- /dev/null +++ b/test/testcases/tests/level1/core/textindexsizeerroffsetoutofbounds.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2003 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="textindexsizeerroffsetoutofbounds"> +<metadata> +<title>textIndexSizeErrOffsetOutOfBounds</title> +<creator>NIST</creator> +<description> + The "splitText(offset)" method raises an + INDEX_SIZE_ERR DOMException if the specified offset is + greater than the number of characters in the Text node. + + Retrieve the textual data from the second child of the + third employee and invoke the "splitText(offset)" method. + The desired exception should be raised since the offset + is a greater than the number of characters in the Text + node. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-38853C1D"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-38853C1D')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='INDEX_SIZE_ERR'])"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=249"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="textNode" type="Text"/> +<var name="splitNode" type="Text"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""name""/> +<item interface="NodeList" obj="elementList" var="nameNode" index="2"/> +<firstChild interface="Node" obj="nameNode" var="textNode"/> +<assertDOMException id="throw_INDEX_SIZE_ERR"> +<INDEX_SIZE_ERR> +<splitText obj="textNode" var="splitNode" offset="300"/> +</INDEX_SIZE_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/textparseintolistofelements.xml b/test/testcases/tests/level1/core/textparseintolistofelements.xml new file mode 100644 index 0000000..77f5fe5 --- /dev/null +++ b/test/testcases/tests/level1/core/textparseintolistofelements.xml @@ -0,0 +1,74 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="textparseintolistofelements"> +<metadata> +<title>textParseIntoListOfElements</title> +<creator>NIST</creator> +<description> + Retrieve the textual data from the last child of the + second employee. That node is composed of two + EntityReference nodes and two Text nodes. After + the content node is parsed, the "address" Element + should contain four children with each one of the + EntityReferences containing one child. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<!--childNodes attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1451460987"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-11C98490"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-745549614"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="addressNode" type="Node"/> +<var name="childList" type="NodeList"/> +<var name="child" type="Node"/> +<var name="length" type="int"/> +<var name="value" type="DOMString"/> +<var name="grandChild" type="Node"/> +<var name="result" type="List"/> +<var name="expectedNormal" type="List"> +<member>"1900 Dallas Road"</member> +<member>" Dallas, "</member> +<member>"Texas"</member> +<member>"\n 98554"</member> +</var> +<var name="expectedExpanded" type="List"> +<member>"1900 Dallas Road Dallas, Texas\n 98554"</member> +</var> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""address""/> +<item interface="NodeList" obj="elementList" var="addressNode" index="1"/> +<childNodes obj="addressNode" var="childList"/> +<length var="length" obj="childList" interface="NodeList"/> +<for-each collection="childList" member="child"> + <nodeValue obj="child" var="value"/> + <if><isNull obj="value"/> + <firstChild interface="Node" obj="child" var="grandChild"/> + <assertNotNull actual="grandChild" id="grandChildNotNull"/> + <nodeValue obj="grandChild" var="value"/> + <append collection="result" item="value"/> + <else> + <append collection="result" item="value"/> + </else> + </if> +</for-each> +<if><equals actual="length" expected="4" ignoreCase="false"/> + <assertEquals actual="result" expected="expectedNormal" ignoreCase="false" id="assertEqNormal"/> + <else> + <assertEquals actual="result" expected="expectedExpanded" ignoreCase="false" id="assertEqCoalescing"/> + </else> +</if> +</test> diff --git a/test/testcases/tests/level1/core/textsplittextfour.xml b/test/testcases/tests/level1/core/textsplittextfour.xml new file mode 100644 index 0000000..c744ae3 --- /dev/null +++ b/test/testcases/tests/level1/core/textsplittextfour.xml @@ -0,0 +1,46 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="textsplittextfour"> +<metadata> +<title>textSplitTextFour</title> +<creator>NIST</creator> +<description> + The "splitText(offset)" method returns the new Text node. + + Retrieve the textual data from the last child of the + first employee and invoke the "splitText(offset)" method. + The method should return the new Text node. The offset + value used for this test is 30. The "getNodeValue()" + method is called to check that the new node now contains + the characters at and after position 30. + (Starting count at 0) +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-38853C1D"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="addressNode" type="Node"/> +<var name="textNode" type="Text"/> +<var name="splitNode" type="Text"/> +<var name="value" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""address""/> +<item interface="NodeList" obj="elementList" var="addressNode" index="0"/> +<firstChild interface="Node" obj="addressNode" var="textNode"/> +<splitText obj="textNode" var="splitNode" offset="30"/> +<nodeValue obj="splitNode" var="value"/> +<assertEquals actual="value" expected=""98551"" id="textSplitTextFourAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/textsplittextnomodificationallowederr.xml b/test/testcases/tests/level1/core/textsplittextnomodificationallowederr.xml new file mode 100644 index 0000000..f61255a --- /dev/null +++ b/test/testcases/tests/level1/core/textsplittextnomodificationallowederr.xml @@ -0,0 +1,62 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="textsplittextnomodificationallowederr"> +<metadata> +<title>textSplitTextNoModificationAllowedErr</title> +<creator>NIST</creator> +<description> + The "splitText(offset)" method raises a + NO_MODIFICATION_ALLOWED_ERR DOMException if the + node is readonly. + + Obtain the children of the THIRD "gender" element. The elements + content is an entity reference. Get the element content of the FIRST + Text Node of the entity reference and execute the "splitText(offset)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-38853C1D"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-38853C1D')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-38853C1D"/> +</metadata> +<var name="doc" type="Document"/> +<var name="genderList" type="NodeList"/> +<var name="gender" type="Node"/> +<var name="entRef" type="Node"/> +<var name="entElement" type="Node"/> +<var name="entElementText" type="Node"/> +<var name="splitNode" type="Text"/> +<var name="nodeType" type="int"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="genderList" tagname='"gender"'/> +<item interface="NodeList" obj="genderList" var="gender" index="2"/> +<firstChild interface="Node" var="entRef" obj="gender"/> +<assertNotNull actual="entRef" id="entRefNotNull"/> +<nodeType var="nodeType" obj="entRef"/> +<if><equals actual="nodeType" expected="1" ignoreCase="false"/> + <createEntityReference var="entRef" obj="doc" name='"ent4"'/> + <assertNotNull actual="entRef" id="createdEntRefNotNull"/> +</if> +<firstChild interface="Node" var="entElement" obj="entRef"/> +<assertNotNull actual="entElement" id="entElementNotNull"/> +<firstChild interface="Node" var="entElementText" obj="entElement"/> +<assertNotNull actual="entElementText" id="entElementTextNotNull"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<splitText var="splitNode" obj="entElementText" offset="2"/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/textsplittextnomodificationallowederrEE.xml b/test/testcases/tests/level1/core/textsplittextnomodificationallowederrEE.xml new file mode 100644 index 0000000..4fbde86 --- /dev/null +++ b/test/testcases/tests/level1/core/textsplittextnomodificationallowederrEE.xml @@ -0,0 +1,43 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="textsplittextnomodificationallowederrEE"> +<metadata> +<title>textSplitTextNoModificationAllowedErrEE</title> +<creator>Curt Arnold</creator> +<description> + Create an ent3 reference and execute the "splitText(offset)" method. + This causes a NO_MODIFICATION_ALLOWED_ERR DOMException to be thrown. +</description> +<date qualifier="created">2001-08-21</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-38853C1D"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-38853C1D')/raises/exception[@name='DOMException']/descr/p[substring-before(.,':')='NO_MODIFICATION_ALLOWED_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-38853C1D"/> +<source resource="http://www.w3.org/2001/DOM-Test-Suite/level1/core/textsplittextnomodificationallowederr.xml"/> +</metadata> +<var name="doc" type="Document"/> +<var name="entRef" type="Node"/> +<var name="entText" type="Node"/> +<var name="splitNode" type="Text"/> +<load var="doc" href="staff" willBeModified="true"/> +<createEntityReference var="entRef" obj="doc" name='"ent3"'/> +<assertNotNull actual="entRef" id="createdEntRefNotNull"/> +<firstChild interface="Node" var="entText" obj="entRef"/> +<assertNotNull actual="entText" id="entTextNotNull"/> +<assertDOMException id="throw_NO_MODIFICATION_ALLOWED_ERR"> +<NO_MODIFICATION_ALLOWED_ERR> +<splitText var="splitNode" obj="entText" offset="2"/> +</NO_MODIFICATION_ALLOWED_ERR> +</assertDOMException> +</test> diff --git a/test/testcases/tests/level1/core/textsplittextone.xml b/test/testcases/tests/level1/core/textsplittextone.xml new file mode 100644 index 0000000..7529614 --- /dev/null +++ b/test/testcases/tests/level1/core/textsplittextone.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="textsplittextone"> +<metadata> +<title>textSplitTextOne</title> +<creator>NIST</creator> +<description> + The "splitText(offset)" method breaks the Text node into + two Text nodes at the specified offset keeping each node + as siblings in the tree. + + Retrieve the textual data from the second child of the + third employee and invoke the "splitText(offset)" method. + The method splits the Text node into two new sibling + Text nodes keeping both of them in the tree. This test + checks the "nextSibling()" method of the original node + to ensure that the two nodes are indeed siblings. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-38853C1D"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="textNode" type="Text"/> +<var name="splitNode" type="Text"/> +<var name="secondPart" type="Node"/> +<var name="value" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""name""/> +<item interface="NodeList" obj="elementList" var="nameNode" index="2"/> +<firstChild interface="Node" obj="nameNode" var="textNode"/> +<splitText obj="textNode" var="splitNode" offset="7"/> +<nextSibling interface="Node" obj="textNode" var="secondPart"/> +<nodeValue obj="secondPart" var="value"/> +<assertEquals actual="value" expected=""Jones"" id="textSplitTextOneAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/textsplittextthree.xml b/test/testcases/tests/level1/core/textsplittextthree.xml new file mode 100644 index 0000000..7bbaf48 --- /dev/null +++ b/test/testcases/tests/level1/core/textsplittextthree.xml @@ -0,0 +1,48 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="textsplittextthree"> +<metadata> +<title>textSplitTextThree</title> +<creator>NIST</creator> +<description> + After the "splitText(offset)" method breaks the Text node + into two Text nodes, the new Text node contains all the + content at and after the offset point. + + Retrieve the textual data from the second child of the + third employee and invoke the "splitText(offset)" method. + The new Text node should contain all the content + at and after the offset point. The "getNodeValue()" + method is called to check that the new node now contains + the characters at and after position seven. + (Starting count at 0) +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-38853C1D"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="textNode" type="Text"/> +<var name="splitNode" type="Text"/> +<var name="value" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""name""/> +<item interface="NodeList" obj="elementList" var="nameNode" index="2"/> +<firstChild interface="Node" obj="nameNode" var="textNode"/> +<splitText obj="textNode" var="splitNode" offset="6"/> +<nodeValue obj="splitNode" var="value"/> +<assertEquals actual="value" expected="" Jones"" id="textSplitTextThreeAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/textsplittexttwo.xml b/test/testcases/tests/level1/core/textsplittexttwo.xml new file mode 100644 index 0000000..0421815 --- /dev/null +++ b/test/testcases/tests/level1/core/textsplittexttwo.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="textsplittexttwo"> +<metadata> +<title>textSplitTextTwo</title> +<creator>NIST</creator> +<description> + After the "splitText(offset)" method breaks the Text node + into two Text nodes, the original node contains all the + content up to the offset point. + + Retrieve the textual data from the second child of the + third employee and invoke the "splitText(offset)" method. + The original Text node should contain all the content + up to the offset point. The "getNodeValue()" method + is called to check that the original node now contains + the first five characters. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-38853C1D"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="textNode" type="Text"/> +<var name="splitNode" type="Text"/> +<var name="value" type="DOMString"/> +<load var="doc" href="staff" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""name""/> +<item interface="NodeList" obj="elementList" var="nameNode" index="2"/> +<firstChild interface="Node" obj="nameNode" var="textNode"/> +<splitText obj="textNode" var="splitNode" offset="5"/> +<nodeValue obj="textNode" var="value"/> +<assertEquals actual="value" expected=""Roger"" id="textSplitTextTwoAssert" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/core/textwithnomarkup.xml b/test/testcases/tests/level1/core/textwithnomarkup.xml new file mode 100644 index 0000000..8b90b54 --- /dev/null +++ b/test/testcases/tests/level1/core/textwithnomarkup.xml @@ -0,0 +1,47 @@ +<?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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="textwithnomarkup"> +<metadata> +<title>textWithNoMarkup</title> +<creator>NIST</creator> +<description> + If there is not any markup inside an Element or Attr node + content, then the text is contained in a single object + implementing the Text interface that is the only child + of the element. + + Retrieve the textual data from the second child of the + third employee. That Text node contains a block of + multiple text lines without markup, so they should be + treated as a single Text node. The "getNodeValue()" + method should contain the combination of the two lines. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2001-08-17</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1312295772"/> +<!--nodeValue attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-F68D080"/> +</metadata> +<var name="doc" type="Document"/> +<var name="elementList" type="NodeList"/> +<var name="nameNode" type="Node"/> +<var name="nodeV" type="Node"/> +<var name="value" type="DOMString"/> +<load var="doc" href="staff" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="elementList" tagname=""name""/> +<item interface="NodeList" obj="elementList" var="nameNode" index="2"/> +<firstChild interface="Node" obj="nameNode" var="nodeV"/> +<nodeValue obj="nodeV" var="value"/> +<assertEquals actual="value" expected=""Roger\n Jones"" id="textNodeValue" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/.cvsignore b/test/testcases/tests/level1/html/.cvsignore new file mode 100644 index 0000000..46fbb92 --- /dev/null +++ b/test/testcases/tests/level1/html/.cvsignore @@ -0,0 +1,2 @@ +dom1.dtd +dom1.xsd diff --git a/test/testcases/tests/level1/html/CVS/Entries b/test/testcases/tests/level1/html/CVS/Entries new file mode 100644 index 0000000..2365a0f --- /dev/null +++ b/test/testcases/tests/level1/html/CVS/Entries @@ -0,0 +1,642 @@ +D/files//// +/.cvsignore/1.1/Fri Apr 3 02:48:02 2009// +/HTMLAnchorElement01.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLAnchorElement02.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLAnchorElement03.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLAnchorElement04.xml/1.2/Fri Apr 3 02:48:01 2009// +/HTMLAnchorElement05.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLAnchorElement06.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLAnchorElement07.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLAnchorElement08.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLAnchorElement09.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLAnchorElement10.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLAnchorElement11.xml/1.1/Fri Apr 3 02:48:01 2009// +/HTMLAnchorElement12.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLAnchorElement13.xml/1.1/Fri Apr 3 02:48:02 2009// +/HTMLAnchorElement14.xml/1.1/Fri Apr 3 02:48:01 2009// +/HTMLAppletElement01.xml/1.5/Fri Apr 3 02:48:03 2009// +/HTMLAppletElement02.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLAppletElement03.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLAppletElement04.xml/1.4/Fri Apr 3 02:48:02 2009// +/HTMLAppletElement05.xml/1.6/Fri Apr 3 02:48:01 2009// +/HTMLAppletElement06.xml/1.4/Fri Apr 3 02:48:03 2009// +/HTMLAppletElement07.xml/1.4/Fri Apr 3 02:48:02 2009// +/HTMLAppletElement08.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLAppletElement09.xml/1.4/Fri Apr 3 02:48:01 2009// +/HTMLAppletElement10.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLAppletElement11.xml/1.2/Fri Apr 3 02:48:02 2009// +/HTMLAreaElement01.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLAreaElement02.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLAreaElement03.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLAreaElement04.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLAreaElement05.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLAreaElement06.xml/1.4/Fri Apr 3 02:48:01 2009// +/HTMLAreaElement07.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLAreaElement08.xml/1.1/Fri Apr 3 02:48:02 2009// +/HTMLBRElement01.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLBaseElement01.xml/1.4/Fri Apr 3 02:48:01 2009// +/HTMLBaseElement02.xml/1.1/Fri Apr 3 02:48:02 2009// +/HTMLBaseFontElement01.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLBaseFontElement02.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLBaseFontElement03.xml/1.4/Fri Apr 3 02:48:02 2009// +/HTMLBodyElement01.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLBodyElement02.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLBodyElement03.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLBodyElement04.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLBodyElement05.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLBodyElement06.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLButtonElement01.xml/1.4/Fri Apr 3 02:48:01 2009// +/HTMLButtonElement02.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLButtonElement03.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLButtonElement04.xml/1.4/Fri Apr 3 02:48:01 2009// +/HTMLButtonElement05.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLButtonElement06.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLButtonElement07.xml/1.4/Fri Apr 3 02:48:02 2009// +/HTMLButtonElement08.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLCollection01.xml/1.2/Fri Apr 3 02:48:02 2009// +/HTMLCollection02.xml/1.4/Fri Apr 3 02:48:01 2009// +/HTMLCollection03.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLCollection04.xml/1.4/Fri Apr 3 02:48:02 2009// +/HTMLCollection05.xml/1.2/Fri Apr 3 02:48:01 2009// +/HTMLCollection06.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLCollection07.xml/1.2/Fri Apr 3 02:48:02 2009// +/HTMLCollection08.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLCollection09.xml/1.2/Fri Apr 3 02:48:01 2009// +/HTMLCollection10.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLCollection11.xml/1.4/Fri Apr 3 02:48:03 2009// +/HTMLCollection12.xml/1.2/Fri Apr 3 02:48:02 2009// +/HTMLDirectoryElement01.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLDivElement01.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLDlistElement01.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLDocument01.xml/1.1/Fri Apr 3 02:48:02 2009// +/HTMLDocument02.xml/1.1/Fri Apr 3 02:48:02 2009// +/HTMLDocument03.xml/1.1/Fri Apr 3 02:48:01 2009// +/HTMLDocument04.xml/1.2/Fri Apr 3 02:48:03 2009// +/HTMLDocument05.xml/1.1/Fri Apr 3 02:48:02 2009// +/HTMLDocument07.xml/1.1/Fri Apr 3 02:48:03 2009// +/HTMLDocument08.xml/1.2/Fri Apr 3 02:48:03 2009// +/HTMLDocument09.xml/1.1/Fri Apr 3 02:48:01 2009// +/HTMLDocument10.xml/1.1/Fri Apr 3 02:48:01 2009// +/HTMLDocument11.xml/1.1/Fri Apr 3 02:48:03 2009// +/HTMLDocument12.xml/1.1/Fri Apr 3 02:48:02 2009// +/HTMLDocument13.xml/1.1/Fri Apr 3 02:48:01 2009// +/HTMLDocument14.xml/1.1/Fri Apr 3 02:48:01 2009// +/HTMLDocument15.xml/1.4/Fri Apr 3 02:48:02 2009// +/HTMLDocument16.xml/1.4/Fri Apr 3 02:48:01 2009// +/HTMLDocument17.xml/1.1/Fri Apr 3 02:48:03 2009// +/HTMLDocument18.xml/1.1/Fri Apr 3 02:48:02 2009// +/HTMLDocument19.xml/1.1/Fri Apr 3 02:48:03 2009// +/HTMLDocument20.xml/1.1/Fri Apr 3 02:48:01 2009// +/HTMLDocument21.xml/1.1/Fri Apr 3 02:48:02 2009// +/HTMLElement01.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement02.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement03.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement04.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement05.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement06.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement07.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement08.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement09.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLElement10.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement100.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement101.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement102.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLElement103.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement104.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement105.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement106.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement107.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement108.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement109.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement11.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement110.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement111.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement112.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement113.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement114.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement115.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement116.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement117.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement118.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement119.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement12.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLElement120.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement121.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement122.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement123.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement124.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement125.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement126.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement127.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement128.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement129.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement13.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement130.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement131.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement132.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement133.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement134.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement135.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement136.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement137.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement138.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLElement139.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement14.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement140.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement141.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement142.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement143.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement144.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement145.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement15.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement16.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement17.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement18.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement19.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement20.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement21.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLElement22.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement23.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement24.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement25.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement26.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement27.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement28.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement29.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement30.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement31.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement32.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement33.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement34.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement35.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement36.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement37.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement38.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement39.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement40.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement41.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement42.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLElement43.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement44.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement45.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement46.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement47.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement48.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement49.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement50.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement51.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement52.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement53.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement54.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement55.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLElement56.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement57.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement58.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement59.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement60.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement61.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement62.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement63.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement64.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement65.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement66.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement67.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLElement68.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement69.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement70.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement71.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement72.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement73.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement74.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement75.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement76.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement77.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement78.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement79.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement80.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement81.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement82.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement83.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement84.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement85.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement86.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement87.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement88.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement89.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement90.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLElement91.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement92.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement93.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement94.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLElement95.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement96.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLElement97.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement98.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLElement99.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLFieldSetElement01.xml/1.4/Fri Apr 3 02:48:01 2009// +/HTMLFieldSetElement02.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLFontElement01.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLFontElement02.xml/1.5/Fri Apr 3 02:48:02 2009// +/HTMLFontElement03.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLFormElement01.xml/1.4/Fri Apr 3 02:48:01 2009// +/HTMLFormElement02.xml/1.4/Fri Apr 3 02:48:01 2009// +/HTMLFormElement03.xml/1.4/Fri Apr 3 02:48:01 2009// +/HTMLFormElement04.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLFormElement05.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLFormElement06.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLFormElement07.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLFormElement08.xml/1.1/Fri Apr 3 02:48:01 2009// +/HTMLFormElement09.xml/1.1/Fri Apr 3 02:48:02 2009// +/HTMLFormElement10.xml/1.1/Fri Apr 3 02:48:02 2009// +/HTMLFrameElement01.xml/1.1/Fri Apr 3 02:48:02 2009// +/HTMLFrameElement02.xml/1.2/Fri Apr 3 02:48:02 2009// +/HTMLFrameElement03.xml/1.1/Fri Apr 3 02:48:01 2009// +/HTMLFrameElement04.xml/1.1/Fri Apr 3 02:48:03 2009// +/HTMLFrameElement05.xml/1.1/Fri Apr 3 02:48:01 2009// +/HTMLFrameElement06.xml/1.2/Fri Apr 3 02:48:03 2009// +/HTMLFrameElement07.xml/1.1/Fri Apr 3 02:48:01 2009// +/HTMLFrameElement08.xml/1.2/Fri Apr 3 02:48:01 2009// +/HTMLFrameSetElement01.xml/1.1/Fri Apr 3 02:48:02 2009// +/HTMLFrameSetElement02.xml/1.1/Fri Apr 3 02:48:02 2009// +/HTMLHRElement01.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLHRElement02.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLHRElement03.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLHRElement04.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLHeadElement01.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLHeadingElement01.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLHeadingElement02.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLHeadingElement03.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLHeadingElement04.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLHeadingElement05.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLHeadingElement06.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLHtmlElement01.xml/1.5/Fri Apr 3 02:48:02 2009// +/HTMLIFrameElement01.xml/1.1/Fri Apr 3 02:48:01 2009// +/HTMLIFrameElement02.xml/1.1/Fri Apr 3 02:48:01 2009// +/HTMLIFrameElement03.xml/1.1/Fri Apr 3 02:48:02 2009// +/HTMLIFrameElement04.xml/1.2/Fri Apr 3 02:48:01 2009// +/HTMLIFrameElement05.xml/1.1/Fri Apr 3 02:48:02 2009// +/HTMLIFrameElement06.xml/1.1/Fri Apr 3 02:48:01 2009// +/HTMLIFrameElement07.xml/1.1/Fri Apr 3 02:48:02 2009// +/HTMLIFrameElement08.xml/1.1/Fri Apr 3 02:48:01 2009// +/HTMLIFrameElement09.xml/1.2/Fri Apr 3 02:48:02 2009// +/HTMLIFrameElement10.xml/1.1/Fri Apr 3 02:48:02 2009// +/HTMLImageElement01.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLImageElement02.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLImageElement03.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLImageElement04.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLImageElement05.xml/1.4/Fri Apr 3 02:48:02 2009// +/HTMLImageElement06.xml/1.4/Fri Apr 3 02:48:01 2009// +/HTMLImageElement07.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLImageElement08.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLImageElement09.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLImageElement10.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLImageElement11.xml/1.4/Fri Apr 3 02:48:01 2009// +/HTMLImageElement12.xml/1.4/Fri Apr 3 02:48:01 2009// +/HTMLImageElement14.xml/1.1/Fri Apr 3 02:48:01 2009// +/HTMLInputElement01.xml/1.4/Fri Apr 3 02:48:02 2009// +/HTMLInputElement02.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLInputElement03.xml/1.4/Fri Apr 3 02:48:02 2009// +/HTMLInputElement04.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLInputElement05.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLInputElement06.xml/1.4/Fri Apr 3 02:48:02 2009// +/HTMLInputElement07.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLInputElement08.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLInputElement09.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLInputElement10.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLInputElement11.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLInputElement12.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLInputElement13.xml/1.4/Fri Apr 3 02:48:01 2009// +/HTMLInputElement14.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLInputElement15.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLInputElement16.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLInputElement17.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLInputElement18.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLInputElement19.xml/1.1/Fri Apr 3 02:48:03 2009// +/HTMLInputElement20.xml/1.2/Fri Apr 3 02:48:03 2009// +/HTMLInputElement21.xml/1.1/Fri Apr 3 02:48:02 2009// +/HTMLInputElement22.xml/1.1/Fri Apr 3 02:48:03 2009// +/HTMLIsIndexElement01.xml/1.6/Fri Apr 3 02:48:02 2009// +/HTMLIsIndexElement02.xml/1.5/Fri Apr 3 02:48:01 2009// +/HTMLIsIndexElement03.xml/1.4/Fri Apr 3 02:48:02 2009// +/HTMLLIElement01.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLLIElement02.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLLabelElement01.xml/1.4/Fri Apr 3 02:48:01 2009// +/HTMLLabelElement02.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLLabelElement03.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLLabelElement04.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLLegendElement01.xml/1.4/Fri Apr 3 02:48:02 2009// +/HTMLLegendElement02.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLLegendElement03.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLLegendElement04.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLLinkElement01.xml/1.4/Fri Apr 3 02:48:03 2009// +/HTMLLinkElement02.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLLinkElement03.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLLinkElement04.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLLinkElement05.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLLinkElement06.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLLinkElement07.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLLinkElement08.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLLinkElement09.xml/1.1/Fri Apr 3 02:48:02 2009// +/HTMLMapElement01.xml/1.4/Fri Apr 3 02:48:01 2009// +/HTMLMapElement02.xml/1.4/Fri Apr 3 02:48:01 2009// +/HTMLMenuElement01.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLMetaElement01.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLMetaElement02.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLMetaElement03.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLMetaElement04.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLModElement01.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLModElement02.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLModElement03.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLModElement04.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLOListElement01.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLOListElement02.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLOListElement03.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLObjectElement01.xml/1.1/Fri Apr 3 02:48:01 2009// +/HTMLObjectElement02.xml/1.4/Fri Apr 3 02:48:03 2009// +/HTMLObjectElement03.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLObjectElement04.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLObjectElement05.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLObjectElement06.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLObjectElement07.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLObjectElement08.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLObjectElement09.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLObjectElement10.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLObjectElement11.xml/1.4/Fri Apr 3 02:48:02 2009// +/HTMLObjectElement12.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLObjectElement13.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLObjectElement14.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLObjectElement15.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLObjectElement16.xml/1.4/Fri Apr 3 02:48:02 2009// +/HTMLObjectElement17.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLObjectElement18.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLObjectElement19.xml/1.1/Fri Apr 3 02:48:02 2009// +/HTMLOptGroupElement01.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLOptGroupElement02.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLOptionElement01.xml/1.4/Fri Apr 3 02:48:02 2009// +/HTMLOptionElement02.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLOptionElement03.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLOptionElement04.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLOptionElement05.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLOptionElement06.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLOptionElement07.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLOptionElement08.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLOptionElement09.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLParagraphElement01.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLParamElement01.xml/1.4/Fri Apr 3 02:48:01 2009// +/HTMLParamElement02.xml/1.4/Fri Apr 3 02:48:02 2009// +/HTMLParamElement03.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLParamElement04.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLPreElement01.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLQuoteElement01.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLQuoteElement02.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLScriptElement01.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLScriptElement02.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLScriptElement03.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLScriptElement04.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLScriptElement05.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLScriptElement06.xml/1.1/Fri Apr 3 02:48:02 2009// +/HTMLScriptElement07.xml/1.2/Fri Apr 3 02:48:01 2009// +/HTMLSelectElement01.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLSelectElement02.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLSelectElement03.xml/1.5/Fri Apr 3 02:48:01 2009// +/HTMLSelectElement04.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLSelectElement05.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLSelectElement06.xml/1.4/Fri Apr 3 02:48:02 2009// +/HTMLSelectElement07.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLSelectElement08.xml/1.6/Fri Apr 3 02:48:03 2009// +/HTMLSelectElement09.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLSelectElement10.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLSelectElement11.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLSelectElement12.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLSelectElement13.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLSelectElement14.xml/1.1/Fri Apr 3 02:48:01 2009// +/HTMLSelectElement15.xml/1.1/Fri Apr 3 02:48:03 2009// +/HTMLSelectElement16.xml/1.1/Fri Apr 3 02:48:01 2009// +/HTMLSelectElement17.xml/1.1/Fri Apr 3 02:48:03 2009// +/HTMLSelectElement18.xml/1.1/Fri Apr 3 02:48:02 2009// +/HTMLSelectElement19.xml/1.1/Fri Apr 3 02:48:02 2009// +/HTMLStyleElement01.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLStyleElement02.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLStyleElement03.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableCaptionElement01.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableCellElement01.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableCellElement02.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableCellElement03.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableCellElement04.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableCellElement05.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableCellElement06.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLTableCellElement07.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableCellElement08.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableCellElement09.xml/1.4/Fri Apr 3 02:48:01 2009// +/HTMLTableCellElement10.xml/1.4/Fri Apr 3 02:48:02 2009// +/HTMLTableCellElement11.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableCellElement12.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableCellElement13.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableCellElement14.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableCellElement15.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableCellElement16.xml/1.4/Fri Apr 3 02:48:01 2009// +/HTMLTableCellElement17.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableCellElement18.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableCellElement19.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableCellElement20.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableCellElement21.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLTableCellElement22.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableCellElement23.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableCellElement24.xml/1.4/Fri Apr 3 02:48:02 2009// +/HTMLTableCellElement25.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLTableCellElement26.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableCellElement27.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableCellElement28.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableCellElement29.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableCellElement30.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableColElement01.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableColElement02.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLTableColElement03.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableColElement04.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableColElement05.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableColElement06.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableColElement07.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableColElement08.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableColElement09.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableColElement10.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableColElement11.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableColElement12.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableElement01.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableElement02.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableElement03.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableElement04.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLTableElement05.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableElement06.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLTableElement07.xml/1.5/Fri Apr 3 02:48:03 2009// +/HTMLTableElement08.xml/1.5/Fri Apr 3 02:48:01 2009// +/HTMLTableElement09.xml/1.5/Fri Apr 3 02:48:01 2009// +/HTMLTableElement10.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableElement11.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableElement12.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableElement13.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableElement14.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableElement15.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableElement16.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableElement17.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableElement18.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableElement19.xml/1.1/Fri Apr 3 02:48:02 2009// +/HTMLTableElement20.xml/1.1/Fri Apr 3 02:48:03 2009// +/HTMLTableElement21.xml/1.2/Fri Apr 3 02:48:01 2009// +/HTMLTableElement22.xml/1.1/Fri Apr 3 02:48:03 2009// +/HTMLTableElement23.xml/1.1/Fri Apr 3 02:48:03 2009// +/HTMLTableElement24.xml/1.2/Fri Apr 3 02:48:01 2009// +/HTMLTableElement25.xml/1.2/Fri Apr 3 02:48:02 2009// +/HTMLTableElement26.xml/1.2/Fri Apr 3 02:48:01 2009// +/HTMLTableElement27.xml/1.1/Fri Apr 3 02:48:01 2009// +/HTMLTableElement28.xml/1.2/Fri Apr 3 02:48:03 2009// +/HTMLTableElement29.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableElement30.xml/1.2/Fri Apr 3 02:48:01 2009// +/HTMLTableElement31.xml/1.7/Fri Apr 3 02:48:02 2009// +/HTMLTableElement32.xml/1.2/Fri Apr 3 02:48:03 2009// +/HTMLTableElement33.xml/1.2/Fri Apr 3 02:48:02 2009// +/HTMLTableRowElement01.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableRowElement02.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableRowElement03.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableRowElement04.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableRowElement05.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableRowElement06.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableRowElement07.xml/1.4/Fri Apr 3 02:48:02 2009// +/HTMLTableRowElement08.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableRowElement09.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableRowElement10.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableRowElement11.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableRowElement12.xml/1.4/Fri Apr 3 02:48:02 2009// +/HTMLTableRowElement13.xml/1.4/Fri Apr 3 02:48:03 2009// +/HTMLTableRowElement14.xml/1.4/Fri Apr 3 02:48:02 2009// +/HTMLTableSectionElement01.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableSectionElement02.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableSectionElement03.xml/1.4/Fri Apr 3 02:48:02 2009// +/HTMLTableSectionElement04.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableSectionElement05.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableSectionElement06.xml/1.4/Fri Apr 3 02:48:01 2009// +/HTMLTableSectionElement07.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableSectionElement08.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableSectionElement09.xml/1.4/Fri Apr 3 02:48:02 2009// +/HTMLTableSectionElement10.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableSectionElement11.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTableSectionElement12.xml/1.4/Fri Apr 3 02:48:03 2009// +/HTMLTableSectionElement13.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableSectionElement14.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLTableSectionElement15.xml/1.4/Fri Apr 3 02:48:01 2009// +/HTMLTableSectionElement16.xml/1.1/Fri Apr 3 02:48:01 2009// +/HTMLTableSectionElement17.xml/1.1/Fri Apr 3 02:48:01 2009// +/HTMLTableSectionElement18.xml/1.2/Fri Apr 3 02:48:03 2009// +/HTMLTableSectionElement19.xml/1.1/Fri Apr 3 02:48:01 2009// +/HTMLTableSectionElement20.xml/1.1/Fri Apr 3 02:48:02 2009// +/HTMLTableSectionElement21.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTableSectionElement22.xml/1.1/Fri Apr 3 02:48:03 2009// +/HTMLTableSectionElement23.xml/1.1/Fri Apr 3 02:48:01 2009// +/HTMLTableSectionElement24.xml/1.2/Fri Apr 3 02:48:02 2009// +/HTMLTextAreaElement01.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLTextAreaElement02.xml/1.4/Fri Apr 3 02:48:01 2009// +/HTMLTextAreaElement03.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTextAreaElement04.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTextAreaElement05.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTextAreaElement06.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTextAreaElement07.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTextAreaElement08.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLTextAreaElement09.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTextAreaElement10.xml/1.3/Fri Apr 3 02:48:03 2009// +/HTMLTextAreaElement11.xml/1.4/Fri Apr 3 02:48:01 2009// +/HTMLTextAreaElement12.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLTextAreaElement13.xml/1.1/Fri Apr 3 02:48:03 2009// +/HTMLTextAreaElement14.xml/1.1/Fri Apr 3 02:48:01 2009// +/HTMLTextAreaElement15.xml/1.1/Fri Apr 3 02:48:01 2009// +/HTMLTitleElement01.xml/1.3/Fri Apr 3 02:48:01 2009// +/HTMLUListElement01.xml/1.3/Fri Apr 3 02:48:02 2009// +/HTMLUListElement02.xml/1.3/Fri Apr 3 02:48:01 2009// +/alltests.xml/1.10/Fri Apr 3 02:48:01 2009// +/anchor01.xml/1.1/Fri Apr 3 02:48:01 2009// +/anchor02.xml/1.1/Fri Apr 3 02:48:02 2009// +/anchor03.xml/1.1/Fri Apr 3 02:48:02 2009// +/anchor04.xml/1.1/Fri Apr 3 02:48:02 2009// +/anchor05.xml/1.1/Fri Apr 3 02:48:01 2009// +/anchor06.xml/1.1/Fri Apr 3 02:48:03 2009// +/area01.xml/1.1/Fri Apr 3 02:48:02 2009// +/area02.xml/1.1/Fri Apr 3 02:48:02 2009// +/area03.xml/1.1/Fri Apr 3 02:48:02 2009// +/area04.xml/1.1/Fri Apr 3 02:48:01 2009// +/basefont01.xml/1.1/Fri Apr 3 02:48:02 2009// +/body01.xml/1.1/Fri Apr 3 02:48:01 2009// +/button01.xml/1.1/Fri Apr 3 02:48:01 2009// +/button02.xml/1.1/Fri Apr 3 02:48:01 2009// +/button03.xml/1.1/Fri Apr 3 02:48:02 2009// +/button04.xml/1.1/Fri Apr 3 02:48:03 2009// +/button05.xml/1.1/Fri Apr 3 02:48:01 2009// +/button06.xml/1.1/Fri Apr 3 02:48:01 2009// +/button07.xml/1.1/Fri Apr 3 02:48:02 2009// +/button08.xml/1.1/Fri Apr 3 02:48:02 2009// +/button09.xml/1.1/Fri Apr 3 02:48:02 2009// +/dlist01.xml/1.1/Fri Apr 3 02:48:01 2009// +/doc01.xml/1.1/Fri Apr 3 02:48:01 2009// +/hasFeature01.xml/1.1/Fri Apr 3 02:48:03 2009// +/index.htm/1.1/Fri Apr 3 02:48:01 2009// +/metadata.xml/1.1/Fri Apr 3 02:48:01 2009// +/object01.xml/1.2/Fri Apr 3 02:48:02 2009// +/object02.xml/1.2/Fri Apr 3 02:48:02 2009// +/object03.xml/1.2/Fri Apr 3 02:48:02 2009// +/object04.xml/1.2/Fri Apr 3 02:48:01 2009// +/object05.xml/1.2/Fri Apr 3 02:48:01 2009// +/object06.xml/1.2/Fri Apr 3 02:48:02 2009// +/object07.xml/1.2/Fri Apr 3 02:48:02 2009// +/object08.xml/1.4/Fri Apr 3 02:48:02 2009// +/object09.xml/1.2/Fri Apr 3 02:48:02 2009// +/object10.xml/1.2/Fri Apr 3 02:48:02 2009// +/object11.xml/1.2/Fri Apr 3 02:48:02 2009// +/object12.xml/1.2/Fri Apr 3 02:48:03 2009// +/object13.xml/1.4/Fri Apr 3 02:48:02 2009// +/object14.xml/1.2/Fri Apr 3 02:48:01 2009// +/object15.xml/1.2/Fri Apr 3 02:48:02 2009// +/table01.xml/1.2/Fri Apr 3 02:48:02 2009// +/table02.xml/1.2/Fri Apr 3 02:48:02 2009// +/table03.xml/1.2/Fri Apr 3 02:48:03 2009// +/table04.xml/1.2/Fri Apr 3 02:48:03 2009// +/table06.xml/1.2/Fri Apr 3 02:48:01 2009// +/table07.xml/1.2/Fri Apr 3 02:48:03 2009// +/table08.xml/1.2/Fri Apr 3 02:48:03 2009// +/table09.xml/1.2/Fri Apr 3 02:48:01 2009// +/table10.xml/1.2/Fri Apr 3 02:48:02 2009// +/table12.xml/1.2/Fri Apr 3 02:48:02 2009// +/table15.xml/1.2/Fri Apr 3 02:48:02 2009// +/table17.xml/1.2/Fri Apr 3 02:48:02 2009// +/table18.xml/1.2/Fri Apr 3 02:48:02 2009// +/table19.xml/1.2/Fri Apr 3 02:48:01 2009// +/table20.xml/1.2/Fri Apr 3 02:48:02 2009// +/table21.xml/1.2/Fri Apr 3 02:48:01 2009// +/table22.xml/1.2/Fri Apr 3 02:48:02 2009// +/table23.xml/1.2/Fri Apr 3 02:48:01 2009// +/table24.xml/1.2/Fri Apr 3 02:48:02 2009// +/table25.xml/1.2/Fri Apr 3 02:48:02 2009// +/table26.xml/1.2/Fri Apr 3 02:48:01 2009// +/table27.xml/1.2/Fri Apr 3 02:48:02 2009// +/table28.xml/1.2/Fri Apr 3 02:48:01 2009// +/table29.xml/1.2/Fri Apr 3 02:48:02 2009// +/table30.xml/1.2/Fri Apr 3 02:48:02 2009// +/table31.xml/1.2/Fri Apr 3 02:48:03 2009// +/table32.xml/1.2/Fri Apr 3 02:48:03 2009// +/table33.xml/1.2/Fri Apr 3 02:48:01 2009// +/table34.xml/1.2/Fri Apr 3 02:48:02 2009// +/table35.xml/1.2/Fri Apr 3 02:48:02 2009// +/table36.xml/1.2/Fri Apr 3 02:48:02 2009// +/table37.xml/1.2/Fri Apr 3 02:48:01 2009// +/table38.xml/1.2/Fri Apr 3 02:48:02 2009// +/table39.xml/1.2/Fri Apr 3 02:48:02 2009// +/table40.xml/1.2/Fri Apr 3 02:48:02 2009// +/table41.xml/1.2/Fri Apr 3 02:48:01 2009// +/table42.xml/1.2/Fri Apr 3 02:48:02 2009// +/table43.xml/1.2/Fri Apr 3 02:48:01 2009// +/table44.xml/1.2/Fri Apr 3 02:48:02 2009// +/table45.xml/1.2/Fri Apr 3 02:48:03 2009// +/table46.xml/1.2/Fri Apr 3 02:48:03 2009// +/table47.xml/1.2/Fri Apr 3 02:48:03 2009// +/table48.xml/1.2/Fri Apr 3 02:48:01 2009// +/table49.xml/1.2/Fri Apr 3 02:48:01 2009// +/table50.xml/1.2/Fri Apr 3 02:48:02 2009// +/table51.xml/1.2/Fri Apr 3 02:48:01 2009// +/table52.xml/1.2/Fri Apr 3 02:48:02 2009// +/table53.xml/1.2/Fri Apr 3 02:48:01 2009// diff --git a/test/testcases/tests/level1/html/CVS/Repository b/test/testcases/tests/level1/html/CVS/Repository new file mode 100644 index 0000000..87e193a --- /dev/null +++ b/test/testcases/tests/level1/html/CVS/Repository @@ -0,0 +1 @@ +2001/DOM-Test-Suite/tests/level1/html diff --git a/test/testcases/tests/level1/html/CVS/Root b/test/testcases/tests/level1/html/CVS/Root new file mode 100644 index 0000000..3c7177e --- /dev/null +++ b/test/testcases/tests/level1/html/CVS/Root @@ -0,0 +1 @@ +:pserver:anonymous@dev.w3.org:/sources/public diff --git a/test/testcases/tests/level1/html/CVS/Template b/test/testcases/tests/level1/html/CVS/Template new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/testcases/tests/level1/html/CVS/Template diff --git a/test/testcases/tests/level1/html/HTMLAnchorElement01.xml b/test/testcases/tests/level1/html/HTMLAnchorElement01.xml new file mode 100644 index 0000000..a076a18 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAnchorElement01.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAnchorElement01"> +<metadata> +<title>HTMLAnchorElement01</title> +<creator>NIST</creator> +<description> + The accessKey attribute is a single character access key to give + access to the form control. + + Retrieve the accessKey attribute and examine its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-89647724"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="HTMLAnchorElement"/> +<var name="vaccesskey" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="anchor" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"a"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<accessKey interface="HTMLAnchorElement" obj="testNode" var="vaccesskey"/> +<assertEquals actual="vaccesskey" expected='"g"' id="accessKeyLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLAnchorElement02.xml b/test/testcases/tests/level1/html/HTMLAnchorElement02.xml new file mode 100644 index 0000000..247a8cb --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAnchorElement02.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAnchorElement02"> +<metadata> +<title>HTMLAnchorElement02</title> +<creator>NIST</creator> +<description> + The charset attribute indicates the character encoding of the linked + resource. + + Retrieve the charset attribute and examine its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-67619266"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="HTMLAnchorElement"/> +<var name="vcharset" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="anchor" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"a"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<charset interface="HTMLAnchorElement" obj="testNode" var="vcharset"/> +<assertEquals actual="vcharset" expected='"US-ASCII"' id="charsetLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLAnchorElement03.xml b/test/testcases/tests/level1/html/HTMLAnchorElement03.xml new file mode 100644 index 0000000..07a421c --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAnchorElement03.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAnchorElement03"> +<metadata> +<title>HTMLAnchorElement03</title> +<creator>NIST</creator> +<description> + The coords attribute is a comma-seperated list of lengths, defining + an active region geometry. + + Retrieve the coords attribute and examine its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-92079539"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="HTMLAnchorElement"/> +<var name="vcoords" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="anchor" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"a"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<coords interface="HTMLAnchorElement" obj="testNode" var="vcoords"/> +<assertEquals actual="vcoords" expected='"0,0,100,100"' id="coordsLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLAnchorElement04.xml b/test/testcases/tests/level1/html/HTMLAnchorElement04.xml new file mode 100644 index 0000000..7b961c4 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAnchorElement04.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAnchorElement04"> + <metadata> + <title>HTMLAnchorElement04</title> + <creator>NIST</creator> + <description> + The href attribute contains the URL of the linked resource. + + Retrieve the href attribute and examine its value. +</description> + <contributor>Mary Brady</contributor> + <date qualifier="created">2002-02-22</date> + <subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-88517319"/> + </metadata> + <var name="nodeList" type="NodeList" /> + <var name="testNode" type="HTMLAnchorElement" /> + <var name="vhref" type="DOMString" /> + <var name="doc" type="Document" /> + <load var="doc" href="anchor" willBeModified="false" /> + <getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"a"' /> + <assertSize collection="nodeList" size="1" id="Asize" /> + <item interface="NodeList" obj="nodeList" var="testNode" index="0" /> + <href interface="HTMLAnchorElement" obj="testNode" var="vhref" /> + <assertURIEquals actual="vhref" file='"submit.gif"' id="hrefLink"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLAnchorElement05.xml b/test/testcases/tests/level1/html/HTMLAnchorElement05.xml new file mode 100644 index 0000000..0329515 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAnchorElement05.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAnchorElement05"> +<metadata> +<title>HTMLAnchorElement05</title> +<creator>NIST</creator> +<description> + The hreflang attribute contains the language code of the linked resource. + + Retrieve the hreflang attribute and examine its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-87358513"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="HTMLAnchorElement"/> +<var name="vhreflink" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="anchor" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"a"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<hreflang interface="HTMLAnchorElement" obj="testNode" var="vhreflink"/> +<assertEquals actual="vhreflink" expected='"en"' id="hreflangLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLAnchorElement06.xml b/test/testcases/tests/level1/html/HTMLAnchorElement06.xml new file mode 100644 index 0000000..ad768fa --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAnchorElement06.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAnchorElement06"> +<metadata> +<title>HTMLAnchorElement06</title> +<creator>NIST</creator> +<description> + The name attribute contains the anchor name. + + Retrieve the name attribute and examine its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-32783304"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="HTMLAnchorElement"/> +<var name="vname" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="anchor" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"a"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<name interface="HTMLAnchorElement" obj="testNode" var="vname"/> +<assertEquals actual="vname" expected='"Anchor"' id="nameLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLAnchorElement07.xml b/test/testcases/tests/level1/html/HTMLAnchorElement07.xml new file mode 100644 index 0000000..a70cc36 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAnchorElement07.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAnchorElement07"> +<metadata> +<title>HTMLAnchorElement07</title> +<creator>NIST</creator> +<description> + The rel attribute contains the forward link type. + + Retrieve the rel attribute and examine its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-3815891"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="HTMLAnchorElement"/> +<var name="vrel" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="anchor" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"a"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<rel interface="HTMLAnchorElement" obj="testNode" var="vrel"/> +<assertEquals actual="vrel" expected='"GLOSSARY"' id="relLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLAnchorElement08.xml b/test/testcases/tests/level1/html/HTMLAnchorElement08.xml new file mode 100644 index 0000000..bb76341 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAnchorElement08.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAnchorElement08"> +<metadata> +<title>HTMLAnchorElement08</title> +<creator>NIST</creator> +<description> + The rev attribute contains the reverse link type + + Retrieve the rev attribute and examine its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-58259771"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="HTMLAnchorElement"/> +<var name="vrev" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="anchor" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"a"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<rev interface="HTMLAnchorElement" obj="testNode" var="vrev"/> +<assertEquals actual="vrev" expected='"STYLESHEET"' id="revLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLAnchorElement09.xml b/test/testcases/tests/level1/html/HTMLAnchorElement09.xml new file mode 100644 index 0000000..7da6d18 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAnchorElement09.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAnchorElement09"> +<metadata> +<title>HTMLAnchorElement09</title> +<creator>NIST</creator> +<description> + The shape attribute contains the shape of the active area. + + Retrieve the shape attribute and examine its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-49899808"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="HTMLAnchorElement"/> +<var name="vshape" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="anchor" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"a"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<shape interface="HTMLAnchorElement" obj="testNode" var="vshape"/> +<assertEquals actual="vshape" expected='"rect"' id="shapeLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLAnchorElement10.xml b/test/testcases/tests/level1/html/HTMLAnchorElement10.xml new file mode 100644 index 0000000..201c113 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAnchorElement10.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAnchorElement10"> +<metadata> +<title>HTMLAnchorElement10</title> +<creator>NIST</creator> +<description> + The tabIndex attribute contains an index that represents the elements + position in the tabbing order. + + Retrieve the tabIndex attribute and examine its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-41586466"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="HTMLAnchorElement"/> +<var name="vtabindex" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="anchor" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"a"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<tabIndex interface="HTMLAnchorElement" obj="testNode" var="vtabindex"/> +<assertEquals actual="vtabindex" expected="22" id="tabIndexLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLAnchorElement11.xml b/test/testcases/tests/level1/html/HTMLAnchorElement11.xml new file mode 100644 index 0000000..00c2bb9 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAnchorElement11.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAnchorElement11"> +<metadata> +<title>HTMLAnchorElement11</title> +<creator>NIST</creator> +<description> + The target attribute specifies the frame to render the source in. + + Retrieve the target attribute and examine it's value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-6414197"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vtarget" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="anchor2" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"a"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<target interface="HTMLAnchorElement" obj="testNode" var="vtarget"/> +<assertEquals actual="vtarget" expected='"dynamic"' id="targetLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLAnchorElement12.xml b/test/testcases/tests/level1/html/HTMLAnchorElement12.xml new file mode 100644 index 0000000..3b22328 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAnchorElement12.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAnchorElement12"> +<metadata> +<title>HTMLAnchorElement12</title> +<creator>NIST</creator> +<description> + The type attribute contains the advisory content model. + + Retrieve the type attribute and examine its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63938221"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="HTMLAnchorElement"/> +<var name="vtype" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="anchor" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"a"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<type interface="HTMLAnchorElement" obj="testNode" var="vtype"/> +<assertEquals actual="vtype" expected='"image/gif"' id="typeLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLAnchorElement13.xml b/test/testcases/tests/level1/html/HTMLAnchorElement13.xml new file mode 100644 index 0000000..555985d --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAnchorElement13.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +Copyright (c) 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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAnchorElement13"> +<metadata> +<title>HTMLAnchorElement13</title> +<creator>Curt Arnold</creator> +<description> +HTMLAnchorElement.blur should surrender input focus. +</description> +<date qualifier="created">2004-03-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-65068939"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="HTMLAnchorElement"/> +<var name="doc" type="Document"/> +<load var="doc" href="anchor" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"a"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<blur interface="HTMLAnchorElement" obj="testNode"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLAnchorElement14.xml b/test/testcases/tests/level1/html/HTMLAnchorElement14.xml new file mode 100644 index 0000000..7d3d0c6 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAnchorElement14.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +Copyright (c) 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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAnchorElement14"> +<metadata> +<title>HTMLAnchorElement14</title> +<creator>Curt Arnold</creator> +<description> +HTMLAnchorElement.focus should capture input focus. +</description> +<date qualifier="created">2004-03-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-47150313"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="HTMLAnchorElement"/> +<var name="doc" type="Document"/> +<load var="doc" href="anchor" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"a"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<focus interface="HTMLAnchorElement" obj="testNode"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLAppletElement01.xml b/test/testcases/tests/level1/html/HTMLAppletElement01.xml new file mode 100644 index 0000000..7be4ac6 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAppletElement01.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAppletElement01"> +<metadata> +<title>HTMLAppletElement01</title> +<creator>NIST</creator> +<description> + The align attribute specifies the alignment of the object(Vertically + or Horizontally) with respect to its surrounding text. + + Retrieve the align attribute and examine its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-8049912"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="valign" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="applet" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"applet"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<align interface="HTMLAppletElement" obj="testNode" var="valign"/> +<assertEquals actual="valign" expected='"bottom"' id="alignLink" ignoreCase="true"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLAppletElement02.xml b/test/testcases/tests/level1/html/HTMLAppletElement02.xml new file mode 100644 index 0000000..2042f0a --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAppletElement02.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAppletElement02">
+<metadata>
+<title>HTMLAppletElement02</title>
+<creator>NIST</creator>
+<description>
+ The alt attribute specifies the alternate text for user agents not
+ rendering the normal context of this element.
+
+ Retrieve the alt attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-58610064"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="valt" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="applet" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"applet"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<alt interface="HTMLAppletElement" obj="testNode" var="valt"/>
+<assertEquals actual="valt" expected='"Applet Number 1"' id="altLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLAppletElement03.xml b/test/testcases/tests/level1/html/HTMLAppletElement03.xml new file mode 100644 index 0000000..a68e3e0 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAppletElement03.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAppletElement03">
+<metadata>
+<title>HTMLAppletElement03</title>
+<creator>NIST</creator>
+<description>
+ The archive attribute specifies a comma-seperated archive list.
+
+ Retrieve the archive attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-14476360"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="varchive" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="applet" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"applet"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<archive interface="HTMLAppletElement" obj="testNode" var="varchive"/>
+<assertEquals actual="varchive" expected='""' id="archiveLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLAppletElement04.xml b/test/testcases/tests/level1/html/HTMLAppletElement04.xml new file mode 100644 index 0000000..23e8bb6 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAppletElement04.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAppletElement04"> +<metadata> +<title>HTMLAppletElement04</title> +<creator>NIST</creator> +<description> + The code attribute specifies the applet class file. + + Retrieve the code attribute and examine its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-61509645"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vcode" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="applet" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"applet"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<code interface="HTMLAppletElement" obj="testNode" var="vcode"/> +<assertEquals actual="vcode" expected='"org/w3c/domts/DOMTSApplet.class"' id="codeLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLAppletElement05.xml b/test/testcases/tests/level1/html/HTMLAppletElement05.xml new file mode 100644 index 0000000..81076d1 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAppletElement05.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAppletElement05"> +<metadata> +<title>HTMLAppletElement05</title> +<creator>NIST</creator> +<description> + The codeBase attribute specifies an optional base URI for the applet. + + Retrieve the codeBase attribute and examine its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-6581160"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vcodebase" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="applet" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"applet"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<codeBase interface="HTMLAppletElement" obj="testNode" var="vcodebase"/> +<assertEquals actual="vcodebase" expected='"applets"' id="codebase" ignoreCase="false" /> +</test> diff --git a/test/testcases/tests/level1/html/HTMLAppletElement06.xml b/test/testcases/tests/level1/html/HTMLAppletElement06.xml new file mode 100644 index 0000000..1d280da --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAppletElement06.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAppletElement06"> +<metadata> +<title>HTMLAppletElement06</title> +<creator>NIST</creator> +<description> + The height attribute overrides the height. + + Retrieve the height attribute and examine its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-90184867"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vheight" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="applet" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"applet"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<height interface="HTMLAppletElement" obj="testNode" var="vheight"/> +<assertEquals actual="vheight" expected='"306"' id="heightLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLAppletElement07.xml b/test/testcases/tests/level1/html/HTMLAppletElement07.xml new file mode 100644 index 0000000..d3b4858 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAppletElement07.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAppletElement07"> +<metadata> +<title>HTMLAppletElement07</title> +<creator>NIST</creator> +<description> + The hspace attribute specifies the horizontal space to the left + and right of this image, applet, or object. Retrieve the hspace attribute and examine its value. + + This test is incompatible with L2 HTML implementations due to a change in the type of the attribute. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-1567197"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=504"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vhspace" type="DOMString" /> +<var name="doc" type="Document"/> +<var name="domImpl" type="DOMImplementation"/> +<var name="hasHTML2" type="boolean"/> +<load var="doc" href="applet" willBeModified="false"/> +<implementation var="domImpl" obj="doc"/> +<hasFeature var="hasHTML2" obj="domImpl" feature='"HTML"' version='"2.0"'/> +<if><isFalse value="hasHTML2"/> +<!-- this test is incompatible with L2 HTML implementations --> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"applet"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<hspace interface="HTMLAppletElement" obj="testNode" var="vhspace"/> +<assertEquals actual="vhspace" expected='"0"' id="hspaceLink" ignoreCase="false"/> +</if> +</test> diff --git a/test/testcases/tests/level1/html/HTMLAppletElement08.xml b/test/testcases/tests/level1/html/HTMLAppletElement08.xml new file mode 100644 index 0000000..a473f23 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAppletElement08.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAppletElement08">
+<metadata>
+<title>HTMLAppletElement08</title>
+<creator>NIST</creator>
+<description>
+ The name attribute specifies the name of the applet.
+
+ Retrieve the name attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-39843695"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vname" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="applet" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"applet"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<name interface="HTMLAppletElement" obj="testNode" var="vname"/>
+<assertEquals actual="vname" expected='"applet1"' id="nameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLAppletElement09.xml b/test/testcases/tests/level1/html/HTMLAppletElement09.xml new file mode 100644 index 0000000..98d2413 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAppletElement09.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAppletElement09"> +<metadata> +<title>HTMLAppletElement09</title> +<creator>NIST</creator> +<description> + The vspace attribute specifies the vertical space above and below + this image, applet or object. Retrieve the vspace attribute and examine its value. + + This test is incompatible with L2 HTML implementations due to a change in the type of the attribute. + +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-22637173"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=504"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vvspace" type="DOMString" /> +<var name="doc" type="Document"/> +<var name="domImpl" type="DOMImplementation"/> +<var name="hasHTML2" type="boolean"/> +<load var="doc" href="applet" willBeModified="false"/> +<implementation var="domImpl" obj="doc"/> +<hasFeature var="hasHTML2" obj="domImpl" feature='"HTML"' version='"2.0"'/> +<if><isFalse value="hasHTML2"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"applet"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<vspace interface="HTMLAppletElement" obj="testNode" var="vvspace"/> +<assertEquals actual="vvspace" expected='"0"' id="vspaceLink" ignoreCase="false"/> +</if> +</test> diff --git a/test/testcases/tests/level1/html/HTMLAppletElement10.xml b/test/testcases/tests/level1/html/HTMLAppletElement10.xml new file mode 100644 index 0000000..2cf1b6a --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAppletElement10.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAppletElement10">
+<metadata>
+<title>HTMLAppletElement10</title>
+<creator>NIST</creator>
+<description>
+ The width attribute overrides the regular width.
+
+ Retrieve the width attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-16526327"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vwidth" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="applet" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"applet"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<width interface="HTMLAppletElement" obj="testNode" var="vwidth"/>
+<assertEquals actual="vwidth" expected='"301"' id="widthLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLAppletElement11.xml b/test/testcases/tests/level1/html/HTMLAppletElement11.xml new file mode 100644 index 0000000..91cba8b --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAppletElement11.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAppletElement11"> +<metadata> +<title>HTMLAppletElement11</title> +<creator>NIST</creator> +<description> + The object attribute specifies the serialized applet file. + + Retrieve the object attribute and examine its value. +</description> +<contributor>Rick Rivello</contributor> +<contributor>Curt Arnold</contributor> +<date qualifier="created">2002-07-19</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-93681523"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vobject" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="applet2" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"applet"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<object interface="HTMLAppletElement" obj="testNode" var="vobject"/> +<assertEquals actual="vobject" expected='"DOMTSApplet.dat"' id="object" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLAreaElement01.xml b/test/testcases/tests/level1/html/HTMLAreaElement01.xml new file mode 100644 index 0000000..58db920 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAreaElement01.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAreaElement01">
+<metadata>
+<title>HTMLAreaElement01</title>
+<creator>NIST</creator>
+<description>
+ The accessKey attribute specifies a single character access key to
+ give access to the control form.
+
+ Retrieve the accessKey attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-57944457"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vaccesskey" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="area" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"area"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<accessKey interface="HTMLAreaElement" obj="testNode" var="vaccesskey"/>
+<assertEquals actual="vaccesskey" expected='"a"' id="alignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLAreaElement02.xml b/test/testcases/tests/level1/html/HTMLAreaElement02.xml new file mode 100644 index 0000000..e90e643 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAreaElement02.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAreaElement02">
+<metadata>
+<title>HTMLAreaElement02</title>
+<creator>NIST</creator>
+<description>
+ The alt attribute specifies an alternate text for user agents not
+ rendering the normal content of this element.
+
+ Retrieve the alt attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-39775416"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="valt" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="area" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"area"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<alt interface="HTMLAreaElement" obj="testNode" var="valt"/>
+<assertEquals actual="valt" expected='"Domain"' id="altLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLAreaElement03.xml b/test/testcases/tests/level1/html/HTMLAreaElement03.xml new file mode 100644 index 0000000..e0d2114 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAreaElement03.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAreaElement03">
+<metadata>
+<title>HTMLAreaElement03</title>
+<creator>NIST</creator>
+<description>
+ The coords attribute specifies a comma-seperated list of lengths,
+ defining an active region geometry.
+
+ Retrieve the coords attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-66021476"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vcoords" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="area" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"area"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<coords interface="HTMLAreaElement" obj="testNode" var="vcoords"/>
+<assertEquals actual="vcoords" expected='"0,2,45,45"' id="coordsLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLAreaElement04.xml b/test/testcases/tests/level1/html/HTMLAreaElement04.xml new file mode 100644 index 0000000..c464ae0 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAreaElement04.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAreaElement04">
+<metadata>
+<title>HTMLAreaElement04</title>
+<creator>NIST</creator>
+<description>
+ The href attribute specifies the URI of the linked resource.
+
+ Retrieve the href attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-34672936"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vhref" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="area" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"area"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<href interface="HTMLAreaElement" obj="testNode" var="vhref"/>
+<assertURIEquals actual="vhref" file='"dletter.html"' id="hrefLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLAreaElement05.xml b/test/testcases/tests/level1/html/HTMLAreaElement05.xml new file mode 100644 index 0000000..31bff76 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAreaElement05.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAreaElement05">
+<metadata>
+<title>HTMLAreaElement05</title>
+<creator>NIST</creator>
+<description>
+ The noHref attribute specifies that this area is inactive.
+
+ Retrieve the noHref attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-61826871"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vnohref" type="boolean" />
+<var name="doc" type="Document"/>
+<load var="doc" href="area" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"area"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<noHref interface="HTMLAreaElement" obj="testNode" var="vnohref"/>
+<assertFalse actual="vnohref" id="noHrefLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLAreaElement06.xml b/test/testcases/tests/level1/html/HTMLAreaElement06.xml new file mode 100644 index 0000000..407f72a --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAreaElement06.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAreaElement06"> +<metadata> +<title>HTMLAreaElement06</title> +<creator>NIST</creator> +<description> + The shape attribute specifies the shape of the active area. + + Retrieve the shape attribute and examine its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-85683271"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vshape" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="area" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"area"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<shape interface="HTMLAreaElement" obj="testNode" var="vshape"/> +<assertEquals actual="vshape" expected='"rect"' id="shapeLink" ignoreCase="true"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLAreaElement07.xml b/test/testcases/tests/level1/html/HTMLAreaElement07.xml new file mode 100644 index 0000000..c03b07d --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAreaElement07.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAreaElement07">
+<metadata>
+<title>HTMLAreaElement07</title>
+<creator>NIST</creator>
+<description>
+ The tabIndex attribute specifies an index that represents the element's
+ position in the tabbing order.
+
+ Retrieve the tabIndex attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-8722121"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtabindex" type="int" />
+<var name="doc" type="Document"/>
+<load var="doc" href="area" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"area"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<tabIndex interface="HTMLAreaElement" obj="testNode" var="vtabindex"/>
+<assertEquals actual="vtabindex" expected="10" id="tabIndexLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLAreaElement08.xml b/test/testcases/tests/level1/html/HTMLAreaElement08.xml new file mode 100644 index 0000000..9d485fe --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLAreaElement08.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLAreaElement08"> +<metadata> +<title>HTMLAreaElement08</title> +<creator>NIST</creator> +<description> + The target specifies the frame to render the resource in. + + Retrieve the target attribute and examine it's value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-46054682"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vtarget" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="area2" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"area"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<target interface="HTMLAreaElement" obj="testNode" var="vtarget"/> +<assertEquals actual="vtarget" expected='"dynamic"' id="targetLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLBRElement01.xml b/test/testcases/tests/level1/html/HTMLBRElement01.xml new file mode 100644 index 0000000..cc4d17a --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLBRElement01.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLBRElement01">
+<metadata>
+<title>HTMLBRElement01</title>
+<creator>NIST</creator>
+<description>
+ The clear attribute specifies control flow of text around floats.
+
+ Retrieve the clear attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-82703081"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclear" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="br" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"br"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<clear interface="HTMLBRElement" obj="testNode" var="vclear"/>
+<assertEquals actual="vclear" expected='"none"' id="clearLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLBaseElement01.xml b/test/testcases/tests/level1/html/HTMLBaseElement01.xml new file mode 100644 index 0000000..fa6eacc --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLBaseElement01.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLBaseElement01"> +<metadata> +<title>HTMLBaseElement01</title> +<creator>NIST</creator> +<description> + The href attribute specifies the base URI. + + Retrieve the href attribute and examine its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-65382887"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vhref" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="base" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"base"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<href interface="HTMLBaseElement" obj="testNode" var="vhref"/> +<assertEquals actual="vhref" expected='"about:blank"' id="hrefLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLBaseElement02.xml b/test/testcases/tests/level1/html/HTMLBaseElement02.xml new file mode 100644 index 0000000..d2a20a5 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLBaseElement02.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLBaseElement02">
+<metadata>
+<title>HTMLBaseElement02</title>
+<creator>NIST</creator>
+<description>
+ The target attribute specifies the default target frame. +
+ Retrieve the target attribute and examine its value.
+</description>
+<contributor>Rick Rivello</contributor>
+<date qualifier="created">2002-07-18</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-73844298"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtarget" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="base2" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"base"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<target interface="HTMLBaseElement" obj="testNode" var="vtarget"/>
+<assertEquals actual="vtarget" expected='"Frame1"' id="targetLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLBaseFontElement01.xml b/test/testcases/tests/level1/html/HTMLBaseFontElement01.xml new file mode 100644 index 0000000..525438f --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLBaseFontElement01.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLBaseFontElement01">
+<metadata>
+<title>HTMLBaseFontElement01</title>
+<creator>NIST</creator>
+<description>
+ The color attribute specifies the base font's color.
+
+ Retrieve the color attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-87502302"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vcolor" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="basefont" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"basefont"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<color interface="HTMLBaseFontElement" obj="testNode" var="vcolor"/>
+<assertEquals actual="vcolor" expected='"#000000"' id="colorLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLBaseFontElement02.xml b/test/testcases/tests/level1/html/HTMLBaseFontElement02.xml new file mode 100644 index 0000000..94894d6 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLBaseFontElement02.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLBaseFontElement02">
+<metadata>
+<title>HTMLBaseFontElement02</title>
+<creator>NIST</creator>
+<description>
+ The face attribute specifies the base font's face identifier.
+
+ Retrieve the face attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-88128969"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vface" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="basefont" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"basefont"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<face interface="HTMLBaseFontElement" obj="testNode" var="vface"/>
+<assertEquals actual="vface" expected='"arial,helvitica"' id="faceLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLBaseFontElement03.xml b/test/testcases/tests/level1/html/HTMLBaseFontElement03.xml new file mode 100644 index 0000000..e63b16f --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLBaseFontElement03.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLBaseFontElement03"> +<metadata> +<title>HTMLBaseFontElement03</title> +<creator>NIST</creator> +<description> + The size attribute specifies the base font's size. Retrieve the size attribute and examine its value. + + This test is incompatible with L2 HTML implementations due to a change in the type of the attribute. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-38930424"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=504"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vsize" type="DOMString" /> +<var name="doc" type="Document"/> +<var name="domImpl" type="DOMImplementation"/> +<var name="hasHTML2" type="boolean"/> +<load var="doc" href="basefont" willBeModified="false"/> +<implementation var="domImpl" obj="doc"/> +<hasFeature var="hasHTML2" obj="domImpl" feature='"HTML"' version='"2.0"'/> +<if><isFalse value="hasHTML2"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"basefont"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<size interface="HTMLBaseFontElement" obj="testNode" var="vsize"/> +<assertEquals actual="vsize" expected='"4"' id="sizeLink" ignoreCase="false"/> +</if> +</test> diff --git a/test/testcases/tests/level1/html/HTMLBodyElement01.xml b/test/testcases/tests/level1/html/HTMLBodyElement01.xml new file mode 100644 index 0000000..95438c6 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLBodyElement01.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLBodyElement01">
+<metadata>
+<title>HTMLBodyElement01</title>
+<creator>NIST</creator>
+<description>
+ The aLink attribute specifies the color of active links.
+
+ Retrieve the aLink attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59424581"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="valink" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="body" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"body"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<aLink interface="HTMLBodyElement" obj="testNode" var="valink"/>
+<assertEquals actual="valink" expected='"#0000ff"' id="aLinkLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLBodyElement02.xml b/test/testcases/tests/level1/html/HTMLBodyElement02.xml new file mode 100644 index 0000000..e5e7d34 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLBodyElement02.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLBodyElement02">
+<metadata>
+<title>HTMLBodyElement02</title>
+<creator>NIST</creator>
+<description>
+ The background attribute specifies the URI fo the background texture
+ tile image.
+
+ Retrieve the background attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-37574810"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vbackground" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="body" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"body"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<background interface="HTMLBodyElement" obj="testNode" var="vbackground"/>
+<assertEquals actual="vbackground" expected='"./pix/back1.gif"' id="backgroundLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLBodyElement03.xml b/test/testcases/tests/level1/html/HTMLBodyElement03.xml new file mode 100644 index 0000000..3f0d492 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLBodyElement03.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLBodyElement03">
+<metadata>
+<title>HTMLBodyElement03</title>
+<creator>NIST</creator>
+<description>
+ The bgColor attribute specifies the document background color.
+
+ Retrieve the bgColor attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-24940084"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vbgcolor" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="body" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"body"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<bgColor interface="HTMLBodyElement" obj="testNode" var="vbgcolor"/>
+<assertEquals actual="vbgcolor" expected='"#ffff00"' id="bgColorLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLBodyElement04.xml b/test/testcases/tests/level1/html/HTMLBodyElement04.xml new file mode 100644 index 0000000..0bbab8c --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLBodyElement04.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLBodyElement04">
+<metadata>
+<title>HTMLBodyElement04</title>
+<creator>NIST</creator>
+<description>
+ The link attribute specifies the color of links that are not active
+ and unvisited.
+
+ Retrieve the link attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-7662206"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlink" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="body" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"body"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<link interface="HTMLBodyElement" obj="testNode" var="vlink"/>
+<assertEquals actual="vlink" expected='"#ff0000"' id="linkLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLBodyElement05.xml b/test/testcases/tests/level1/html/HTMLBodyElement05.xml new file mode 100644 index 0000000..b9b1596 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLBodyElement05.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLBodyElement05">
+<metadata>
+<title>HTMLBodyElement05</title>
+<creator>NIST</creator>
+<description>
+ The text attribute specifies the document text color.
+
+ Retrieve the text attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-73714763"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtext" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="body" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"body"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<text interface="HTMLBodyElement" obj="testNode" var="vtext"/>
+<assertEquals actual="vtext" expected='"#000000"' id="textLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLBodyElement06.xml b/test/testcases/tests/level1/html/HTMLBodyElement06.xml new file mode 100644 index 0000000..e2adef5 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLBodyElement06.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLBodyElement06">
+<metadata>
+<title>HTMLBodyElement06</title>
+<creator>NIST</creator>
+<description>
+ The vLink attribute specifies the color of links that have been
+ visited by the user.
+
+ Retrieve the vLink attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-83224305"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vvlink" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="body" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"body"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<vLink interface="HTMLBodyElement" obj="testNode" var="vvlink"/>
+<assertEquals actual="vvlink" expected='"#00ffff"' id="vLinkLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLButtonElement01.xml b/test/testcases/tests/level1/html/HTMLButtonElement01.xml new file mode 100644 index 0000000..d212307 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLButtonElement01.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLButtonElement01">
+<metadata>
+<title>HTMLButtonElement01</title>
+<creator>NIST</creator>
+<description>
+ The form attribute returns the FORM element containing this control.
+
+ Retrieve the form attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-71254493"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="fNode" type="HTMLFormElement"/>
+<var name="vform" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="button" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"button"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<form interface="HTMLButtonElement" obj="testNode" var="fNode"/>
+<id obj="fNode" var="vform"/>
+<assertEquals actual="vform" expected='"form2"' id="formLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLButtonElement02.xml b/test/testcases/tests/level1/html/HTMLButtonElement02.xml new file mode 100644 index 0000000..3271a29 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLButtonElement02.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLButtonElement02">
+<metadata>
+<title>HTMLButtonElement02</title>
+<creator>NIST</creator>
+<description>
+ The form attribute returns null if control in not within the context of
+ form.
+
+ Retrieve the form attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-71254493"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vform" type="HTMLFormElement" />
+<var name="doc" type="Document"/>
+<load var="doc" href="button" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"button"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<form interface="HTMLButtonElement" obj="testNode" var="vform"/>
+<assertNull actual="vform" id="formNullLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLButtonElement03.xml b/test/testcases/tests/level1/html/HTMLButtonElement03.xml new file mode 100644 index 0000000..50b9ce8 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLButtonElement03.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLButtonElement03">
+<metadata>
+<title>HTMLButtonElement03</title>
+<creator>NIST</creator>
+<description>
+ The accessKey attribute returns a single character access key to
+ give access to the form control.
+
+ Retrieve the accessKey attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-73169431"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vaccesskey" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="button" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"button"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<accessKey interface="HTMLButtonElement" obj="testNode" var="vaccesskey"/>
+<assertEquals actual="vaccesskey" expected='"f"' id="accessKeyLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLButtonElement04.xml b/test/testcases/tests/level1/html/HTMLButtonElement04.xml new file mode 100644 index 0000000..648c9e5 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLButtonElement04.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLButtonElement04">
+<metadata>
+<title>HTMLButtonElement04</title>
+<creator>NIST</creator>
+<description>
+ The disabled attribute specifies whether the control is unavailable
+ in this context.
+
+ Retrieve the disabled attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-92757155"/>
+</metadata> +<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdisabled" type="boolean" />
+<var name="doc" type="Document"/>
+<load var="doc" href="button" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"button"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<disabled interface="HTMLButtonElement" obj="testNode" var="vdisabled"/>
+<assertTrue actual="vdisabled" id="disabledLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLButtonElement05.xml b/test/testcases/tests/level1/html/HTMLButtonElement05.xml new file mode 100644 index 0000000..53fa764 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLButtonElement05.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLButtonElement05">
+<metadata>
+<title>HTMLButtonElement05</title>
+<creator>NIST</creator>
+<description>
+ The name attribute is the form control or object name when submitted
+ with a form.
+
+ Retrieve the name attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-11029910"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vname" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="button" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"button"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<name interface="HTMLButtonElement" obj="testNode" var="vname"/>
+<assertEquals actual="vname" expected='"disabledButton"' id="nameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLButtonElement06.xml b/test/testcases/tests/level1/html/HTMLButtonElement06.xml new file mode 100644 index 0000000..2243456 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLButtonElement06.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLButtonElement06">
+<metadata>
+<title>HTMLButtonElement06</title>
+<creator>NIST</creator>
+<description>
+ The tabIndex attribute specifies an index that represents the element's
+ position in the tabbing order.
+
+ Retrieve the tabIndex attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-39190908"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtabindex" type="int" />
+<var name="doc" type="Document"/>
+<load var="doc" href="button" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"button"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<tabIndex interface="HTMLButtonElement" obj="testNode" var="vtabindex"/>
+<assertEquals actual="vtabindex" expected="20" id="tabIndexLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLButtonElement07.xml b/test/testcases/tests/level1/html/HTMLButtonElement07.xml new file mode 100644 index 0000000..f4c5461 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLButtonElement07.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLButtonElement07">
+<metadata>
+<title>HTMLButtonElement07</title>
+<creator>NIST</creator>
+<description>
+ The type attribute specifies the type of button.
+
+ Retrieve the type attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-27430092"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtype" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="button" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"button"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<type interface="HTMLButtonElement" obj="testNode" var="vtype"/>
+<assertEquals actual="vtype" expected='"reset"' id="typeLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLButtonElement08.xml b/test/testcases/tests/level1/html/HTMLButtonElement08.xml new file mode 100644 index 0000000..cd3a04d --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLButtonElement08.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLButtonElement08">
+<metadata>
+<title>HTMLButtonElement08</title>
+<creator>NIST</creator>
+<description>
+ The value attribute specifies the current control value.
+
+ Retrieve the value attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-72856782"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vvalue" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="button" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"button"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<value interface="HTMLButtonElement" obj="testNode" var="vvalue"/>
+<assertEquals actual="vvalue" expected='"Reset Disabled Button"' id="valueLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLCollection01.xml b/test/testcases/tests/level1/html/HTMLCollection01.xml new file mode 100644 index 0000000..fd2cfe4 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLCollection01.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLCollection01"> +<metadata> +<title>HTMLCollection01</title> +<creator>NIST</creator> +<description> + An individual node may be accessed by either ordinal index, the node's + name or id attributes. (Test ordinal index). + + Retrieve the first TABLE element and create a HTMLCollection by invoking + the "rows" attribute. The item located at ordinal index 0 is further + retrieved and its "rowIndex" attribute is examined. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-01</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-33262535"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="rowNode" type="Node"/> +<var name="rowsnodeList" type="HTMLCollection"/> +<var name="vrowindex" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="collection" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<rows interface="HTMLTableElement" obj="testNode" var="rowsnodeList"/> +<item interface="HTMLCollection" obj="rowsnodeList" var="rowNode" index="0"/> +<rowIndex interface="HTMLTableRowElement" obj="rowNode" var="vrowindex"/> +<assertEquals actual="vrowindex" expected="0" id="rowIndexLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLCollection02.xml b/test/testcases/tests/level1/html/HTMLCollection02.xml new file mode 100644 index 0000000..521d5ae --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLCollection02.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLCollection02"> +<metadata> +<title>HTMLCollection02</title> +<creator>NIST</creator> +<description> + An individual node may be accessed by either ordinal index, the node's + name or id attributes. (Test node name). + + Retrieve the first FORM element and create a HTMLCollection by invoking + the elements attribute. The first SELECT element is further retrieved + using the elements name attribute. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-01</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-76728479"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="formNode" type="Node"/> +<var name="formsnodeList" type="HTMLCollection"/> +<var name="vname" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="collection" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"form"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<elements interface="HTMLFormElement" obj="testNode" var="formsnodeList"/> +<namedItem obj="formsnodeList" var="formNode" name='"select1"'/> +<nodeName obj="formNode" var="vname"/> +<assertEquals actual="vname" expected='"SELECT"' id="nameIndexLink" ignoreCase="auto"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLCollection03.xml b/test/testcases/tests/level1/html/HTMLCollection03.xml new file mode 100644 index 0000000..36d489e --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLCollection03.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLCollection03"> +<metadata> +<title>HTMLCollection03</title> +<creator>NIST</creator> +<description> + An individual node may be accessed by either ordinal index, the node's + name or id attributes. (Test id attribute). + + Retrieve the first FORM element and create a HTMLCollection by invoking + the "element" attribute. The first SELECT element is further retrieved + using the elements id. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-01</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-21069976"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="formNode" type="Node"/> +<var name="formsnodeList" type="HTMLCollection"/> +<var name="vname" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="collection" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"form"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<elements interface="HTMLFormElement" obj="testNode" var="formsnodeList"/> +<namedItem obj="formsnodeList" var="formNode" name='"selectId"'/> +<nodeName obj="formNode" var="vname"/> +<assertEquals actual="vname" expected='"select"' id="nameIndexLink" ignoreCase="auto"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLCollection04.xml b/test/testcases/tests/level1/html/HTMLCollection04.xml new file mode 100644 index 0000000..5d78405 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLCollection04.xml @@ -0,0 +1,59 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLCollection04"> +<metadata> +<title>HTMLCollection04</title> +<creator>NIST</creator> +<description> + HTMLCollections are live, they are automatically updated when the + underlying document is changed. + + Create a HTMLCollection object by invoking the rows attribute of the + first TABLE element and examine its length, then add a new row and + re-examine the length. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-01</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-40057551"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="rowLength1" type="int"/> +<var name="rowLength2" type="int"/> +<var name="rowsnodeList" type="HTMLCollection"/> +<var name="newRow" type="HTMLElement"/> +<var name="vrowindex" type="int" /> +<var name="doc" type="Document"/> +<var name="result" type="List"/> +<var name="expectedResult" type="List"> +<member>4</member> +<member>5</member> +</var> +<load var="doc" href="collection" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<rows interface="HTMLTableElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="rowLength1"/> +<append collection="result" item="rowLength1"/> +<insertRow interface="HTMLTableElement" obj="testNode" var="newRow" index="4"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="rowLength2"/> +<append collection="result" item="rowLength2"/> +<assertEquals actual="result" expected="expectedResult" id="rowIndexLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLCollection05.xml b/test/testcases/tests/level1/html/HTMLCollection05.xml new file mode 100644 index 0000000..ffb7d13 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLCollection05.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLCollection05"> +<metadata> +<title>HTMLCollection05</title> +<creator>NIST</creator> +<description> + The length attribute specifies the length or size of the list. + + Retrieve the first TABLE element and create a HTMLCollection by invoking + the "rows" attribute. Retrieve the length attribute of the HTMLCollection + object. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-01</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-40057551"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="rowsnodeList" type="HTMLCollection"/> +<var name="rowLength" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="collection" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<rows interface="HTMLTableElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="rowLength"/> +<assertEquals actual="rowLength" expected="4" id="rowIndexLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLCollection06.xml b/test/testcases/tests/level1/html/HTMLCollection06.xml new file mode 100644 index 0000000..1026310 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLCollection06.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLCollection06"> +<metadata> +<title>HTMLCollection06</title> +<creator>NIST</creator> +<description> + An item(index) method retrieves an item specified by ordinal index + (Test for index=0). + + Retrieve the first TABLE element and create a HTMLCollection by invoking + the "rows" attribute. The item located at ordinal index 0 is further + retrieved and its "rowIndex" attribute is examined. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-01</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-6156016"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-33262535"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="rowNode" type="Node"/> +<var name="rowsnodeList" type="HTMLCollection"/> +<var name="vrowindex" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="collection" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<rows interface="HTMLTableElement" obj="testNode" var="rowsnodeList"/> +<item interface="HTMLCollection" obj="rowsnodeList" var="rowNode" index="0"/> +<rowIndex interface="HTMLTableRowElement" obj="rowNode" var="vrowindex"/> +<assertEquals actual="vrowindex" expected="0" id="rowIndexLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLCollection07.xml b/test/testcases/tests/level1/html/HTMLCollection07.xml new file mode 100644 index 0000000..e0a21a2 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLCollection07.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLCollection07"> +<metadata> +<title>HTMLCollection07</title> +<creator>NIST</creator> +<description> + An item(index) method retrieves an item specified by ordinal index + (Test for index=3). + + Retrieve the first TABLE element and create a HTMLCollection by invoking + the "rows" attribute. The item located at ordinal index 3 is further + retrieved and its "rowIndex" attribute is examined. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-01</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-33262535"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="rowNode" type="Node"/> +<var name="rowsnodeList" type="HTMLCollection"/> +<var name="vrowindex" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="collection" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<rows interface="HTMLTableElement" obj="testNode" var="rowsnodeList"/> +<item interface="HTMLCollection" obj="rowsnodeList" var="rowNode" index="3"/> +<rowIndex interface="HTMLTableRowElement" obj="rowNode" var="vrowindex"/> +<assertEquals actual="vrowindex" expected="3" id="rowIndexLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLCollection08.xml b/test/testcases/tests/level1/html/HTMLCollection08.xml new file mode 100644 index 0000000..dfc2e10 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLCollection08.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLCollection08"> +<metadata> +<title>HTMLCollection08</title> +<creator>NIST</creator> +<description> + Nodes in a HTMLCollection object are numbered in tree order. + (Depth-first traversal order). + + Retrieve the first TABLE element and create a HTMLCollection by invoking + the "rows" attribute. Access the item in the third ordinal index. The + resulting rowIndex attribute is examined and should be two. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-01</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-33262535"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="rowNode" type="Node"/> +<var name="rowsnodeList" type="HTMLCollection"/> +<var name="vrowindex" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="collection" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<rows interface="HTMLTableElement" obj="testNode" var="rowsnodeList"/> +<item interface="HTMLCollection" obj="rowsnodeList" var="rowNode" index="2"/> +<rowIndex interface="HTMLTableRowElement" obj="rowNode" var="vrowindex"/> +<assertEquals actual="vrowindex" expected="2" id="rowIndexLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLCollection09.xml b/test/testcases/tests/level1/html/HTMLCollection09.xml new file mode 100644 index 0000000..f81e7af --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLCollection09.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLCollection09"> +<metadata> +<title>HTMLCollection09</title> +<creator>NIST</creator> +<description> + The item(index) method returns null if the index is out of range. + + Retrieve the first TABLE element and create a HTMLCollection by invoking + the "rows" attribute. Invoke the item(index) method with an index + of 5. This index is out of range and should return null. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-01</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-33262535"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="rowNode" type="Node"/> +<var name="rowsnodeList" type="HTMLCollection"/> +<var name="vrowindex" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="collection" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<rows interface="HTMLTableElement" obj="testNode" var="rowsnodeList"/> +<item interface="HTMLCollection" obj="rowsnodeList" var="rowNode" index="5"/> +<assertNull actual="rowNode" id="rowIndexLink"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLCollection10.xml b/test/testcases/tests/level1/html/HTMLCollection10.xml new file mode 100644 index 0000000..78f4c9a --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLCollection10.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLCollection10"> +<metadata> +<title>HTMLCollection10</title> +<creator>NIST</creator> +<description> + The namedItem(name) 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 + on those elements that are allowed a name attribute. + + Retrieve the first FORM element and create a HTMLCollection by invoking + the elements attribute. The first SELECT element is further retrieved + using the elements name attribute since the id attribute doesn't match. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-01</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-21069976"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="formNode" type="Node"/> +<var name="formsnodeList" type="HTMLCollection"/> +<var name="vname" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="collection" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"form"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<elements interface="HTMLFormElement" obj="testNode" var="formsnodeList"/> +<namedItem obj="formsnodeList" var="formNode" name='"select1"'/> +<nodeName obj="formNode" var="vname"/> +<assertEquals actual="vname" expected='"SELECT"' id="nameIndexLink" ignoreCase="auto"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLCollection11.xml b/test/testcases/tests/level1/html/HTMLCollection11.xml new file mode 100644 index 0000000..ebf217f --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLCollection11.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLCollection11"> +<metadata> +<title>HTMLCollection11</title> +<creator>NIST</creator> +<description> + The namedItem(name) 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 + on those elements that are allowed a name attribute. + + Retrieve the first FORM element and create a HTMLCollection by invoking + the elements attribute. The first SELECT element is further retrieved + using the elements id attribute. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-01</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-76728479"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="formNode" type="Node"/> +<var name="formsnodeList" type="HTMLCollection"/> +<var name="vname" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="collection" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"form"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<elements interface="HTMLFormElement" obj="testNode" var="formsnodeList"/> +<namedItem obj="formsnodeList" var="formNode" name='"selectId"'/> +<nodeName obj="formNode" var="vname"/> +<assertEquals actual="vname" expected='"select"' id="nameIndexLink" ignoreCase="auto"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLCollection12.xml b/test/testcases/tests/level1/html/HTMLCollection12.xml new file mode 100644 index 0000000..d7feb3d --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLCollection12.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLCollection12"> +<metadata> +<title>HTMLCollection12</title> +<creator>NIST</creator> +<description> + The namedItem(name) 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 + on those elements that are allowed a name attribute. If there isn't + a matching node the method returns null. + + Retrieve the first FORM element and create a HTMLCollection by invoking + the elements attribute. The method returns null since there is not a + match of the name or id attribute. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-01</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-21069976"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="formNode" type="Node"/> +<var name="formsnodeList" type="HTMLCollection"/> +<var name="doc" type="Document"/> +<load var="doc" href="collection" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"form"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<elements interface="HTMLFormElement" obj="testNode" var="formsnodeList"/> +<namedItem obj="formsnodeList" var="formNode" name='"select9"'/> +<assertNull actual="formNode" id="nameIndexLink" /> +</test> diff --git a/test/testcases/tests/level1/html/HTMLDirectoryElement01.xml b/test/testcases/tests/level1/html/HTMLDirectoryElement01.xml new file mode 100644 index 0000000..4b1b402 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLDirectoryElement01.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLDirectoryElement01">
+<metadata>
+<title>HTMLDirectoryElement01</title>
+<creator>NIST</creator>
+<description>
+ The compact attribute specifies a boolean value on whether to display
+ the list more compactly.
+
+ Retrieve the compact attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-75317739"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vcompact" type="boolean" />
+<var name="doc" type="Document"/>
+<load var="doc" href="directory" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"dir"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<compact interface="HTMLDirectoryElement" obj="testNode" var="vcompact"/>
+<assertTrue actual="vcompact" id="compactLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLDivElement01.xml b/test/testcases/tests/level1/html/HTMLDivElement01.xml new file mode 100644 index 0000000..c658eb2 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLDivElement01.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLDivElement01">
+<metadata>
+<title>HTMLDivElement01</title>
+<creator>NIST</creator>
+<description>
+ The align attribute specifies the horizontal text alignment.
+
+ Retrieve the align attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-70908791"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="valign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="div" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"div"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<align interface="HTMLDivElement" obj="testNode" var="valign"/>
+<assertEquals actual="valign" expected='"center"' id="alignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLDlistElement01.xml b/test/testcases/tests/level1/html/HTMLDlistElement01.xml new file mode 100644 index 0000000..727c189 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLDlistElement01.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLDlistElement01">
+<metadata>
+<title>HTMLDListElement01</title>
+<creator>NIST</creator>
+<description>
+ The compact attribute specifies a boolean value on whether to display
+ the list more compactly.
+
+ Retrieve the compact attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-21738539"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vcompact" type="boolean" />
+<var name="doc" type="Document"/>
+<load var="doc" href="dl" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"dl"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<compact interface="HTMLDListElement" obj="testNode" var="vcompact"/>
+<assertTrue actual="vcompact" id="compactLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLDocument01.xml b/test/testcases/tests/level1/html/HTMLDocument01.xml new file mode 100644 index 0000000..2e528d5 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLDocument01.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLDocument01"> +<metadata> +<title>HTMLDocument01</title> +<creator>NIST</creator> +<description> + The title attribute is the specified title as a string. + + Retrieve the title attribute and examine its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-01-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-18446827"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="vtitle" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="document" willBeModified="false"/> +<title interface="HTMLDocument" obj="doc" var="vtitle"/> +<assertEquals actual="vtitle" expected='"NIST DOM HTML Test - DOCUMENT"' id="titleLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLDocument02.xml b/test/testcases/tests/level1/html/HTMLDocument02.xml new file mode 100644 index 0000000..24bd58f --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLDocument02.xml @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLDocument02"> +<metadata> +<title>HTMLDocument02</title> +<creator>NIST</creator> +<description> + The referrer attribute returns the URI of the page that linked to this + page. + + Retrieve the referrer attribute and examine its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-01-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95229140"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vreferrer" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="document" willBeModified="false"/> +<referrer interface="HTMLDocument" obj="doc" var="vreferrer"/> +<assertEquals actual="vreferrer" expected='""' id="referrerLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLDocument03.xml b/test/testcases/tests/level1/html/HTMLDocument03.xml new file mode 100644 index 0000000..97e291d --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLDocument03.xml @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLDocument03"> +<metadata> +<title>HTMLDocument03</title> +<creator>NIST</creator> +<description> + The domain attribute specifies the domain name of the server that served + the document, or null if the server cannot be identified by a domain name. + + Retrieve the domain attribute and examine its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-01-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-2250147"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vdomain" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="document" willBeModified="false"/> +<domain interface="HTMLDocument" obj="doc" var="vdomain"/> +<assertEquals actual="vdomain" expected='""' id="domainLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLDocument04.xml b/test/testcases/tests/level1/html/HTMLDocument04.xml new file mode 100644 index 0000000..223d426 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLDocument04.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLDocument04"> +<metadata> +<title>HTMLDocument04</title> +<creator>NIST</creator> +<description> + The URL attribute specifies the absolute URI of the document. + + Retrieve the URL attribute and examine its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-01-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-46183437"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vurl" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="document" willBeModified="false"/> +<URL interface="HTMLDocument" obj="doc" var="vurl"/> +<assertURIEquals actual="vurl" name='"document"' id="URLLink" isAbsolute="true"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLDocument05.xml b/test/testcases/tests/level1/html/HTMLDocument05.xml new file mode 100644 index 0000000..a764b35 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLDocument05.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLDocument05"> +<metadata> +<title>HTMLDocument05</title> +<creator>NIST</creator> +<description> + The body attribute is the element that contains the content for the + document. + + Retrieve the body attribute and examine its value for the id attribute. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-01-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-56360201"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vbody" type="HTMLElement" /> +<var name="vid" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="document" willBeModified="false"/> +<body interface="HTMLDocument" obj="doc" var="vbody"/> +<id interface="HTMLElement" obj="vbody" var="vid"/> +<assertEquals actual="vid" expected='"TEST-BODY"' id="idLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLDocument07.xml b/test/testcases/tests/level1/html/HTMLDocument07.xml new file mode 100644 index 0000000..a08972f --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLDocument07.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLDocument07"> +<metadata> +<title>HTMLDocument07</title> +<creator>NIST</creator> +<description> + The images attribute returns a collection of all IMG elements in a document. + + Retrieve the images attribute from the document and examine its value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-04-30</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-90379117"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vimages" type="HTMLCollection" /> +<var name="vlength" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="document" willBeModified="false"/> +<images interface="HTMLDocument" obj="doc" var="vimages" /> +<length interface="HTMLCollection" obj="vimages" var="vlength" /> +<assertEquals actual="vlength" expected='1' id="lengthLink" ignoreCase="false" /> +</test> diff --git a/test/testcases/tests/level1/html/HTMLDocument08.xml b/test/testcases/tests/level1/html/HTMLDocument08.xml new file mode 100644 index 0000000..fcc8147 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLDocument08.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLDocument08"> +<metadata> +<title>HTMLDocument08</title> +<creator>NIST</creator> +<description> + The applets attribute returns a collection of all OBJECT elements that + include applets abd APPLET elements in a document. + + Retrieve the applets attribute from the document and examine its value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-04-30</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-85113862"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vapplets" type="HTMLCollection" /> +<var name="vlength" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="document" willBeModified="false"/> +<applets interface="HTMLDocument" obj="doc" var="vapplets" /> +<length interface="HTMLCollection" obj="vapplets" var="vlength" /> +<assertEquals actual="vlength" expected='4' id="length" ignoreCase="false" /> +</test> diff --git a/test/testcases/tests/level1/html/HTMLDocument09.xml b/test/testcases/tests/level1/html/HTMLDocument09.xml new file mode 100644 index 0000000..037811f --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLDocument09.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLDocument09"> +<metadata> +<title>HTMLDocument09</title> +<creator>NIST</creator> +<description> + The links attribute returns a collection of all AREA and A elements + in a document with a value for the href attribute. + + Retrieve the links attribute from the document and examine its value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-04-30</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-7068919"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vlinks" type="HTMLCollection"/> +<var name="vlength" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="document" willBeModified="false"/> +<links interface="HTMLDocument" obj="doc" var="vlinks" /> +<length interface="HTMLCollection" obj="vlinks" var="vlength" /> +<assertEquals actual="vlength" expected='3' id="lengthLink" ignoreCase="false" /> +</test> diff --git a/test/testcases/tests/level1/html/HTMLDocument10.xml b/test/testcases/tests/level1/html/HTMLDocument10.xml new file mode 100644 index 0000000..700cebd --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLDocument10.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLDocument10"> +<metadata> +<title>HTMLDocument10</title> +<creator>NIST</creator> +<description> + The forms attribute returns a collection of all the forms in a document. + + Retrieve the forms attribute from the document and examine its value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-04-30</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-1689064"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vforms" type="HTMLCollection"/> +<var name="vlength" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="document" willBeModified="false"/> +<forms interface="HTMLDocument" obj="doc" var="vforms" /> +<length interface="HTMLCollection" obj="vforms" var="vlength" /> +<assertEquals actual="vlength" expected='1' id="lengthLink" ignoreCase="false" /> +</test> diff --git a/test/testcases/tests/level1/html/HTMLDocument11.xml b/test/testcases/tests/level1/html/HTMLDocument11.xml new file mode 100644 index 0000000..308131f --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLDocument11.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLDocument11"> +<metadata> +<title>HTMLDocument11</title> +<creator>NIST</creator> +<description> + The anchors attribute returns a collection of all A elements with values + for the name attribute. + + Retrieve the anchors attribute from the document and examine its value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-04-30</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-7577272"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vanchors" type="HTMLCollection"/> +<var name="vlength" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="document" willBeModified="false"/> +<anchors interface="HTMLDocument" obj="doc" var="vanchors" /> +<length interface="HTMLCollection" obj="vanchors" var="vlength" /> +<assertEquals actual="vlength" expected='1' id="lengthLink" ignoreCase="false" /> +</test> diff --git a/test/testcases/tests/level1/html/HTMLDocument12.xml b/test/testcases/tests/level1/html/HTMLDocument12.xml new file mode 100644 index 0000000..964e70c --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLDocument12.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLDocument12"> +<metadata> +<title>HTMLDocument02</title> +<creator>NIST</creator> +<description> + The cookie attribute returns the cookies associated with this document. + + Retrieve the cookie attribute and examine its value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-04-30</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-8747038"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="vcookie" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="document" willBeModified="false"/> +<cookie interface="HTMLDocument" obj="doc" var="vcookie"/> +<assertEquals actual="vcookie" expected='""' id="cookieLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLDocument13.xml b/test/testcases/tests/level1/html/HTMLDocument13.xml new file mode 100644 index 0000000..fc7244b --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLDocument13.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLDocument13"> +<metadata> +<title>HTMLDocument13</title> +<creator>NIST</creator> +<description> + The getElementsByName method returns the (possibly empty) collection + of elements whose name value is given by the elementName. + + Retrieve all the elements whose name attribute is "mapid". + Check the length of the nodelist. It should be 1. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-07-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-71555259"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="doc" type="Document"/> +<load var="doc" href="document" willBeModified="false"/> +<getElementsByName interface="HTMLDocument" var="nodeList" obj="doc" elementName='"mapid"' id="getElementsNameId"/> +<assertSize collection="nodeList" size="1" id="Asize"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLDocument14.xml b/test/testcases/tests/level1/html/HTMLDocument14.xml new file mode 100644 index 0000000..c41fe14 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLDocument14.xml @@ -0,0 +1,40 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLDocument14"> +<metadata> +<title>HTMLDocument14</title> +<creator>NIST</creator> +<description> + The getElementsByName method returns the (possibly empty) collection + of elements whose name value is given by the elementName. + + Retrieve all the elements whose name attribute is "noid". + Check the length of the nodelist. It should be 0 since + the id "noid" does not exist. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-07-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-71555259"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="doc" type="Document"/> +<load var="doc" href="document" willBeModified="false"/> +<getElementsByName interface="HTMLDocument" var="nodeList" obj="doc" elementName='"noid"' id="getElementsNameId"/> +<assertSize collection="nodeList" size="0" id="Asize"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLDocument15.xml b/test/testcases/tests/level1/html/HTMLDocument15.xml new file mode 100644 index 0000000..e01d4ca --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLDocument15.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLDocument15"> +<metadata> +<title>HTMLDocument15</title> +<creator>NIST</creator> +<description> + The getElementById method returns the Element whose id is given by + elementId. If no such element exists, returns null. + + Retrieve the element whose id is "mapid". + Check the value of the element. + +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-07-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-36113835"/> +<subject resource="http://www.w3.org/TR/DOM-Level-2-HTML/html#ID-26809268"/> +<subject resource="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-getElBId"/> +</metadata> +<var name="elementNode" type="Element"/> +<var name="elementValue" type="DOMString"/> +<var name="doc" type="Document"/> +<load var="doc" href="document" willBeModified="false"/> +<getElementById var="elementNode" obj="doc" elementId='"mapid"' id="getElementsId"/> +<nodeName obj="elementNode" var="elementValue"/> +<assertEquals actual="elementValue" expected='"map"' id="elementId" ignoreCase="auto"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLDocument16.xml b/test/testcases/tests/level1/html/HTMLDocument16.xml new file mode 100644 index 0000000..1bb1fa7 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLDocument16.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLDocument16"> +<metadata> +<title>HTMLDocument16</title> +<creator>NIST</creator> +<description> + The getElementById method returns the Element whose id is given by + elementId. If no such element exists, returns null. + + Retrieve the element whose id is "noid". + The value returned should be null since there are not any elements with + an id of "noid". + +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-07-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-36113835"/> +<subject resource="http://www.w3.org/TR/DOM-Level-2-HTML/html#ID-26809268"/> +<subject resource="http://www.w3.org/TR/DOM-Level-2-Core/core#ID-getElBId"/> +</metadata> +<var name="elementNode" type="Element"/> +<var name="elementValue" type="DOMString"/> +<var name="doc" type="Document"/> +<load var="doc" href="document" willBeModified="false"/> +<getElementById var="elementNode" obj="doc" elementId='"noid"' id="getElementsId"/> +<assertNull actual="elementNode" id="elementId"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLDocument17.xml b/test/testcases/tests/level1/html/HTMLDocument17.xml new file mode 100644 index 0000000..6c89504 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLDocument17.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +Copyright (c) 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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLDocument17"> +<metadata> +<title>HTMLDocument17</title> +<creator>Curt Arnold</creator> +<description> +Clears the current document using HTMLDocument.open immediately followed by close. +</description> +<date qualifier="created">2002-03-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-72161170"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-98948567"/> +</metadata> +<var name="doc" type="Document"/> +<var name="bodyElem" type="Element"/> +<var name="bodyChild" type="Node"/> +<load var="doc" href="document" willBeModified="true"/> +<open obj="doc"/> +<close obj="doc"/> +<body var="bodyElem" obj="doc"/> +<if><notNull obj="bodyElem"/> + <firstChild interface="Node" var="bodyChild" obj="bodyElem"/> + <assertNull actual="bodyChild" id="bodyContainsChildren"/> +</if> +</test> diff --git a/test/testcases/tests/level1/html/HTMLDocument18.xml b/test/testcases/tests/level1/html/HTMLDocument18.xml new file mode 100644 index 0000000..7454a15 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLDocument18.xml @@ -0,0 +1,32 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +Copyright (c) 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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLDocument18"> +<metadata> +<title>HTMLDocument18</title> +<creator>Curt Arnold</creator> +<description> +Calls HTMLDocument.close on a document that has not been opened for modification. +</description> +<date qualifier="created">2002-03-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-98948567"/> +</metadata> +<var name="doc" type="Document"/> +<load var="doc" href="document" willBeModified="true"/> +<close obj="doc"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLDocument19.xml b/test/testcases/tests/level1/html/HTMLDocument19.xml new file mode 100644 index 0000000..3fa1a81 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLDocument19.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +Copyright (c) 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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLDocument19"> +<metadata> +<title>HTMLDocument19</title> +<creator>Curt Arnold</creator> +<description> +Replaces the current document with a valid HTML document using HTMLDocument.open, write and close. +</description> +<date qualifier="created">2002-03-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-72161170"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-98948567"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-75233634"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docElem" type="Element"/> +<var name="title" type="DOMString"/> +<load var="doc" href="document" willBeModified="true"/> +<open obj="doc"/> +<if><contentType type="text/html"/> + <write obj="doc" text='"<html>"'/> + <else> + <write obj="doc" text='"<html xmlns='http://www.w3.org/1999/xhtml'>"'/> + </else> +</if> +<write obj="doc" text='"<body>"'/> +<write obj="doc" text='"<title>Replacement</title>"'/> +<write obj="doc" text='"</body>"'/> +<write obj="doc" text='"<p>"'/> +<write obj="doc" text='"Hello, World."'/> +<write obj="doc" text='"</p>"'/> +<write obj="doc" text='"</body>"'/> +<write obj="doc" text='"</html>"'/> +<close obj="doc"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLDocument20.xml b/test/testcases/tests/level1/html/HTMLDocument20.xml new file mode 100644 index 0000000..0b03356 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLDocument20.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +Copyright (c) 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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLDocument20"> +<metadata> +<title>HTMLDocument20</title> +<creator>Curt Arnold</creator> +<description> +Replaces the current document with a valid HTML document using HTMLDocument.open, writeln and close. +</description> +<date qualifier="created">2002-03-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-72161170"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-98948567"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-35318390"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docElem" type="Element"/> +<var name="title" type="DOMString"/> +<load var="doc" href="document" willBeModified="true"/> +<open obj="doc"/> +<if><contentType type="text/html"/> + <writeln obj="doc" text='"<html>"'/> + <else> + <writeln obj="doc" text='"<html xmlns='http://www.w3.org/1999/xhtml'>"'/> + </else> +</if> +<writeln obj="doc" text='"<body>"'/> +<writeln obj="doc" text='"<title>Replacement</title>"'/> +<writeln obj="doc" text='"</body>"'/> +<writeln obj="doc" text='"<p>"'/> +<writeln obj="doc" text='"Hello, World."'/> +<writeln obj="doc" text='"</p>"'/> +<writeln obj="doc" text='"</body>"'/> +<writeln obj="doc" text='"</html>"'/> +<close obj="doc"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLDocument21.xml b/test/testcases/tests/level1/html/HTMLDocument21.xml new file mode 100644 index 0000000..4942f45 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLDocument21.xml @@ -0,0 +1,60 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +Copyright (c) 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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLDocument21"> +<metadata> +<title>HTMLDocument21</title> +<creator>Curt Arnold</creator> +<description> +Replaces the current document checks that writeln adds a new line. +</description> +<date qualifier="created">2002-03-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-72161170"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-98948567"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-75233634"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-35318390"/> +</metadata> +<var name="doc" type="Document"/> +<var name="docElem" type="Element"/> +<var name="preElems" type="NodeList"/> +<var name="preElem" type="Element"/> +<var name="preText" type="Text"/> +<var name="preValue" type="DOMString"/> +<load var="doc" href="document" willBeModified="true"/> +<open obj="doc"/> +<if><contentType type="text/html"/> + <writeln obj="doc" text='"<html>"'/> + <else> + <writeln obj="doc" text='"<html xmlns='http://www.w3.org/1999/xhtml'>"'/> + </else> +</if> +<writeln obj="doc" text='"<body>"'/> +<writeln obj="doc" text='"<title>Replacement</title>"'/> +<writeln obj="doc" text='"</body>"'/> +<write obj="doc" text='"<pre>"'/> +<writeln obj="doc" text='"Hello, World."'/> +<writeln obj="doc" text='"Hello, World."'/> +<writeln obj="doc" text='"</pre>"'/> +<write obj="doc" text='"<pre>"'/> +<write obj="doc" text='"Hello, World."'/> +<write obj="doc" text='"Hello, World."'/> +<writeln obj="doc" text='"</pre>"'/> +<writeln obj="doc" text='"</body>"'/> +<writeln obj="doc" text='"</html>"'/> +<close obj="doc"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLElement01.xml b/test/testcases/tests/level1/html/HTMLElement01.xml new file mode 100644 index 0000000..b139ae6 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement01.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement01">
+<metadata>
+<title>HTMLElement01</title>
+<creator>NIST</creator>
+<description>
+ The id specifies the elements identifier.
+
+ Retrieve the id attribute of the HEAD element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vid" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"head"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id interface="HTMLElement" obj="testNode" var="vid"/>
+<assertEquals actual="vid" expected='"Test-HEAD"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement02.xml b/test/testcases/tests/level1/html/HTMLElement02.xml new file mode 100644 index 0000000..adfd033 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement02.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement02">
+<metadata>
+<title>HTMLElement02</title>
+<creator>NIST</creator>
+<description>
+ The id specifies the elements identifier.
+
+ Retrieve the id attribute of the SUB element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vid" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"sub"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id interface="HTMLElement" obj="testNode" var="vid"/>
+<assertEquals actual="vid" expected='"Test-SUB"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement03.xml b/test/testcases/tests/level1/html/HTMLElement03.xml new file mode 100644 index 0000000..db2929d --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement03.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement03">
+<metadata>
+<title>HTMLElement03</title>
+<creator>NIST</creator>
+<description>
+ The id specifies the elements identifier.
+
+ Retrieve the id attribute of the SUP element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vid" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"sup"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id interface="HTMLElement" obj="testNode" var="vid"/>
+<assertEquals actual="vid" expected='"Test-SUP"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement04.xml b/test/testcases/tests/level1/html/HTMLElement04.xml new file mode 100644 index 0000000..44c4aad --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement04.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement04">
+<metadata>
+<title>HTMLElement04</title>
+<creator>NIST</creator>
+<description>
+ The id specifies the elements identifier.
+
+ Retrieve the id attribute of the SPAN element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vid" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"span"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id interface="HTMLElement" obj="testNode" var="vid"/>
+<assertEquals actual="vid" expected='"Test-SPAN"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement05.xml b/test/testcases/tests/level1/html/HTMLElement05.xml new file mode 100644 index 0000000..a353781 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement05.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement05">
+<metadata>
+<title>HTMLElement05</title>
+<creator>NIST</creator>
+<description>
+ The id specifies the elements identifier.
+
+ Retrieve the id attribute of the BDO element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vid" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"bdo"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id interface="HTMLElement" obj="testNode" var="vid"/>
+<assertEquals actual="vid" expected='"Test-BDO"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement06.xml b/test/testcases/tests/level1/html/HTMLElement06.xml new file mode 100644 index 0000000..212d2aa --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement06.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement06">
+<metadata>
+<title>HTMLElement06</title>
+<creator>NIST</creator>
+<description>
+ The id specifies the elements identifier.
+
+ Retrieve the id attribute of the TT element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vid" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tt"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id interface="HTMLElement" obj="testNode" var="vid"/>
+<assertEquals actual="vid" expected='"Test-TT"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement07.xml b/test/testcases/tests/level1/html/HTMLElement07.xml new file mode 100644 index 0000000..365b84d --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement07.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement07">
+<metadata>
+<title>HTMLElement07</title>
+<creator>NIST</creator>
+<description>
+ The id specifies the elements identifier.
+
+ Retrieve the id attribute of the I element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vid" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"i"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id interface="HTMLElement" obj="testNode" var="vid"/>
+<assertEquals actual="vid" expected='"Test-I"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement08.xml b/test/testcases/tests/level1/html/HTMLElement08.xml new file mode 100644 index 0000000..1db5576 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement08.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement08">
+<metadata>
+<title>HTMLElement08</title>
+<creator>NIST</creator>
+<description>
+ The id specifies the elements identifier.
+
+ Retrieve the id attribute of the B element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vid" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"b"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id interface="HTMLElement" obj="testNode" var="vid"/>
+<assertEquals actual="vid" expected='"Test-B"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement09.xml b/test/testcases/tests/level1/html/HTMLElement09.xml new file mode 100644 index 0000000..17180d9 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement09.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement09">
+<metadata>
+<title>HTMLElement09</title>
+<creator>NIST</creator>
+<description>
+ The id specifies the elements identifier.
+
+ Retrieve the id attribute of the U element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vid" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"u"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id interface="HTMLElement" obj="testNode" var="vid"/>
+<assertEquals actual="vid" expected='"Test-U"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement10.xml b/test/testcases/tests/level1/html/HTMLElement10.xml new file mode 100644 index 0000000..fa18238 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement10.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement10">
+<metadata>
+<title>HTMLElement10</title>
+<creator>NIST</creator>
+<description>
+ The id specifies the elements identifier.
+
+ Retrieve the id attribute of the S element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vid" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"s"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id interface="HTMLElement" obj="testNode" var="vid"/>
+<assertEquals actual="vid" expected='"Test-S"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement100.xml b/test/testcases/tests/level1/html/HTMLElement100.xml new file mode 100644 index 0000000..64cbda7 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement100.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement100">
+<metadata>
+<title>HTMLElement100</title>
+<creator>NIST</creator>
+<description>
+ The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
+
+ Retrieve the dir attribute of the SMALL element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52460740"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdir" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"small"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dir interface="HTMLElement" obj="testNode" var="vdir"/>
+<assertEquals actual="vdir" expected='"ltr"' id="dirLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement101.xml b/test/testcases/tests/level1/html/HTMLElement101.xml new file mode 100644 index 0000000..3d9cef5 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement101.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement101">
+<metadata>
+<title>HTMLElement101</title>
+<creator>NIST</creator>
+<description>
+ The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
+
+ Retrieve the dir attribute of the EM element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52460740"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdir" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"em"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dir interface="HTMLElement" obj="testNode" var="vdir"/>
+<assertEquals actual="vdir" expected='"ltr"' id="dirLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement102.xml b/test/testcases/tests/level1/html/HTMLElement102.xml new file mode 100644 index 0000000..3a5c6f5 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement102.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement102">
+<metadata>
+<title>HTMLElement102</title>
+<creator>NIST</creator>
+<description>
+ The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
+
+ Retrieve the dir attribute of the STRONG element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52460740"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdir" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"strong"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dir interface="HTMLElement" obj="testNode" var="vdir"/>
+<assertEquals actual="vdir" expected='"ltr"' id="dirLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement103.xml b/test/testcases/tests/level1/html/HTMLElement103.xml new file mode 100644 index 0000000..5deb562 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement103.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement103">
+<metadata>
+<title>HTMLElement103</title>
+<creator>NIST</creator>
+<description>
+ The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
+
+ Retrieve the dir attribute of the DFN element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52460740"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdir" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"dfn"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dir interface="HTMLElement" obj="testNode" var="vdir"/>
+<assertEquals actual="vdir" expected='"ltr"' id="dirLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement104.xml b/test/testcases/tests/level1/html/HTMLElement104.xml new file mode 100644 index 0000000..19dbe69 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement104.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement104">
+<metadata>
+<title>HTMLElement104</title>
+<creator>NIST</creator>
+<description>
+ The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
+
+ Retrieve the dir attribute of the CODE element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52460740"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdir" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"code"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dir interface="HTMLElement" obj="testNode" var="vdir"/>
+<assertEquals actual="vdir" expected='"ltr"' id="dirLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement105.xml b/test/testcases/tests/level1/html/HTMLElement105.xml new file mode 100644 index 0000000..352c97c --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement105.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement105">
+<metadata>
+<title>HTMLElement105</title>
+<creator>NIST</creator>
+<description>
+ The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
+
+ Retrieve the dir attribute of the SAMP element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52460740"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdir" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"samp"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dir interface="HTMLElement" obj="testNode" var="vdir"/>
+<assertEquals actual="vdir" expected='"ltr"' id="dirLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement106.xml b/test/testcases/tests/level1/html/HTMLElement106.xml new file mode 100644 index 0000000..3075b6c --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement106.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement106">
+<metadata>
+<title>HTMLElement106</title>
+<creator>NIST</creator>
+<description>
+ The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
+
+ Retrieve the dir attribute of the KBD element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52460740"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdir" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"kbd"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dir interface="HTMLElement" obj="testNode" var="vdir"/>
+<assertEquals actual="vdir" expected='"ltr"' id="dirLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement107.xml b/test/testcases/tests/level1/html/HTMLElement107.xml new file mode 100644 index 0000000..75f90b9 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement107.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement107">
+<metadata>
+<title>HTMLElement107</title>
+<creator>NIST</creator>
+<description>
+ The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
+
+ Retrieve the dir attribute of the VAR element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52460740"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdir" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"var"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dir interface="HTMLElement" obj="testNode" var="vdir"/>
+<assertEquals actual="vdir" expected='"ltr"' id="dirLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement108.xml b/test/testcases/tests/level1/html/HTMLElement108.xml new file mode 100644 index 0000000..080a2c7 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement108.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement108">
+<metadata>
+<title>HTMLElement108</title>
+<creator>NIST</creator>
+<description>
+ The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
+
+ Retrieve the dir attribute of the CITE element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52460740"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdir" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"cite"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dir interface="HTMLElement" obj="testNode" var="vdir"/>
+<assertEquals actual="vdir" expected='"ltr"' id="dirLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement109.xml b/test/testcases/tests/level1/html/HTMLElement109.xml new file mode 100644 index 0000000..16a6b5f --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement109.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement109">
+<metadata>
+<title>HTMLElement109</title>
+<creator>NIST</creator>
+<description>
+ The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
+
+ Retrieve the dir attribute of the ACRONYM element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52460740"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdir" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"acronym"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dir interface="HTMLElement" obj="testNode" var="vdir"/>
+<assertEquals actual="vdir" expected='"ltr"' id="dirLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement11.xml b/test/testcases/tests/level1/html/HTMLElement11.xml new file mode 100644 index 0000000..8dab5be --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement11.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement11">
+<metadata>
+<title>HTMLElement11</title>
+<creator>NIST</creator>
+<description>
+ The id specifies the elements identifier.
+
+ Retrieve the id attribute of the STRIKE element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vid" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"strike"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id interface="HTMLElement" obj="testNode" var="vid"/>
+<assertEquals actual="vid" expected='"Test-STRIKE"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement110.xml b/test/testcases/tests/level1/html/HTMLElement110.xml new file mode 100644 index 0000000..cf6ccf0 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement110.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement110">
+<metadata>
+<title>HTMLElement110</title>
+<creator>NIST</creator>
+<description>
+ The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
+
+ Retrieve the dir attribute of the ABBR element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52460740"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdir" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"abbr"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dir interface="HTMLElement" obj="testNode" var="vdir"/>
+<assertEquals actual="vdir" expected='"ltr"' id="dirLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement111.xml b/test/testcases/tests/level1/html/HTMLElement111.xml new file mode 100644 index 0000000..d5639da --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement111.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement111">
+<metadata>
+<title>HTMLElement111</title>
+<creator>NIST</creator>
+<description>
+ The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
+
+ Retrieve the dir attribute of the DD element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52460740"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdir" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"dd"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dir interface="HTMLElement" obj="testNode" var="vdir"/>
+<assertEquals actual="vdir" expected='"ltr"' id="dirLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement112.xml b/test/testcases/tests/level1/html/HTMLElement112.xml new file mode 100644 index 0000000..215125a --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement112.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement112">
+<metadata>
+<title>HTMLElement112</title>
+<creator>NIST</creator>
+<description>
+ The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
+
+ Retrieve the dir attribute of the DT element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52460740"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdir" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"dt"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dir interface="HTMLElement" obj="testNode" var="vdir"/>
+<assertEquals actual="vdir" expected='"ltr"' id="dirLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement113.xml b/test/testcases/tests/level1/html/HTMLElement113.xml new file mode 100644 index 0000000..a639ca2 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement113.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement113">
+<metadata>
+<title>HTMLElement113</title>
+<creator>NIST</creator>
+<description>
+ The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
+
+ Retrieve the dir attribute of the NOFRAMES element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52460740"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdir" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"noframes"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dir interface="HTMLElement" obj="testNode" var="vdir"/>
+<assertEquals actual="vdir" expected='"ltr"' id="dirLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement114.xml b/test/testcases/tests/level1/html/HTMLElement114.xml new file mode 100644 index 0000000..d231396 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement114.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement114">
+<metadata>
+<title>HTMLElement114</title>
+<creator>NIST</creator>
+<description>
+ The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
+
+ Retrieve the dir attribute of the NOSCRIPT element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52460740"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdir" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"noscript"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dir interface="HTMLElement" obj="testNode" var="vdir"/>
+<assertEquals actual="vdir" expected='"ltr"' id="dirLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement115.xml b/test/testcases/tests/level1/html/HTMLElement115.xml new file mode 100644 index 0000000..1e38b03 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement115.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement115">
+<metadata>
+<title>HTMLElement115</title>
+<creator>NIST</creator>
+<description>
+ The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
+
+ Retrieve the dir attribute of the ADDRESS element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52460740"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdir" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"address"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dir interface="HTMLElement" obj="testNode" var="vdir"/>
+<assertEquals actual="vdir" expected='"ltr"' id="dirLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement116.xml b/test/testcases/tests/level1/html/HTMLElement116.xml new file mode 100644 index 0000000..7338e78 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement116.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement116">
+<metadata>
+<title>HTMLElement116</title>
+<creator>NIST</creator>
+<description>
+ The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
+
+ Retrieve the dir attribute of the CENTER element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52460740"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdir" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"center"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dir interface="HTMLElement" obj="testNode" var="vdir"/>
+<assertEquals actual="vdir" expected='"ltr"' id="dirLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement117.xml b/test/testcases/tests/level1/html/HTMLElement117.xml new file mode 100644 index 0000000..ba720cd --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement117.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement117">
+<metadata>
+<title>HTMLElement117</title>
+<creator>NIST</creator>
+<description>
+ The className attribute specifies the class attribute of the element.
+
+ Retrieve the class attribute of the HEAD element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95362176"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclassname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"head"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<className interface="HTMLElement" obj="testNode" var="vclassname"/>
+<assertEquals actual="vclassname" expected='"HEAD-class"' id="classNameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement118.xml b/test/testcases/tests/level1/html/HTMLElement118.xml new file mode 100644 index 0000000..a175045 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement118.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement118">
+<metadata>
+<title>HTMLElement118</title>
+<creator>NIST</creator>
+<description>
+ The className attribute specifies the class attribute of the element.
+
+ Retrieve the class attribute of the SUB element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95362176"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclassname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"sub"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<className interface="HTMLElement" obj="testNode" var="vclassname"/>
+<assertEquals actual="vclassname" expected='"SUB-class"' id="classNameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement119.xml b/test/testcases/tests/level1/html/HTMLElement119.xml new file mode 100644 index 0000000..09361ae --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement119.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement119">
+<metadata>
+<title>HTMLElement119</title>
+<creator>NIST</creator>
+<description>
+ The className attribute specifies the class attribute of the element.
+
+ Retrieve the class attribute of the SUP element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95362176"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclassname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"sup"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<className interface="HTMLElement" obj="testNode" var="vclassname"/>
+<assertEquals actual="vclassname" expected='"SUP-class"' id="classNameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement12.xml b/test/testcases/tests/level1/html/HTMLElement12.xml new file mode 100644 index 0000000..3b6b9bb --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement12.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement12">
+<metadata>
+<title>HTMLElement12</title>
+<creator>NIST</creator>
+<description>
+ The id specifies the elements identifier.
+
+ Retrieve the id attribute of the BIG element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vid" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"big"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id interface="HTMLElement" obj="testNode" var="vid"/>
+<assertEquals actual="vid" expected='"Test-BIG"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement120.xml b/test/testcases/tests/level1/html/HTMLElement120.xml new file mode 100644 index 0000000..4edc694 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement120.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement120">
+<metadata>
+<title>HTMLElement120</title>
+<creator>NIST</creator>
+<description>
+ The className attribute specifies the class attribute of the element.
+
+ Retrieve the class attribute of the SPAN element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95362176"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclassname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"span"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<className interface="HTMLElement" obj="testNode" var="vclassname"/>
+<assertEquals actual="vclassname" expected='"SPAN-class"' id="classNameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement121.xml b/test/testcases/tests/level1/html/HTMLElement121.xml new file mode 100644 index 0000000..93af01a --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement121.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement121">
+<metadata>
+<title>HTMLElement121</title>
+<creator>NIST</creator>
+<description>
+ The className attribute specifies the class attribute of the element.
+
+ Retrieve the class attribute of the BDO element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95362176"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclassname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"bdo"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<className interface="HTMLElement" obj="testNode" var="vclassname"/>
+<assertEquals actual="vclassname" expected='"BDO-class"' id="classNameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement122.xml b/test/testcases/tests/level1/html/HTMLElement122.xml new file mode 100644 index 0000000..e1e1064 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement122.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement122">
+<metadata>
+<title>HTMLElement122</title>
+<creator>NIST</creator>
+<description>
+ The className attribute specifies the class attribute of the element.
+
+ Retrieve the class attribute of the TT element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95362176"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclassname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tt"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<className interface="HTMLElement" obj="testNode" var="vclassname"/>
+<assertEquals actual="vclassname" expected='"TT-class"' id="classNameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement123.xml b/test/testcases/tests/level1/html/HTMLElement123.xml new file mode 100644 index 0000000..de7ce7a --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement123.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement123">
+<metadata>
+<title>HTMLElement123</title>
+<creator>NIST</creator>
+<description>
+ The className attribute specifies the class attribute of the element.
+
+ Retrieve the class attribute of the I element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95362176"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclassname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"i"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<className interface="HTMLElement" obj="testNode" var="vclassname"/>
+<assertEquals actual="vclassname" expected='"I-class"' id="classNameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement124.xml b/test/testcases/tests/level1/html/HTMLElement124.xml new file mode 100644 index 0000000..1f86541 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement124.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement124">
+<metadata>
+<title>HTMLElement124</title>
+<creator>NIST</creator>
+<description>
+ The className attribute specifies the class attribute of the element.
+
+ Retrieve the class attribute of the B element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95362176"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclassname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"b"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<className interface="HTMLElement" obj="testNode" var="vclassname"/>
+<assertEquals actual="vclassname" expected='"B-class"' id="classNameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement125.xml b/test/testcases/tests/level1/html/HTMLElement125.xml new file mode 100644 index 0000000..4238620 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement125.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement125">
+<metadata>
+<title>HTMLElement125</title>
+<creator>NIST</creator>
+<description>
+ The className attribute specifies the class attribute of the element.
+
+ Retrieve the class attribute of the U element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95362176"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclassname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"u"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<className interface="HTMLElement" obj="testNode" var="vclassname"/>
+<assertEquals actual="vclassname" expected='"U-class"' id="classNameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement126.xml b/test/testcases/tests/level1/html/HTMLElement126.xml new file mode 100644 index 0000000..fdfd4a9 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement126.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement126">
+<metadata>
+<title>HTMLElement126</title>
+<creator>NIST</creator>
+<description>
+ The className attribute specifies the class attribute of the element.
+
+ Retrieve the class attribute of the S element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95362176"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclassname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"s"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<className interface="HTMLElement" obj="testNode" var="vclassname"/>
+<assertEquals actual="vclassname" expected='"S-class"' id="classNameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement127.xml b/test/testcases/tests/level1/html/HTMLElement127.xml new file mode 100644 index 0000000..f7eb5ff --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement127.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement127">
+<metadata>
+<title>HTMLElement127</title>
+<creator>NIST</creator>
+<description>
+ The className attribute specifies the class attribute of the element.
+
+ Retrieve the class attribute of the STRIKE element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95362176"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclassname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"strike"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<className interface="HTMLElement" obj="testNode" var="vclassname"/>
+<assertEquals actual="vclassname" expected='"STRIKE-class"' id="classNameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement128.xml b/test/testcases/tests/level1/html/HTMLElement128.xml new file mode 100644 index 0000000..3656298 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement128.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement128">
+<metadata>
+<title>HTMLElement128</title>
+<creator>NIST</creator>
+<description>
+ The className attribute specifies the class attribute of the element.
+
+ Retrieve the class attribute of the BIG element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95362176"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclassname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"big"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<className interface="HTMLElement" obj="testNode" var="vclassname"/>
+<assertEquals actual="vclassname" expected='"BIG-class"' id="classNameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement129.xml b/test/testcases/tests/level1/html/HTMLElement129.xml new file mode 100644 index 0000000..80ca878 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement129.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement129">
+<metadata>
+<title>HTMLElement129</title>
+<creator>NIST</creator>
+<description>
+ The className attribute specifies the class attribute of the element.
+
+ Retrieve the class attribute of the SMALL element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95362176"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclassname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"small"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<className interface="HTMLElement" obj="testNode" var="vclassname"/>
+<assertEquals actual="vclassname" expected='"SMALL-class"' id="classNameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement13.xml b/test/testcases/tests/level1/html/HTMLElement13.xml new file mode 100644 index 0000000..0f861c6 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement13.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement13">
+<metadata>
+<title>HTMLElement13</title>
+<creator>NIST</creator>
+<description>
+ The id specifies the elements identifier.
+
+ Retrieve the id attribute of the SMALL element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vid" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"small"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id interface="HTMLElement" obj="testNode" var="vid"/>
+<assertEquals actual="vid" expected='"Test-SMALL"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement130.xml b/test/testcases/tests/level1/html/HTMLElement130.xml new file mode 100644 index 0000000..9636f0e --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement130.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement130">
+<metadata>
+<title>HTMLElement130</title>
+<creator>NIST</creator>
+<description>
+ The className attribute specifies the class attribute of the element.
+
+ Retrieve the class attribute of the EM element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95362176"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclassname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"em"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<className interface="HTMLElement" obj="testNode" var="vclassname"/>
+<assertEquals actual="vclassname" expected='"EM-class"' id="classNameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement131.xml b/test/testcases/tests/level1/html/HTMLElement131.xml new file mode 100644 index 0000000..d0a35ee --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement131.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement131">
+<metadata>
+<title>HTMLElement131</title>
+<creator>NIST</creator>
+<description>
+ The className attribute specifies the class attribute of the element.
+
+ Retrieve the class attribute of the STRONG element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95362176"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclassname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"strong"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<className interface="HTMLElement" obj="testNode" var="vclassname"/>
+<assertEquals actual="vclassname" expected='"STRONG-class"' id="classNameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement132.xml b/test/testcases/tests/level1/html/HTMLElement132.xml new file mode 100644 index 0000000..50e124e --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement132.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement132">
+<metadata>
+<title>HTMLElement132</title>
+<creator>NIST</creator>
+<description>
+ The className attribute specifies the class attribute of the element.
+
+ Retrieve the class attribute of the DFN element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95362176"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclassname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"dfn"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<className interface="HTMLElement" obj="testNode" var="vclassname"/>
+<assertEquals actual="vclassname" expected='"DFN-class"' id="classNameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement133.xml b/test/testcases/tests/level1/html/HTMLElement133.xml new file mode 100644 index 0000000..096cbfa --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement133.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement133">
+<metadata>
+<title>HTMLElement133</title>
+<creator>NIST</creator>
+<description>
+ The className attribute specifies the class attribute of the element.
+
+ Retrieve the class attribute of the CODE element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95362176"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclassname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"code"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<className interface="HTMLElement" obj="testNode" var="vclassname"/>
+<assertEquals actual="vclassname" expected='"CODE-class"' id="classNameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement134.xml b/test/testcases/tests/level1/html/HTMLElement134.xml new file mode 100644 index 0000000..dd9645e --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement134.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement134">
+<metadata>
+<title>HTMLElement134</title>
+<creator>NIST</creator>
+<description>
+ The className attribute specifies the class attribute of the element.
+
+ Retrieve the class attribute of the SAMP element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95362176"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclassname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"samp"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<className interface="HTMLElement" obj="testNode" var="vclassname"/>
+<assertEquals actual="vclassname" expected='"SAMP-class"' id="classNameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement135.xml b/test/testcases/tests/level1/html/HTMLElement135.xml new file mode 100644 index 0000000..5b52ce5 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement135.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement135">
+<metadata>
+<title>HTMLElement135</title>
+<creator>NIST</creator>
+<description>
+ The className attribute specifies the class attribute of the element.
+
+ Retrieve the class attribute of the KBD element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95362176"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclassname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"kbd"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<className interface="HTMLElement" obj="testNode" var="vclassname"/>
+<assertEquals actual="vclassname" expected='"KBD-class"' id="classNameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement136.xml b/test/testcases/tests/level1/html/HTMLElement136.xml new file mode 100644 index 0000000..459f9a5 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement136.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement136">
+<metadata>
+<title>HTMLElement136</title>
+<creator>NIST</creator>
+<description>
+ The className attribute specifies the class attribute of the element.
+
+ Retrieve the class attribute of the VAR element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95362176"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclassname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"var"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<className interface="HTMLElement" obj="testNode" var="vclassname"/>
+<assertEquals actual="vclassname" expected='"VAR-class"' id="classNameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement137.xml b/test/testcases/tests/level1/html/HTMLElement137.xml new file mode 100644 index 0000000..bd9d69b --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement137.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement137">
+<metadata>
+<title>HTMLElement137</title>
+<creator>NIST</creator>
+<description>
+ The className attribute specifies the class attribute of the element.
+
+ Retrieve the class attribute of the CITE element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95362176"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclassname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"cite"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<className interface="HTMLElement" obj="testNode" var="vclassname"/>
+<assertEquals actual="vclassname" expected='"CITE-class"' id="classNameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement138.xml b/test/testcases/tests/level1/html/HTMLElement138.xml new file mode 100644 index 0000000..25e4ced --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement138.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement138">
+<metadata>
+<title>HTMLElement138</title>
+<creator>NIST</creator>
+<description>
+ The className attribute specifies the class attribute of the element.
+
+ Retrieve the class attribute of the ACRONYM element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95362176"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclassname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"acronym"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<className interface="HTMLElement" obj="testNode" var="vclassname"/>
+<assertEquals actual="vclassname" expected='"ACRONYM-class"' id="classNameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement139.xml b/test/testcases/tests/level1/html/HTMLElement139.xml new file mode 100644 index 0000000..82b2771 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement139.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement139">
+<metadata>
+<title>HTMLElement139</title>
+<creator>NIST</creator>
+<description>
+ The className attribute specifies the class attribute of the element.
+
+ Retrieve the class attribute of the ABBR element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95362176"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclassname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"abbr"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<className interface="HTMLElement" obj="testNode" var="vclassname"/>
+<assertEquals actual="vclassname" expected='"ABBR-class"' id="classNameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement14.xml b/test/testcases/tests/level1/html/HTMLElement14.xml new file mode 100644 index 0000000..a14e362 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement14.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement14">
+<metadata>
+<title>HTMLElement14</title>
+<creator>NIST</creator>
+<description>
+ The id specifies the elements identifier.
+
+ Retrieve the id attribute of the EM element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vid" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"em"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id interface="HTMLElement" obj="testNode" var="vid"/>
+<assertEquals actual="vid" expected='"Test-EM"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement140.xml b/test/testcases/tests/level1/html/HTMLElement140.xml new file mode 100644 index 0000000..e982a80 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement140.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement140">
+<metadata>
+<title>HTMLElement140</title>
+<creator>NIST</creator>
+<description>
+ The className attribute specifies the class attribute of the element.
+
+ Retrieve the class attribute of the DD element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95362176"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclassname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"dd"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<className interface="HTMLElement" obj="testNode" var="vclassname"/>
+<assertEquals actual="vclassname" expected='"DD-class"' id="classNameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement141.xml b/test/testcases/tests/level1/html/HTMLElement141.xml new file mode 100644 index 0000000..5c22702 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement141.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement141">
+<metadata>
+<title>HTMLElement141</title>
+<creator>NIST</creator>
+<description>
+ The className attribute specifies the class attribute of the element.
+
+ Retrieve the class attribute of the DT element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95362176"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclassname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"dt"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<className interface="HTMLElement" obj="testNode" var="vclassname"/>
+<assertEquals actual="vclassname" expected='"DT-class"' id="classNameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement142.xml b/test/testcases/tests/level1/html/HTMLElement142.xml new file mode 100644 index 0000000..4f78aff --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement142.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement142">
+<metadata>
+<title>HTMLElement142</title>
+<creator>NIST</creator>
+<description>
+ The className attribute specifies the class attribute of the element.
+
+ Retrieve the class attribute of the NOFRAMES element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95362176"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclassname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"noframes"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<className interface="HTMLElement" obj="testNode" var="vclassname"/>
+<assertEquals actual="vclassname" expected='"NOFRAMES-class"' id="classNameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement143.xml b/test/testcases/tests/level1/html/HTMLElement143.xml new file mode 100644 index 0000000..84700a2 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement143.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement143">
+<metadata>
+<title>HTMLElement143</title>
+<creator>NIST</creator>
+<description>
+ The className attribute specifies the class attribute of the element.
+
+ Retrieve the class attribute of the NOSCRIPT element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95362176"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclassname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"noscript"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<className interface="HTMLElement" obj="testNode" var="vclassname"/>
+<assertEquals actual="vclassname" expected='"NOSCRIPT-class"' id="classNameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement144.xml b/test/testcases/tests/level1/html/HTMLElement144.xml new file mode 100644 index 0000000..e4bdee4 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement144.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement144">
+<metadata>
+<title>HTMLElement144</title>
+<creator>NIST</creator>
+<description>
+ The className attribute specifies the class attribute of the element.
+
+ Retrieve the class attribute of the ADDRESS element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95362176"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclassname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"address"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<className interface="HTMLElement" obj="testNode" var="vclassname"/>
+<assertEquals actual="vclassname" expected='"ADDRESS-class"' id="classNameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement145.xml b/test/testcases/tests/level1/html/HTMLElement145.xml new file mode 100644 index 0000000..3241888 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement145.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement145">
+<metadata>
+<title>HTMLElement145</title>
+<creator>NIST</creator>
+<description>
+ The className attribute specifies the class attribute of the element.
+
+ Retrieve the class attribute of the CENTER element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95362176"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vclassname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"center"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<className interface="HTMLElement" obj="testNode" var="vclassname"/>
+<assertEquals actual="vclassname" expected='"CENTER-class"' id="classNameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement15.xml b/test/testcases/tests/level1/html/HTMLElement15.xml new file mode 100644 index 0000000..bd42dbd --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement15.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement15">
+<metadata>
+<title>HTMLElement15</title>
+<creator>NIST</creator>
+<description>
+ The id specifies the elements identifier.
+
+ Retrieve the id attribute of the STRONG element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vid" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"strong"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id interface="HTMLElement" obj="testNode" var="vid"/>
+<assertEquals actual="vid" expected='"Test-STRONG"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement16.xml b/test/testcases/tests/level1/html/HTMLElement16.xml new file mode 100644 index 0000000..56da77c --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement16.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement16">
+<metadata>
+<title>HTMLElement16</title>
+<creator>NIST</creator>
+<description>
+ The id specifies the elements identifier.
+
+ Retrieve the id attribute of the DFN element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vid" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"dfn"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id interface="HTMLElement" obj="testNode" var="vid"/>
+<assertEquals actual="vid" expected='"Test-DFN"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement17.xml b/test/testcases/tests/level1/html/HTMLElement17.xml new file mode 100644 index 0000000..b17916c --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement17.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement17">
+<metadata>
+<title>HTMLElement17</title>
+<creator>NIST</creator>
+<description>
+ The id specifies the elements identifier.
+
+ Retrieve the id attribute of the CODE element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vid" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"code"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id interface="HTMLElement" obj="testNode" var="vid"/>
+<assertEquals actual="vid" expected='"Test-CODE"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement18.xml b/test/testcases/tests/level1/html/HTMLElement18.xml new file mode 100644 index 0000000..6716cf4 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement18.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement18">
+<metadata>
+<title>HTMLElement18</title>
+<creator>NIST</creator>
+<description>
+ The id specifies the elements identifier.
+
+ Retrieve the id attribute of the SAMP element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vid" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"samp"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id interface="HTMLElement" obj="testNode" var="vid"/>
+<assertEquals actual="vid" expected='"Test-SAMP"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement19.xml b/test/testcases/tests/level1/html/HTMLElement19.xml new file mode 100644 index 0000000..57a6f7a --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement19.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement19">
+<metadata>
+<title>HTMLElement19</title>
+<creator>NIST</creator>
+<description>
+ The id specifies the elements identifier.
+
+ Retrieve the id attribute of the KBD element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vid" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"kbd"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id interface="HTMLElement" obj="testNode" var="vid"/>
+<assertEquals actual="vid" expected='"Test-KBD"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement20.xml b/test/testcases/tests/level1/html/HTMLElement20.xml new file mode 100644 index 0000000..340837a --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement20.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement20">
+<metadata>
+<title>HTMLElement20</title>
+<creator>NIST</creator>
+<description>
+ The id specifies the elements identifier.
+
+ Retrieve the id attribute of the VAR element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vid" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"var"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id interface="HTMLElement" obj="testNode" var="vid"/>
+<assertEquals actual="vid" expected='"Test-VAR"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement21.xml b/test/testcases/tests/level1/html/HTMLElement21.xml new file mode 100644 index 0000000..f075ca1 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement21.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement21">
+<metadata>
+<title>HTMLElement21</title>
+<creator>NIST</creator>
+<description>
+ The id specifies the elements identifier.
+
+ Retrieve the id attribute of the CITE element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vid" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"cite"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id interface="HTMLElement" obj="testNode" var="vid"/>
+<assertEquals actual="vid" expected='"Test-CITE"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement22.xml b/test/testcases/tests/level1/html/HTMLElement22.xml new file mode 100644 index 0000000..49a1969 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement22.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement22">
+<metadata>
+<title>HTMLElement22</title>
+<creator>NIST</creator>
+<description>
+ The id specifies the elements identifier.
+
+ Retrieve the id attribute of the ACRONYM element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vid" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"acronym"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id interface="HTMLElement" obj="testNode" var="vid"/>
+<assertEquals actual="vid" expected='"Test-ACRONYM"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement23.xml b/test/testcases/tests/level1/html/HTMLElement23.xml new file mode 100644 index 0000000..cf50bae --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement23.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement23">
+<metadata>
+<title>HTMLElement23</title>
+<creator>NIST</creator>
+<description>
+ The id specifies the elements identifier.
+
+ Retrieve the id attribute of the ABBR element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vid" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"abbr"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id interface="HTMLElement" obj="testNode" var="vid"/>
+<assertEquals actual="vid" expected='"Test-ABBR"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement24.xml b/test/testcases/tests/level1/html/HTMLElement24.xml new file mode 100644 index 0000000..e455f9b --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement24.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement24">
+<metadata>
+<title>HTMLElement24</title>
+<creator>NIST</creator>
+<description>
+ The id specifies the elements identifier.
+
+ Retrieve the id attribute of the DD element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vid" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"dd"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id interface="HTMLElement" obj="testNode" var="vid"/>
+<assertEquals actual="vid" expected='"Test-DD"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement25.xml b/test/testcases/tests/level1/html/HTMLElement25.xml new file mode 100644 index 0000000..3875a2c --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement25.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement25">
+<metadata>
+<title>HTMLElement25</title>
+<creator>NIST</creator>
+<description>
+ The id specifies the elements identifier.
+
+ Retrieve the id attribute of the DT element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vid" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"dt"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id interface="HTMLElement" obj="testNode" var="vid"/>
+<assertEquals actual="vid" expected='"Test-DT"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement26.xml b/test/testcases/tests/level1/html/HTMLElement26.xml new file mode 100644 index 0000000..565c76d --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement26.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement26">
+<metadata>
+<title>HTMLElement26</title>
+<creator>NIST</creator>
+<description>
+ The id specifies the elements identifier.
+
+ Retrieve the id attribute of the NOFRAMES element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vid" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"noframes"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id interface="HTMLElement" obj="testNode" var="vid"/>
+<assertEquals actual="vid" expected='"Test-NOFRAMES"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement27.xml b/test/testcases/tests/level1/html/HTMLElement27.xml new file mode 100644 index 0000000..2b1977c --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement27.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement27">
+<metadata>
+<title>HTMLElement27</title>
+<creator>NIST</creator>
+<description>
+ The id specifies the elements identifier.
+
+ Retrieve the id attribute of the NOSCRIPT element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vid" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"noscript"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id interface="HTMLElement" obj="testNode" var="vid"/>
+<assertEquals actual="vid" expected='"Test-NOSCRIPT"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement28.xml b/test/testcases/tests/level1/html/HTMLElement28.xml new file mode 100644 index 0000000..69d62c0 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement28.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement28">
+<metadata>
+<title>HTMLElement28</title>
+<creator>NIST</creator>
+<description>
+ The id specifies the elements identifier.
+
+ Retrieve the id attribute of the ADDRESS element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vid" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"address"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id interface="HTMLElement" obj="testNode" var="vid"/>
+<assertEquals actual="vid" expected='"Test-ADDRESS"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement29.xml b/test/testcases/tests/level1/html/HTMLElement29.xml new file mode 100644 index 0000000..540e753 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement29.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement29">
+<metadata>
+<title>HTMLElement29</title>
+<creator>NIST</creator>
+<description>
+ The id specifies the elements identifier.
+
+ Retrieve the id attribute of the CENTER element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vid" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"center"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id interface="HTMLElement" obj="testNode" var="vid"/>
+<assertEquals actual="vid" expected='"Test-CENTER"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement30.xml b/test/testcases/tests/level1/html/HTMLElement30.xml new file mode 100644 index 0000000..735edfc --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement30.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement30">
+<metadata>
+<title>HTMLElement30</title>
+<creator>NIST</creator>
+<description>
+ The title attribute specifies the elements advisory title.
+
+ Retrieve the title attribute of the HEAD element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78276800"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtitle" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"head"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<title interface="HTMLElement" obj="testNode" var="vtitle"/>
+<assertEquals actual="vtitle" expected='"HEAD Element"' id="titleLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement31.xml b/test/testcases/tests/level1/html/HTMLElement31.xml new file mode 100644 index 0000000..b8aa090 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement31.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement31">
+<metadata>
+<title>HTMLElement31</title>
+<creator>NIST</creator>
+<description>
+ The title attribute specifies the elements advisory title.
+
+ Retrieve the title attribute of the SUB element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78276800"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtitle" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"sub"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<title interface="HTMLElement" obj="testNode" var="vtitle"/>
+<assertEquals actual="vtitle" expected='"SUB Element"' id="titleLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement32.xml b/test/testcases/tests/level1/html/HTMLElement32.xml new file mode 100644 index 0000000..3222e4f --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement32.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement32">
+<metadata>
+<title>HTMLElement32</title>
+<creator>NIST</creator>
+<description>
+ The title attribute specifies the elements advisory title.
+
+ Retrieve the title attribute of the SUP element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78276800"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtitle" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"sup"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<title interface="HTMLElement" obj="testNode" var="vtitle"/>
+<assertEquals actual="vtitle" expected='"SUP Element"' id="titleLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement33.xml b/test/testcases/tests/level1/html/HTMLElement33.xml new file mode 100644 index 0000000..4bd034b --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement33.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement33">
+<metadata>
+<title>HTMLElement33</title>
+<creator>NIST</creator>
+<description>
+ The title attribute specifies the elements advisory title.
+
+ Retrieve the title attribute of the SPAN element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78276800"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtitle" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"span"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<title interface="HTMLElement" obj="testNode" var="vtitle"/>
+<assertEquals actual="vtitle" expected='"SPAN Element"' id="titleLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement34.xml b/test/testcases/tests/level1/html/HTMLElement34.xml new file mode 100644 index 0000000..81b4ee5 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement34.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement34">
+<metadata>
+<title>HTMLElement34</title>
+<creator>NIST</creator>
+<description>
+ The title attribute specifies the elements advisory title.
+
+ Retrieve the title attribute of the BDO element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78276800"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtitle" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"bdo"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<title interface="HTMLElement" obj="testNode" var="vtitle"/>
+<assertEquals actual="vtitle" expected='"BDO Element"' id="titleLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement35.xml b/test/testcases/tests/level1/html/HTMLElement35.xml new file mode 100644 index 0000000..d3fa86d --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement35.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement35">
+<metadata>
+<title>HTMLElement35</title>
+<creator>NIST</creator>
+<description>
+ The title attribute specifies the elements advisory title.
+
+ Retrieve the title attribute of the TT element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78276800"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtitle" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tt"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<title interface="HTMLElement" obj="testNode" var="vtitle"/>
+<assertEquals actual="vtitle" expected='"TT Element"' id="titleLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement36.xml b/test/testcases/tests/level1/html/HTMLElement36.xml new file mode 100644 index 0000000..8c5929c --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement36.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement36">
+<metadata>
+<title>HTMLElement36</title>
+<creator>NIST</creator>
+<description>
+ The title attribute specifies the elements advisory title.
+
+ Retrieve the title attribute of the I element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78276800"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtitle" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"i"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<title interface="HTMLElement" obj="testNode" var="vtitle"/>
+<assertEquals actual="vtitle" expected='"I Element"' id="titleLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement37.xml b/test/testcases/tests/level1/html/HTMLElement37.xml new file mode 100644 index 0000000..72cb816 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement37.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement37">
+<metadata>
+<title>HTMLElement37</title>
+<creator>NIST</creator>
+<description>
+ The title attribute specifies the elements advisory title.
+
+ Retrieve the title attribute of the B element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78276800"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtitle" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"b"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<title interface="HTMLElement" obj="testNode" var="vtitle"/>
+<assertEquals actual="vtitle" expected='"B Element"' id="titleLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement38.xml b/test/testcases/tests/level1/html/HTMLElement38.xml new file mode 100644 index 0000000..4f63799 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement38.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement38">
+<metadata>
+<title>HTMLElement38</title>
+<creator>NIST</creator>
+<description>
+ The title attribute specifies the elements advisory title.
+
+ Retrieve the title attribute of the U element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78276800"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtitle" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"u"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<title interface="HTMLElement" obj="testNode" var="vtitle"/>
+<assertEquals actual="vtitle" expected='"U Element"' id="titleLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement39.xml b/test/testcases/tests/level1/html/HTMLElement39.xml new file mode 100644 index 0000000..d7a7e9c --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement39.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement39">
+<metadata>
+<title>HTMLElement39</title>
+<creator>NIST</creator>
+<description>
+ The title attribute specifies the elements advisory title.
+
+ Retrieve the title attribute of the S element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78276800"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtitle" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"s"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<title interface="HTMLElement" obj="testNode" var="vtitle"/>
+<assertEquals actual="vtitle" expected='"S Element"' id="titleLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement40.xml b/test/testcases/tests/level1/html/HTMLElement40.xml new file mode 100644 index 0000000..8da28d4 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement40.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement40">
+<metadata>
+<title>HTMLElement40</title>
+<creator>NIST</creator>
+<description>
+ The title attribute specifies the elements advisory title.
+
+ Retrieve the title attribute of the STRIKE element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78276800"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtitle" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"strike"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<title interface="HTMLElement" obj="testNode" var="vtitle"/>
+<assertEquals actual="vtitle" expected='"STRIKE Element"' id="titleLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement41.xml b/test/testcases/tests/level1/html/HTMLElement41.xml new file mode 100644 index 0000000..3deaa21 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement41.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement41">
+<metadata>
+<title>HTMLElement41</title>
+<creator>NIST</creator>
+<description>
+ The title attribute specifies the elements advisory title.
+
+ Retrieve the title attribute of the BIG element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78276800"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtitle" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"big"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<title interface="HTMLElement" obj="testNode" var="vtitle"/>
+<assertEquals actual="vtitle" expected='"BIG Element"' id="titleLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement42.xml b/test/testcases/tests/level1/html/HTMLElement42.xml new file mode 100644 index 0000000..6c03d0c --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement42.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement42">
+<metadata>
+<title>HTMLElement42</title>
+<creator>NIST</creator>
+<description>
+ The title attribute specifies the elements advisory title.
+
+ Retrieve the title attribute of the SMALL element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78276800"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtitle" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"small"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<title interface="HTMLElement" obj="testNode" var="vtitle"/>
+<assertEquals actual="vtitle" expected='"SMALL Element"' id="titleLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement43.xml b/test/testcases/tests/level1/html/HTMLElement43.xml new file mode 100644 index 0000000..21090c9 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement43.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement43">
+<metadata>
+<title>HTMLElement43</title>
+<creator>NIST</creator>
+<description>
+ The title attribute specifies the elements advisory title.
+
+ Retrieve the title attribute of the EM element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78276800"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtitle" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"em"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<title interface="HTMLElement" obj="testNode" var="vtitle"/>
+<assertEquals actual="vtitle" expected='"EM Element"' id="titleLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement44.xml b/test/testcases/tests/level1/html/HTMLElement44.xml new file mode 100644 index 0000000..ee7bcb5 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement44.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement44">
+<metadata>
+<title>HTMLElement44</title>
+<creator>NIST</creator>
+<description>
+ The title attribute specifies the elements advisory title.
+
+ Retrieve the title attribute of the STRONG element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78276800"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtitle" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"strong"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<title interface="HTMLElement" obj="testNode" var="vtitle"/>
+<assertEquals actual="vtitle" expected='"STRONG Element"' id="titleLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement45.xml b/test/testcases/tests/level1/html/HTMLElement45.xml new file mode 100644 index 0000000..1dd4ac4 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement45.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement45">
+<metadata>
+<title>HTMLElement45</title>
+<creator>NIST</creator>
+<description>
+ The title attribute specifies the elements advisory title.
+
+ Retrieve the title attribute of the DFN element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78276800"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtitle" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"dfn"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<title interface="HTMLElement" obj="testNode" var="vtitle"/>
+<assertEquals actual="vtitle" expected='"DFN Element"' id="titleLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement46.xml b/test/testcases/tests/level1/html/HTMLElement46.xml new file mode 100644 index 0000000..0de73a7 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement46.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement46">
+<metadata>
+<title>HTMLElement46</title>
+<creator>NIST</creator>
+<description>
+ The title attribute specifies the elements advisory title.
+
+ Retrieve the title attribute of the CODE element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78276800"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtitle" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"code"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<title interface="HTMLElement" obj="testNode" var="vtitle"/>
+<assertEquals actual="vtitle" expected='"CODE Element"' id="titleLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement47.xml b/test/testcases/tests/level1/html/HTMLElement47.xml new file mode 100644 index 0000000..06bca2d --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement47.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement47">
+<metadata>
+<title>HTMLElement47</title>
+<creator>NIST</creator>
+<description>
+ The title attribute specifies the elements advisory title.
+
+ Retrieve the title attribute of the SAMP element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78276800"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtitle" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"samp"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<title interface="HTMLElement" obj="testNode" var="vtitle"/>
+<assertEquals actual="vtitle" expected='"SAMP Element"' id="titleLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement48.xml b/test/testcases/tests/level1/html/HTMLElement48.xml new file mode 100644 index 0000000..e0663ac --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement48.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement48">
+<metadata>
+<title>HTMLElement48</title>
+<creator>NIST</creator>
+<description>
+ The title attribute specifies the elements advisory title.
+
+ Retrieve the title attribute of the KBD element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78276800"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtitle" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"kbd"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<title interface="HTMLElement" obj="testNode" var="vtitle"/>
+<assertEquals actual="vtitle" expected='"KBD Element"' id="titleLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement49.xml b/test/testcases/tests/level1/html/HTMLElement49.xml new file mode 100644 index 0000000..d2541cc --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement49.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement49">
+<metadata>
+<title>HTMLElement49</title>
+<creator>NIST</creator>
+<description>
+ The title attribute specifies the elements advisory title.
+
+ Retrieve the title attribute of the VAR element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78276800"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtitle" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"var"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<title interface="HTMLElement" obj="testNode" var="vtitle"/>
+<assertEquals actual="vtitle" expected='"VAR Element"' id="titleLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement50.xml b/test/testcases/tests/level1/html/HTMLElement50.xml new file mode 100644 index 0000000..e01f5ff --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement50.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement50">
+<metadata>
+<title>HTMLElement50</title>
+<creator>NIST</creator>
+<description>
+ The title attribute specifies the elements advisory title.
+
+ Retrieve the title attribute of the CITE element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78276800"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtitle" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"cite"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<title interface="HTMLElement" obj="testNode" var="vtitle"/>
+<assertEquals actual="vtitle" expected='"CITE Element"' id="titleLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement51.xml b/test/testcases/tests/level1/html/HTMLElement51.xml new file mode 100644 index 0000000..2a48a44 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement51.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement51">
+<metadata>
+<title>HTMLElement51</title>
+<creator>NIST</creator>
+<description>
+ The title attribute specifies the elements advisory title.
+
+ Retrieve the title attribute of the ACRONYM element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78276800"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtitle" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"acronym"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<title interface="HTMLElement" obj="testNode" var="vtitle"/>
+<assertEquals actual="vtitle" expected='"ACRONYM Element"' id="titleLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement52.xml b/test/testcases/tests/level1/html/HTMLElement52.xml new file mode 100644 index 0000000..dcbe2fe --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement52.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement52">
+<metadata>
+<title>HTMLElement52</title>
+<creator>NIST</creator>
+<description>
+ The title attribute specifies the elements advisory title.
+
+ Retrieve the title attribute of the ABBR element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78276800"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtitle" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"abbr"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<title interface="HTMLElement" obj="testNode" var="vtitle"/>
+<assertEquals actual="vtitle" expected='"ABBR Element"' id="titleLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement53.xml b/test/testcases/tests/level1/html/HTMLElement53.xml new file mode 100644 index 0000000..2706897 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement53.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement53">
+<metadata>
+<title>HTMLElement53</title>
+<creator>NIST</creator>
+<description>
+ The title attribute specifies the elements advisory title.
+
+ Retrieve the title attribute of the DD element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78276800"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtitle" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"dd"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<title interface="HTMLElement" obj="testNode" var="vtitle"/>
+<assertEquals actual="vtitle" expected='"DD Element"' id="titleLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement54.xml b/test/testcases/tests/level1/html/HTMLElement54.xml new file mode 100644 index 0000000..c8c85ff --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement54.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement54">
+<metadata>
+<title>HTMLElement54</title>
+<creator>NIST</creator>
+<description>
+ The title attribute specifies the elements advisory title.
+
+ Retrieve the title attribute of the DT element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78276800"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtitle" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"dt"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<title interface="HTMLElement" obj="testNode" var="vtitle"/>
+<assertEquals actual="vtitle" expected='"DT Element"' id="titleLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement55.xml b/test/testcases/tests/level1/html/HTMLElement55.xml new file mode 100644 index 0000000..04aba47 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement55.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement55">
+<metadata>
+<title>HTMLElement55</title>
+<creator>NIST</creator>
+<description>
+ The title attribute specifies the elements advisory title.
+
+ Retrieve the title attribute of the NOFRAMES element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78276800"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtitle" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"noframes"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<title interface="HTMLElement" obj="testNode" var="vtitle"/>
+<assertEquals actual="vtitle" expected='"NOFRAMES Element"' id="titleLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement56.xml b/test/testcases/tests/level1/html/HTMLElement56.xml new file mode 100644 index 0000000..5e42819 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement56.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement56">
+<metadata>
+<title>HTMLElement56</title>
+<creator>NIST</creator>
+<description>
+ The title attribute specifies the elements advisory title.
+
+ Retrieve the title attribute of the NOSCRIPT element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78276800"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtitle" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"noscript"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<title interface="HTMLElement" obj="testNode" var="vtitle"/>
+<assertEquals actual="vtitle" expected='"NOSCRIPT Element"' id="titleLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement57.xml b/test/testcases/tests/level1/html/HTMLElement57.xml new file mode 100644 index 0000000..d76bdf6 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement57.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement57">
+<metadata>
+<title>HTMLElement57</title>
+<creator>NIST</creator>
+<description>
+ The title attribute specifies the elements advisory title.
+
+ Retrieve the title attribute of the ADDRESS element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78276800"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtitle" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"address"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<title interface="HTMLElement" obj="testNode" var="vtitle"/>
+<assertEquals actual="vtitle" expected='"ADDRESS Element"' id="titleLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement58.xml b/test/testcases/tests/level1/html/HTMLElement58.xml new file mode 100644 index 0000000..d276c21 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement58.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement58">
+<metadata>
+<title>HTMLElement58</title>
+<creator>NIST</creator>
+<description>
+ The title attribute specifies the elements advisory title.
+
+ Retrieve the title attribute of the CENTER element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78276800"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtitle" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"center"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<title interface="HTMLElement" obj="testNode" var="vtitle"/>
+<assertEquals actual="vtitle" expected='"CENTER Element"' id="titleLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement59.xml b/test/testcases/tests/level1/html/HTMLElement59.xml new file mode 100644 index 0000000..05ceca7 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement59.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement59">
+<metadata>
+<title>HTMLElement59</title>
+<creator>NIST</creator>
+<description>
+ The lang attribute specifies the language code defined in RFC 1766.
+
+ Retrieve the lang attribute of the HEAD element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59132807"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlang" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"head"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<lang interface="HTMLElement" obj="testNode" var="vlang"/>
+<assertEquals actual="vlang" expected='"en"' id="langLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement60.xml b/test/testcases/tests/level1/html/HTMLElement60.xml new file mode 100644 index 0000000..52c8d8c --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement60.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement60">
+<metadata>
+<title>HTMLElement60</title>
+<creator>NIST</creator>
+<description>
+ The lang attribute specifies the language code defined in RFC 1766.
+
+ Retrieve the lang attribute of the SUB element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59132807"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlang" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"sub"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<lang interface="HTMLElement" obj="testNode" var="vlang"/>
+<assertEquals actual="vlang" expected='"en"' id="langLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement61.xml b/test/testcases/tests/level1/html/HTMLElement61.xml new file mode 100644 index 0000000..26b387e --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement61.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement61">
+<metadata>
+<title>HTMLElement61</title>
+<creator>NIST</creator>
+<description>
+ The lang attribute specifies the language code defined in RFC 1766.
+
+ Retrieve the lang attribute of the SUP element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59132807"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlang" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"sup"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<lang interface="HTMLElement" obj="testNode" var="vlang"/>
+<assertEquals actual="vlang" expected='"en"' id="langLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement62.xml b/test/testcases/tests/level1/html/HTMLElement62.xml new file mode 100644 index 0000000..e535016 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement62.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement62">
+<metadata>
+<title>HTMLElement62</title>
+<creator>NIST</creator>
+<description>
+ The lang attribute specifies the language code defined in RFC 1766.
+
+ Retrieve the lang attribute of the SPAN element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59132807"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlang" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"span"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<lang interface="HTMLElement" obj="testNode" var="vlang"/>
+<assertEquals actual="vlang" expected='"en"' id="langLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement63.xml b/test/testcases/tests/level1/html/HTMLElement63.xml new file mode 100644 index 0000000..3a3d680 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement63.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement63">
+<metadata>
+<title>HTMLElement63</title>
+<creator>NIST</creator>
+<description>
+ The lang attribute specifies the language code defined in RFC 1766.
+
+ Retrieve the lang attribute of the BDO element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59132807"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlang" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"bdo"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<lang interface="HTMLElement" obj="testNode" var="vlang"/>
+<assertEquals actual="vlang" expected='"en"' id="langLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement64.xml b/test/testcases/tests/level1/html/HTMLElement64.xml new file mode 100644 index 0000000..8d0278a --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement64.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement64">
+<metadata>
+<title>HTMLElement64</title>
+<creator>NIST</creator>
+<description>
+ The lang attribute specifies the language code defined in RFC 1766.
+
+ Retrieve the lang attribute of the TT element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59132807"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlang" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tt"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<lang interface="HTMLElement" obj="testNode" var="vlang"/>
+<assertEquals actual="vlang" expected='"en"' id="langLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement65.xml b/test/testcases/tests/level1/html/HTMLElement65.xml new file mode 100644 index 0000000..980a814 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement65.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement65">
+<metadata>
+<title>HTMLElement65</title>
+<creator>NIST</creator>
+<description>
+ The lang attribute specifies the language code defined in RFC 1766.
+
+ Retrieve the lang attribute of the I element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59132807"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlang" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"i"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<lang interface="HTMLElement" obj="testNode" var="vlang"/>
+<assertEquals actual="vlang" expected='"en"' id="langLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement66.xml b/test/testcases/tests/level1/html/HTMLElement66.xml new file mode 100644 index 0000000..408e257 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement66.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement66">
+<metadata>
+<title>HTMLElement66</title>
+<creator>NIST</creator>
+<description>
+ The lang attribute specifies the language code defined in RFC 1766.
+
+ Retrieve the lang attribute of the B element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59132807"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlang" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"b"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<lang interface="HTMLElement" obj="testNode" var="vlang"/>
+<assertEquals actual="vlang" expected='"en"' id="langLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement67.xml b/test/testcases/tests/level1/html/HTMLElement67.xml new file mode 100644 index 0000000..8ec55b6 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement67.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement67">
+<metadata>
+<title>HTMLElement67</title>
+<creator>NIST</creator>
+<description>
+ The lang attribute specifies the language code defined in RFC 1766.
+
+ Retrieve the lang attribute of the U element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59132807"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlang" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"u"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<lang interface="HTMLElement" obj="testNode" var="vlang"/>
+<assertEquals actual="vlang" expected='"en"' id="langLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement68.xml b/test/testcases/tests/level1/html/HTMLElement68.xml new file mode 100644 index 0000000..31c8fd1 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement68.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement68">
+<metadata>
+<title>HTMLElement68</title>
+<creator>NIST</creator>
+<description>
+ The lang attribute specifies the language code defined in RFC 1766.
+
+ Retrieve the lang attribute of the S element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59132807"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlang" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"s"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<lang interface="HTMLElement" obj="testNode" var="vlang"/>
+<assertEquals actual="vlang" expected='"en"' id="langLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement69.xml b/test/testcases/tests/level1/html/HTMLElement69.xml new file mode 100644 index 0000000..4d91457 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement69.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement69">
+<metadata>
+<title>HTMLElement69</title>
+<creator>NIST</creator>
+<description>
+ The lang attribute specifies the language code defined in RFC 1766.
+
+ Retrieve the lang attribute of the STRIKE element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59132807"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlang" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"strike"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<lang interface="HTMLElement" obj="testNode" var="vlang"/>
+<assertEquals actual="vlang" expected='"en"' id="langLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement70.xml b/test/testcases/tests/level1/html/HTMLElement70.xml new file mode 100644 index 0000000..573b4e7 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement70.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement70">
+<metadata>
+<title>HTMLElement70</title>
+<creator>NIST</creator>
+<description>
+ The lang attribute specifies the language code defined in RFC 1766.
+
+ Retrieve the lang attribute of the BIG element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59132807"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlang" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"big"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<lang interface="HTMLElement" obj="testNode" var="vlang"/>
+<assertEquals actual="vlang" expected='"en"' id="langLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement71.xml b/test/testcases/tests/level1/html/HTMLElement71.xml new file mode 100644 index 0000000..0f61aff --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement71.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement71">
+<metadata>
+<title>HTMLElement71</title>
+<creator>NIST</creator>
+<description>
+ The lang attribute specifies the language code defined in RFC 1766.
+
+ Retrieve the lang attribute of the SMALL element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59132807"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlang" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"small"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<lang interface="HTMLElement" obj="testNode" var="vlang"/>
+<assertEquals actual="vlang" expected='"en"' id="langLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement72.xml b/test/testcases/tests/level1/html/HTMLElement72.xml new file mode 100644 index 0000000..db51dfe --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement72.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement72">
+<metadata>
+<title>HTMLElement72</title>
+<creator>NIST</creator>
+<description>
+ The lang attribute specifies the language code defined in RFC 1766.
+
+ Retrieve the lang attribute of the EM element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59132807"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlang" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"em"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<lang interface="HTMLElement" obj="testNode" var="vlang"/>
+<assertEquals actual="vlang" expected='"en"' id="langLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement73.xml b/test/testcases/tests/level1/html/HTMLElement73.xml new file mode 100644 index 0000000..ae9cd94 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement73.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement73">
+<metadata>
+<title>HTMLElement73</title>
+<creator>NIST</creator>
+<description>
+ The lang attribute specifies the language code defined in RFC 1766.
+
+ Retrieve the lang attribute of the STRONG element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59132807"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlang" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"strong"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<lang interface="HTMLElement" obj="testNode" var="vlang"/>
+<assertEquals actual="vlang" expected='"en"' id="langLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement74.xml b/test/testcases/tests/level1/html/HTMLElement74.xml new file mode 100644 index 0000000..4fc7aaf --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement74.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement74">
+<metadata>
+<title>HTMLElement74</title>
+<creator>NIST</creator>
+<description>
+ The lang attribute specifies the language code defined in RFC 1766.
+
+ Retrieve the lang attribute of the DFN element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59132807"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlang" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"dfn"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<lang interface="HTMLElement" obj="testNode" var="vlang"/>
+<assertEquals actual="vlang" expected='"en"' id="langLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement75.xml b/test/testcases/tests/level1/html/HTMLElement75.xml new file mode 100644 index 0000000..57d72bd --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement75.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement75">
+<metadata>
+<title>HTMLElement75</title>
+<creator>NIST</creator>
+<description>
+ The lang attribute specifies the language code defined in RFC 1766.
+
+ Retrieve the lang attribute of the CODE element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59132807"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlang" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"code"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<lang interface="HTMLElement" obj="testNode" var="vlang"/>
+<assertEquals actual="vlang" expected='"en"' id="langLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement76.xml b/test/testcases/tests/level1/html/HTMLElement76.xml new file mode 100644 index 0000000..c4deb69 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement76.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement76">
+<metadata>
+<title>HTMLElement76</title>
+<creator>NIST</creator>
+<description>
+ The lang attribute specifies the language code defined in RFC 1766.
+
+ Retrieve the lang attribute of the SAMP element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59132807"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlang" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"samp"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<lang interface="HTMLElement" obj="testNode" var="vlang"/>
+<assertEquals actual="vlang" expected='"en"' id="langLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement77.xml b/test/testcases/tests/level1/html/HTMLElement77.xml new file mode 100644 index 0000000..93b4593 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement77.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement77">
+<metadata>
+<title>HTMLElement77</title>
+<creator>NIST</creator>
+<description>
+ The lang attribute specifies the language code defined in RFC 1766.
+
+ Retrieve the lang attribute of the KBD element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59132807"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlang" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"kbd"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<lang interface="HTMLElement" obj="testNode" var="vlang"/>
+<assertEquals actual="vlang" expected='"en"' id="langLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement78.xml b/test/testcases/tests/level1/html/HTMLElement78.xml new file mode 100644 index 0000000..3c1f372 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement78.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement78">
+<metadata>
+<title>HTMLElement78</title>
+<creator>NIST</creator>
+<description>
+ The lang attribute specifies the language code defined in RFC 1766.
+
+ Retrieve the lang attribute of the VAR element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59132807"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlang" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"var"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<lang interface="HTMLElement" obj="testNode" var="vlang"/>
+<assertEquals actual="vlang" expected='"en"' id="langLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement79.xml b/test/testcases/tests/level1/html/HTMLElement79.xml new file mode 100644 index 0000000..754be53 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement79.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement79">
+<metadata>
+<title>HTMLElement79</title>
+<creator>NIST</creator>
+<description>
+ The lang attribute specifies the language code defined in RFC 1766.
+
+ Retrieve the lang attribute of the CITE element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59132807"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlang" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"cite"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<lang interface="HTMLElement" obj="testNode" var="vlang"/>
+<assertEquals actual="vlang" expected='"en"' id="langLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement80.xml b/test/testcases/tests/level1/html/HTMLElement80.xml new file mode 100644 index 0000000..52c3c11 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement80.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement80">
+<metadata>
+<title>HTMLElement80</title>
+<creator>NIST</creator>
+<description>
+ The lang attribute specifies the language code defined in RFC 1766.
+
+ Retrieve the lang attribute of the ACRONYM element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59132807"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlang" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"acronym"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<lang interface="HTMLElement" obj="testNode" var="vlang"/>
+<assertEquals actual="vlang" expected='"en"' id="langLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement81.xml b/test/testcases/tests/level1/html/HTMLElement81.xml new file mode 100644 index 0000000..8fe8c7b --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement81.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement81">
+<metadata>
+<title>HTMLElement81</title>
+<creator>NIST</creator>
+<description>
+ The lang attribute specifies the language code defined in RFC 1766.
+
+ Retrieve the lang attribute of the ABBR element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59132807"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlang" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"abbr"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<lang interface="HTMLElement" obj="testNode" var="vlang"/>
+<assertEquals actual="vlang" expected='"en"' id="langLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement82.xml b/test/testcases/tests/level1/html/HTMLElement82.xml new file mode 100644 index 0000000..083b5ca --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement82.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement82">
+<metadata>
+<title>HTMLElement82</title>
+<creator>NIST</creator>
+<description>
+ The lang attribute specifies the language code defined in RFC 1766.
+
+ Retrieve the lang attribute of the DD element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59132807"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlang" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"dd"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<lang interface="HTMLElement" obj="testNode" var="vlang"/>
+<assertEquals actual="vlang" expected='"en"' id="langLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement83.xml b/test/testcases/tests/level1/html/HTMLElement83.xml new file mode 100644 index 0000000..7eb8d81 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement83.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement83">
+<metadata>
+<title>HTMLElement83</title>
+<creator>NIST</creator>
+<description>
+ The lang attribute specifies the language code defined in RFC 1766.
+
+ Retrieve the lang attribute of the DT element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59132807"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlang" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"dt"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<lang interface="HTMLElement" obj="testNode" var="vlang"/>
+<assertEquals actual="vlang" expected='"en"' id="langLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement84.xml b/test/testcases/tests/level1/html/HTMLElement84.xml new file mode 100644 index 0000000..df253ec --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement84.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement84">
+<metadata>
+<title>HTMLElement84</title>
+<creator>NIST</creator>
+<description>
+ The lang attribute specifies the language code defined in RFC 1766.
+
+ Retrieve the lang attribute of the NOFRAMES element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59132807"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlang" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"noframes"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<lang interface="HTMLElement" obj="testNode" var="vlang"/>
+<assertEquals actual="vlang" expected='"en"' id="langLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement85.xml b/test/testcases/tests/level1/html/HTMLElement85.xml new file mode 100644 index 0000000..a1c7ea1 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement85.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement85">
+<metadata>
+<title>HTMLElement85</title>
+<creator>NIST</creator>
+<description>
+ The lang attribute specifies the language code defined in RFC 1766.
+
+ Retrieve the lang attribute of the NOSCRIPT element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59132807"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlang" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"noscript"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<lang interface="HTMLElement" obj="testNode" var="vlang"/>
+<assertEquals actual="vlang" expected='"en"' id="langLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement86.xml b/test/testcases/tests/level1/html/HTMLElement86.xml new file mode 100644 index 0000000..ab6f721 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement86.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement86">
+<metadata>
+<title>HTMLElement86</title>
+<creator>NIST</creator>
+<description>
+ The lang attribute specifies the language code defined in RFC 1766.
+
+ Retrieve the lang attribute of the ADDRESS element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59132807"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlang" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"address"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<lang interface="HTMLElement" obj="testNode" var="vlang"/>
+<assertEquals actual="vlang" expected='"en"' id="langLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement87.xml b/test/testcases/tests/level1/html/HTMLElement87.xml new file mode 100644 index 0000000..2da523e --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement87.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement87">
+<metadata>
+<title>HTMLElement87</title>
+<creator>NIST</creator>
+<description>
+ The lang attribute specifies the language code defined in RFC 1766.
+
+ Retrieve the lang attribute of the CENTER element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59132807"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlang" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"center"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<lang interface="HTMLElement" obj="testNode" var="vlang"/>
+<assertEquals actual="vlang" expected='"en"' id="langLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement88.xml b/test/testcases/tests/level1/html/HTMLElement88.xml new file mode 100644 index 0000000..eacdebc --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement88.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement88">
+<metadata>
+<title>HTMLElement88</title>
+<creator>NIST</creator>
+<description>
+ The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
+
+ Retrieve the dir attribute of the HEAD element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52460740"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdir" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"head"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dir interface="HTMLElement" obj="testNode" var="vdir"/>
+<assertEquals actual="vdir" expected='"ltr"' id="dirLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement89.xml b/test/testcases/tests/level1/html/HTMLElement89.xml new file mode 100644 index 0000000..4e5b314 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement89.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement89">
+<metadata>
+<title>HTMLElement89</title>
+<creator>NIST</creator>
+<description>
+ The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
+
+ Retrieve the dir attribute of the SUB element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52460740"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdir" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"sub"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dir interface="HTMLElement" obj="testNode" var="vdir"/>
+<assertEquals actual="vdir" expected='"ltr"' id="dirLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement90.xml b/test/testcases/tests/level1/html/HTMLElement90.xml new file mode 100644 index 0000000..63aae58 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement90.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement90">
+<metadata>
+<title>HTMLElement90</title>
+<creator>NIST</creator>
+<description>
+ The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
+
+ Retrieve the dir attribute of the SUP element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52460740"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdir" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"sup"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dir interface="HTMLElement" obj="testNode" var="vdir"/>
+<assertEquals actual="vdir" expected='"ltr"' id="dirLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement91.xml b/test/testcases/tests/level1/html/HTMLElement91.xml new file mode 100644 index 0000000..6f80a9b --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement91.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement91">
+<metadata>
+<title>HTMLElement91</title>
+<creator>NIST</creator>
+<description>
+ The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
+
+ Retrieve the dir attribute of the SPAN element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52460740"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdir" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"span"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dir interface="HTMLElement" obj="testNode" var="vdir"/>
+<assertEquals actual="vdir" expected='"ltr"' id="dirLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement92.xml b/test/testcases/tests/level1/html/HTMLElement92.xml new file mode 100644 index 0000000..483b97f --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement92.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement92">
+<metadata>
+<title>HTMLElement92</title>
+<creator>NIST</creator>
+<description>
+ The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
+
+ Retrieve the dir attribute of the BDO element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52460740"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdir" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"bdo"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dir interface="HTMLElement" obj="testNode" var="vdir"/>
+<assertEquals actual="vdir" expected='"ltr"' id="dirLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement93.xml b/test/testcases/tests/level1/html/HTMLElement93.xml new file mode 100644 index 0000000..c9b0dbc --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement93.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement93">
+<metadata>
+<title>HTMLElement93</title>
+<creator>NIST</creator>
+<description>
+ The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
+
+ Retrieve the dir attribute of the TT element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52460740"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdir" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tt"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dir interface="HTMLElement" obj="testNode" var="vdir"/>
+<assertEquals actual="vdir" expected='"ltr"' id="dirLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement94.xml b/test/testcases/tests/level1/html/HTMLElement94.xml new file mode 100644 index 0000000..f366f7b --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement94.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement94">
+<metadata>
+<title>HTMLElement94</title>
+<creator>NIST</creator>
+<description>
+ The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
+
+ Retrieve the dir attribute of the I element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52460740"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdir" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"i"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dir interface="HTMLElement" obj="testNode" var="vdir"/>
+<assertEquals actual="vdir" expected='"ltr"' id="dirLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement95.xml b/test/testcases/tests/level1/html/HTMLElement95.xml new file mode 100644 index 0000000..ab7d2e3 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement95.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement95">
+<metadata>
+<title>HTMLElement95</title>
+<creator>NIST</creator>
+<description>
+ The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
+
+ Retrieve the dir attribute of the B element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52460740"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdir" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"b"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dir interface="HTMLElement" obj="testNode" var="vdir"/>
+<assertEquals actual="vdir" expected='"ltr"' id="dirLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement96.xml b/test/testcases/tests/level1/html/HTMLElement96.xml new file mode 100644 index 0000000..fdf8bb3 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement96.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement96">
+<metadata>
+<title>HTMLElement96</title>
+<creator>NIST</creator>
+<description>
+ The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
+
+ Retrieve the dir attribute of the U element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52460740"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdir" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"u"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dir interface="HTMLElement" obj="testNode" var="vdir"/>
+<assertEquals actual="vdir" expected='"ltr"' id="dirLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement97.xml b/test/testcases/tests/level1/html/HTMLElement97.xml new file mode 100644 index 0000000..753becc --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement97.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement97">
+<metadata>
+<title>HTMLElement97</title>
+<creator>NIST</creator>
+<description>
+ The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
+
+ Retrieve the dir attribute of the S element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52460740"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdir" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"s"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dir interface="HTMLElement" obj="testNode" var="vdir"/>
+<assertEquals actual="vdir" expected='"ltr"' id="dirLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement98.xml b/test/testcases/tests/level1/html/HTMLElement98.xml new file mode 100644 index 0000000..dc7b849 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement98.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement98">
+<metadata>
+<title>HTMLElement98</title>
+<creator>NIST</creator>
+<description>
+ The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
+
+ Retrieve the dir attribute of the STRIKE element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52460740"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdir" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"strike"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dir interface="HTMLElement" obj="testNode" var="vdir"/>
+<assertEquals actual="vdir" expected='"ltr"' id="dirLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLElement99.xml b/test/testcases/tests/level1/html/HTMLElement99.xml new file mode 100644 index 0000000..46de389 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLElement99.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLElement99">
+<metadata>
+<title>HTMLElement99</title>
+<creator>NIST</creator>
+<description>
+ The dir attribute specifies the base direction of directionally neutral text and the directionality of tables.
+
+ Retrieve the dir attribute of the BIG element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52460740"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdir" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="element" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"big"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dir interface="HTMLElement" obj="testNode" var="vdir"/>
+<assertEquals actual="vdir" expected='"ltr"' id="dirLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLFieldSetElement01.xml b/test/testcases/tests/level1/html/HTMLFieldSetElement01.xml new file mode 100644 index 0000000..b6c6e98 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLFieldSetElement01.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLFieldSetElement01">
+<metadata>
+<title>HTMLFieldSetElement01</title>
+<creator>NIST</creator>
+<description>
+ The form attribute returns the FORM element containing this control.
+
+ Retrieve the form attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-75392630"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vform" type="DOMString" />
+<var name="fNode" type="HTMLFormElement"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="fieldset" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"fieldset"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<form interface="HTMLFieldSetElement" obj="testNode" var="fNode"/>
+<id obj="fNode" var="vform"/>
+<assertEquals actual="vform" expected='"form2"' id="formLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLFieldSetElement02.xml b/test/testcases/tests/level1/html/HTMLFieldSetElement02.xml new file mode 100644 index 0000000..09d0877 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLFieldSetElement02.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLFieldSetElement02">
+<metadata>
+<title>HTMLFieldSetElement02</title>
+<creator>NIST</creator>
+<description>
+ The form attribute returns null if control in not within the context of
+ form.
+
+ Retrieve the form attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-75392630"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vform" type="HTMLFormElement" />
+<var name="doc" type="Document"/>
+<load var="doc" href="fieldset" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"fieldset"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<form interface="HTMLFieldSetElement" obj="testNode" var="vform"/>
+<assertNull actual="vform" id="formNullLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLFontElement01.xml b/test/testcases/tests/level1/html/HTMLFontElement01.xml new file mode 100644 index 0000000..48f0994 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLFontElement01.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLFontElement01">
+<metadata>
+<title>HTMLFontElement01</title>
+<creator>NIST</creator>
+<description>
+ The color attribute specifies the font's color.
+
+ Retrieve the color attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-53532975"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vcolor" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="font" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"font"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<color interface="HTMLFontElement" obj="testNode" var="vcolor"/>
+<assertEquals actual="vcolor" expected='"#000000"' id="colorLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLFontElement02.xml b/test/testcases/tests/level1/html/HTMLFontElement02.xml new file mode 100644 index 0000000..48e405e --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLFontElement02.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLFontElement02"> +<metadata> +<title>HTMLFontElement02</title> +<creator>NIST</creator> +<description> + The face attribute specifies the font's face identifier. + + Retrieve the face attribute and examine its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-55715655"/> +<subject resource="http://www.w3.org/TR/DOM-Level-2-HTML/html#HTML-HTMLFormElement-length"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vface" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="font" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"font"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<face interface="HTMLFontElement" obj="testNode" var="vface"/> +<assertEquals actual="vface" expected='"arial,helvetica"' id="faceLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLFontElement03.xml b/test/testcases/tests/level1/html/HTMLFontElement03.xml new file mode 100644 index 0000000..82ced1a --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLFontElement03.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLFontElement03">
+<metadata>
+<title>HTMLFontElement03</title>
+<creator>NIST</creator>
+<description>
+ The size attribute specifies the font's size.
+
+ Retrieve the size attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-90127284"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vsize" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="font" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"font"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<size interface="HTMLFontElement" obj="testNode" var="vsize"/>
+<assertEquals actual="vsize" expected='"4"' id="sizeLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLFormElement01.xml b/test/testcases/tests/level1/html/HTMLFormElement01.xml new file mode 100644 index 0000000..057fac5 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLFormElement01.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLFormElement01">
+<metadata>
+<title>HTMLFormElement01</title>
+<creator>NIST</creator>
+<description>
+ The elements attribute specifies a collection of all control element
+ in the form.
+
+ Retrieve the elements attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-76728479"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="elementnodeList" type="HTMLCollection"/>
+<var name="testNode" type="Node"/>
+<var name="velements" type="int" />
+<var name="doc" type="Document"/>
+<load var="doc" href="form" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"form"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<elements interface="HTMLFormElement" obj="testNode" var="elementnodeList"/>
+<length interface="HTMLCollection" obj="elementnodeList" var="velements"/>
+<assertEquals actual="velements" expected="3" id="elementsLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLFormElement02.xml b/test/testcases/tests/level1/html/HTMLFormElement02.xml new file mode 100644 index 0000000..06abf8d --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLFormElement02.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLFormElement02"> +<metadata> +<title>HTMLFormElement02</title> +<creator>NIST</creator> +<description> + The length attribute specifies the number of form controls + in the form. + + Retrieve the length attribute and examine its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-40002357"/> +<subject resource="http://www.w3.org/TR/DOM-Level-2-HTML/html#HTML-HTMLFormElement-length"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vlength" type="int"/> +<var name="doc" type="Document"/> +<load var="doc" href="form" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"form"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<length interface="HTMLFormElement" obj="testNode" var="vlength"/> +<assertEquals actual="vlength" expected="3" id="lengthLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLFormElement03.xml b/test/testcases/tests/level1/html/HTMLFormElement03.xml new file mode 100644 index 0000000..50332f9 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLFormElement03.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLFormElement03">
+<metadata>
+<title>HTMLFormElement03</title>
+<creator>NIST</creator>
+<description>
+ The id(name) attribute specifies the name of the form.
+
+ Retrieve the id attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-22051454"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vname" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="form" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"form"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<id obj="testNode" var="vname"/>
+<assertEquals actual="vname" expected='"form1"' id="nameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLFormElement04.xml b/test/testcases/tests/level1/html/HTMLFormElement04.xml new file mode 100644 index 0000000..4077e36 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLFormElement04.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLFormElement04">
+<metadata>
+<title>HTMLFormElement04</title>
+<creator>NIST</creator>
+<description>
+ The acceptCharset attribute specifies the list of character sets
+ supported by the server.
+
+ Retrieve the acceptCharset attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-19661795"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vacceptcharset" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="form" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"form"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<acceptCharset interface="HTMLFormElement" obj="testNode" var="vacceptcharset"/>
+<assertEquals actual="vacceptcharset" expected='"US-ASCII"' id="acceptCharsetLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLFormElement05.xml b/test/testcases/tests/level1/html/HTMLFormElement05.xml new file mode 100644 index 0000000..54a3436 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLFormElement05.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLFormElement05">
+<metadata>
+<title>HTMLFormElement05</title>
+<creator>NIST</creator>
+<description>
+ The action attribute specifies the server-side form handler.
+
+ Retrieve the action attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-74049184"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vaction" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="form" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"form"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<action interface="HTMLFormElement" obj="testNode" var="vaction"/>
+<assertURIEquals actual="vaction" file='"getData.pl"' id="actionLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLFormElement06.xml b/test/testcases/tests/level1/html/HTMLFormElement06.xml new file mode 100644 index 0000000..fb1ca95 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLFormElement06.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLFormElement06">
+<metadata>
+<title>HTMLFormElement06</title>
+<creator>NIST</creator>
+<description>
+ The enctype attribute specifies the content of the submitted form.
+
+ Retrieve the enctype attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-84227810"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="venctype" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="form" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"form"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<enctype interface="HTMLFormElement" obj="testNode" var="venctype"/>
+<assertEquals actual="venctype" expected='"application/x-www-form-urlencoded"' id="enctypeLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLFormElement07.xml b/test/testcases/tests/level1/html/HTMLFormElement07.xml new file mode 100644 index 0000000..897b63d --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLFormElement07.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLFormElement07">
+<metadata>
+<title>HTMLFormElement07</title>
+<creator>NIST</creator>
+<description>
+ The method attribute specifies the HTTP method used to submit the form.
+
+ Retrieve the method attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-82545539"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vmethod" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="form" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"form"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<method interface="HTMLFormElement" obj="testNode" var="vmethod"/>
+<assertEquals actual="vmethod" expected='"post"' id="methodLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLFormElement08.xml b/test/testcases/tests/level1/html/HTMLFormElement08.xml new file mode 100644 index 0000000..1a691cb --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLFormElement08.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLFormElement08"> +<metadata> +<title>HTMLFormElement08</title> +<creator>NIST</creator> +<description> + The target attribute specifies the frame to render the resource in. + + Retrieve the target attribute and examine it's value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-6512890"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vtarget" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="form2" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"form"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<target interface="HTMLFormElement" obj="testNode" var="vtarget"/> +<assertEquals actual="vtarget" expected='"dynamic"' id="targetLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLFormElement09.xml b/test/testcases/tests/level1/html/HTMLFormElement09.xml new file mode 100644 index 0000000..4f552d6 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLFormElement09.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +Copyright (c) 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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLFormElement09"> +<metadata> +<title>HTMLFormElement09</title> +<creator>Curt Arnold</creator> +<description> +HTMLFormElement.reset restores the forms default values. +</description> +<date qualifier="created">2004-03-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-76767677"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="doc" type="Document"/> +<load var="doc" href="form2" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"form"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<reset interface="HTMLFormElement" obj="testNode"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLFormElement10.xml b/test/testcases/tests/level1/html/HTMLFormElement10.xml new file mode 100644 index 0000000..8d1f3b4 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLFormElement10.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +Copyright (c) 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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLFormElement10"> +<metadata> +<title>HTMLFormElement10</title> +<creator>Curt Arnold</creator> +<description> +HTMLFormElement.submit submits the form. +</description> +<date qualifier="created">2004-03-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-76767676"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="doc" type="Document"/> +<load var="doc" href="form3" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"form"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<submit interface="HTMLFormElement" obj="testNode"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLFrameElement01.xml b/test/testcases/tests/level1/html/HTMLFrameElement01.xml new file mode 100644 index 0000000..e74ef5e --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLFrameElement01.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLFrameElement01"> +<metadata> +<title>HTMLFrameElement01</title> +<creator>NIST</creator> +<description> + The frameBorder attribute specifies the request for frame borders. + (frameBorder=1 A border is drawn) + (FrameBorder=0 A border is not drawn) + + Retrieve the frameBorder attribute of the first FRAME element and examine + it's value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-08</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-11858633"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vframeborder" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="frame" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"frame"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<frameBorder interface="HTMLFrameElement" obj="testNode" var="vframeborder"/> +<assertEquals actual="vframeborder" expected='"1"' id="frameborderLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLFrameElement02.xml b/test/testcases/tests/level1/html/HTMLFrameElement02.xml new file mode 100644 index 0000000..e6197e7 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLFrameElement02.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLFrameElement02"> +<metadata> +<title>HTMLFrameElement02</title> +<creator>NIST</creator> +<description> + The longDesc attribute specifies a URI designating a long description + of this image or frame. + + Retrieve the longDesc attribute of the first FRAME element and examine + its value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-08</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-7836998"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vlongdesc" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="frame" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"frame"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<longDesc interface="HTMLFrameElement" obj="testNode" var="vlongdesc"/> +<assertEquals actual="vlongdesc" expected='"about:blank"' ignoreCase="false" id="longdescLink"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLFrameElement03.xml b/test/testcases/tests/level1/html/HTMLFrameElement03.xml new file mode 100644 index 0000000..601ad32 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLFrameElement03.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLFrameElement03"> +<metadata> +<title>HTMLFrameElement03</title> +<creator>NIST</creator> +<description> + The marginHeight attribute specifies the frame margin height, in pixels. + + Retrieve the marginHeight attribute of the first FRAME element and examine + it's value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-08</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-55569778"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vmarginheight" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="frame" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"frame"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<marginHeight interface="HTMLFrameElement" obj="testNode" var="vmarginheight"/> +<assertEquals actual="vmarginheight" expected='"10"' id="marginheightLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLFrameElement04.xml b/test/testcases/tests/level1/html/HTMLFrameElement04.xml new file mode 100644 index 0000000..85a6b3e --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLFrameElement04.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLFrameElement04"> +<metadata> +<title>HTMLFrameElement04</title> +<creator>NIST</creator> +<description> + The marginWidth attribute specifies the frame margin width, in pixels. + + Retrieve the marginWidth attribute of the first FRAME element and examine + it's value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-08</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-8369969"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vmarginwidth" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="frame" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"frame"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<marginWidth interface="HTMLFrameElement" obj="testNode" var="vmarginwidth"/> +<assertEquals actual="vmarginwidth" expected='"5"' id="marginwidthLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLFrameElement05.xml b/test/testcases/tests/level1/html/HTMLFrameElement05.xml new file mode 100644 index 0000000..8df7700 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLFrameElement05.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLFrameElement05"> +<metadata> +<title>HTMLFrameElement05</title> +<creator>NIST</creator> +<description> + The name attribute specifies the frame name(object of the target + attribute). + + Retrieve the name attribute of the first FRAME element and examine + it's value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-08</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-91128709"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vname" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="frame" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"frame"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<name interface="HTMLFrameElement" obj="testNode" var="vname"/> +<assertEquals actual="vname" expected='"Frame1"' id="nameLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLFrameElement06.xml b/test/testcases/tests/level1/html/HTMLFrameElement06.xml new file mode 100644 index 0000000..43f46e1 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLFrameElement06.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLFrameElement06"> +<metadata> +<title>HTMLFrameElement06</title> +<creator>NIST</creator> +<description> + The noResize attribute specifies if the user can resize the frame. When + true, forbid user from resizing frame. + + Retrieve the noResize attribute of the first FRAME element and examine + it's value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-08</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-80766578"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vnoresize" type="boolean" /> +<var name="doc" type="Document"/> +<load var="doc" href="frame" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"frame"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<noResize interface="HTMLFrameElement" obj="testNode" var="vnoresize"/> +<assertTrue actual="vnoresize" id="noresizeLink"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLFrameElement07.xml b/test/testcases/tests/level1/html/HTMLFrameElement07.xml new file mode 100644 index 0000000..a7fdea4 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLFrameElement07.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLFrameElement07"> +<metadata> +<title>HTMLFrameElement07</title> +<creator>NIST</creator> +<description> + The scrolling attribute specifies whether or not the frame should have + scrollbars. + + Retrieve the scrolling attribute of the first FRAME element and examine + it's value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-08</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-45411424"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vscrolling" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="frame" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"frame"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<scrolling interface="HTMLFrameElement" obj="testNode" var="vscrolling"/> +<assertEquals actual="vscrolling" expected='"yes"' id="scrollingLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLFrameElement08.xml b/test/testcases/tests/level1/html/HTMLFrameElement08.xml new file mode 100644 index 0000000..4b2843a --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLFrameElement08.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLFrameElement08"> +<metadata> +<title>HTMLFrameElement08</title> +<creator>NIST</creator> +<description> + The src attribute specifies a URI designating the initial frame contents. + + Retrieve the src attribute of the first FRAME element and examine + it's value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-08</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78799535"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vsrc" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="frame" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"frame"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<src interface="HTMLFrameElement" obj="testNode" var="vsrc"/> +<assertURIEquals actual="vsrc" name='"right"' id="srcLink"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLFrameSetElement01.xml b/test/testcases/tests/level1/html/HTMLFrameSetElement01.xml new file mode 100644 index 0000000..18e5ff5 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLFrameSetElement01.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLFrameSetElement01"> +<metadata> +<title>HTMLFrameSetElement01</title> +<creator>NIST</creator> +<description> + The cols attribute specifies the number of columns of frames in the + frameset. + + Retrieve the cols attribute of the first FRAMESET element and examine + it's value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-08</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-98869594"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vcols" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="frameset" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"frameset"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<cols interface="HTMLFrameSetElement" obj="testNode" var="vcols"/> +<assertEquals actual="vcols" expected='"20, 80"' id="colsLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLFrameSetElement02.xml b/test/testcases/tests/level1/html/HTMLFrameSetElement02.xml new file mode 100644 index 0000000..e598cef --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLFrameSetElement02.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLFrameSetElement02"> +<metadata> +<title>HTMLFrameSetElement02</title> +<creator>NIST</creator> +<description> + The rows attribute specifies the number of rows of frames in the + frameset. + + Retrieve the rows attribute of the second FRAMESET element and examine + it's value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-08</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-19739247"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vrows" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="frameset" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"frameset"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<rows interface="HTMLFrameSetElement" obj="testNode" var="vrows"/> +<assertEquals actual="vrows" expected='"100, 200"' id="rowsLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLHRElement01.xml b/test/testcases/tests/level1/html/HTMLHRElement01.xml new file mode 100644 index 0000000..c074605 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLHRElement01.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLHRElement01">
+<metadata>
+<title>HTMLHRElement01</title>
+<creator>NIST</creator>
+<description>
+ The align attribute specifies the rule alignment on the page.
+
+ Retrieve the align attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-15235012"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="valign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="hr" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"hr"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<align interface="HTMLHRElement" obj="testNode" var="valign"/>
+<assertEquals actual="valign" expected='"center"' id="alignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLHRElement02.xml b/test/testcases/tests/level1/html/HTMLHRElement02.xml new file mode 100644 index 0000000..37f1293 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLHRElement02.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLHRElement02">
+<metadata>
+<title>HTMLHRElement02</title>
+<creator>NIST</creator>
+<description>
+ The noShade attribute specifies that the rule should be drawn as
+ a solid color.
+
+ Retrieve the noShade attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-79813978"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vnoshade" type="boolean" />
+<var name="doc" type="Document"/>
+<load var="doc" href="hr" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"hr"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<noShade interface="HTMLHRElement" obj="testNode" var="vnoshade"/>
+<assertTrue actual="vnoshade" id="noShadeLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLHRElement03.xml b/test/testcases/tests/level1/html/HTMLHRElement03.xml new file mode 100644 index 0000000..03ddebc --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLHRElement03.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLHRElement03">
+<metadata>
+<title>HTMLHRElement03</title>
+<creator>NIST</creator>
+<description>
+ The size attribute specifies the height of the rule.
+
+ Retrieve the size attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-77612587"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vsize" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="hr" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"hr"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<size interface="HTMLHRElement" obj="testNode" var="vsize"/>
+<assertEquals actual="vsize" expected='"5"' id="sizeLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLHRElement04.xml b/test/testcases/tests/level1/html/HTMLHRElement04.xml new file mode 100644 index 0000000..2090d14 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLHRElement04.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLHRElement04">
+<metadata>
+<title>HTMLHRElement04</title>
+<creator>NIST</creator>
+<description>
+ The width attribute specifies the width of the rule.
+
+ Retrieve the width attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-87744198"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vwidth" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="hr" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"hr"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<width interface="HTMLHRElement" obj="testNode" var="vwidth"/>
+<assertEquals actual="vwidth" expected='"400"' id="widthLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLHeadElement01.xml b/test/testcases/tests/level1/html/HTMLHeadElement01.xml new file mode 100644 index 0000000..a0fd82b --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLHeadElement01.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLHeadElement01">
+<metadata>
+<title>HTMLHeadElement01</title>
+<creator>NIST</creator>
+<description>
+ The profile attribute specifies a URI designating a metadata profile.
+
+ Retrieve the profile attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-96921909"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vprofile" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="head" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"head"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<profile interface="HTMLHeadElement" obj="testNode" var="vprofile"/>
+<assertURIEquals actual="vprofile" file='"profile"' id="profileLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLHeadingElement01.xml b/test/testcases/tests/level1/html/HTMLHeadingElement01.xml new file mode 100644 index 0000000..3f8b9fa --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLHeadingElement01.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLHeadingElement01">
+<metadata>
+<title>HTMLHeadingElement01</title>
+<creator>NIST</creator>
+<description>
+ The align attribute specifies the horizontal text alignment(H1).
+
+ Retrieve the align attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-6796462"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="valign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="heading" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"h1"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<align interface="HTMLHeadingElement" obj="testNode" var="valign"/>
+<assertEquals actual="valign" expected='"center"' id="alignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLHeadingElement02.xml b/test/testcases/tests/level1/html/HTMLHeadingElement02.xml new file mode 100644 index 0000000..e74b428 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLHeadingElement02.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLHeadingElement02">
+<metadata>
+<title>HTMLHeadingElement02</title>
+<creator>NIST</creator>
+<description>
+ The align attribute specifies the horizontal text alignment(H2).
+
+ Retrieve the align attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-6796462"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="valign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="heading" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"h2"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<align interface="HTMLHeadingElement" obj="testNode" var="valign"/>
+<assertEquals actual="valign" expected='"left"' id="alignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLHeadingElement03.xml b/test/testcases/tests/level1/html/HTMLHeadingElement03.xml new file mode 100644 index 0000000..a03702b --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLHeadingElement03.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLHeadingElement03">
+<metadata>
+<title>HTMLHeadingElement03</title>
+<creator>NIST</creator>
+<description>
+ The align attribute specifies the horizontal text alignment(H3).
+
+ Retrieve the align attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-6796462"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="valign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="heading" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"h3"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<align interface="HTMLHeadingElement" obj="testNode" var="valign"/>
+<assertEquals actual="valign" expected='"right"' id="alignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLHeadingElement04.xml b/test/testcases/tests/level1/html/HTMLHeadingElement04.xml new file mode 100644 index 0000000..9e16866 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLHeadingElement04.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLHeadingElement04">
+<metadata>
+<title>HTMLHeadingElement04</title>
+<creator>NIST</creator>
+<description>
+ The align attribute specifies the horizontal text alignment(H4).
+
+ Retrieve the align attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-6796462"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="valign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="heading" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"h4"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<align interface="HTMLHeadingElement" obj="testNode" var="valign"/>
+<assertEquals actual="valign" expected='"justify"' id="alignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLHeadingElement05.xml b/test/testcases/tests/level1/html/HTMLHeadingElement05.xml new file mode 100644 index 0000000..e732f74 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLHeadingElement05.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLHeadingElement05">
+<metadata>
+<title>HTMLHeadingElement05</title>
+<creator>NIST</creator>
+<description>
+ The align attribute specifies the horizontal text alignment(H5).
+
+ Retrieve the align attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-6796462"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="valign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="heading" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"h5"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<align interface="HTMLHeadingElement" obj="testNode" var="valign"/>
+<assertEquals actual="valign" expected='"center"' id="alignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLHeadingElement06.xml b/test/testcases/tests/level1/html/HTMLHeadingElement06.xml new file mode 100644 index 0000000..3853483 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLHeadingElement06.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLHeadingElement06">
+<metadata>
+<title>HTMLHeadingElement06</title>
+<creator>NIST</creator>
+<description>
+ The align attribute specifies the horizontal text alignment(H6).
+
+ Retrieve the align attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-6796462"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="valign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="heading" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"h6"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<align interface="HTMLHeadingElement" obj="testNode" var="valign"/>
+<assertEquals actual="valign" expected='"left"' id="alignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLHtmlElement01.xml b/test/testcases/tests/level1/html/HTMLHtmlElement01.xml new file mode 100644 index 0000000..1ad206a --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLHtmlElement01.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLHtmlElement01"> +<metadata> +<title>HTMLHtmlElement01</title> +<creator>NIST</creator> +<description> + The version attribute specifies version information about the document's + DTD. + + Retrieve the version attribute and examine its value. + + Test is only applicable to HTML, version attribute is not supported in XHTML. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-9383775"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vversion" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="html" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"html"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<version interface="HTMLHtmlElement" obj="testNode" var="vversion"/> +<if><contentType type="text/html"/> + <assertEquals actual="vversion" expected='"-//W3C//DTD HTML 4.01 Transitional//EN"' id="versionLink" ignoreCase="false"/> +</if> +</test> diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement01.xml b/test/testcases/tests/level1/html/HTMLIFrameElement01.xml new file mode 100644 index 0000000..1280955 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLIFrameElement01.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLIFrameElement01"> +<metadata> +<title>HTMLIFrameElement01</title> +<creator>NIST</creator> +<description> + The align attribute aligns this object(vertically or horizontally with + respect to its surrounding text. + + Retrieve the align attribute of the first IFRAME element and examine + it's value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-08</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-11309947"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="valign" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="iframe" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"iframe"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<align interface="HTMLIFrameElement" obj="testNode" var="valign"/> +<assertEquals actual="valign" expected='"top"' id="alignLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement02.xml b/test/testcases/tests/level1/html/HTMLIFrameElement02.xml new file mode 100644 index 0000000..c815c67 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLIFrameElement02.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLIFrameElement02"> +<metadata> +<title>HTMLIFrameElement02</title> +<creator>NIST</creator> +<description> + The frameBorder attribute specifies the request for frame borders. + (frameBorder=1 A border is drawn) + (FrameBorder=0 A border is not drawn) + + Retrieve the frameBorder attribute of the first IFRAME element and examine + it's value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-08</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-22463410"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vframeborder" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="iframe" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"iframe"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<frameBorder interface="HTMLIFrameElement" obj="testNode" var="vframeborder"/> +<assertEquals actual="vframeborder" expected='"1"' id="frameborderLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement03.xml b/test/testcases/tests/level1/html/HTMLIFrameElement03.xml new file mode 100644 index 0000000..3842aa3 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLIFrameElement03.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLIFrameElement03"> +<metadata> +<title>HTMLIFrameElement03</title> +<creator>NIST</creator> +<description> + The height attribute specifies the frame height. + + Retrieve the height attribute of the first IFRAME element and examine + it's value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-08</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-1678118"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vheight" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="iframe" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"iframe"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<height interface="HTMLIFrameElement" obj="testNode" var="vheight"/> +<assertEquals actual="vheight" expected='"50"' id="heightLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement04.xml b/test/testcases/tests/level1/html/HTMLIFrameElement04.xml new file mode 100644 index 0000000..65535fd --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLIFrameElement04.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLIFrameElement04"> +<metadata> +<title>HTMLIFrameElement04</title> +<creator>NIST</creator> +<description> + The longDesc attribute specifies a URI designating a long description + of this image or frame. + + Retrieve the longDesc attribute of the first IFRAME element and examine + its value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-08</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-70472105"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vlongdesc" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="iframe" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"iframe"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<longDesc interface="HTMLIFrameElement" obj="testNode" var="vlongdesc"/> +<assertEquals actual="vlongdesc" expected='"about:blank"' ignoreCase="false" id="longdescLink"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement05.xml b/test/testcases/tests/level1/html/HTMLIFrameElement05.xml new file mode 100644 index 0000000..5ba9855 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLIFrameElement05.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLIFrameElement05"> +<metadata> +<title>HTMLIFrameElement05</title> +<creator>NIST</creator> +<description> + The marginWidth attribute specifies the frame margin width, in pixels. + + Retrieve the marginWidth attribute of the first FRAME element and examine + it's value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-08</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-66486595"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vmarginwidth" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="iframe" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"iframe"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<marginWidth interface="HTMLIFrameElement" obj="testNode" var="vmarginwidth"/> +<assertEquals actual="vmarginwidth" expected='"5"' id="marginwidthLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement06.xml b/test/testcases/tests/level1/html/HTMLIFrameElement06.xml new file mode 100644 index 0000000..85654d7 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLIFrameElement06.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLIFrameElement06"> +<metadata> +<title>HTMLIFrameElement06</title> +<creator>NIST</creator> +<description> + The marginHeight attribute specifies the frame margin height, in pixels. + + Retrieve the marginHeight attribute of the first IFRAME element and examine + it's value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-08</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-91371294"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vmarginheight" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="iframe" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"iframe"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<marginHeight interface="HTMLIFrameElement" obj="testNode" var="vmarginheight"/> +<assertEquals actual="vmarginheight" expected='"10"' id="marginheightLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement07.xml b/test/testcases/tests/level1/html/HTMLIFrameElement07.xml new file mode 100644 index 0000000..8143aa5 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLIFrameElement07.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLIFrameElement07"> +<metadata> +<title>HTMLIFrameElement07</title> +<creator>NIST</creator> +<description> + The name attribute specifies the frame name(object of the target + attribute). + + Retrieve the name attribute of the first IFRAME element and examine + it's value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-08</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-96819659"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vname" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="iframe" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"iframe"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<name interface="HTMLIFrameElement" obj="testNode" var="vname"/> +<assertEquals actual="vname" expected='"Iframe1"' id="nameLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement08.xml b/test/testcases/tests/level1/html/HTMLIFrameElement08.xml new file mode 100644 index 0000000..729c1a9 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLIFrameElement08.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLIFrameElement08"> +<metadata> +<title>HTMLIFrameElement08</title> +<creator>NIST</creator> +<description> + The scrolling attribute specifies whether or not the frame should have + scrollbars. + + Retrieve the scrolling attribute of the first FRAME element and examine + it's value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-08</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-36369822"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vscrolling" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="iframe" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"iframe"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<scrolling interface="HTMLIFrameElement" obj="testNode" var="vscrolling"/> +<assertEquals actual="vscrolling" expected='"yes"' id="scrollingLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement09.xml b/test/testcases/tests/level1/html/HTMLIFrameElement09.xml new file mode 100644 index 0000000..e9cc84b --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLIFrameElement09.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLIFrameElement09"> +<metadata> +<title>HTMLIFrameElement09</title> +<creator>NIST</creator> +<description> + The src attribute specifies a URI designating the initial frame contents. + + Retrieve the src attribute of the first FRAME element and examine + it's value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-08</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-43933957"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vsrc" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="iframe" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"iframe"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<src interface="HTMLIFrameElement" obj="testNode" var="vsrc"/> +<assertURIEquals actual="vsrc" name='"right"' id="srcLink"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLIFrameElement10.xml b/test/testcases/tests/level1/html/HTMLIFrameElement10.xml new file mode 100644 index 0000000..7278bb4 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLIFrameElement10.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLIFrameElement10"> +<metadata> +<title>HTMLIFrameElement10</title> +<creator>NIST</creator> +<description> + The width attribute specifies the frame width. + + Retrieve the width attribute of the first IFRAME element and examine + it's value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-08</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-67133005"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vwidth" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="iframe" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"iframe"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<width interface="HTMLIFrameElement" obj="testNode" var="vwidth"/> +<assertEquals actual="vwidth" expected='"60"' id="widthLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLImageElement01.xml b/test/testcases/tests/level1/html/HTMLImageElement01.xml new file mode 100644 index 0000000..ca61559 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLImageElement01.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLImageElement01">
+<metadata>
+<title>HTMLImageElement01</title>
+<creator>NIST</creator>
+<description>
+ The name attribute specifies the name of the element.
+
+ Retrieve the name attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-47534097"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vname" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="img" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"img"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<name interface="HTMLImageElement" obj="testNode" var="vname"/>
+<assertEquals actual="vname" expected='"IMAGE-1"' id="nameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLImageElement02.xml b/test/testcases/tests/level1/html/HTMLImageElement02.xml new file mode 100644 index 0000000..f314888 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLImageElement02.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLImageElement02">
+<metadata>
+<title>HTMLImageElement02</title>
+<creator>NIST</creator>
+<description>
+ The align attribute aligns this object with respect to its surrounding
+ text.
+
+ Retrieve the align attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-3211094"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="valign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="img" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"img"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<align interface="HTMLImageElement" obj="testNode" var="valign"/>
+<assertEquals actual="valign" expected='"middle"' id="alignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLImageElement03.xml b/test/testcases/tests/level1/html/HTMLImageElement03.xml new file mode 100644 index 0000000..75716f9 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLImageElement03.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLImageElement03">
+<metadata>
+<title>HTMLImageElement03</title>
+<creator>NIST</creator>
+<description>
+ The alt attribute specifies an alternative text for user agenst not
+ rendering the normal content of this element.
+
+ Retrieve the alt attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95636861"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="valt" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="img" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"img"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<alt interface="HTMLImageElement" obj="testNode" var="valt"/>
+<assertEquals actual="valt" expected='"DTS IMAGE LOGO"' id="altLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLImageElement04.xml b/test/testcases/tests/level1/html/HTMLImageElement04.xml new file mode 100644 index 0000000..80a30b0 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLImageElement04.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLImageElement04">
+<metadata>
+<title>HTMLImageElement04</title>
+<creator>NIST</creator>
+<description>
+ The border attribute specifies the width of the border around the image.
+
+ Retrieve the border attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-136671"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vborder" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="img" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"img"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<border interface="HTMLImageElement" obj="testNode" var="vborder"/>
+<assertEquals actual="vborder" expected='"0"' id="borderLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLImageElement05.xml b/test/testcases/tests/level1/html/HTMLImageElement05.xml new file mode 100644 index 0000000..169b5ff --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLImageElement05.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLImageElement05"> +<metadata> +<title>HTMLImageElement05</title> +<creator>NIST</creator> +<description> + The height attribute overrides the natural "height" of the image. Retrieve the height attribute and examine its value. + + This test is incompatible with L2 HTML implementations due to a change in the type of the attribute. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-91561496"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=504"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vheight" type="DOMString" /> +<var name="doc" type="Document"/> +<var name="domImpl" type="DOMImplementation"/> +<var name="hasHTML2" type="boolean"/> +<load var="doc" href="img" willBeModified="false"/> +<implementation var="domImpl" obj="doc"/> +<hasFeature var="hasHTML2" obj="domImpl" feature='"HTML"' version='"2.0"'/> +<if><isFalse value="hasHTML2"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"img"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<height interface="HTMLImageElement" obj="testNode" var="vheight"/> +<assertEquals actual="vheight" expected='"47"' id="heightLink" ignoreCase="false"/> +</if> +</test> diff --git a/test/testcases/tests/level1/html/HTMLImageElement06.xml b/test/testcases/tests/level1/html/HTMLImageElement06.xml new file mode 100644 index 0000000..f95cef7 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLImageElement06.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLImageElement06"> +<metadata> +<title>HTMLImageElement06</title> +<creator>NIST</creator> +<description> + The hspace attribute specifies the horizontal space to the left and + right of this image. + + Retrieve the hspace attribute and examine its value. + + This test is incompatible with L2 HTML implementations due to a change in the type of the attribute. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-53675471"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=504"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vhspace" type="DOMString" /> +<var name="doc" type="Document"/> +<var name="domImpl" type="DOMImplementation"/> +<var name="hasHTML2" type="boolean"/> +<load var="doc" href="img" willBeModified="false"/> +<implementation var="domImpl" obj="doc"/> +<hasFeature var="hasHTML2" obj="domImpl" feature='"HTML"' version='"2.0"'/> +<if><isFalse value="hasHTML2"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"img"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<hspace interface="HTMLImageElement" obj="testNode" var="vhspace"/> +<assertEquals actual="vhspace" expected='"4"' id="hspaceLink" ignoreCase="false"/> +</if> +</test> diff --git a/test/testcases/tests/level1/html/HTMLImageElement07.xml b/test/testcases/tests/level1/html/HTMLImageElement07.xml new file mode 100644 index 0000000..faca09e --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLImageElement07.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLImageElement07">
+<metadata>
+<title>HTMLImageElement07</title>
+<creator>NIST</creator>
+<description>
+ The isMap attribute indicates the use of server-side image map.
+
+ Retrieve the isMap attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-58983880"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vismap" type="boolean" />
+<var name="doc" type="Document"/>
+<load var="doc" href="img" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"img"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<isMap interface="HTMLImageElement" obj="testNode" var="vismap"/>
+<assertFalse actual="vismap" id="isMapLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLImageElement08.xml b/test/testcases/tests/level1/html/HTMLImageElement08.xml new file mode 100644 index 0000000..e7bedbf --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLImageElement08.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLImageElement08">
+<metadata>
+<title>HTMLImageElement08</title>
+<creator>NIST</creator>
+<description>
+ The longDesc attribute contains an URI designating a long description
+ of this image or frame.
+
+ Retrieve the longDesc attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-77376969"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlongdesc" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="img" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"img"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<longDesc interface="HTMLImageElement" obj="testNode" var="vlongdesc"/>
+<assertURIEquals actual="vlongdesc" file='"desc.html"' id="longDescLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLImageElement09.xml b/test/testcases/tests/level1/html/HTMLImageElement09.xml new file mode 100644 index 0000000..6d0f584 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLImageElement09.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLImageElement09">
+<metadata>
+<title>HTMLImageElement09</title>
+<creator>NIST</creator>
+<description>
+ The src attribute contains an URI designating the source of this image.
+
+ Retrieve the src attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-87762984"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vsrc" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="img" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"img"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<src interface="HTMLImageElement" obj="testNode" var="vsrc"/>
+<assertURIEquals actual="vsrc" file='"dts.gif"' id="srcLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLImageElement10.xml b/test/testcases/tests/level1/html/HTMLImageElement10.xml new file mode 100644 index 0000000..3c13080 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLImageElement10.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLImageElement10">
+<metadata>
+<title>HTMLImageElement10</title>
+<creator>NIST</creator>
+<description>
+ The useMap attribute specifies to use the client-side image map.
+
+ Retrieve the useMap attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-35981181"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vusemap" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="img" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"img"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<useMap interface="HTMLImageElement" obj="testNode" var="vusemap"/>
+<assertEquals actual="vusemap" expected='"#DTS-MAP"' id="useMapLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLImageElement11.xml b/test/testcases/tests/level1/html/HTMLImageElement11.xml new file mode 100644 index 0000000..bd3940e --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLImageElement11.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLImageElement11"> +<metadata> +<title>HTMLImageElement11</title> +<creator>NIST</creator> +<description> + The vspace attribute specifies the vertical space above and below this + image. + + Retrieve the vspace attribute and examine its value. + + This test is incompatible with L2 HTML implementations due to a change in the type of the attribute. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-85374897"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=504"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vvspace" type="DOMString" /> +<var name="doc" type="Document"/> +<var name="domImpl" type="DOMImplementation"/> +<var name="hasHTML2" type="boolean"/> +<load var="doc" href="img" willBeModified="false"/> +<implementation var="domImpl" obj="doc"/> +<hasFeature var="hasHTML2" obj="domImpl" feature='"HTML"' version='"2.0"'/> +<if><isFalse value="hasHTML2"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"img"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<vspace interface="HTMLImageElement" obj="testNode" var="vvspace"/> +<assertEquals actual="vvspace" expected='"10"' id="vspaceLink" ignoreCase="false"/> +</if> +</test> diff --git a/test/testcases/tests/level1/html/HTMLImageElement12.xml b/test/testcases/tests/level1/html/HTMLImageElement12.xml new file mode 100644 index 0000000..05dd9de --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLImageElement12.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLImageElement12"> +<metadata> +<title>HTMLImageElement12</title> +<creator>NIST</creator> +<description> + The width attribute overrides the natural "width" of the image. + + Retrieve the width attribute and examine its value. + + This test is incompatible with L2 HTML implementations due to a change in the type of the attribute. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-13839076"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=504"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vwidth" type="DOMString" /> +<var name="doc" type="Document"/> +<var name="domImpl" type="DOMImplementation"/> +<var name="hasHTML2" type="boolean"/> +<load var="doc" href="img" willBeModified="false"/> +<implementation var="domImpl" obj="doc"/> +<hasFeature var="hasHTML2" obj="domImpl" feature='"HTML"' version='"2.0"'/> +<if><isFalse value="hasHTML2"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"img"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<width interface="HTMLImageElement" obj="testNode" var="vwidth"/> +<assertEquals actual="vwidth" expected='"115"' id="widthLink" ignoreCase="false"/> +</if> +</test> diff --git a/test/testcases/tests/level1/html/HTMLImageElement14.xml b/test/testcases/tests/level1/html/HTMLImageElement14.xml new file mode 100644 index 0000000..3edc980 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLImageElement14.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLImageElement14"> +<metadata> +<title>HTMLImageElement14</title> +<creator>NIST</creator> +<description> +The lowSrc attribute specifies an URI designating a long description of +this image or frame. + +Retrieve the lowSrc attribute of the first IMG element and examine +its value. Should be "" since lowSrc is not a valid attribute for IMG. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-07-19</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-91256910"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vlow" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="img" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"img"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<lowSrc interface="HTMLImageElement" obj="testNode" var="vlow"/> +<assertEquals actual="vlow" expected='""' id="lowLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLInputElement01.xml b/test/testcases/tests/level1/html/HTMLInputElement01.xml new file mode 100644 index 0000000..67df3ec --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLInputElement01.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLInputElement01">
+<metadata>
+<title>HTMLInputElement01</title>
+<creator>NIST</creator>
+<description>
+ The defaultValue attribute represents the HTML value of the attribute
+ when the type attribute has the value of "Text", "File" or "Password".
+
+ Retrieve the defaultValue attribute of the 1st INPUT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-26091157"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdefaultvalue" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="input" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"input"'/>
+<assertSize collection="nodeList" size="9" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<defaultValue interface="HTMLInputElement" obj="testNode" var="vdefaultvalue"/>
+<assertEquals actual="vdefaultvalue" expected='"Password"' id="defaultValueLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLInputElement02.xml b/test/testcases/tests/level1/html/HTMLInputElement02.xml new file mode 100644 index 0000000..127337c --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLInputElement02.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLInputElement02">
+<metadata>
+<title>HTMLInputElement02</title>
+<creator>NIST</creator>
+<description>
+ The defaultChecked attribute represents the HTML checked attribute of
+ the element when the type attribute has the value checkbox or radio.
+
+ Retrieve the defaultValue attribute of the 4th INPUT element and
+ examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-20509171"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdefaultchecked" type="boolean" />
+<var name="doc" type="Document"/>
+<load var="doc" href="input" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"input"'/>
+<assertSize collection="nodeList" size="9" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="3"/>
+<defaultChecked interface="HTMLInputElement" obj="testNode" var="vdefaultchecked"/>
+<assertTrue actual="vdefaultchecked" id="defaultCheckedLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLInputElement03.xml b/test/testcases/tests/level1/html/HTMLInputElement03.xml new file mode 100644 index 0000000..93c994f --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLInputElement03.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLInputElement03">
+<metadata>
+<title>HTMLInputElement03</title>
+<creator>NIST</creator>
+<description>
+ The form attribute returns the FORM element containing this control.
+
+ Retrieve the form attribute of the 1st INPUT element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63239895"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vform" type="DOMString" />
+<var name="fNode" type="HTMLFormElement"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="input" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"input"'/>
+<assertSize collection="nodeList" size="9" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<form interface="HTMLInputElement" obj="testNode" var="fNode"/>
+<id obj="fNode" var="vform"/>
+<assertEquals actual="vform" expected='"form1"' id="formLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLInputElement04.xml b/test/testcases/tests/level1/html/HTMLInputElement04.xml new file mode 100644 index 0000000..58adad5 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLInputElement04.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLInputElement04">
+<metadata>
+<title>HTMLInputElement04</title>
+<creator>NIST</creator>
+<description>
+ The accept attribute is a comma-seperated list of content types that
+ a server processing this form will handle correctly.
+
+ Retrieve the accept attribute of the 9th INPUT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-15328520"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vaccept" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="input" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"input"'/>
+<assertSize collection="nodeList" size="9" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="8"/>
+<accept interface="HTMLInputElement" obj="testNode" var="vaccept"/>
+<assertEquals actual="vaccept" expected='"GIF,JPEG"' id="acceptLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLInputElement05.xml b/test/testcases/tests/level1/html/HTMLInputElement05.xml new file mode 100644 index 0000000..c5d8351 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLInputElement05.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLInputElement05">
+<metadata>
+<title>HTMLInputElement05</title>
+<creator>NIST</creator>
+<description>
+ The accessKey attribute is a single character access key to give access
+ to the form control.
+
+ Retrieve the accessKey attribute of the 2nd INPUT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59914154"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vaccesskey" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="input" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"input"'/>
+<assertSize collection="nodeList" size="9" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<accessKey interface="HTMLInputElement" obj="testNode" var="vaccesskey"/>
+<assertEquals actual="vaccesskey" expected='"c"' id="accesskeyLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLInputElement06.xml b/test/testcases/tests/level1/html/HTMLInputElement06.xml new file mode 100644 index 0000000..6dc9d11 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLInputElement06.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLInputElement06"> +<metadata> +<title>HTMLInputElement06</title> +<creator>NIST</creator> +<description> + The align attribute aligns this object(vertically or horizontally) + with respect to the surrounding text. + + Retrieve the align attribute of the 4th INPUT element and examine + its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-96991182"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="valign" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="input" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"input"'/> +<assertSize collection="nodeList" size="9" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="3"/> +<align interface="HTMLInputElement" obj="testNode" var="valign"/> +<assertEquals actual="valign" expected='"bottom"' id="alignLink" ignoreCase="true"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLInputElement07.xml b/test/testcases/tests/level1/html/HTMLInputElement07.xml new file mode 100644 index 0000000..8f7e4b7 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLInputElement07.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLInputElement07">
+<metadata>
+<title>HTMLInputElement07</title>
+<creator>NIST</creator>
+<description>
+ The alt attribute alternates text for user agents not rendering the
+ normal content of this element.
+
+ Retrieve the alt attribute of the 1st INPUT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-92701314"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="valt" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="input" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"input"'/>
+<assertSize collection="nodeList" size="9" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<alt interface="HTMLInputElement" obj="testNode" var="valt"/>
+<assertEquals actual="valt" expected='"Password entry"' id="altLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLInputElement08.xml b/test/testcases/tests/level1/html/HTMLInputElement08.xml new file mode 100644 index 0000000..3aa3a26 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLInputElement08.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLInputElement08">
+<metadata>
+<title>HTMLInputElement08</title>
+<creator>NIST</creator>
+<description>
+ The checked attribute represents the current state of the corresponding
+ form control when type has the value Radio or Checkbox.
+
+ Retrieve the accept attribute of the 3rd INPUT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-30233917"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vchecked" type="boolean" />
+<var name="doc" type="Document"/>
+<load var="doc" href="input" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"input"'/>
+<assertSize collection="nodeList" size="9" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="2"/>
+<checked interface="HTMLInputElement" obj="testNode" var="vchecked"/>
+<assertTrue actual="vchecked" id="checkedLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLInputElement09.xml b/test/testcases/tests/level1/html/HTMLInputElement09.xml new file mode 100644 index 0000000..67b1d3b --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLInputElement09.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLInputElement09">
+<metadata>
+<title>HTMLInputElement09</title>
+<creator>NIST</creator>
+<description>
+ The disabled attribute has a TRUE value if it is explicitly set.
+
+ Retrieve the disabled attribute of the 7th INPUT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-50886781"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdisabled" type="boolean" />
+<var name="doc" type="Document"/>
+<load var="doc" href="input" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"input"'/>
+<assertSize collection="nodeList" size="9" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="6"/>
+<disabled interface="HTMLInputElement" obj="testNode" var="vdisabled"/>
+<assertTrue actual="vdisabled" id="disabledLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLInputElement10.xml b/test/testcases/tests/level1/html/HTMLInputElement10.xml new file mode 100644 index 0000000..7f28589 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLInputElement10.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLInputElement10">
+<metadata>
+<title>HTMLInputElement10</title>
+<creator>NIST</creator>
+<description>
+ The maxLength attribute is the maximum number of text characters for text
+ fields, when type has the value of Text or Password.
+
+ Retrieve the maxLenght attribute of the 1st INPUT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-54719353"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vmaxlength" type="int" />
+<var name="doc" type="Document"/>
+<load var="doc" href="input" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"input"'/>
+<assertSize collection="nodeList" size="9" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<maxLength interface="HTMLInputElement" obj="testNode" var="vmaxlength"/>
+<assertEquals actual="vmaxlength" expected="5" id="maxlengthLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLInputElement11.xml b/test/testcases/tests/level1/html/HTMLInputElement11.xml new file mode 100644 index 0000000..3113f9a --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLInputElement11.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLInputElement11">
+<metadata>
+<title>HTMLInputElement11</title>
+<creator>NIST</creator>
+<description>
+ The name attribute is the form control or object name when submitted with
+ a form.
+
+ Retrieve the name attribute of the 1st INPUT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-89658498"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vname" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="input" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"input"'/>
+<assertSize collection="nodeList" size="9" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<name interface="HTMLInputElement" obj="testNode" var="vname"/>
+<assertEquals actual="vname" expected='"Password"' id="nameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLInputElement12.xml b/test/testcases/tests/level1/html/HTMLInputElement12.xml new file mode 100644 index 0000000..d4cd099 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLInputElement12.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLInputElement12">
+<metadata>
+<title>HTMLInputElement12</title>
+<creator>NIST</creator>
+<description>
+ The readOnly attribute indicates that this control is read-only when
+ type has a value of text or password only.
+
+ Retrieve the readOnly attribute of the 1st INPUT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-88461592"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vreadonly" type="boolean" />
+<var name="doc" type="Document"/>
+<load var="doc" href="input" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"input"'/>
+<assertSize collection="nodeList" size="9" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<readOnly interface="HTMLInputElement" obj="testNode" var="vreadonly"/>
+<assertTrue actual="vreadonly" id="readonlyLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLInputElement13.xml b/test/testcases/tests/level1/html/HTMLInputElement13.xml new file mode 100644 index 0000000..2c906d9 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLInputElement13.xml @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLInputElement13"> +<metadata> +<title>HTMLInputElement13</title> +<creator>NIST</creator> +<description> + 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. + + This test is incompatible with L2 HTML implementations due to a change in the type of the attribute. + +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-79659438"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=504"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vsize" type="DOMString" /> +<var name="doc" type="Document"/> +<var name="domImpl" type="DOMImplementation"/> +<var name="hasHTML2" type="boolean"/> +<load var="doc" href="input" willBeModified="false"/> +<implementation var="domImpl" obj="doc"/> +<hasFeature var="hasHTML2" obj="domImpl" feature='"HTML"' version='"2.0"'/> +<if><isFalse value="hasHTML2"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"input"'/> +<assertSize collection="nodeList" size="9" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<size interface="HTMLInputElement" obj="testNode" var="vsize"/> +<assertEquals actual="vsize" expected='"25"' id="sizeLink" ignoreCase="false"/> +</if> +</test> diff --git a/test/testcases/tests/level1/html/HTMLInputElement14.xml b/test/testcases/tests/level1/html/HTMLInputElement14.xml new file mode 100644 index 0000000..82f022e --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLInputElement14.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLInputElement14">
+<metadata>
+<title>HTMLInputElement14</title>
+<creator>NIST</creator>
+<description>
+ The src attribute specifies the location of the image to decorate the
+ graphical submit button when the type has the value Image.
+
+ Retrieve the src attribute of the 8th INPUT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-97320704"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vsrc" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="input" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"input"'/>
+<assertSize collection="nodeList" size="9" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="7"/>
+<src interface="HTMLInputElement" obj="testNode" var="vsrc"/>
+<assertURIEquals actual="vsrc" file='"submit.gif"' id="srcLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLInputElement15.xml b/test/testcases/tests/level1/html/HTMLInputElement15.xml new file mode 100644 index 0000000..a9a3c78 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLInputElement15.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLInputElement15">
+<metadata>
+<title>HTMLInputElement15</title>
+<creator>NIST</creator>
+<description>
+ The tabIndex attribute is an index that represents the elements position
+ in the tabbing order.
+
+ Retrieve the tabIndex attribute of the 3rd INPUT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-62176355"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtabindex" type="int" />
+<var name="doc" type="Document"/>
+<load var="doc" href="input" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"input"'/>
+<assertSize collection="nodeList" size="9" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="2"/>
+<tabIndex interface="HTMLInputElement" obj="testNode" var="vtabindex"/>
+<assertEquals actual="vtabindex" expected="9" id="tabindexLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLInputElement16.xml b/test/testcases/tests/level1/html/HTMLInputElement16.xml new file mode 100644 index 0000000..119a8b0 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLInputElement16.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLInputElement16">
+<metadata>
+<title>HTMLInputElement16</title>
+<creator>NIST</creator>
+<description>
+ The type attribute is the type of control created.
+
+ Retrieve the type attribute of the 1st INPUT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-62883744"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtype" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="input" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"input"'/>
+<assertSize collection="nodeList" size="9" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<type interface="HTMLInputElement" obj="testNode" var="vtype"/>
+<assertEquals actual="vtype" expected='"password"' id="typeLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLInputElement17.xml b/test/testcases/tests/level1/html/HTMLInputElement17.xml new file mode 100644 index 0000000..163eee4 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLInputElement17.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLInputElement17">
+<metadata>
+<title>HTMLInputElement17</title>
+<creator>NIST</creator>
+<description>
+ The useMap attribute specifies the use of the client-side image map.
+
+ Retrieve the useMap attribute of the 8th INPUT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-32463706"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vusemap" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="input" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"input"'/>
+<assertSize collection="nodeList" size="9" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="7"/>
+<useMap interface="HTMLInputElement" obj="testNode" var="vusemap"/>
+<assertEquals actual="vusemap" expected='"#submit-map"' id="usemapLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLInputElement18.xml b/test/testcases/tests/level1/html/HTMLInputElement18.xml new file mode 100644 index 0000000..85aca78 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLInputElement18.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLInputElement18">
+<metadata>
+<title>HTMLInputElement18</title>
+<creator>NIST</creator>
+<description>
+ The value attribute is the current content of the corresponding form
+ control when the type attribute has the value Text, File or Password.
+
+ Retrieve the value attribute of the 2nd INPUT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-49531485"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vvalue" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="input" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"input"'/>
+<assertSize collection="nodeList" size="9" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<value interface="HTMLInputElement" obj="testNode" var="vvalue"/>
+<assertEquals actual="vvalue" expected='"ReHire"' id="valueLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLInputElement19.xml b/test/testcases/tests/level1/html/HTMLInputElement19.xml new file mode 100644 index 0000000..ad4a00c --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLInputElement19.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +Copyright (c) 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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLInputElement19"> +<metadata> +<title>HTMLInputElement19</title> +<creator>Curt Arnold</creator> +<description> +HTMLInputElement.blur should surrender input focus. +</description> +<date qualifier="created">2004-03-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-26838235"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="doc" type="Document"/> +<load var="doc" href="input" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"input"'/> +<assertSize collection="nodeList" size="9" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<blur interface="HTMLInputElement" obj="testNode"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLInputElement20.xml b/test/testcases/tests/level1/html/HTMLInputElement20.xml new file mode 100644 index 0000000..141473f --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLInputElement20.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +Copyright (c) 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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLInputElement20"> +<metadata> +<title>HTMLInputElement20</title> +<creator>Curt Arnold</creator> +<description> +HTMLInputElement.focus should capture input focus. +</description> +<date qualifier="created">2004-03-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-65996295"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="doc" type="Document"/> +<load var="doc" href="input" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"input"'/> +<assertSize collection="nodeList" size="9" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<focus interface="HTMLInputElement" obj="testNode"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLInputElement21.xml b/test/testcases/tests/level1/html/HTMLInputElement21.xml new file mode 100644 index 0000000..57fbc76 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLInputElement21.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +Copyright (c) 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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLInputElement21"> +<metadata> +<title>HTMLInputElement21</title> +<creator>Curt Arnold</creator> +<description> +HTMLInputElement.click should change the state of checked on a radio button. +</description> +<date qualifier="created">2004-03-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-2651361"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="doc" type="Document"/> +<var name="checked" type="boolean"/> +<load var="doc" href="input" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"input"'/> +<assertSize collection="nodeList" size="9" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<checked var="checked" obj="testNode"/> +<assertFalse actual="checked" id="notCheckedBeforeClick"/> +<click interface="HTMLInputElement" obj="testNode"/> +<checked var="checked" obj="testNode"/> +<assertTrue actual="checked" id="checkedAfterClick"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLInputElement22.xml b/test/testcases/tests/level1/html/HTMLInputElement22.xml new file mode 100644 index 0000000..0d65890 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLInputElement22.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +Copyright (c) 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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLInputElement22"> +<metadata> +<title>HTMLInputElement22</title> +<creator>Curt Arnold</creator> +<description> +HTMLInputElement.select should select the contents of a text area. +</description> +<date qualifier="created">2004-03-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-34677168"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="doc" type="Document"/> +<var name="checked" type="boolean"/> +<load var="doc" href="input" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"input"'/> +<assertSize collection="nodeList" size="9" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<select interface="HTMLInputElement" obj="testNode"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLIsIndexElement01.xml b/test/testcases/tests/level1/html/HTMLIsIndexElement01.xml new file mode 100644 index 0000000..e0da920 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLIsIndexElement01.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLIsIndexElement01"> +<metadata> +<title>HTMLIsIndexElement01</title> +<creator>NIST</creator> +<description> + The form attribute returns the FORM element containing this control. + + Retrieve the form attribute and examine its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-87069980"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vform" type="DOMString" /> +<var name="fNode" type="HTMLFormElement"/> +<var name="doc" type="Document"/> +<var name="prompt" type="DOMString"/> +<load var="doc" href="isindex" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"isindex"'/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<assertNotNull id="notnull" actual="testNode"/> +<!-- check contents of prompt --> +<prompt interface="HTMLIsIndexElement" var="prompt" obj="testNode"/> +<assertEquals id="IsIndex.Prompt" actual="prompt" expected='"New Employee: "' ignoreCase="false"/> +<form interface="HTMLIsIndexElement" obj="testNode" var="fNode"/> +<assertNotNull id="formNotNull" actual="fNode"/> +<id obj="fNode" var="vform"/> +<assertEquals actual="vform" expected='"form1"' id="formLink" ignoreCase="false"/> +<assertSize collection="nodeList" size="2" id="Asize"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLIsIndexElement02.xml b/test/testcases/tests/level1/html/HTMLIsIndexElement02.xml new file mode 100644 index 0000000..af0cf07 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLIsIndexElement02.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLIsIndexElement02"> +<metadata> +<title>HTMLIsIndexElement02</title> +<creator>NIST</creator> +<description> + The form attribute returns null if control in not within the context of + form. + + Retrieve the form attribute and examine its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-87069980"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vform" type="HTMLFormElement" /> +<var name="doc" type="Document"/> +<var name="prompt" type="DOMString"/> +<load var="doc" href="isindex" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"isindex"'/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<assertNotNull id="notnull" actual="testNode"/> +<!-- check contents of prompt --> +<prompt interface="HTMLIsIndexElement" var="prompt" obj="testNode"/> +<assertEquals id="IsIndex.Prompt" actual="prompt" expected='"Old Employee: "' ignoreCase="false"/> +<!-- check form == null since not in context of a form --> +<form interface="HTMLIsIndexElement" obj="testNode" var="vform"/> +<assertNull actual="vform" id="formNullLink"/> +<!-- check that we found 2 isindex elements --> +<assertSize collection="nodeList" size="2" id="Asize"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLIsIndexElement03.xml b/test/testcases/tests/level1/html/HTMLIsIndexElement03.xml new file mode 100644 index 0000000..cc91d78 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLIsIndexElement03.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLIsIndexElement03"> +<metadata> +<title>HTMLIsIndexElement03</title> +<creator>NIST</creator> +<description> + The prompt attribute specifies the prompt message. + + Retrieve the prompt attribute of the 1st isindex element and examine + its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-33589862"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vprompt" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="isindex" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"isindex"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<prompt interface="HTMLIsIndexElement" obj="testNode" var="vprompt"/> +<assertEquals actual="vprompt" expected='"New Employee: "' id="promptLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLLIElement01.xml b/test/testcases/tests/level1/html/HTMLLIElement01.xml new file mode 100644 index 0000000..2fe59d5 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLLIElement01.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLLIElement01">
+<metadata>
+<title>HTMLLIElement01</title>
+<creator>NIST</creator>
+<description>
+ The type attribute is a list item bullet style.
+
+ Retrieve the type attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52387668"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtype" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="li" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"li"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<type interface="HTMLLIElement" obj="testNode" var="vtype"/>
+<assertEquals actual="vtype" expected='"square"' id="typeLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLLIElement02.xml b/test/testcases/tests/level1/html/HTMLLIElement02.xml new file mode 100644 index 0000000..a397773 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLLIElement02.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLLIElement02">
+<metadata>
+<title>HTMLLIElement02</title>
+<creator>NIST</creator>
+<description>
+ The value attribute is a reset sequence number when used in OL.
+
+ Retrieve the value attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-45496263"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vvalue" type="int"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="li" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"li"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<value interface="HTMLLIElement" obj="testNode" var="vvalue"/>
+<assertEquals actual="vvalue" expected="2" id="valueLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLLabelElement01.xml b/test/testcases/tests/level1/html/HTMLLabelElement01.xml new file mode 100644 index 0000000..2111d6e --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLLabelElement01.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLLabelElement01">
+<metadata>
+<title>HTMLLabelElement01</title>
+<creator>NIST</creator>
+<description>
+ The form attribute returns the FORM element containing this control.
+
+ Retrieve the form attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-32480901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vform" type="DOMString" />
+<var name="fNode" type="HTMLFormElement"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="label" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"label"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<form interface="HTMLLabelElement" obj="testNode" var="fNode"/>
+<id obj="fNode" var="vform"/>
+<assertEquals actual="vform" expected='"form1"' id="formLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLLabelElement02.xml b/test/testcases/tests/level1/html/HTMLLabelElement02.xml new file mode 100644 index 0000000..444a753 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLLabelElement02.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLLabelElement02">
+<metadata>
+<title>HTMLLabelElement02</title>
+<creator>NIST</creator>
+<description>
+ The form attribute returns null if control in not within the context of
+ form.
+
+ Retrieve the form attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-32480901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vform" type="HTMLFormElement" />
+<var name="doc" type="Document"/>
+<load var="doc" href="label" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"label"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<form interface="HTMLLabelElement" obj="testNode" var="vform"/>
+<assertNull actual="vform" id="formNullLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLLabelElement03.xml b/test/testcases/tests/level1/html/HTMLLabelElement03.xml new file mode 100644 index 0000000..b4daacf --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLLabelElement03.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLLabelElement03">
+<metadata>
+<title>HTMLLabelElement03</title>
+<creator>NIST</creator>
+<description>
+ The accessKey attribute is a single character access key to give access
+ to the form control.
+
+ Retrieve the accessKey attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-43589892"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vaccesskey" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="label" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"label"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<accessKey interface="HTMLLabelElement" obj="testNode" var="vaccesskey"/>
+<assertEquals actual="vaccesskey" expected='"b"' id="accesskeyLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLLabelElement04.xml b/test/testcases/tests/level1/html/HTMLLabelElement04.xml new file mode 100644 index 0000000..ae22b88 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLLabelElement04.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLLabelElement04">
+<metadata>
+<title>HTMLLabelElement04</title>
+<creator>NIST</creator>
+<description>
+ The htmlFor attribute links this label with another form control by
+ id attribute.
+
+ Retrieve the htmlFor attribute of the first LABEL element
+ and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-96509813"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vhtmlfor" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="label" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"label"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<htmlFor interface="HTMLLabelElement" obj="testNode" var="vhtmlfor"/>
+<assertEquals actual="vhtmlfor" expected='"input1"' id="htmlForLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLLegendElement01.xml b/test/testcases/tests/level1/html/HTMLLegendElement01.xml new file mode 100644 index 0000000..f478379 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLLegendElement01.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLLegendElement01">
+<metadata>
+<title>HTMLLLegendElement01</title>
+<creator>NIST</creator>
+<description>
+ The form attribute returns the FORM element containing this control.
+
+ Retrieve the form attribute from the first LEGEND element
+ and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-29594519"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vform" type="DOMString" />
+<var name="fNode" type="HTMLFormElement"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="legend" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"legend"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<form interface="HTMLLegendElement" obj="testNode" var="fNode"/>
+<id obj="fNode" var="vform"/>
+<assertEquals actual="vform" expected='"form1"' id="formLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLLegendElement02.xml b/test/testcases/tests/level1/html/HTMLLegendElement02.xml new file mode 100644 index 0000000..19cf87f --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLLegendElement02.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLLegendElement02">
+<metadata>
+<title>HTMLLegendElement02</title>
+<creator>NIST</creator>
+<description>
+ The form attribute returns null if control in not within the context of
+ form.
+
+ Retrieve the second ELEMENT and examine its form element.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-29594519"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vform" type="HTMLFormElement" />
+<var name="doc" type="Document"/>
+<load var="doc" href="legend" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"legend"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<form interface="HTMLLegendElement" obj="testNode" var="vform"/>
+<assertNull actual="vform" id="formNullLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLLegendElement03.xml b/test/testcases/tests/level1/html/HTMLLegendElement03.xml new file mode 100644 index 0000000..a3747fd --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLLegendElement03.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLLegendElement03">
+<metadata>
+<title>HTMLLegendElement03</title>
+<creator>NIST</creator>
+<description>
+ The accessKey attribute is a single character access key to give access
+ to the form control.
+
+ Retrieve the accessKey attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-11297832"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vaccesskey" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="legend" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"legend"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<accessKey interface="HTMLLegendElement" obj="testNode" var="vaccesskey"/>
+<assertEquals actual="vaccesskey" expected='"b"' id="accesskeyLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLLegendElement04.xml b/test/testcases/tests/level1/html/HTMLLegendElement04.xml new file mode 100644 index 0000000..fa3e76c --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLLegendElement04.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLLegendElement04">
+<metadata>
+<title>HTMLLegendElement04</title>
+<creator>NIST</creator>
+<description>
+ The align attribute specifies the text alignment relative to FIELDSET.
+
+ Retrieve the align attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-79538067"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="valign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="legend" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"legend"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<align interface="HTMLLegendElement" obj="testNode" var="valign"/>
+<assertEquals actual="valign" expected='"top"' id="alignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLLinkElement01.xml b/test/testcases/tests/level1/html/HTMLLinkElement01.xml new file mode 100644 index 0000000..c9e2d16 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLLinkElement01.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLLinkElement01"> +<metadata> +<title>HTMLLinkElement01</title> +<creator>NIST</creator> +<description> + The disabled attribute enables/disables the link. + + Retrieve the disabled attribute and examine its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-87355129"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vdisabled" type="boolean" /> +<var name="doc" type="Document"/> +<load var="doc" href="link" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"link"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<disabled interface="HTMLLinkElement" obj="testNode" var="vdisabled"/> +<assertFalse actual="vdisabled" id="disabled"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLLinkElement02.xml b/test/testcases/tests/level1/html/HTMLLinkElement02.xml new file mode 100644 index 0000000..ab0105a --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLLinkElement02.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLLinkElement02">
+<metadata>
+<title>HTMLLinkElement02</title>
+<creator>NIST</creator>
+<description>
+ The charset attribute indicates the character encoding of the linked
+ resource.
+
+ Retrieve the charset attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63954491"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vcharset" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="link" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"link"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<charset interface="HTMLLinkElement" obj="testNode" var="vcharset"/>
+<assertEquals actual="vcharset" expected='"Latin-1"' id="charsetLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLLinkElement03.xml b/test/testcases/tests/level1/html/HTMLLinkElement03.xml new file mode 100644 index 0000000..fff36db --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLLinkElement03.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLLinkElement03">
+<metadata>
+<title>HTMLLinkElement03</title>
+<creator>NIST</creator>
+<description>
+ The href attribute specifies the URI of the linked resource.
+
+ Retrieve the href attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-33532588"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vhref" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="link" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"link"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<href interface="HTMLLinkElement" obj="testNode" var="vhref"/>
+<assertURIEquals actual="vhref" file='"glossary.html"' id="hrefLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLLinkElement04.xml b/test/testcases/tests/level1/html/HTMLLinkElement04.xml new file mode 100644 index 0000000..924d945 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLLinkElement04.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLLinkElement04">
+<metadata>
+<title>HTMLLinkElement04</title>
+<creator>NIST</creator>
+<description>
+ The hreflang attribute specifies the language code of the linked resource.
+
+ Retrieve the hreflang attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-85145682"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vhreflang" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="link" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"link"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<hreflang interface="HTMLLinkElement" obj="testNode" var="vhreflang"/>
+<assertEquals actual="vhreflang" expected='"en"' id="hreflangLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLLinkElement05.xml b/test/testcases/tests/level1/html/HTMLLinkElement05.xml new file mode 100644 index 0000000..cec4f35 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLLinkElement05.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLLinkElement05">
+<metadata>
+<title>HTMLLinkElement05</title>
+<creator>NIST</creator>
+<description>
+ The media attribute specifies the targeted media.
+
+ Retrieve the media attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-75813125"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vmedia" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="link" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"link"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<media interface="HTMLLinkElement" obj="testNode" var="vmedia"/>
+<assertEquals actual="vmedia" expected='"screen"' id="mediaLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLLinkElement06.xml b/test/testcases/tests/level1/html/HTMLLinkElement06.xml new file mode 100644 index 0000000..400e8ed --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLLinkElement06.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLLinkElement06">
+<metadata>
+<title>HTMLLinkElement06</title>
+<creator>NIST</creator>
+<description>
+ The rel attribute specifies the forward link type.
+
+ Retrieve the rel attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-41369587"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vrel" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="link" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"link"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<rel interface="HTMLLinkElement" obj="testNode" var="vrel"/>
+<assertEquals actual="vrel" expected='"Glossary"' id="relLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLLinkElement07.xml b/test/testcases/tests/level1/html/HTMLLinkElement07.xml new file mode 100644 index 0000000..71bbd8d --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLLinkElement07.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLLinkElement07">
+<metadata>
+<title>HTMLLinkElement07</title>
+<creator>NIST</creator>
+<description>
+ The rev attribute specifies the reverse link type.
+
+ Retrieve the rev attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-40715461"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vrev" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="link" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"link"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<rev interface="HTMLLinkElement" obj="testNode" var="vrev"/>
+<assertEquals actual="vrev" expected='"stylesheet"' id="revLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLLinkElement08.xml b/test/testcases/tests/level1/html/HTMLLinkElement08.xml new file mode 100644 index 0000000..657237d --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLLinkElement08.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLLinkElement08">
+<metadata>
+<title>HTMLLinkElement08</title>
+<creator>NIST</creator>
+<description>
+ The type attribute specifies the advisory content type.
+
+ Retrieve the type attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-32498296"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtype" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="link" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"link"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<type interface="HTMLLinkElement" obj="testNode" var="vtype"/>
+<assertEquals actual="vtype" expected='"text/html"' id="typeLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLLinkElement09.xml b/test/testcases/tests/level1/html/HTMLLinkElement09.xml new file mode 100644 index 0000000..6fb55a8 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLLinkElement09.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLLinkElement09"> +<metadata> +<title>HTMLLinkElement09</title> +<creator>NIST</creator> +<description> + The target attribute specifies the frame to render the resource in. + + Retrieve the target attribute and examine it's value. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-84183095"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vtarget" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="link2" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"link"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<target interface="HTMLLinkElement" obj="testNode" var="vtarget"/> +<assertEquals actual="vtarget" expected='"dynamic"' id="targetLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLMapElement01.xml b/test/testcases/tests/level1/html/HTMLMapElement01.xml new file mode 100644 index 0000000..01e2459 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLMapElement01.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLMapElement01">
+<metadata>
+<title>HTMLMapElement01</title>
+<creator>NIST</creator>
+<description>
+ The areas attribute is a list of areas defined for the image map.
+
+ Retrieve the areas attribute and find the number of areas defined.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-71838730"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="areasnodeList" type="HTMLCollection"/>
+<var name="testNode" type="Node"/>
+<var name="vareas" type="int" />
+<var name="doc" type="Document"/>
+<load var="doc" href="map" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"map"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<areas interface="HTMLMapElement" obj="testNode" var="areasnodeList"/>
+<length interface="HTMLCollection" obj="areasnodeList" var="vareas"/>
+<assertEquals actual="vareas" expected="3" id="areasLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLMapElement02.xml b/test/testcases/tests/level1/html/HTMLMapElement02.xml new file mode 100644 index 0000000..fc83993 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLMapElement02.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLMapElement02"> +<metadata> +<title>HTMLMapElement02</title> +<creator>NIST</creator> +<description> + The name attribute names the map(for use with usemap). + + Retrieve the name attribute and examine its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52696514"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vname" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="map" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"map"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<name interface="HTMLMapElement" obj="testNode" var="vname"/> +<assertEquals actual="vname" expected='"mapid"' id="mapLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLMenuElement01.xml b/test/testcases/tests/level1/html/HTMLMenuElement01.xml new file mode 100644 index 0000000..509a114 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLMenuElement01.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLMenuElement01">
+<metadata>
+<title>HTMLMenuElement01</title>
+<creator>NIST</creator>
+<description>
+ The compact attribute specifies a boolean value on whether to display
+ the list more compactly.
+
+ Retrieve the compact attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-68436464"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vcompact" type="boolean" />
+<var name="doc" type="Document"/>
+<load var="doc" href="menu" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"menu"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<compact interface="HTMLMenuElement" obj="testNode" var="vcompact"/>
+<assertTrue actual="vcompact" id="compactLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLMetaElement01.xml b/test/testcases/tests/level1/html/HTMLMetaElement01.xml new file mode 100644 index 0000000..5ee3bcc --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLMetaElement01.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLMetaElement01">
+<metadata>
+<title>HTMLMetaElement01</title>
+<creator>NIST</creator>
+<description>
+ The content attribute specifies associated information.
+
+ Retrieve the content attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-87670826"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vcontent" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="meta" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"meta"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<content interface="HTMLMetaElement" obj="testNode" var="vcontent"/>
+<assertEquals actual="vcontent" expected='"text/html; CHARSET=utf-8"' id="contentLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLMetaElement02.xml b/test/testcases/tests/level1/html/HTMLMetaElement02.xml new file mode 100644 index 0000000..11e7a09 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLMetaElement02.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLMetaElement02">
+<metadata>
+<title>HTMLMetaElement02</title>
+<creator>NIST</creator>
+<description>
+ The httpEquiv attribute specifies an HTTP respnse header name.
+
+ Retrieve the httpEquiv attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-77289449"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vhttpequiv" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="meta" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"meta"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<httpEquiv interface="HTMLMetaElement" obj="testNode" var="vhttpequiv"/>
+<assertEquals actual="vhttpequiv" expected='"Content-Type"' id="httpEquivLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLMetaElement03.xml b/test/testcases/tests/level1/html/HTMLMetaElement03.xml new file mode 100644 index 0000000..ab3afc7 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLMetaElement03.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLMetaElement03">
+<metadata>
+<title>HTMLMetaElement03</title>
+<creator>NIST</creator>
+<description>
+ The name attribute specifies the meta information name.
+
+ Retrieve the name attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-31037081"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vname" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="meta" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"meta"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<name interface="HTMLMetaElement" obj="testNode" var="vname"/>
+<assertEquals actual="vname" expected='"Meta-Name"' id="nameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLMetaElement04.xml b/test/testcases/tests/level1/html/HTMLMetaElement04.xml new file mode 100644 index 0000000..14ce0eb --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLMetaElement04.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLMetaElement04">
+<metadata>
+<title>HTMLMetaElement04</title>
+<creator>NIST</creator>
+<description>
+ The scheme attribute specifies a select form of content.
+
+ Retrieve the scheme attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-35993789"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vscheme" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="meta" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"meta"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<scheme interface="HTMLMetaElement" obj="testNode" var="vscheme"/>
+<assertEquals actual="vscheme" expected='"NIST"' id="schemeLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLModElement01.xml b/test/testcases/tests/level1/html/HTMLModElement01.xml new file mode 100644 index 0000000..616bc36 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLModElement01.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLModElement01">
+<metadata>
+<title>HTMLModElement01</title>
+<creator>NIST</creator>
+<description>
+ The cite attribute specifies an URI designating a document that describes
+ the reason for the change.
+
+ Retrieve the cite attribute of the INS element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-75101708"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vcite" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="mod" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"ins"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<cite interface="HTMLModElement" obj="testNode" var="vcite"/>
+<assertURIEquals actual="vcite" file='"ins-reasons.html"' id="citeLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLModElement02.xml b/test/testcases/tests/level1/html/HTMLModElement02.xml new file mode 100644 index 0000000..bcb8c11 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLModElement02.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLModElement02">
+<metadata>
+<title>HTMLModElement02</title>
+<creator>NIST</creator>
+<description>
+ The dateTime attribute specifies the date and time of the change.
+
+ Retrieve the dateTime attribute of the INS element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-88432678"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdatetime" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="mod" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"ins"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dateTime interface="HTMLModElement" obj="testNode" var="vdatetime"/>
+<assertEquals actual="vdatetime" expected='"January 1, 2002"' id="dateTimeLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLModElement03.xml b/test/testcases/tests/level1/html/HTMLModElement03.xml new file mode 100644 index 0000000..82f85b0 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLModElement03.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLModElement03">
+<metadata>
+<title>HTMLModElement03</title>
+<creator>NIST</creator>
+<description>
+ The cite attribute specifies an URI designating a document that describes
+ the reason for the change.
+
+ Retrieve the cite attribute of the DEL element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-75101708"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vcite" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="mod" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"del"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<cite interface="HTMLModElement" obj="testNode" var="vcite"/>
+<assertURIEquals actual="vcite" file='"del-reasons.html"' id="citeLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLModElement04.xml b/test/testcases/tests/level1/html/HTMLModElement04.xml new file mode 100644 index 0000000..4220ba5 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLModElement04.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLModElement04">
+<metadata>
+<title>HTMLModElement04</title>
+<creator>NIST</creator>
+<description>
+ The dateTime attribute specifies the date and time of the change.
+
+ Retrieve the dateTime attribute of the DEL element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-88432678"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdatetime" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="mod" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"del"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<dateTime interface="HTMLModElement" obj="testNode" var="vdatetime"/>
+<assertEquals actual="vdatetime" expected='"January 2, 2002"' id="dateTimeLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLOListElement01.xml b/test/testcases/tests/level1/html/HTMLOListElement01.xml new file mode 100644 index 0000000..7b053bf --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLOListElement01.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLOListElement01">
+<metadata>
+<title>HTMLOListElement01</title>
+<creator>NIST</creator>
+<description>
+ The compact attribute specifies a boolean value on whether to display
+ the list more compactly.
+
+ Retrieve the compact attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-76448506"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vcompact" type="boolean" />
+<var name="doc" type="Document"/>
+<load var="doc" href="olist" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"ol"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<compact interface="HTMLOListElement" obj="testNode" var="vcompact"/>
+<assertTrue actual="vcompact" id="compactLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLOListElement02.xml b/test/testcases/tests/level1/html/HTMLOListElement02.xml new file mode 100644 index 0000000..85b78d4 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLOListElement02.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLOListElement02">
+<metadata>
+<title>HTMLOListElement02</title>
+<creator>NIST</creator>
+<description>
+ The start attribute specifies the starting sequence number.
+
+ Retrieve the start attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-14793325"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vstart" type="int" />
+<var name="doc" type="Document"/>
+<load var="doc" href="olist" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"ol"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<start interface="HTMLOListElement" obj="testNode" var="vstart"/>
+<assertEquals actual="vstart" expected="1" id="startLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLOListElement03.xml b/test/testcases/tests/level1/html/HTMLOListElement03.xml new file mode 100644 index 0000000..e6306ec --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLOListElement03.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLOListElement03">
+<metadata>
+<title>HTMLOListElement03</title>
+<creator>NIST</creator>
+<description>
+ The type attribute specifies the numbering style.
+
+ Retrieve the type attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-40971103"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtype" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="olist" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"ol"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<type interface="HTMLOListElement" obj="testNode" var="vtype"/>
+<assertEquals actual="vtype" expected='"1"' id="typeLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLObjectElement01.xml b/test/testcases/tests/level1/html/HTMLObjectElement01.xml new file mode 100644 index 0000000..9b39aaf --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLObjectElement01.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLObjectElement01">
+<metadata>
+<title>HTMLObjectElement01</title>
+<creator>NIST</creator>
+<description>
+ The form attribute returns the FORM element containing this control.
+
+ Retrieve the form attribute and examine its value.
+</description>
+<contributor>Rick Rivello</contributor>
+<date qualifier="created">2002-07-19</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-46094773"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="fNode" type="HTMLFormElement"/>
+<var name="vform" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="object2" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<form interface="HTMLObjectElement" obj="testNode" var="fNode"/>
+<id obj="fNode" var="vform"/>
+<assertEquals actual="vform" expected='"object2"' id="idLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLObjectElement02.xml b/test/testcases/tests/level1/html/HTMLObjectElement02.xml new file mode 100644 index 0000000..52539a5 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLObjectElement02.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLObjectElement02"> +<metadata> +<title>HTMLObjectElement02</title> +<creator>NIST</creator> +<description> +The code attribute specifies an Applet class file. + +Retrieve the code attribute of the second OBJECT element and examine +its value. Should be "" since CODE is not a valid attribute for OBJECT. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-75241146"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vcode" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="object" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<code interface="HTMLObjectElement" obj="testNode" var="vcode"/> +<assertEquals actual="vcode" expected='""' id="codeLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLObjectElement03.xml b/test/testcases/tests/level1/html/HTMLObjectElement03.xml new file mode 100644 index 0000000..086f0d9 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLObjectElement03.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLObjectElement03">
+<metadata>
+<title>HTMLObjectElement03</title>
+<creator>NIST</creator>
+<description>
+ The align attribute specifies the alignment of this object with respect
+ to its surrounding text.
+
+ Retrieve the align attribute of the first OBJECT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-16962097"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="valign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="object" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<align interface="HTMLObjectElement" obj="testNode" var="valign"/>
+<assertEquals actual="valign" expected='"middle"' id="alignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLObjectElement04.xml b/test/testcases/tests/level1/html/HTMLObjectElement04.xml new file mode 100644 index 0000000..c4091ec --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLObjectElement04.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLObjectElement04">
+<metadata>
+<title>HTMLObjectElement04</title>
+<creator>NIST</creator>
+<description>
+ The archive attribute specifies a space-separated list of archives.
+
+ Retrieve the archive attribute of the first OBJECT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-47783837"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="varchive" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="object" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<archive interface="HTMLObjectElement" obj="testNode" var="varchive"/>
+<assertEquals actual="varchive" expected='""' id="archiveLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLObjectElement05.xml b/test/testcases/tests/level1/html/HTMLObjectElement05.xml new file mode 100644 index 0000000..5348c20 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLObjectElement05.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLObjectElement05">
+<metadata>
+<title>HTMLObjectElement05</title>
+<creator>NIST</creator>
+<description>
+ The border attribute specifies the widht of the border around the object.
+
+ Retrieve the border attribute of the first OBJECT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-82818419"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vborder" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="object" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<border interface="HTMLObjectElement" obj="testNode" var="vborder"/>
+<assertEquals actual="vborder" expected='"0"' id="borderLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLObjectElement06.xml b/test/testcases/tests/level1/html/HTMLObjectElement06.xml new file mode 100644 index 0000000..974fd88 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLObjectElement06.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLObjectElement06">
+<metadata>
+<title>HTMLObjectElement06</title>
+<creator>NIST</creator>
+<description>
+ The codeBase attribute specifies the base URI for the classid, data and
+ archive attributes.
+
+ Retrieve the codeBase attribute of the first OBJECT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-25709136"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vcodebase" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="object" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<codeBase interface="HTMLObjectElement" obj="testNode" var="vcodebase"/>
+<assertURIEquals actual="vcodebase" path='"//xw2k.sdct.itl.nist.gov/brady/dom/"' id="codebaseLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLObjectElement07.xml b/test/testcases/tests/level1/html/HTMLObjectElement07.xml new file mode 100644 index 0000000..8e2c5d2 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLObjectElement07.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLObjectElement07">
+<metadata>
+<title>HTMLObjectElement07</title>
+<creator>NIST</creator>
+<description>
+ The codeType attribute specifies the data downloaded via the classid
+ attribute.
+
+ Retrieve the codeType attribute of the second OBJECT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-19945008"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vcodetype" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="object" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<codeType interface="HTMLObjectElement" obj="testNode" var="vcodetype"/>
+<assertEquals actual="vcodetype" expected='"image/gif"' id="codetypeLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLObjectElement08.xml b/test/testcases/tests/level1/html/HTMLObjectElement08.xml new file mode 100644 index 0000000..f5fd14c --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLObjectElement08.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLObjectElement08">
+<metadata>
+<title>HTMLObjectElement08</title>
+<creator>NIST</creator>
+<description>
+ The data attribute specifies the URI of the location of the objects data.
+
+ Retrieve the data attribute of the first OBJECT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-81766986"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdata" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="object" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<data interface="HTMLObjectElement" obj="testNode" var="vdata"/>
+<assertURIEquals actual="vdata" file='"logo.gif"' id="dataLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLObjectElement09.xml b/test/testcases/tests/level1/html/HTMLObjectElement09.xml new file mode 100644 index 0000000..8c6ca17 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLObjectElement09.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLObjectElement09">
+<metadata>
+<title>HTMLObjectElement09</title>
+<creator>NIST</creator>
+<description>
+ The declare attribute specifies this object should be declared only and
+ no instance of it should be created.
+
+ Retrieve the declare attribute of the second OBJECT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-942770"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdeclare" type="boolean" />
+<var name="doc" type="Document"/>
+<load var="doc" href="object" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<declare interface="HTMLObjectElement" obj="testNode" var="vdeclare"/>
+<assertTrue actual="vdeclare" id="declareLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLObjectElement10.xml b/test/testcases/tests/level1/html/HTMLObjectElement10.xml new file mode 100644 index 0000000..b0f0c8b --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLObjectElement10.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLObjectElement10">
+<metadata>
+<title>HTMLObjectElement10</title>
+<creator>NIST</creator>
+<description>
+ The height attribute overrides the value of the actual height of the
+ object.
+
+ Retrieve the height attribute of the first OBJECT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-88925838"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vheight" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="object" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<height interface="HTMLObjectElement" obj="testNode" var="vheight"/>
+<assertEquals actual="vheight" expected='"60"' id="heightLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLObjectElement11.xml b/test/testcases/tests/level1/html/HTMLObjectElement11.xml new file mode 100644 index 0000000..9cfea39 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLObjectElement11.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLObjectElement11"> +<metadata> +<title>HTMLObjectElement11</title> +<creator>NIST</creator> +<description> + 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 + its value. + + This test is incompatible with L2 HTML implementations due to a change in the type of the attribute. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-17085376"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=504"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vhspace" type="DOMString" /> +<var name="doc" type="Document"/> +<var name="domImpl" type="DOMImplementation"/> +<var name="hasHTML2" type="boolean"/> +<load var="doc" href="object" willBeModified="false"/> +<implementation var="domImpl" obj="doc"/> +<hasFeature var="hasHTML2" obj="domImpl" feature='"HTML"' version='"2.0"'/> +<if><isFalse value="hasHTML2"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<hspace interface="HTMLObjectElement" obj="testNode" var="vhspace"/> +<assertEquals actual="vhspace" expected='"0"' id="hspaceLink" ignoreCase="false"/> +</if> +</test> diff --git a/test/testcases/tests/level1/html/HTMLObjectElement12.xml b/test/testcases/tests/level1/html/HTMLObjectElement12.xml new file mode 100644 index 0000000..8ef377d --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLObjectElement12.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLObjectElement12">
+<metadata>
+<title>HTMLObjectElement12</title>
+<creator>NIST</creator>
+<description>
+ The standby attribute specifies a message to render while loading the
+ object.
+
+ Retrieve the standby attribute of the first OBJECT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-25039673"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vstandby" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="object" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<standby interface="HTMLObjectElement" obj="testNode" var="vstandby"/>
+<assertEquals actual="vstandby" expected='"Loading Image ..."' id="alignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLObjectElement13.xml b/test/testcases/tests/level1/html/HTMLObjectElement13.xml new file mode 100644 index 0000000..0e764de --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLObjectElement13.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLObjectElement13">
+<metadata>
+<title>HTMLObjectElement13</title>
+<creator>NIST</creator>
+<description>
+ The tabIndex attribute specifies the elements position in the tabbing
+ order.
+
+ Retrieve the tabIndex attribute of the first OBJECT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-27083787"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtabindex" type="int" />
+<var name="doc" type="Document"/>
+<load var="doc" href="object" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<tabIndex interface="HTMLObjectElement" obj="testNode" var="vtabindex"/>
+<assertEquals actual="vtabindex" expected="0" id="tabIndexLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLObjectElement14.xml b/test/testcases/tests/level1/html/HTMLObjectElement14.xml new file mode 100644 index 0000000..0fa56d3 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLObjectElement14.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLObjectElement14">
+<metadata>
+<title>HTMLObjectElement14</title>
+<creator>NIST</creator>
+<description>
+ The type attribute specifies the content type for data downloaded via
+ the data attribute.
+
+ Retrieve the type attribute of the first OBJECT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-91665621"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtype" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="object" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<type interface="HTMLObjectElement" obj="testNode" var="vtype"/>
+<assertEquals actual="vtype" expected='"image/gif"' id="typeLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLObjectElement15.xml b/test/testcases/tests/level1/html/HTMLObjectElement15.xml new file mode 100644 index 0000000..07d3c97 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLObjectElement15.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLObjectElement15">
+<metadata>
+<title>HTMLObjectElement15</title>
+<creator>NIST</creator>
+<description>
+ The useMap attribute specifies the used client-side image map.
+
+ Retrieve the useMap attribute of the first OBJECT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-6649772"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vusemap" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="object" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<useMap interface="HTMLObjectElement" obj="testNode" var="vusemap"/>
+<assertEquals actual="vusemap" expected='"#DivLogo-map"' id="useMapLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLObjectElement16.xml b/test/testcases/tests/level1/html/HTMLObjectElement16.xml new file mode 100644 index 0000000..7702616 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLObjectElement16.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLObjectElement16"> +<metadata> +<title>HTMLObjectElement16</title> +<creator>NIST</creator> +<description> + 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 + its value. + + This test is incompatible with L2 HTML implementations due to a change in the type of the attribute. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-8682483"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=504"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vvspace" type="DOMString" /> +<var name="doc" type="Document"/> +<var name="domImpl" type="DOMImplementation"/> +<var name="hasHTML2" type="boolean"/> +<load var="doc" href="object" willBeModified="false"/> +<implementation var="domImpl" obj="doc"/> +<hasFeature var="hasHTML2" obj="domImpl" feature='"HTML"' version='"2.0"'/> +<if><isFalse value="hasHTML2"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<vspace interface="HTMLObjectElement" obj="testNode" var="vvspace"/> +<assertEquals actual="vvspace" expected='"0"' id="vspaceLink" ignoreCase="false"/> +</if> +</test> diff --git a/test/testcases/tests/level1/html/HTMLObjectElement17.xml b/test/testcases/tests/level1/html/HTMLObjectElement17.xml new file mode 100644 index 0000000..caabb88 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLObjectElement17.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLObjectElement17">
+<metadata>
+<title>HTMLObjectElement17</title>
+<creator>NIST</creator>
+<description>
+ The width attribute overrides the original width value.
+
+ Retrieve the width attribute of the first OBJECT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-38538620"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vwidth" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="object" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<width interface="HTMLObjectElement" obj="testNode" var="vwidth"/>
+<assertEquals actual="vwidth" expected='"550"' id="widthLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLObjectElement18.xml b/test/testcases/tests/level1/html/HTMLObjectElement18.xml new file mode 100644 index 0000000..f994859 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLObjectElement18.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLObjectElement18">
+<metadata>
+<title>HTMLObjectElement18</title>
+<creator>NIST</creator>
+<description>
+ The name attribute specifies form control or object name when submitted
+ with a form.
+
+ Retrieve the name attribute of the second OBJECT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-20110362"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vname" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="object" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<name interface="HTMLObjectElement" obj="testNode" var="vname"/>
+<assertEquals actual="vname" expected='"OBJECT2"' id="vspaceLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLObjectElement19.xml b/test/testcases/tests/level1/html/HTMLObjectElement19.xml new file mode 100644 index 0000000..51d1115 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLObjectElement19.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLObjectElement19">
+<metadata>
+<title>HTMLObjectElement19</title>
+<creator>NIST</creator>
+<description>
+ The form attribute returns null if control in not within the context of
+ form.
+
+ Retrieve the form attribute and examine its value.
+</description>
+<contributor>Rick Rivello</contributor>
+<date qualifier="created">2002-07-19</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-46094773"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vform" type="HTMLFormElement" />
+<var name="doc" type="Document"/>
+<load var="doc" href="object2" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<form interface="HTMLObjectElement" obj="testNode" var="vform"/>
+<assertNull actual="vform" id="formNullLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLOptGroupElement01.xml b/test/testcases/tests/level1/html/HTMLOptGroupElement01.xml new file mode 100644 index 0000000..23ab2e4 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLOptGroupElement01.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLOptGroupElement01">
+<metadata>
+<title>HTMLOptGroupElement01</title>
+<creator>NIST</creator>
+<description>
+ The disabled attribute indicates that the control is unavailable in
+ this context.
+
+ Retrieve the disabled attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-15518803"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdisabled" type="boolean" />
+<var name="doc" type="Document"/>
+<load var="doc" href="optgroup" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"optgroup"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<disabled interface="HTMLOptGroupElement" obj="testNode" var="vdisabled"/>
+<assertTrue actual="vdisabled" id="disabledLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLOptGroupElement02.xml b/test/testcases/tests/level1/html/HTMLOptGroupElement02.xml new file mode 100644 index 0000000..ff793f8 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLOptGroupElement02.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLOptGroupElement02">
+<metadata>
+<title>HTMLOptGroupElement02</title>
+<creator>NIST</creator>
+<description>
+ The label attribute specifies the label assigned to this option group.
+
+ Retrieve the label attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-95806054"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlabel" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="optgroup" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"optgroup"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<label interface="HTMLOptGroupElement" obj="testNode" var="vlabel"/>
+<assertEquals actual="vlabel" expected='"Regular Employees"' id="labelLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLOptionElement01.xml b/test/testcases/tests/level1/html/HTMLOptionElement01.xml new file mode 100644 index 0000000..d07454c --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLOptionElement01.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLOptionElement01">
+<metadata>
+<title>HTMLOptionElement01</title>
+<creator>NIST</creator>
+<description>
+ The form attribute returns the FORM element containing this control.
+
+ Retrieve the form attribute from the first SELECT element
+ and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-17116503"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vform" type="DOMString" />
+<var name="fNode" type="HTMLFormElement"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="option" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"option"'/>
+<assertSize collection="nodeList" size="10" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<form interface="HTMLOptionElement" obj="testNode" var="fNode"/>
+<id obj="fNode" var="vform"/>
+<assertEquals actual="vform" expected='"form1"' id="formLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLOptionElement02.xml b/test/testcases/tests/level1/html/HTMLOptionElement02.xml new file mode 100644 index 0000000..bbf3153 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLOptionElement02.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLOptionElement02">
+<metadata>
+<title>HTMLOptionElement02</title>
+<creator>NIST</creator>
+<description>
+ The form attribute returns null if control in not within the context of
+ a form.
+
+ Retrieve the first OPTION attribute from the second select element and
+ examine its form element.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-17116503"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vform" type="HTMLFormElement" />
+<var name="doc" type="Document"/>
+<load var="doc" href="option" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"option"'/>
+<assertSize collection="nodeList" size="10" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="6"/>
+<form interface="HTMLOptionElement" obj="testNode" var="vform"/>
+<assertNull actual="vform" id="formNullLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLOptionElement03.xml b/test/testcases/tests/level1/html/HTMLOptionElement03.xml new file mode 100644 index 0000000..9cee3c4 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLOptionElement03.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLOptionElement03">
+<metadata>
+<title>HTMLOptionElement03</title>
+<creator>NIST</creator>
+<description>
+ The defaultSelected attribute contains the value of the selected
+ attribute.
+
+ Retrieve the defaultSelected attribute from the first OPTION element
+ and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-37770574"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdefaultselected" type="boolean" />
+<var name="doc" type="Document"/>
+<load var="doc" href="option" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"option"'/>
+<assertSize collection="nodeList" size="10" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<defaultSelected interface="HTMLOptionElement" obj="testNode" var="vdefaultselected"/>
+<assertTrue actual="vdefaultselected" id="defaultSelectedLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLOptionElement04.xml b/test/testcases/tests/level1/html/HTMLOptionElement04.xml new file mode 100644 index 0000000..1923dd3 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLOptionElement04.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLOptionElement04">
+<metadata>
+<title>HTMLOptionElement04</title>
+<creator>NIST</creator>
+<description>
+ The text attribute contains the text contained within the option element.
+
+ Retrieve the text attribute from the second OPTION element
+ and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-48154426"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtext" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="option" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"option"'/>
+<assertSize collection="nodeList" size="10" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<text interface="HTMLOptionElement" obj="testNode" var="vtext"/>
+<assertEquals actual="vtext" expected='"EMP10002"' id="textLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLOptionElement05.xml b/test/testcases/tests/level1/html/HTMLOptionElement05.xml new file mode 100644 index 0000000..46812a1 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLOptionElement05.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLOptionElement05">
+<metadata>
+<title>HTMLOptionElement05</title>
+<creator>NIST</creator>
+<description>
+ The index attribute indicates th index of this OPTION in ints parent
+ SELECT.
+
+ Retrieve the index attribute from the seventh OPTION element
+ and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-14038413"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vindex" type="int" />
+<var name="doc" type="Document"/>
+<load var="doc" href="option" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"option"'/>
+<assertSize collection="nodeList" size="10" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="6"/>
+<index interface="HTMLOptionElement" obj="testNode" var="vindex"/>
+<assertEquals actual="vindex" expected="1" id="indexLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLOptionElement06.xml b/test/testcases/tests/level1/html/HTMLOptionElement06.xml new file mode 100644 index 0000000..2c00da4 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLOptionElement06.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLOptionElement06">
+<metadata>
+<title>HTMLOptionElement06</title>
+<creator>NIST</creator>
+<description>
+ The disabled attribute indicates that this control is not available
+ within this context.
+
+ Retrieve the disabled attribute from the last OPTION element
+ and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-23482473"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdisabled" type="boolean" />
+<var name="doc" type="Document"/>
+<load var="doc" href="option" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"option"'/>
+<assertSize collection="nodeList" size="10" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="9"/>
+<disabled interface="HTMLOptionElement" obj="testNode" var="vdisabled"/>
+<assertTrue actual="vdisabled" id="disabledLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLOptionElement07.xml b/test/testcases/tests/level1/html/HTMLOptionElement07.xml new file mode 100644 index 0000000..9218070 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLOptionElement07.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLOptionElement07">
+<metadata>
+<title>HTMLOptionElement07</title>
+<creator>NIST</creator>
+<description>
+ The label attribute is used in hierarchical menus. It specifies
+ a shorter label for an option that the content of the OPTION element.
+
+ Retrieve the label attribute from the second OPTION element
+ and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-40736115"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlabel" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="option" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"option"'/>
+<assertSize collection="nodeList" size="10" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<label interface="HTMLOptionElement" obj="testNode" var="vlabel"/>
+<assertEquals actual="vlabel" expected='"l1"' id="labelLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLOptionElement08.xml b/test/testcases/tests/level1/html/HTMLOptionElement08.xml new file mode 100644 index 0000000..c5c6640 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLOptionElement08.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLOptionElement08">
+<metadata>
+<title>HTMLOptionElement08</title>
+<creator>NIST</creator>
+<description>
+ The selected attribute indicates the current state of the corresponding
+ form control in an interactive user-agent.
+
+ Retrieve the selected attribute from the first OPTION element
+ and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-70874476"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vselected" type="boolean" />
+<var name="doc" type="Document"/>
+<load var="doc" href="option" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"option"'/>
+<assertSize collection="nodeList" size="10" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<defaultSelected interface="HTMLOptionElement" obj="testNode" var="vselected"/>
+<assertTrue actual="vselected" id="selectedLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLOptionElement09.xml b/test/testcases/tests/level1/html/HTMLOptionElement09.xml new file mode 100644 index 0000000..064ccbe --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLOptionElement09.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLOptionElement09">
+<metadata>
+<title>HTMLOptionElement09</title>
+<creator>NIST</creator>
+<description>
+ The value attribute contains the current form control value.
+
+ Retrieve the value attribute from the first OPTION element
+ and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-6185554"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vvalue" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="option" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"option"'/>
+<assertSize collection="nodeList" size="10" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<value interface="HTMLOptionElement" obj="testNode" var="vvalue"/>
+<assertEquals actual="vvalue" expected='"10001"' id="valueLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLParagraphElement01.xml b/test/testcases/tests/level1/html/HTMLParagraphElement01.xml new file mode 100644 index 0000000..0f3fa0e --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLParagraphElement01.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLParagraphElement01">
+<metadata>
+<title>HTMLParagraphElement01</title>
+<creator>NIST</creator>
+<description>
+ The align attribute specifies the horizontal text alignment.
+
+ Retrieve the align attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-53465507"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="valign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="paragraph" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"p"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<align interface="HTMLParagraphElement" obj="testNode" var="valign"/>
+<assertEquals actual="valign" expected='"center"' id="alignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLParamElement01.xml b/test/testcases/tests/level1/html/HTMLParamElement01.xml new file mode 100644 index 0000000..33f9238 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLParamElement01.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLParamElement01"> +<metadata> +<title>HTMLParamElement01</title> +<creator>NIST</creator> +<description> + The name attribute specifies the name of the run-time parameter. + + Retrieve the name attribute and examine its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59871447"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vname" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="param" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"param"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<name interface="HTMLParamElement" obj="testNode" var="vname"/> +<assertEquals actual="vname" expected='"image3"' id="nameLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLParamElement02.xml b/test/testcases/tests/level1/html/HTMLParamElement02.xml new file mode 100644 index 0000000..52e3b8a --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLParamElement02.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLParamElement02"> +<metadata> +<title>HTMLParamElement02</title> +<creator>NIST</creator> +<description> + The value attribute specifies the value of the run-time parameter. + + Retrieve the value attribute and examine its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-77971357"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vvalue" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="param" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"param"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<value interface="HTMLParamElement" obj="testNode" var="vvalue"/> +<assertURIEquals actual="vvalue" file='"file.gif"' id="valueLink"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLParamElement03.xml b/test/testcases/tests/level1/html/HTMLParamElement03.xml new file mode 100644 index 0000000..48b227a --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLParamElement03.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLParamElement03">
+<metadata>
+<title>HTMLParamElement03</title>
+<creator>NIST</creator>
+<description>
+ The valueType attribute specifies information about the meaning of the
+ value specified by the value attribute.
+
+ Retrieve the valueType attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-23931872"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vvaluetype" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="param" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"param"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<valueType interface="HTMLParamElement" obj="testNode" var="vvaluetype"/>
+<assertEquals actual="vvaluetype" expected='"ref"' id="valueTypeLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLParamElement04.xml b/test/testcases/tests/level1/html/HTMLParamElement04.xml new file mode 100644 index 0000000..da298fd --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLParamElement04.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLParamElement04">
+<metadata>
+<title>HTMLParamElement04</title>
+<creator>NIST</creator>
+<description>
+ The type attribute specifies the content type for the value attribute
+ when valuetype has the value ref.
+
+ Retrieve the type attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-18179888"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtype" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="param" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"param"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<type interface="HTMLParamElement" obj="testNode" var="vtype"/>
+<assertEquals actual="vtype" expected='"image/gif"' id="typeLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLPreElement01.xml b/test/testcases/tests/level1/html/HTMLPreElement01.xml new file mode 100644 index 0000000..9b8d4f2 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLPreElement01.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLPreElement01">
+<metadata>
+<title>HTMLPreElement01</title>
+<creator>NIST</creator>
+<description>
+ The width attribute specifies the fixed width for content.
+
+ Retrieve the width attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-13894083"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vwidth" type="int" />
+<var name="doc" type="Document"/>
+<load var="doc" href="pre" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"pre"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<width interface="HTMLPreElement" obj="testNode" var="vwidth"/>
+<assertEquals actual="vwidth" expected="277" id="widthLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLQuoteElement01.xml b/test/testcases/tests/level1/html/HTMLQuoteElement01.xml new file mode 100644 index 0000000..f7aadf7 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLQuoteElement01.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLQuoteElement01">
+<metadata>
+<title>HTMLQuoteElement01</title>
+<creator>NIST</creator>
+<description>
+ The cite attribute specifies a URI designating a source document
+ or message.
+
+ Retrieve the cite attribute from the Q element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-53895598"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vcite" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="quote" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"q"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<cite interface="HTMLQuoteElement" obj="testNode" var="vcite"/>
+<assertURIEquals actual="vcite" file='"Q.html"' id="citeLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLQuoteElement02.xml b/test/testcases/tests/level1/html/HTMLQuoteElement02.xml new file mode 100644 index 0000000..342b10f --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLQuoteElement02.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLQuoteElement02">
+<metadata>
+<title>HTMLQuoteElement02</title>
+<creator>NIST</creator>
+<description>
+ The cite attribute specifies a URI designating a source document
+ or message.
+
+ Retrieve the cite attribute from the BLOCKQUOTE element and
+ examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-53895598"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vcite" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="quote" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"blockquote"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<cite interface="HTMLQuoteElement" obj="testNode" var="vcite"/>
+<assertURIEquals actual="vcite" file='"BLOCKQUOTE.html"' id="citeLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLScriptElement01.xml b/test/testcases/tests/level1/html/HTMLScriptElement01.xml new file mode 100644 index 0000000..c4f28dd --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLScriptElement01.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLScriptElement01">
+<metadata>
+<title>HTMLScriptElement01</title>
+<creator>NIST</creator>
+<description>
+ The text attribute specifies the script content of the element.
+
+ Retrieve the text attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-46872999"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtext" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="script" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"script"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<text interface="HTMLScriptElement" obj="testNode" var="vtext"/>
+<assertEquals actual="vtext" expected='"var a=2;"' id="textLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLScriptElement02.xml b/test/testcases/tests/level1/html/HTMLScriptElement02.xml new file mode 100644 index 0000000..dd3911d --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLScriptElement02.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLScriptElement02">
+<metadata>
+<title>HTMLScriptElement02</title>
+<creator>NIST</creator>
+<description>
+ The charset attribute specifies the character encoding of the linked
+ resource.
+
+ Retrieve the charset attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-35305677"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vcharset" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="script" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"script"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<charset interface="HTMLScriptElement" obj="testNode" var="vcharset"/>
+<assertEquals actual="vcharset" expected='"US-ASCII"' id="charsetLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLScriptElement03.xml b/test/testcases/tests/level1/html/HTMLScriptElement03.xml new file mode 100644 index 0000000..d23ad8a --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLScriptElement03.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLScriptElement03">
+<metadata>
+<title>HTMLScriptElement03</title>
+<creator>NIST</creator>
+<description>
+ The defer attribute specifies the user agent can defer processing of
+ the script.
+
+ Retrieve the defer attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-93788534"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdefer" type="boolean" />
+<var name="doc" type="Document"/>
+<load var="doc" href="script" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"script"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<defer interface="HTMLScriptElement" obj="testNode" var="vdefer"/>
+<assertTrue actual="vdefer" id="deferLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLScriptElement04.xml b/test/testcases/tests/level1/html/HTMLScriptElement04.xml new file mode 100644 index 0000000..da94196 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLScriptElement04.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLScriptElement04">
+<metadata>
+<title>HTMLScriptElement04</title>
+<creator>NIST</creator>
+<description>
+ The src attribute specifies a URI designating an external script.
+
+ Retrieve the src attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-75147231"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vsrc" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="script" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"script"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<src interface="HTMLScriptElement" obj="testNode" var="vsrc"/>
+<assertURIEquals actual="vsrc" file='"script1.js"' id="srcLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLScriptElement05.xml b/test/testcases/tests/level1/html/HTMLScriptElement05.xml new file mode 100644 index 0000000..2a3ede2 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLScriptElement05.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLScriptElement05">
+<metadata>
+<title>HTMLScriptElement05</title>
+<creator>NIST</creator>
+<description>
+ The type attribute specifies the content of the script language.
+
+ Retrieve the type attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-30534818"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtype" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="script" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"script"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<type interface="HTMLScriptElement" obj="testNode" var="vtype"/>
+<assertEquals actual="vtype" expected='"text/javaScript"' id="typeLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLScriptElement06.xml b/test/testcases/tests/level1/html/HTMLScriptElement06.xml new file mode 100644 index 0000000..4e869fc --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLScriptElement06.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +Copyright (c) 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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLScriptElement06"> +<metadata> +<title>HTMLScriptElement06</title> +<creator>Curt Arnold</creator> +<description> +htmlFor is described as for future use. Test accesses the value, but makes no assertions about its value. +</description> +<date qualifier="created">2004-03-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-66979266"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="htmlFor" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="script" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"script"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<htmlFor interface="HTMLScriptElement" obj="testNode" var="htmlFor"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLScriptElement07.xml b/test/testcases/tests/level1/html/HTMLScriptElement07.xml new file mode 100644 index 0000000..d5a0145 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLScriptElement07.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +Copyright (c) 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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLScriptElement07"> +<metadata> +<title>HTMLScriptElement07</title> +<creator>Curt Arnold</creator> +<description> +event is described as for future use. Test accesses the value, but makes no assertions about its value. +</description> +<date qualifier="created">2004-03-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-56700403"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="event" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="script" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"script"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<event interface="HTMLScriptElement" obj="testNode" var="event"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLSelectElement01.xml b/test/testcases/tests/level1/html/HTMLSelectElement01.xml new file mode 100644 index 0000000..3b08881 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLSelectElement01.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLSelectElement01">
+<metadata>
+<title>HTMLSelectElement01</title>
+<creator>NIST</creator>
+<description>
+ The type attribute is the string "select-multiple" when multiple
+ attribute is true.
+
+ Retrieve the type attribute from the first SELECT element and
+ examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-58783172"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtype" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="select" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"select"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<type interface="HTMLSelectElement" obj="testNode" var="vtype"/>
+<assertEquals actual="vtype" expected='"select-multiple"' id="typeLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement02.xml b/test/testcases/tests/level1/html/HTMLSelectElement02.xml new file mode 100644 index 0000000..f9e865d --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLSelectElement02.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLSelectElement02">
+<metadata>
+<title>HTMLSelectElement02</title>
+<creator>NIST</creator>
+<description>
+ The selectedIndex attribute specifies the ordinal index of the selected
+ option.
+
+ Retrieve the selectedIndex attribute from the first SELECT element and
+ examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-85676760"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vselectedindex" type="int"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="select" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"select"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<selectedIndex interface="HTMLSelectElement" obj="testNode" var="vselectedindex"/>
+<assertEquals actual="vselectedindex" expected="0" id="selectedIndexLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement03.xml b/test/testcases/tests/level1/html/HTMLSelectElement03.xml new file mode 100644 index 0000000..97d217c --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLSelectElement03.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLSelectElement03"> +<metadata> +<title>HTMLSelectElement03</title> +<creator>NIST</creator> +<description> + The selectedIndex attribute specifies the ordinal index of the selected + option. If no element is selected -1 is returned. + + Retrieve the selectedIndex attribute from the second SELECT element and + examine its value. + + Per http://www.w3.org/TR/html401/interact/forms.html#h-17.6.1, + without an explicit selected attribute, user agent behavior is + undefined. There is no way to coerce no option to be selected. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-85676760"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vselectedindex" type="int"/> +<var name="doc" type="Document"/> +<load var="doc" href="select" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"select"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<selectedIndex interface="HTMLSelectElement" obj="testNode" var="vselectedindex"/> +<!-- Commented assertion per section 17.6.3 --> +<!-- assertEquals actual="vselectedindex" expected="-1" id="selectedIndexLink" ignoreCase="false"/ --> +</test> diff --git a/test/testcases/tests/level1/html/HTMLSelectElement04.xml b/test/testcases/tests/level1/html/HTMLSelectElement04.xml new file mode 100644 index 0000000..11ff6ee --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLSelectElement04.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLSelectElement04">
+<metadata>
+<title>HTMLSelectElement04</title>
+<creator>NIST</creator>
+<description>
+ The value attribute specifies the current form control value.
+
+ Retrieve the value attribute from the first SELECT element and
+ examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59351919"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vvalue" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="select" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"select"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<value interface="HTMLSelectElement" obj="testNode" var="vvalue"/>
+<assertEquals actual="vvalue" expected='"EMP1"' id="valueLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement05.xml b/test/testcases/tests/level1/html/HTMLSelectElement05.xml new file mode 100644 index 0000000..16c78e1 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLSelectElement05.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLSelectElement05">
+<metadata>
+<title>HTMLSelectElement05</title>
+<creator>NIST</creator>
+<description>
+ The length attribute specifies the number of options in this select.
+
+ Retrieve the length attribute from the first SELECT element and
+ examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-5933486"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vlength" type="int"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="select" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"select"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<length interface="HTMLSelectElement" obj="testNode" var="vlength"/>
+<assertEquals actual="vlength" expected="5" id="lengthLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement06.xml b/test/testcases/tests/level1/html/HTMLSelectElement06.xml new file mode 100644 index 0000000..8ff66a0 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLSelectElement06.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLSelectElement06">
+<metadata>
+<title>HTMLSelectElement06</title>
+<creator>NIST</creator>
+<description>
+ The form attribute returns the FORM element containing this control.
+
+ Retrieve the form attribute from the first SELECT element
+ and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-20489458"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vform" type="DOMString" />
+<var name="fNode" type="HTMLFormElement"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="select" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"select"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<form interface="HTMLSelectElement" obj="testNode" var="fNode"/>
+<id obj="fNode" var="vform"/>
+<assertEquals actual="vform" expected='"form1"' id="formLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement07.xml b/test/testcases/tests/level1/html/HTMLSelectElement07.xml new file mode 100644 index 0000000..218b9d6 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLSelectElement07.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLSelectElement07">
+<metadata>
+<title>HTMLSelectElement07</title>
+<creator>NIST</creator>
+<description>
+ The form attribute returns null if control in not within the context of
+ a form.
+
+ Retrieve the second SELECT element and
+ examine its form element.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-20489458"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vform" type="HTMLFormElement" />
+<var name="doc" type="Document"/>
+<load var="doc" href="select" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"select"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<form interface="HTMLSelectElement" obj="testNode" var="vform"/>
+<assertNull actual="vform" id="formNullLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement08.xml b/test/testcases/tests/level1/html/HTMLSelectElement08.xml new file mode 100644 index 0000000..12593fe --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLSelectElement08.xml @@ -0,0 +1,59 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLSelectElement08"> +<metadata> +<title>HTMLSelectElement08</title> +<creator>NIST</creator> +<description> + The options attribute returns a collection of OPTION elements contained + by this element. + + Retrieve the options attribute from the first SELECT element and + examine the items of the returned collection. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-30606413"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="optionsnodeList" type="HTMLCollection"/> +<var name="testNode" type="Node"/> +<var name="vareas" type="int" /> +<var name="doc" type="Document"/> +<var name="optionName" type="DOMString"/> +<var name="voption" type="Node"/> +<var name="result" type="List"/> +<var name="expectedOptions" type="List"> +<member>"option"</member> +<member>"option"</member> +<member>"option"</member> +<member>"option"</member> +<member>"option"</member> +</var> +<load var="doc" href="select" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"select"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<options interface="HTMLSelectElement" obj="testNode" var="optionsnodeList"/> +<for-each collection="optionsnodeList" member="voption"> +<nodeName obj="voption" var="optionName"/> +<append collection="result" item="optionName"/> +</for-each> +<assertEquals actual="result" expected="expectedOptions" id="optionsLink" ignoreCase="auto"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLSelectElement09.xml b/test/testcases/tests/level1/html/HTMLSelectElement09.xml new file mode 100644 index 0000000..382510d --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLSelectElement09.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLSelectElement09">
+<metadata>
+<title>HTMLSelectElement09</title>
+<creator>NIST</creator>
+<description>
+ The disabled attribute indicates that this control is not available
+ within this context.
+
+ Retrieve the disabled attribute from the third SELECT element
+ and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-79102918"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdisabled" type="boolean" />
+<var name="doc" type="Document"/>
+<load var="doc" href="select" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"select"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="2"/>
+<disabled interface="HTMLSelectElement" obj="testNode" var="vdisabled"/>
+<assertTrue actual="vdisabled" id="disabledLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement10.xml b/test/testcases/tests/level1/html/HTMLSelectElement10.xml new file mode 100644 index 0000000..b9f5762 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLSelectElement10.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLSelectElement10">
+<metadata>
+<title>HTMLSelectElement10</title>
+<creator>NIST</creator>
+<description>
+ The multiple attribute(if true) indicates that multiple OPTION elements
+ may be selected
+
+ Retrieve the multiple attribute from the first SELECT element
+ and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-13246613"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vmultiple" type="boolean" />
+<var name="doc" type="Document"/>
+<load var="doc" href="select" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"select"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<multiple interface="HTMLSelectElement" obj="testNode" var="vmultiple"/>
+<assertTrue actual="vmultiple" id="multipleLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement11.xml b/test/testcases/tests/level1/html/HTMLSelectElement11.xml new file mode 100644 index 0000000..ebb4d1b --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLSelectElement11.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLSelectElement11">
+<metadata>
+<title>HTMLSelectElement11</title>
+<creator>NIST</creator>
+<description>
+ The name attribute specifies the form control or object name when
+ submitted with a form.
+
+ Retrieve the name attribute from the first SELECT element and
+ examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-41636323"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vname" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="select" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"select"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<name interface="HTMLSelectElement" obj="testNode" var="vname"/>
+<assertEquals actual="vname" expected='"select1"' id="nameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement12.xml b/test/testcases/tests/level1/html/HTMLSelectElement12.xml new file mode 100644 index 0000000..5559f5d --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLSelectElement12.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLSelectElement12">
+<metadata>
+<title>HTMLSelectElement12</title>
+<creator>NIST</creator>
+<description>
+ The size attribute specifies the number of visible rows.
+
+ Retrieve the size attribute from the first SELECT element and
+ examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-18293826"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vsize" type="int"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="select" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"select"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<size interface="HTMLSelectElement" obj="testNode" var="vsize"/>
+<assertEquals actual="vsize" expected="1" id="sizeLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement13.xml b/test/testcases/tests/level1/html/HTMLSelectElement13.xml new file mode 100644 index 0000000..2c0aafb --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLSelectElement13.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLSelectElement13">
+<metadata>
+<title>HTMLSelectElement13</title>
+<creator>NIST</creator>
+<description>
+ The tabIndex attribute specifies an index that represents the elements
+ position in the tabbing order.
+
+ Retrieve the tabIndex attribute from the first SELECT element and
+ examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-40676705"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtabindex" type="int"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="select" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"select"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<tabIndex interface="HTMLSelectElement" obj="testNode" var="vtabindex"/>
+<assertEquals actual="vtabindex" expected="7" id="tabIndexLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLSelectElement14.xml b/test/testcases/tests/level1/html/HTMLSelectElement14.xml new file mode 100644 index 0000000..df22987 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLSelectElement14.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +Copyright (c) 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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLSelectElement14"> +<metadata> +<title>HTMLSelectElement14</title> +<creator>Curt Arnold</creator> +<description> +focus should give the select element input focus. +</description> +<date qualifier="created">2004-03-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-32130014"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="doc" type="Document"/> +<load var="doc" href="select" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"select"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<focus interface="HTMLSelectElement" obj="testNode"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLSelectElement15.xml b/test/testcases/tests/level1/html/HTMLSelectElement15.xml new file mode 100644 index 0000000..dcc2f6d --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLSelectElement15.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +Copyright (c) 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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLSelectElement15"> +<metadata> +<title>HTMLSelectElement15</title> +<creator>Curt Arnold</creator> +<description> +blur should surrender input focus. +</description> +<date qualifier="created">2004-03-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-28216144"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="doc" type="Document"/> +<load var="doc" href="select" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"select"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<blur interface="HTMLSelectElement" obj="testNode"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLSelectElement16.xml b/test/testcases/tests/level1/html/HTMLSelectElement16.xml new file mode 100644 index 0000000..a5e9422 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLSelectElement16.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +Copyright (c) 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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLSelectElement16"> +<metadata> +<title>HTMLSelectElement16</title> +<creator>Curt Arnold</creator> +<description> +Removes an option using HTMLSelectElement.remove. +</description> +<date qualifier="created">2004-03-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-33404570"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="doc" type="Document"/> +<var name="optLength" type="int"/> +<var name="selected" type="int"/> +<load var="doc" href="select" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"select"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<remove interface="HTMLSelectElement" obj="testNode" index="0"/> +<length interface="HTMLSelectElement" obj="testNode" var="optLength"/> +<assertEquals actual="optLength" expected="4" id="optLength" ignoreCase="false"/> +<selectedIndex interface="HTMLSelectElement" obj="testNode" var="selected"/> +<assertEquals actual="selected" expected="-1" id="selected" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLSelectElement17.xml b/test/testcases/tests/level1/html/HTMLSelectElement17.xml new file mode 100644 index 0000000..03549ff --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLSelectElement17.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +Copyright (c) 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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLSelectElement17"> +<metadata> +<title>HTMLSelectElement17</title> +<creator>Curt Arnold</creator> +<description> +Removes a non-existant option using HTMLSelectElement.remove. +</description> +<date qualifier="created">2004-03-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-33404570"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="doc" type="Document"/> +<var name="optLength" type="int"/> +<var name="selected" type="int"/> +<load var="doc" href="select" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"select"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<remove interface="HTMLSelectElement" obj="testNode" index="6"/> +<length interface="HTMLSelectElement" obj="testNode" var="optLength"/> +<assertEquals actual="optLength" expected="5" id="optLength" ignoreCase="false"/> +<selectedIndex interface="HTMLSelectElement" obj="testNode" var="selected"/> +<assertEquals actual="selected" expected="0" id="selected" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLSelectElement18.xml b/test/testcases/tests/level1/html/HTMLSelectElement18.xml new file mode 100644 index 0000000..aff29d9 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLSelectElement18.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +Copyright (c) 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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLSelectElement18"> +<metadata> +<title>HTMLSelectElement18</title> +<creator>Curt Arnold</creator> +<description> +Add a new option at the end of an select using HTMLSelectElement.add. +</description> +<date qualifier="created">2004-03-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-14493106"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="doc" type="Document"/> +<var name="optLength" type="int"/> +<var name="selected" type="int"/> +<var name="newOpt" type="Element"/> +<var name="newOptText" type="Text"/> +<var name="opt" type="Element"/> +<var name="optText" type="Text"/> +<var name="optValue" type="DOMString"/> +<var name="retNode" type="Node"/> +<var name="nullNode" type="Node" isNull="true"/> +<load var="doc" href="select" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"select"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<createElement var="newOpt" obj="doc" tagName='"option"'/> +<createTextNode var="newOptText" obj="doc" data='"EMP31415"'/> +<appendChild var="retNode" obj="newOpt" newChild="newOptText"/> +<add interface="HTMLSelectElement" obj="testNode" element="newOpt" before="nullNode"/> +<length interface="HTMLSelectElement" obj="testNode" var="optLength"/> +<assertEquals actual="optLength" expected="6" id="optLength" ignoreCase="false"/> +<selectedIndex interface="HTMLSelectElement" obj="testNode" var="selected"/> +<assertEquals actual="selected" expected="0" id="selected" ignoreCase="false"/> +<lastChild var="opt" obj="testNode" interface="Node"/> +<firstChild var="optText" obj="opt" interface="Node"/> +<nodeValue var="optValue" obj="optText"/> +<assertEquals actual="optValue" expected='"EMP31415"' id="lastValue" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLSelectElement19.xml b/test/testcases/tests/level1/html/HTMLSelectElement19.xml new file mode 100644 index 0000000..2d2a732 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLSelectElement19.xml @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +Copyright (c) 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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLSelectElement19"> +<metadata> +<title>HTMLSelectElement19</title> +<creator>Curt Arnold</creator> +<description> +Add a new option before the selected node using HTMLSelectElement.add. +</description> +<date qualifier="created">2004-03-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-14493106"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="doc" type="Document"/> +<var name="optLength" type="int"/> +<var name="selected" type="int"/> +<var name="newOpt" type="Element"/> +<var name="newOptText" type="Text"/> +<var name="opt" type="Element"/> +<var name="optText" type="Text"/> +<var name="optValue" type="DOMString"/> +<var name="retNode" type="Node"/> +<var name="options" type="HTMLCollection"/> +<var name="selectedNode" type="Node"/> +<load var="doc" href="select" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"select"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<createElement var="newOpt" obj="doc" tagName='"option"'/> +<createTextNode var="newOptText" obj="doc" data='"EMP31415"'/> +<appendChild var="retNode" obj="newOpt" newChild="newOptText"/> +<options var="options" obj="testNode"/> +<item var="selectedNode" obj="options" index="0" interface="HTMLCollection"/> +<add interface="HTMLSelectElement" obj="testNode" element="newOpt" before="selectedNode"/> +<length interface="HTMLSelectElement" obj="testNode" var="optLength"/> +<assertEquals actual="optLength" expected="6" id="optLength" ignoreCase="false"/> +<selectedIndex interface="HTMLSelectElement" obj="testNode" var="selected"/> +<assertEquals actual="selected" expected="1" id="selected" ignoreCase="false"/> +<options var="options" obj="testNode"/> +<item var="opt" obj="options" index="0" interface="HTMLCollection"/> +<firstChild var="optText" obj="opt" interface="Node"/> +<nodeValue var="optValue" obj="optText"/> +<assertEquals actual="optValue" expected='"EMP31415"' id="lastValue" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLStyleElement01.xml b/test/testcases/tests/level1/html/HTMLStyleElement01.xml new file mode 100644 index 0000000..60c2e57 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLStyleElement01.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLStyleElement01">
+<metadata>
+<title>HTMLStyleElement01</title>
+<creator>NIST</creator>
+<description>
+ The disabled attribute enables/disables the stylesheet.
+
+ Retrieve the disabled attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-51162010"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdisabled" type="boolean" />
+<var name="doc" type="Document"/>
+<load var="doc" href="style" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"style"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<disabled interface="HTMLStyleElement" obj="testNode" var="vdisabled"/>
+<assertFalse actual="vdisabled" id="disabledLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLStyleElement02.xml b/test/testcases/tests/level1/html/HTMLStyleElement02.xml new file mode 100644 index 0000000..727df54 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLStyleElement02.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLStyleElement02">
+<metadata>
+<title>HTMLStyleElement02</title>
+<creator>NIST</creator>
+<description>
+ The media attribute identifies the intended medium of the style info.
+
+ Retrieve the media attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-76412738"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vmedia" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="style" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"style"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<media interface="HTMLStyleElement" obj="testNode" var="vmedia"/>
+<assertEquals actual="vmedia" expected='"screen"' id="mediaLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLStyleElement03.xml b/test/testcases/tests/level1/html/HTMLStyleElement03.xml new file mode 100644 index 0000000..54394e3 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLStyleElement03.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLStyleElement03">
+<metadata>
+<title>HTMLStyleElement03</title>
+<creator>NIST</creator>
+<description>
+ The type attribute specifies the style sheet language(Internet media type).
+
+ Retrieve the type attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-22472002"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtype" type="DOMString"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="style" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"style"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<type interface="HTMLStyleElement" obj="testNode" var="vtype"/>
+<assertEquals actual="vtype" expected='"text/css"' id="typeLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableCaptionElement01.xml b/test/testcases/tests/level1/html/HTMLTableCaptionElement01.xml new file mode 100644 index 0000000..fb2fae7 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCaptionElement01.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCaptionElement01">
+<metadata>
+<title>HTMLTableCaptionElement01</title>
+<creator>NIST</creator>
+<description>
+ The align attribute specifies the caption alignment with respect to
+ the table.
+
+ Retrieve the align attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-79875068"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="valign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecaption" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"caption"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<align interface="HTMLTableCaptionElement" obj="testNode" var="valign"/>
+<assertEquals actual="valign" expected='"top"' id="alignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement01.xml b/test/testcases/tests/level1/html/HTMLTableCellElement01.xml new file mode 100644 index 0000000..456d6d4 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement01.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement01">
+<metadata>
+<title>HTMLTableCellElement01</title>
+<creator>NIST</creator>
+<description>
+ The cellIndex attribute specifies the index of this cell in the row(TH).
+
+ Retrieve the cellIndex attribute of the first TH element and examine its
+ value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-80748363"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vcellindex" type="int" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecell" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"th"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<cellIndex interface="HTMLTableCellElement" obj="testNode" var="vcellindex"/>
+<assertEquals actual="vcellindex" expected="0" id="cellIndexLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement02.xml b/test/testcases/tests/level1/html/HTMLTableCellElement02.xml new file mode 100644 index 0000000..f93075e --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement02.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement02">
+<metadata>
+<title>HTMLTableCellElement02</title>
+<creator>NIST</creator>
+<description>
+ The cellIndex attribute specifies the index of this cell in the row(TD).
+
+ Retrieve the cellIndex attribute of the first TD element and examine its
+ value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-80748363"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vcellindex" type="int" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecell" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<cellIndex interface="HTMLTableCellElement" obj="testNode" var="vcellindex"/>
+<assertEquals actual="vcellindex" expected="0" id="cellIndexLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement03.xml b/test/testcases/tests/level1/html/HTMLTableCellElement03.xml new file mode 100644 index 0000000..ed23a81 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement03.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement03">
+<metadata>
+<title>HTMLTableCellElement03</title>
+<creator>NIST</creator>
+<description>
+ The abbr attribute specifies the abbreviation for table header cells(TH).
+
+ Retrieve the abbr attribute from the second TH element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-74444037"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vabbr" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecell" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"th"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<abbr interface="HTMLTableCellElement" obj="testNode" var="vabbr"/>
+<assertEquals actual="vabbr" expected='"hd1"' id="abbrLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement04.xml b/test/testcases/tests/level1/html/HTMLTableCellElement04.xml new file mode 100644 index 0000000..2a6ba39 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement04.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement04">
+<metadata>
+<title>HTMLTableCellElement04</title>
+<creator>NIST</creator>
+<description>
+ The abbr attribute specifies the abbreviation for table data cells(TD).
+
+ Retrieve the abbr attribute from the second TD element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-74444037"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vabbr" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecell" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<abbr interface="HTMLTableCellElement" obj="testNode" var="vabbr"/>
+<assertEquals actual="vabbr" expected='"hd2"' id="abbrLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement05.xml b/test/testcases/tests/level1/html/HTMLTableCellElement05.xml new file mode 100644 index 0000000..97e12ee --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement05.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement05">
+<metadata>
+<title>HTMLTableCellElement05</title>
+<creator>NIST</creator>
+<description>
+ The align attribute specifies the horizontal alignment for table
+ header cells(TH).
+
+ Retrieve the align attribute from the second TH element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-98433879"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="valign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecell" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"th"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<align interface="HTMLTableCellElement" obj="testNode" var="valign"/>
+<assertEquals actual="valign" expected='"center"' id="alignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement06.xml b/test/testcases/tests/level1/html/HTMLTableCellElement06.xml new file mode 100644 index 0000000..d642df3 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement06.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement06">
+<metadata>
+<title>HTMLTableCellElement06</title>
+<creator>NIST</creator>
+<description>
+ The align attribute specifies the horizontal alignment for table
+ data cells(TD).
+
+ Retrieve the align attribute from the second TD element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-98433879"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="valign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecell" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<align interface="HTMLTableCellElement" obj="testNode" var="valign"/>
+<assertEquals actual="valign" expected='"center"' id="alignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement07.xml b/test/testcases/tests/level1/html/HTMLTableCellElement07.xml new file mode 100644 index 0000000..9041f28 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement07.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement07">
+<metadata>
+<title>HTMLTableCellElement07</title>
+<creator>NIST</creator>
+<description>
+ The axis attribute specifies the names group of related headers for table
+ header cells(TH).
+
+ Retrieve the align attribute from the second TH element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-76554418"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vaxis" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecell" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"th"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<axis interface="HTMLTableCellElement" obj="testNode" var="vaxis"/>
+<assertEquals actual="vaxis" expected='"center"' id="axisLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement08.xml b/test/testcases/tests/level1/html/HTMLTableCellElement08.xml new file mode 100644 index 0000000..27136ed --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement08.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement08">
+<metadata>
+<title>HTMLTableCellElement08</title>
+<creator>NIST</creator>
+<description>
+ The axis attribute specifies the names group of related headers for table
+ data cells(TD).
+
+ Retrieve the axis attribute from the second TD element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-76554418"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vaxis" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecell" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<axis interface="HTMLTableCellElement" obj="testNode" var="vaxis"/>
+<assertEquals actual="vaxis" expected='"center"' id="axisLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement09.xml b/test/testcases/tests/level1/html/HTMLTableCellElement09.xml new file mode 100644 index 0000000..efd65ad --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement09.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement09"> +<metadata> +<title>HTMLTableCellElement09</title> +<creator>NIST</creator> +<description> + The bgColor attribute specifies the cells background color for + table header cells(TH). + + Retrieve the bgColor attribute from the second TH element and examine + its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-88135431"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vbgcolor" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="tablecell" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"th"'/> +<assertSize collection="nodeList" size="4" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<bgColor interface="HTMLTableCellElement" obj="testNode" var="vbgcolor"/> +<assertEquals actual="vbgcolor" expected='"#00FFFF"' id="bgColorLink" ignoreCase="true"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement10.xml b/test/testcases/tests/level1/html/HTMLTableCellElement10.xml new file mode 100644 index 0000000..64a2746 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement10.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement10"> +<metadata> +<title>HTMLTableCellElement10</title> +<creator>NIST</creator> +<description> + The bgColor attribute specifies the cells background color for table + data cells(TD). + + Retrieve the bgColor attribute from the second TD element and examine + its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-88135431"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vbgcolor" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="tablecell" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/> +<assertSize collection="nodeList" size="4" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<bgColor interface="HTMLTableCellElement" obj="testNode" var="vbgcolor"/> +<assertEquals actual="vbgcolor" expected='"#FF0000"' id="bgColorLink" ignoreCase="true"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement11.xml b/test/testcases/tests/level1/html/HTMLTableCellElement11.xml new file mode 100644 index 0000000..0c7c2b3 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement11.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement11">
+<metadata>
+<title>HTMLTableCellElement11</title>
+<creator>NIST</creator>
+<description>
+ The char attribute specifies the alignment character for cells in a column
+ of table header cells(TH).
+
+ Retrieve the char attribute from the second TH element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-30914780"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vch" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecell" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"th"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<ch interface="HTMLTableCellElement" obj="testNode" var="vch"/>
+<assertEquals actual="vch" expected='":"' id="chLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement12.xml b/test/testcases/tests/level1/html/HTMLTableCellElement12.xml new file mode 100644 index 0000000..17ff175 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement12.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement12">
+<metadata>
+<title>HTMLTableCellElement12</title>
+<creator>NIST</creator>
+<description>
+ The char attribute specifies the alignment character for cells in a column
+ of table data cells(TD).
+
+ Retrieve the char attribute from the second TD element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-30914780"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vch" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecell" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<ch interface="HTMLTableCellElement" obj="testNode" var="vch"/>
+<assertEquals actual="vch" expected='":"' id="chLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement13.xml b/test/testcases/tests/level1/html/HTMLTableCellElement13.xml new file mode 100644 index 0000000..74beef5 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement13.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement13">
+<metadata>
+<title>HTMLTableCellElement13</title>
+<creator>NIST</creator>
+<description>
+ The charoff attribute specifies the offset of alignment characacter
+ of table header cells(TH).
+
+ Retrieve the charoff attribute from the second TH element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-20144310"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vcharoff" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecell" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"th"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<chOff interface="HTMLTableCellElement" obj="testNode" var="vcharoff"/>
+<assertEquals actual="vcharoff" expected='"1"' id="chOffLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement14.xml b/test/testcases/tests/level1/html/HTMLTableCellElement14.xml new file mode 100644 index 0000000..c703661 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement14.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement14">
+<metadata>
+<title>HTMLTableCellElement14</title>
+<creator>NIST</creator>
+<description>
+ The charoff attribute specifies the offset of alignment character
+ of table data cells(TD).
+
+ Retrieve the charoff attribute from the second TD element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-20144310"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vcharoff" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecell" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<chOff interface="HTMLTableCellElement" obj="testNode" var="vcharoff"/>
+<assertEquals actual="vcharoff" expected='"1"' id="chOffLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement15.xml b/test/testcases/tests/level1/html/HTMLTableCellElement15.xml new file mode 100644 index 0000000..b476253 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement15.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement15">
+<metadata>
+<title>HTMLTableCellElement15</title>
+<creator>NIST</creator>
+<description>
+ The colSpan attribute specifies the number of columns spanned by a table
+ header(TH) cell.
+
+ Retrieve the colspan attribute of the second TH element and examine its
+ value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-84645244"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vcolspan" type="int" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecell" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"th"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<colSpan interface="HTMLTableCellElement" obj="testNode" var="vcolspan"/>
+<assertEquals actual="vcolspan" expected="1" id="colSpanLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement16.xml b/test/testcases/tests/level1/html/HTMLTableCellElement16.xml new file mode 100644 index 0000000..f5a7408 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement16.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement16">
+<metadata>
+<title>HTMLTableCellElement16</title>
+<creator>NIST</creator>
+<description>
+ The colSpan attribute specifies the number of columns spanned by a
+ table data(TD) cell.
+
+ Retrieve the colSpan attribute of the second TD element and examine its
+ value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-84645244"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vcolspan" type="int" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecell" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<colSpan interface="HTMLTableCellElement" obj="testNode" var="vcolspan"/>
+<assertEquals actual="vcolspan" expected="1" id="colSpanLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement17.xml b/test/testcases/tests/level1/html/HTMLTableCellElement17.xml new file mode 100644 index 0000000..f10d801 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement17.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement17">
+<metadata>
+<title>HTMLTableCellElement17</title>
+<creator>NIST</creator>
+<description>
+ The headers attribute specifies a list of id attribute values for
+ table header cells(TH).
+
+ Retrieve the headers attribute from the second TH element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-89104817"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vheaders" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecell" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"th"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<headers interface="HTMLTableCellElement" obj="testNode" var="vheaders"/>
+<assertEquals actual="vheaders" expected='"header-1"' id="headersLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement18.xml b/test/testcases/tests/level1/html/HTMLTableCellElement18.xml new file mode 100644 index 0000000..0ed53d0 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement18.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement18">
+<metadata>
+<title>HTMLTableCellElement18</title>
+<creator>NIST</creator>
+<description>
+ The headers attribute specifies a list of id attribute values for
+ table data cells(TD).
+
+ Retrieve the headers attribute from the second TD element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-89104817"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vheaders" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecell" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<headers interface="HTMLTableCellElement" obj="testNode" var="vheaders"/>
+<assertEquals actual="vheaders" expected='"header-3"' id="headersLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement19.xml b/test/testcases/tests/level1/html/HTMLTableCellElement19.xml new file mode 100644 index 0000000..a4ab68d --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement19.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement19">
+<metadata>
+<title>HTMLTableCellElement19</title>
+<creator>NIST</creator>
+<description>
+ The height attribute specifies the cell height.
+
+ Retrieve the height attribute from the second TH element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-83679212"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vheight" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecell" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"th"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<height interface="HTMLTableCellElement" obj="testNode" var="vheight"/>
+<assertEquals actual="vheight" expected='"50"' id="heightLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement20.xml b/test/testcases/tests/level1/html/HTMLTableCellElement20.xml new file mode 100644 index 0000000..a5fa5ae --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement20.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement20">
+<metadata>
+<title>HTMLTableCellElement20</title>
+<creator>NIST</creator>
+<description>
+ The height attribute specifies the cell height.
+
+ Retrieve the height attribute from the second TD element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-83679212"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vheight" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecell" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<height interface="HTMLTableCellElement" obj="testNode" var="vheight"/>
+<assertEquals actual="vheight" expected='"50"' id="heightLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement21.xml b/test/testcases/tests/level1/html/HTMLTableCellElement21.xml new file mode 100644 index 0000000..19bb5fe --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement21.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement21">
+<metadata>
+<title>HTMLTableCellElement21</title>
+<creator>NIST</creator>
+<description>
+ The noWrap attribute supresses word wrapping.
+
+ Retrieve the noWrap attribute of the second TH Element and
+ examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-62922045"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vnowrap" type="boolean" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecell" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"th"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<noWrap interface="HTMLTableCellElement" obj="testNode" var="vnowrap"/>
+<assertTrue actual="vnowrap" id="noWrapLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement22.xml b/test/testcases/tests/level1/html/HTMLTableCellElement22.xml new file mode 100644 index 0000000..98e11c4 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement22.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement22">
+<metadata>
+<title>HTMLTableCellElement22</title>
+<creator>NIST</creator>
+<description>
+ The noWrap attribute supresses word wrapping.
+
+ Retrieve the noWrap attribute of the second TD Element and
+ examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-62922045"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vnowrap" type="boolean" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecell" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<noWrap interface="HTMLTableCellElement" obj="testNode" var="vnowrap"/>
+<assertTrue actual="vnowrap" id="noWrapLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement23.xml b/test/testcases/tests/level1/html/HTMLTableCellElement23.xml new file mode 100644 index 0000000..b276fbc --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement23.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement23">
+<metadata>
+<title>HTMLTableCellElement23</title>
+<creator>NIST</creator>
+<description>
+ The rowSpan attribute specifies the number of rows spanned by a table
+ header(TH) cell.
+
+ Retrieve the rowSpan attribute of the second TH element and examine its
+ value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-48237625"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vrowspan" type="int" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecell" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"th"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<rowSpan interface="HTMLTableCellElement" obj="testNode" var="vrowspan"/>
+<assertEquals actual="vrowspan" expected="1" id="rowSpanLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement24.xml b/test/testcases/tests/level1/html/HTMLTableCellElement24.xml new file mode 100644 index 0000000..3679bee --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement24.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement24">
+<metadata>
+<title>HTMLTableCellElement24</title>
+<creator>NIST</creator>
+<description>
+ The rowSpan attribute specifies the number of rows spanned by a
+ table data(TD) cell.
+
+ Retrieve the rowSpan attribute of the second TD element and examine its
+ value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-48237625"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vrowspan" type="int" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecell" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<rowSpan interface="HTMLTableCellElement" obj="testNode" var="vrowspan"/>
+<assertEquals actual="vrowspan" expected="1" id="rowSpanLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement25.xml b/test/testcases/tests/level1/html/HTMLTableCellElement25.xml new file mode 100644 index 0000000..bc74f39 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement25.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement25">
+<metadata>
+<title>HTMLTableCellElement25</title>
+<creator>NIST</creator>
+<description>
+ The scope attribute specifies the scope covered by header cells.
+
+ Retrieve the scope attribute from the second TH element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-36139952"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vscope" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecell" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"th"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<scope interface="HTMLTableCellElement" obj="testNode" var="vscope"/>
+<assertEquals actual="vscope" expected='"col"' id="scopeLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement26.xml b/test/testcases/tests/level1/html/HTMLTableCellElement26.xml new file mode 100644 index 0000000..5cf82e8 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement26.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement26">
+<metadata>
+<title>HTMLTableCellElement26</title>
+<creator>NIST</creator>
+<description>
+ The scope attribute specifies the scope covered by data cells.
+
+ Retrieve the scope attribute from the second TD element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-36139952"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vscope" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecell" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<scope interface="HTMLTableCellElement" obj="testNode" var="vscope"/>
+<assertEquals actual="vscope" expected='"col"' id="scopeLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement27.xml b/test/testcases/tests/level1/html/HTMLTableCellElement27.xml new file mode 100644 index 0000000..dceae74 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement27.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement27">
+<metadata>
+<title>HTMLTableCellElement27</title>
+<creator>NIST</creator>
+<description>
+ The vAlign attribute specifies the vertical alignment of data in cell.
+
+ Retrieve the vAlign attribute from the second TH element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-58284221"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vvalign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecell" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"th"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<vAlign interface="HTMLTableCellElement" obj="testNode" var="vvalign"/>
+<assertEquals actual="vvalign" expected='"middle"' id="vAlignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement28.xml b/test/testcases/tests/level1/html/HTMLTableCellElement28.xml new file mode 100644 index 0000000..1594528 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement28.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement28">
+<metadata>
+<title>HTMLTableCellElement28</title>
+<creator>NIST</creator>
+<description>
+ The vAlign attribute specifies the vertical alignment of data in cell.
+
+ Retrieve the vAlign attribute from the second TD element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-58284221"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vvalign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecell" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<vAlign interface="HTMLTableCellElement" obj="testNode" var="vvalign"/>
+<assertEquals actual="vvalign" expected='"middle"' id="vAlignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement29.xml b/test/testcases/tests/level1/html/HTMLTableCellElement29.xml new file mode 100644 index 0000000..571458b --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement29.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement29">
+<metadata>
+<title>HTMLTableCellElement29</title>
+<creator>NIST</creator>
+<description>
+ The width attribute specifies the cells width.
+
+ Retrieve the width attribute from the second TH element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-27480795"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vwidth" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecell" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"th"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<width interface="HTMLTableCellElement" obj="testNode" var="vwidth"/>
+<assertEquals actual="vwidth" expected='"170"' id="widthLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableCellElement30.xml b/test/testcases/tests/level1/html/HTMLTableCellElement30.xml new file mode 100644 index 0000000..332c038 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableCellElement30.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableCellElement30">
+<metadata>
+<title>HTMLTableCellElement30</title>
+<creator>NIST</creator>
+<description>
+ The width attribute specifies the cells width.
+
+ Retrieve the width attribute from the second TD element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-27480795"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vwidth" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecell" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/>
+<assertSize collection="nodeList" size="4" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<width interface="HTMLTableCellElement" obj="testNode" var="vwidth"/>
+<assertEquals actual="vwidth" expected='"175"' id="widthLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableColElement01.xml b/test/testcases/tests/level1/html/HTMLTableColElement01.xml new file mode 100644 index 0000000..ae5fea0 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableColElement01.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableColElement01">
+<metadata>
+<title>HTMLTableColElement01</title>
+<creator>NIST</creator>
+<description>
+ The align attribute specifies the horizontal alignment of cell data
+ in column(COL).
+
+ Retrieve the align attribute from the COL element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-31128447"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="valign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecol" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"col"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<align interface="HTMLTableColElement" obj="testNode" var="valign"/>
+<assertEquals actual="valign" expected='"center"' id="alignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableColElement02.xml b/test/testcases/tests/level1/html/HTMLTableColElement02.xml new file mode 100644 index 0000000..2d30433 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableColElement02.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableColElement02">
+<metadata>
+<title>HTMLTableColElement02</title>
+<creator>NIST</creator>
+<description>
+ The align attribute specifies the horizontal alignment of cell data
+ in column(COLGROUP).
+
+ Retrieve the align attribute from the COLGROUP element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-31128447"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="valign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecol" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"colgroup"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<align interface="HTMLTableColElement" obj="testNode" var="valign"/>
+<assertEquals actual="valign" expected='"center"' id="alignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableColElement03.xml b/test/testcases/tests/level1/html/HTMLTableColElement03.xml new file mode 100644 index 0000000..6710753 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableColElement03.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableColElement03">
+<metadata>
+<title>HTMLTableColElement03</title>
+<creator>NIST</creator>
+<description>
+ The char attribute specifies the alignment character for cells
+ in a column(COL).
+
+ Retrieve the char attribute from the COL element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-9447412"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vch" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecol" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"col"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<ch interface="HTMLTableColElement" obj="testNode" var="vch"/>
+<assertEquals actual="vch" expected='"*"' id="chLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableColElement04.xml b/test/testcases/tests/level1/html/HTMLTableColElement04.xml new file mode 100644 index 0000000..db0ebd0 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableColElement04.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableColElement04">
+<metadata>
+<title>HTMLTableColElement04</title>
+<creator>NIST</creator>
+<description>
+ The char attribute specifies the alignment character for cells
+ in a column(COLGROUP).
+
+ Retrieve the char attribute from the COLGROUP element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-9447412"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vch" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecol" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"colgroup"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<ch interface="HTMLTableColElement" obj="testNode" var="vch"/>
+<assertEquals actual="vch" expected='"$"' id="chLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableColElement05.xml b/test/testcases/tests/level1/html/HTMLTableColElement05.xml new file mode 100644 index 0000000..ebd56a9 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableColElement05.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableColElement05">
+<metadata>
+<title>HTMLTableColElement05</title>
+<creator>NIST</creator>
+<description>
+ The charoff attribute specifies offset of alignment character(COL).
+
+ Retrieve the charoff attribute from the COL element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-57779225"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vchoff" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecol" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"col"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<chOff interface="HTMLTableColElement" obj="testNode" var="vchoff"/>
+<assertEquals actual="vchoff" expected='"20"' id="chLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableColElement06.xml b/test/testcases/tests/level1/html/HTMLTableColElement06.xml new file mode 100644 index 0000000..285f794 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableColElement06.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableColElement06">
+<metadata>
+<title>HTMLTableColElement06</title>
+<creator>NIST</creator>
+<description>
+ The charoff attribute specifies offset of alignment character(COLGROUP).
+
+ Retrieve the charoff attribute from the COLGROUP element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-57779225"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vchoff" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecol" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"colgroup"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<chOff interface="HTMLTableColElement" obj="testNode" var="vchoff"/>
+<assertEquals actual="vchoff" expected='"15"' id="chLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableColElement07.xml b/test/testcases/tests/level1/html/HTMLTableColElement07.xml new file mode 100644 index 0000000..7a70e40 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableColElement07.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableColElement07">
+<metadata>
+<title>HTMLTableColElement07</title>
+<creator>NIST</creator>
+<description>
+ The span attribute indicates the number of columns in a group or affected
+ by a grouping(COL).
+
+ Retrieve the span attribute of the COL element and examine its
+ value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-96511335"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vspan" type="int" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecol" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"col"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<span interface="HTMLTableColElement" obj="testNode" var="vspan"/>
+<assertEquals actual="vspan" expected="1" id="spanLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableColElement08.xml b/test/testcases/tests/level1/html/HTMLTableColElement08.xml new file mode 100644 index 0000000..491ea88 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableColElement08.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableColElement08">
+<metadata>
+<title>HTMLTableColElement08</title>
+<creator>NIST</creator>
+<description>
+ The span attribute indicates the number of columns in a group or affected
+ by a grouping(COLGROUP).
+
+ Retrieve the span attribute of the COLGROUP element and examine its
+ value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-96511335"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vspan" type="int" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecol" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"colgroup"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<span interface="HTMLTableColElement" obj="testNode" var="vspan"/>
+<assertEquals actual="vspan" expected="2" id="spanLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableColElement09.xml b/test/testcases/tests/level1/html/HTMLTableColElement09.xml new file mode 100644 index 0000000..0e3314b --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableColElement09.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableColElement09">
+<metadata>
+<title>HTMLTableColElement09</title>
+<creator>NIST</creator>
+<description>
+ The vAlign attribute specifies the vertical alignment of cell data
+ in column(COL).
+
+ Retrieve the vAlign attribute from the COL element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-83291710"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vvalign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecol" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"col"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<vAlign interface="HTMLTableColElement" obj="testNode" var="vvalign"/>
+<assertEquals actual="vvalign" expected='"middle"' id="vAlignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableColElement10.xml b/test/testcases/tests/level1/html/HTMLTableColElement10.xml new file mode 100644 index 0000000..7be9c98 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableColElement10.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableColElement10">
+<metadata>
+<title>HTMLTableColElement10</title>
+<creator>NIST</creator>
+<description>
+ The vAlign attribute specifies the vertical alignment of cell data
+ in column(COLGROUP).
+
+ Retrieve the vAlign attribute from the COLGROUP element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-83291710"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vvalign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecol" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"colgroup"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<vAlign interface="HTMLTableColElement" obj="testNode" var="vvalign"/>
+<assertEquals actual="vvalign" expected='"middle"' id="vAlignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableColElement11.xml b/test/testcases/tests/level1/html/HTMLTableColElement11.xml new file mode 100644 index 0000000..636a0ae --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableColElement11.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableColElement11">
+<metadata>
+<title>HTMLTableColElement11</title>
+<creator>NIST</creator>
+<description>
+ The width attribute specifies the default column width(COL).
+
+ Retrieve the width attribute from the COL element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-25196799"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vwidth" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecol" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"col"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<width interface="HTMLTableColElement" obj="testNode" var="vwidth"/>
+<assertEquals actual="vwidth" expected='"20"' id="widthLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableColElement12.xml b/test/testcases/tests/level1/html/HTMLTableColElement12.xml new file mode 100644 index 0000000..bc39b9a --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableColElement12.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableColElement12">
+<metadata>
+<title>HTMLTableColElement12</title>
+<creator>NIST</creator>
+<description>
+ The width attribute specifies the default column width(COLGORUP).
+
+ Retrieve the width attribute from the COLGROUP element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-25196799"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vwidth" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablecol" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"colgroup"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<width interface="HTMLTableColElement" obj="testNode" var="vwidth"/>
+<assertEquals actual="vwidth" expected='"20"' id="widthLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableElement01.xml b/test/testcases/tests/level1/html/HTMLTableElement01.xml new file mode 100644 index 0000000..7135fd7 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement01.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement01">
+<metadata>
+<title>HTMLTableElement01</title>
+<creator>NIST</creator>
+<description>
+ The caption attribute returns the tables CAPTION.
+
+ Retrieve the align attribute of the CAPTION element from the second
+ TABLE element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-14594520"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vcaption" type="HTMLTableCaptionElement" />
+<var name="valign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="table" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<caption interface="HTMLTableElement" obj="testNode" var="vcaption"/>
+<align interface="HTMLTableCaptionElement" obj="vcaption" var="valign"/>
+<assertEquals actual="valign" expected='"top"' id="alignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableElement02.xml b/test/testcases/tests/level1/html/HTMLTableElement02.xml new file mode 100644 index 0000000..fb9fa8f --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement02.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement02">
+<metadata>
+<title>HTMLTableElement02</title>
+<creator>NIST</creator>
+<description>
+ The caption attribute returns the tables CAPTION or void if it does not
+ exist.
+
+ Retrieve the CAPTION element from within the first TABLE element.
+ Since one does not exist it should be void.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-14594520"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vcaption" type="HTMLTableCaptionElement" />
+<var name="doc" type="Document"/>
+<load var="doc" href="table" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<caption interface="HTMLTableElement" obj="testNode" var="vcaption"/>
+<assertNull actual="vcaption" id="captionLink" />
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableElement03.xml b/test/testcases/tests/level1/html/HTMLTableElement03.xml new file mode 100644 index 0000000..0b59fe6 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement03.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement03">
+<metadata>
+<title>HTMLTableElement03</title>
+<creator>NIST</creator>
+<description>
+ The tHead attribute returns the tables THEAD.
+
+ Retrieve the align attribute of the THEAD element from the second
+ TABLE element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-9530944"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vsection" type="HTMLTableSectionElement" />
+<var name="valign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="table" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<tHead interface="HTMLTableElement" obj="testNode" var="vsection"/>
+<align interface="HTMLTableSectionElement" obj="vsection" var="valign"/>
+<assertEquals actual="valign" expected='"center"' id="alignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableElement04.xml b/test/testcases/tests/level1/html/HTMLTableElement04.xml new file mode 100644 index 0000000..1e254b3 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement04.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement04">
+<metadata>
+<title>HTMLTableElement04</title>
+<creator>NIST</creator>
+<description>
+ The tHead attribute returns the tables THEAD or null if it does not
+ exist.
+
+ Retrieve the THEAD element from within the first TABLE element.
+ Since one does not exist it should be null.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-9530944"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vsection" type="HTMLTableSectionElement" />
+<var name="doc" type="Document"/>
+<load var="doc" href="table" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<tHead interface="HTMLTableElement" obj="testNode" var="vsection"/>
+<assertNull actual="vsection" id="sectionLink" />
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableElement05.xml b/test/testcases/tests/level1/html/HTMLTableElement05.xml new file mode 100644 index 0000000..15de11c --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement05.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement05">
+<metadata>
+<title>HTMLTableElement05</title>
+<creator>NIST</creator>
+<description>
+ The tFoot attribute returns the tables TFOOT.
+
+ Retrieve the align attribute of the TFOOT element from the second
+ TABLE element and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-64197097"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vsection" type="HTMLTableSectionElement" />
+<var name="valign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="table" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<tFoot interface="HTMLTableElement" obj="testNode" var="vsection"/>
+<align interface="HTMLTableSectionElement" obj="vsection" var="valign"/>
+<assertEquals actual="valign" expected='"center"' id="alignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableElement06.xml b/test/testcases/tests/level1/html/HTMLTableElement06.xml new file mode 100644 index 0000000..e18b8f8 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement06.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement06">
+<metadata>
+<title>HTMLTableElement06</title>
+<creator>NIST</creator>
+<description>
+ The tFoot attribute returns the tables TFOOT or null if it does not
+ exist.
+
+ Retrieve the TFOOT element from within the first TABLE element.
+ Since one does not exist it should be null.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-64197097"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vsection" type="HTMLTableSectionElement" />
+<var name="doc" type="Document"/>
+<load var="doc" href="table" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<tFoot interface="HTMLTableElement" obj="testNode" var="vsection"/>
+<assertNull actual="vsection" id="sectionLink" />
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableElement07.xml b/test/testcases/tests/level1/html/HTMLTableElement07.xml new file mode 100644 index 0000000..44be1c3 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement07.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement07"> +<metadata> +<title>HTMLTableElement07</title> +<creator>NIST</creator> +<description> + The rows attribute returns a collection of all the rows in the table, + including al in THEAD, TFOOT, all TBODY elements. + + Retrieve the rows attribute from the second TABLE element and + examine the items of the returned collection. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-6156016"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="rowsnodeList" type="HTMLCollection"/> +<var name="testNode" type="Node"/> +<var name="doc" type="Document"/> +<var name="rowName" type="DOMString"/> +<var name="vrow" type="Node"/> +<var name="result" type="List"/> +<var name="expectedOptions" type="List"> +<member>"tr"</member> +<member>"tr"</member> +<member>"tr"</member> +<member>"tr"</member> +</var> +<load var="doc" href="table" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<rows interface="HTMLTableElement" obj="testNode" var="rowsnodeList"/> +<for-each collection="rowsnodeList" member="vrow"> +<nodeName obj="vrow" var="rowName"/> +<append collection="result" item="rowName"/> +</for-each> +<assertEquals actual="result" expected="expectedOptions" id="rowsLink" ignoreCase="auto"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableElement08.xml b/test/testcases/tests/level1/html/HTMLTableElement08.xml new file mode 100644 index 0000000..1a744b1 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement08.xml @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement08"> +<metadata> +<title>HTMLTableElement08</title> +<creator>NIST</creator> +<description> + The tBodies attribute returns a collection of all the defined + table bodies. + + Retrieve the tBodies attribute from the second TABLE element and + examine the items of the returned collection. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63206416"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="tbodiesnodeList" type="HTMLCollection"/> +<var name="testNode" type="Node"/> +<var name="doc" type="Document"/> +<var name="tbodiesName" type="DOMString"/> +<var name="vtbodies" type="Node"/> +<var name="result" type="List"/> +<var name="expectedOptions" type="List"> +<member>"tbody"</member> +</var> +<load var="doc" href="table" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<tBodies interface="HTMLTableElement" obj="testNode" var="tbodiesnodeList"/> +<for-each collection="tbodiesnodeList" member="vtbodies"> +<nodeName obj="vtbodies" var="tbodiesName"/> +<append collection="result" item="tbodiesName"/> +</for-each> +<assertEquals actual="result" expected="expectedOptions" id="tbodiesLink" ignoreCase="auto"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableElement09.xml b/test/testcases/tests/level1/html/HTMLTableElement09.xml new file mode 100644 index 0000000..a0aecf3 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement09.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement09"> +<metadata> +<title>HTMLTableElement09</title> +<creator>NIST</creator> +<description> + The tBodies attribute returns a collection of all the defined + table bodies. + + Retrieve the tBodies attribute from the third TABLE element and + examine the items of the returned collection. Tests multiple TBODY + elements. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63206416"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="tbodiesnodeList" type="HTMLCollection"/> +<var name="testNode" type="Node"/> +<var name="doc" type="Document"/> +<var name="tbodiesName" type="DOMString"/> +<var name="vtbodies" type="Node"/> +<var name="result" type="List"/> +<var name="expectedOptions" type="List"> +<member>"tbody"</member> +<member>"tbody"</member> +<member>"tbody"</member> +</var> +<load var="doc" href="table" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="2"/> +<tBodies interface="HTMLTableElement" obj="testNode" var="tbodiesnodeList"/> +<for-each collection="tbodiesnodeList" member="vtbodies"> +<nodeName obj="vtbodies" var="tbodiesName"/> +<append collection="result" item="tbodiesName"/> +</for-each> +<assertEquals actual="result" expected="expectedOptions" id="tbodiesLink" ignoreCase="auto"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableElement10.xml b/test/testcases/tests/level1/html/HTMLTableElement10.xml new file mode 100644 index 0000000..160afeb --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement10.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement10">
+<metadata>
+<title>HTMLTableElement10</title>
+<creator>NIST</creator>
+<description>
+ The align attribute specifies the table's position with respect to the
+ rest of the document.
+
+ Retrieve the align attribute of the first TABLE element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-23180977"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="valign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="table" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<align interface="HTMLTableElement" obj="testNode" var="valign"/>
+<assertEquals actual="valign" expected='"center"' id="alignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableElement11.xml b/test/testcases/tests/level1/html/HTMLTableElement11.xml new file mode 100644 index 0000000..785c4d0 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement11.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement11">
+<metadata>
+<title>HTMLTableElement11</title>
+<creator>NIST</creator>
+<description>
+ The bgColor attribute specifies cell background color.
+
+ Retrieve the bgColor attribute of the first TABLE element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-83532985"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vbgcolor" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="table" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<bgColor interface="HTMLTableElement" obj="testNode" var="vbgcolor"/>
+<assertEquals actual="vbgcolor" expected='"#ff0000"' id="bgColorLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableElement12.xml b/test/testcases/tests/level1/html/HTMLTableElement12.xml new file mode 100644 index 0000000..811a147 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement12.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement12">
+<metadata>
+<title>HTMLTableElement12</title>
+<creator>NIST</creator>
+<description>
+ The border attribute specifies the width of the border around the table.
+
+ Retrieve the border attribute of the first TABLE element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-50969400"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vborder" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="table" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<border interface="HTMLTableElement" obj="testNode" var="vborder"/>
+<assertEquals actual="vborder" expected='"4"' id="borderLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableElement13.xml b/test/testcases/tests/level1/html/HTMLTableElement13.xml new file mode 100644 index 0000000..4a18d8d --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement13.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement13">
+<metadata>
+<title>HTMLTableElement13</title>
+<creator>NIST</creator>
+<description>
+ The cellpadding attribute specifies the horizontal and vertical space
+ between cell content and cell borders.
+
+ Retrieve the cellpadding attribute of the first TABLE element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59162158"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vcellpadding" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="table" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<cellPadding interface="HTMLTableElement" obj="testNode" var="vcellpadding"/>
+<assertEquals actual="vcellpadding" expected='"2"' id="cellPaddingLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableElement14.xml b/test/testcases/tests/level1/html/HTMLTableElement14.xml new file mode 100644 index 0000000..478e9c9 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement14.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement14">
+<metadata>
+<title>HTMLTableElement14</title>
+<creator>NIST</creator>
+<description>
+ The cellSpacing attribute specifies the horizontal and vertical separation
+ between cells.
+
+ Retrieve the cellSpacing attribute of the first TABLE element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-68907883"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="cellSpacing" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="table" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<cellSpacing interface="HTMLTableElement" obj="testNode" var="cellSpacing"/>
+<assertEquals actual="cellSpacing" expected='"2"' id="cellSpacingLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableElement15.xml b/test/testcases/tests/level1/html/HTMLTableElement15.xml new file mode 100644 index 0000000..51f9763 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement15.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement15">
+<metadata>
+<title>HTMLTableElement15</title>
+<creator>NIST</creator>
+<description>
+ The frame attribute specifies which external table borders to render.
+
+ Retrieve the frame attribute of the first TABLE element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-64808476"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vframe" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="table" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<frame interface="HTMLTableElement" obj="testNode" var="vframe"/>
+<assertEquals actual="vframe" expected='"border"' id="frameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableElement16.xml b/test/testcases/tests/level1/html/HTMLTableElement16.xml new file mode 100644 index 0000000..7166437 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement16.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement16">
+<metadata>
+<title>HTMLTableElement16</title>
+<creator>NIST</creator>
+<description>
+ The rules attribute specifies which internal table borders to render.
+
+ Retrieve the rules attribute of the first TABLE element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-26347553"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vrules" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="table" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<rules interface="HTMLTableElement" obj="testNode" var="vrules"/>
+<assertEquals actual="vrules" expected='"all"' id="rulesLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableElement17.xml b/test/testcases/tests/level1/html/HTMLTableElement17.xml new file mode 100644 index 0000000..9337c09 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement17.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement17">
+<metadata>
+<title>HTMLTableElement17</title>
+<creator>NIST</creator>
+<description>
+ The summary attribute is a description about the purpose or structure
+ of a table.
+
+ Retrieve the summary attribute of the first TABLE element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-44998528"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vsummary" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="table" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<summary interface="HTMLTableElement" obj="testNode" var="vsummary"/>
+<assertEquals actual="vsummary" expected='"HTML Control Table"' id="summaryLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableElement18.xml b/test/testcases/tests/level1/html/HTMLTableElement18.xml new file mode 100644 index 0000000..210e2b1 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement18.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement18">
+<metadata>
+<title>HTMLTableElement18</title>
+<creator>NIST</creator>
+<description>
+ The width attribute specifies the desired table width.
+
+ Retrieve the width attribute of the first TABLE element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-77447361"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vwidth" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="table" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<width interface="HTMLTableElement" obj="testNode" var="vwidth"/>
+<assertEquals actual="vwidth" expected='"680"' id="widthLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableElement19.xml b/test/testcases/tests/level1/html/HTMLTableElement19.xml new file mode 100644 index 0000000..152174d --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement19.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement19"> +<metadata> +<title>HTMLTableElement19</title> +<creator>NIST</creator> +<description> + The createTHead() method creates a table header row or returns + an existing one. + + Create a new THEAD element on the first TABLE element. The first + TABLE element should return null to make sure one doesn't exist. + After creation of the THEAD element the value is once again + checked and should not be null. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-70313345"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vsection1" type="HTMLTableSectionElement" /> +<var name="vsection2" type="HTMLTableSectionElement" /> +<var name="newHead" type="HTMLElement" /> +<var name="doc" type="Document"/> +<load var="doc" href="table" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<tHead interface="HTMLTableElement" obj="testNode" var="vsection1"/> +<assertNull actual="vsection1" id="vsection1Id"/> +<createTHead interface="HTMLTableElement" obj="testNode" var="newHead"/> +<tHead interface="HTMLTableElement" obj="testNode" var="vsection2"/> +<assertNotNull actual="vsection2" id="vsection2Id"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableElement20.xml b/test/testcases/tests/level1/html/HTMLTableElement20.xml new file mode 100644 index 0000000..032725b --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement20.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement20"> +<metadata> +<title>HTMLTableElement20</title> +<creator>NIST</creator> +<description> + The createTHead() method creates a table header row or returns + an existing one. + + Try to create a new THEAD element on the second TABLE element. + Since a THEAD element already exists in the TABLE element a new + THEAD element is not created and information from the already + existing THEAD element is returned. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-70313345"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vsection" type="HTMLTableSectionElement" /> +<var name="newHead" type="HTMLElement" /> +<var name="valign" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="table" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<createTHead interface="HTMLTableElement" obj="testNode" var="newHead"/> +<tHead interface="HTMLTableElement" obj="testNode" var="vsection"/> +<align interface="HTMLTableSectionElement" obj="vsection" var="valign"/> +<assertEquals actual="valign" expected='"center"' id="alignLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableElement21.xml b/test/testcases/tests/level1/html/HTMLTableElement21.xml new file mode 100644 index 0000000..3903b69 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement21.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement21"> +<metadata> +<title>HTMLTableElement21</title> +<creator>NIST</creator> +<description> + The deleteTHead() method deletes the header from the table. + + The deleteTHead() method will delete the THEAD Element from the + second TABLE element. First make sure that the THEAD element exists + and then count the number of rows. After the THEAD element is + deleted there should be one less row. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-38310198"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="rowsnodeList" type="HTMLCollection"/> +<var name="testNode" type="Node"/> +<var name="vsection1" type="HTMLTableElement" /> +<var name="vsection2" type="HTMLTableElement" /> +<var name="vrows" type="int"/> +<var name="doc" type="Document"/> +<var name="result" type="List"/> +<var name="expectedResult" type="List"> +<member>4</member> +<member>3</member> +</var> +<load var="doc" href="table" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<tHead interface="HTMLTableElement" obj="testNode" var="vsection1"/> +<assertNotNull actual="vsection1" id="vsection1Id"/> +<rows interface="HTMLTableElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<append collection="result" item="vrows"/> +<deleteTHead obj="testNode" interface="HTMLTableElement"/> +<tHead interface="HTMLTableElement" obj="testNode" var="vsection2"/> +<rows interface="HTMLTableElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<append collection="result" item="vrows"/> +<assertEquals actual="result" expected="expectedResult" id="rowsLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableElement22.xml b/test/testcases/tests/level1/html/HTMLTableElement22.xml new file mode 100644 index 0000000..6649b0f --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement22.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement22"> +<metadata> +<title>HTMLTableElement22</title> +<creator>NIST</creator> +<description> + The createTFoot() method creates a table footer row or returns + an existing one. + + Create a new TFOOT element on the first TABLE element. The first + TABLE element should return null to make sure one doesn't exist. + After creation of the TFOOT element the value is once again + checked and should not be null. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-8453710"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vsection1" type="HTMLTableSectionElement" /> +<var name="vsection2" type="HTMLTableSectionElement" /> +<var name="newFoot" type="HTMLElement" /> +<var name="doc" type="Document"/> +<load var="doc" href="table" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<tFoot interface="HTMLTableElement" obj="testNode" var="vsection1"/> +<assertNull actual="vsection1" id="vsection1Id"/> +<createTFoot interface="HTMLTableElement" obj="testNode" var="newFoot"/> +<tFoot interface="HTMLTableElement" obj="testNode" var="vsection2"/> +<assertNotNull actual="vsection2" id="vsection2Id"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableElement23.xml b/test/testcases/tests/level1/html/HTMLTableElement23.xml new file mode 100644 index 0000000..1f53f03 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement23.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement23"> +<metadata> +<title>HTMLTableElement23</title> +<creator>NIST</creator> +<description> + The createTFoot() method creates a table footer row or returns + an existing one. + + Try to create a new TFOOT element on the second TABLE element. + Since a TFOOT element already exists in the TABLE element a new + TFOOT element is not created and information from the already + existing TFOOT element is returned. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-8453710"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vsection" type="HTMLTableSectionElement" /> +<var name="newFoot" type="HTMLElement" /> +<var name="valign" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="table" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<createTFoot interface="HTMLTableElement" obj="testNode" var="newFoot"/> +<tFoot interface="HTMLTableElement" obj="testNode" var="vsection"/> +<align interface="HTMLTableSectionElement" obj="vsection" var="valign"/> +<assertEquals actual="valign" expected='"center"' id="alignLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableElement24.xml b/test/testcases/tests/level1/html/HTMLTableElement24.xml new file mode 100644 index 0000000..d6f993c --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement24.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement24"> +<metadata> +<title>HTMLTableElement24</title> +<creator>NIST</creator> +<description> + The deleteTFoot() method deletes the footer from the table. + + The deleteTFoot() method will delete the TFOOT Element from the + second TABLE element. First make sure that the TFOOT element exists + and then count the number of rows. After the TFOOT element is + deleted there should be one less row. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-78363258"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="rowsnodeList" type="HTMLCollection"/> +<var name="testNode" type="Node"/> +<var name="vsection1" type="HTMLTableElement" /> +<var name="vsection2" type="HTMLTableElement" /> +<var name="vrows" type="int"/> +<var name="doc" type="Document"/> +<var name="result" type="List"/> +<var name="expectedResult" type="List"> +<member>4</member> +<member>3</member> +</var> +<load var="doc" href="table" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<tFoot interface="HTMLTableElement" obj="testNode" var="vsection1"/> +<assertNotNull actual="vsection1" id="vsection1Id"/> +<rows interface="HTMLTableElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<append collection="result" item="vrows"/> +<deleteTFoot obj="testNode" interface="HTMLTableElement"/> +<tFoot interface="HTMLTableElement" obj="testNode" var="vsection2"/> +<rows interface="HTMLTableElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<append collection="result" item="vrows"/> +<assertEquals actual="result" expected="expectedResult" id="rowsLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableElement25.xml b/test/testcases/tests/level1/html/HTMLTableElement25.xml new file mode 100644 index 0000000..a28ae65 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement25.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement25"> +<metadata> +<title>HTMLTableElement25</title> +<creator>NIST</creator> +<description> + The createCaption() method creates a new table caption object or returns + an existing one. + + Create a new CAPTION element on the first TABLE element. Since + one does not currently exist the CAPTION element is created. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-96920263"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vsection1" type="HTMLTableCaptionElement" /> +<var name="vsection2" type="HTMLTableCaptionElement" /> +<var name="newCaption" type="HTMLElement" /> +<var name="doc" type="Document"/> +<load var="doc" href="table" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<caption interface="HTMLTableElement" obj="testNode" var="vsection1"/> +<assertNull actual="vsection1" id="vsection1Id"/> +<createCaption interface="HTMLTableElement" obj="testNode" var="newCaption"/> +<caption interface="HTMLTableElement" obj="testNode" var="vsection2"/> +<assertNotNull actual="vsection2" id="vsection2Id"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableElement26.xml b/test/testcases/tests/level1/html/HTMLTableElement26.xml new file mode 100644 index 0000000..5517f2f --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement26.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement26"> +<metadata> +<title>HTMLTableElement26</title> +<creator>NIST</creator> +<description> + The createCaption() method creates a new table caption object or returns + an existing one. + + Create a new CAPTION element on the first TABLE element. Since + one currently exists the CAPTION element is not created and you + can get the align attribute from the CAPTION element that exists. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-96920263"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vsection1" type="HTMLTableSectionElement" /> +<var name="vcaption" type="HTMLTableCaptionElement" /> +<var name="newCaption" type="HTMLElement" /> +<var name="valign" type="DOMString"/> +<var name="doc" type="Document"/> +<load var="doc" href="table" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<caption interface="HTMLTableElement" obj="testNode" var="vsection1"/> +<assertNotNull actual="vsection1" id="vsection1Id"/> +<createCaption interface="HTMLTableElement" obj="testNode" var="newCaption"/> +<caption interface="HTMLTableElement" obj="testNode" var="vcaption"/> +<align interface="HTMLTableCaptionElement" obj="vcaption" var="valign"/> +<assertEquals actual="valign" expected='"top"' id="alignLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableElement27.xml b/test/testcases/tests/level1/html/HTMLTableElement27.xml new file mode 100644 index 0000000..c387d69 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement27.xml @@ -0,0 +1,47 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement27"> +<metadata> +<title>HTMLTableElement27</title> +<creator>NIST</creator> +<description> + The deleteCaption() method deletes the table caption. + + Delete the CAPTION element on the second TABLE element. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-22930071"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vsection1" type="HTMLTableSectionElement" /> +<var name="vsection2" type="HTMLTableSectionElement" /> +<var name="valign" type="DOMString"/> +<var name="doc" type="Document"/> +<load var="doc" href="table" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<caption interface="HTMLTableElement" obj="testNode" var="vsection1"/> +<assertNotNull actual="vsection1" id="vsection1Id"/> +<deleteCaption interface="HTMLTableElement" obj="testNode"/> +<caption interface="HTMLTableElement" obj="testNode" var="vsection2"/> +<assertNull actual="vsection2" id="vsection2Id"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableElement28.xml b/test/testcases/tests/level1/html/HTMLTableElement28.xml new file mode 100644 index 0000000..95f300c --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement28.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement28"> +<metadata> +<title>HTMLTableElement28</title> +<creator>NIST</creator> +<description> + The insertRow() method inserts a new empty table row. + + Retrieve the second TABLE element and invoke the insertRow() method + with an index of 0. Currently the zero indexed row is in the THEAD + section of the TABLE. The number of rows in the THEAD section before + insertion of the new row is one. After the new row is inserted the number + of rows in the THEAD section is two. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-39872903"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="newRow" type="HTMLElement"/> +<var name="rowsnodeList" type="HTMLCollection"/> +<var name="vsection1" type="HTMLTableSectionElement"/> +<var name="vsection2" type="HTMLTableSectionElement"/> +<var name="vrows" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="table" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<tHead interface="HTMLTableElement" obj="testNode" var="vsection1"/> +<rows interface="HTMLTableSectionElement" obj="vsection1" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="1" id="rowsLink1" ignoreCase="false"/> +<insertRow interface="HTMLTableElement" obj="testNode" var="newRow" index="0"/> +<tHead interface="HTMLTableElement" obj="testNode" var="vsection2"/> +<rows interface="HTMLTableSectionElement" obj="vsection2" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="2" id="rowsLink2" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableElement29.xml b/test/testcases/tests/level1/html/HTMLTableElement29.xml new file mode 100644 index 0000000..ba62848 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement29.xml @@ -0,0 +1,61 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement29"> +<metadata> +<title>HTMLTableElement29</title> +<creator>NIST</creator> +<description> + The insertRow() method inserts a new empty table row. + + Retrieve the second TABLE element and invoke the insertRow() method + with an index of two. Currently the 2nd indexed row is in the TBODY + section of the TABLE. The number of rows in the TBODY section before + insertion of the new row is two. After the new row is inserted the number + of rows in the TBODY section is three. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-39872903"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="tbodiesnodeList" type="HTMLCollection"/> +<var name="testNode" type="Node"/> +<var name="bodyNode" type="Node"/> +<var name="newRow" type="HTMLElement"/> +<var name="rowsnodeList" type="HTMLCollection"/> +<var name="vsection1" type="HTMLTableSectionElement"/> +<var name="vsection2" type="HTMLTableSectionElement"/> +<var name="vrows" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="table" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<tBodies interface="HTMLTableElement" obj="testNode" var="tbodiesnodeList"/> +<item interface="HTMLCollection" obj="tbodiesnodeList" var="bodyNode" index="0"/> +<rows interface="HTMLTableSectionElement" obj="bodyNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="2" id="rowsLink1" ignoreCase="false"/> +<insertRow interface="HTMLTableElement" obj="testNode" var="newRow" index="2"/> +<tBodies interface="HTMLTableElement" obj="testNode" var="tbodiesnodeList"/> +<item interface="HTMLCollection" obj="tbodiesnodeList" var="bodyNode" index="0"/> +<rows interface="HTMLTableSectionElement" obj="bodyNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="3" id="rowsLink2" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableElement30.xml b/test/testcases/tests/level1/html/HTMLTableElement30.xml new file mode 100644 index 0000000..e45cf68 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement30.xml @@ -0,0 +1,64 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement30"> +<metadata> +<title>HTMLTableElement30</title> +<creator>NIST</creator> +<description> + The insertRow() method inserts a new empty table row. + + Retrieve the second TABLE element and invoke the insertRow() method + with an index of four. After the new row is inserted the number of rows + in the table should be five. + Also the number of rows in the TFOOT section before + insertion of the new row is one. After the new row is inserted the number + of rows in the TFOOT section is two. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-39872903"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="tbodiesnodeList" type="HTMLCollection"/> +<var name="testNode" type="Node"/> +<var name="newRow" type="HTMLElement"/> +<var name="rowsnodeList" type="HTMLCollection"/> +<var name="vsection1" type="HTMLTableSectionElement"/> +<var name="vrows" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="table" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<rows interface="HTMLTableSectionElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="4" id="rowsLink1" ignoreCase="false"/> +<tFoot interface="HTMLTableElement" obj="testNode" var="vsection1"/> +<rows interface="HTMLTableSectionElement" obj="vsection1" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="1" id="rowsLink" ignoreCase="false"/> +<insertRow interface="HTMLTableElement" obj="testNode" var="newRow" index="4"/> +<rows interface="HTMLTableSectionElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="5" id="rowsLink2" ignoreCase="false"/> +<tFoot interface="HTMLTableElement" obj="testNode" var="vsection1"/> +<rows interface="HTMLTableSectionElement" obj="vsection1" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="2" id="rowsLink3" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableElement31.xml b/test/testcases/tests/level1/html/HTMLTableElement31.xml new file mode 100644 index 0000000..e5eb32d --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement31.xml @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement31"> +<metadata> +<title>HTMLTableElement31</title> +<creator>NIST</creator> +<description> + The insertRow() method inserts a new empty table row. In addition, when + the table is empty the row is inserted into a TBODY which is created + and inserted into the table. + + Load the table1 file which has a non-empty table element. + Create an empty TABLE element and append to the document. + Check to make sure that the empty TABLE element doesn't + have a TBODY element. Insert a new row into the empty + TABLE element. Check for existence of the a TBODY element + in the table. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-39872903"/> +<!-- comments on the commented out sections --> +<subject resource="http://lists.w3.org/Archives/Public/www-dom-ts/2002Aug/0019.html"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=502"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="tableNode" type="Node"/> +<var name="tbodiesnodeList" type="HTMLCollection"/> +<var name="newRow" type="HTMLElement"/> +<var name="doc" type="Document"/> +<var name="table" type="Element"/> +<var name="tbodiesLength" type="int"/> +<load var="doc" href="table1" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"body"'/> +<assertSize collection="nodeList" size="1" id="tableSize1"/> +<item interface="NodeList" obj="nodeList" index="0" var="testNode"/> +<createElement obj="doc" var="table" tagName='"table"'/> +<appendChild obj="testNode" newChild="table" var="tableNode"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="2" id="tableSize2"/> +<tBodies interface="HTMLTableElement" obj="tableNode" var="tbodiesnodeList"/> +<length var="tbodiesLength" obj="tbodiesnodeList" interface="HTMLCollection"/> +<assertEquals actual="tbodiesLength" expected="0" id="Asize3" ignoreCase="false"/> +<insertRow interface="HTMLTableElement" obj="tableNode" var="newRow" index="0"/> +<tBodies interface="HTMLTableElement" obj="tableNode" var="tbodiesnodeList"/> +<length var="tbodiesLength" obj="tbodiesnodeList" interface="HTMLCollection"/> +<assertEquals actual="tbodiesLength" expected="1" id="Asize4" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableElement32.xml b/test/testcases/tests/level1/html/HTMLTableElement32.xml new file mode 100644 index 0000000..a6529b0 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement32.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement32"> +<metadata> +<title>HTMLTableElement32</title> +<creator>NIST</creator> +<description> + The deleteRow() method deletes a table row. + + Retrieve the second TABLE element and invoke the deleteRow() method + with an index of 0(first row). Currently there are four rows in the + table. After the deleteRow() method is called there should be + three rows in the table. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-13114938"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="rowsnodeList" type="HTMLCollection"/> +<var name="vrows" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="table" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<rows interface="HTMLTableSectionElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="4" id="rowsLink1" ignoreCase="false"/> +<deleteRow interface="HTMLTableElement" obj="testNode" index="0"/> +<rows interface="HTMLTableSectionElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="3" id="rowsLink2" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableElement33.xml b/test/testcases/tests/level1/html/HTMLTableElement33.xml new file mode 100644 index 0000000..1ae507a --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableElement33.xml @@ -0,0 +1,50 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableElement33"> +<metadata> +<title>HTMLTableElement33</title> +<creator>NIST</creator> +<description> + The deleteRow() method deletes a table row. + + Retrieve the second TABLE element and invoke the deleteRow() method + with an index of 3(last row). Currently there are four rows in the + table. The deleteRow() method is called and now there should be three. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-13114938"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="rowsnodeList" type="HTMLCollection"/> +<var name="vrows" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="table" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<rows interface="HTMLTableSectionElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="4" id="rowsLink1" ignoreCase="false"/> +<deleteRow interface="HTMLTableElement" obj="testNode" index="3"/> +<rows interface="HTMLTableSectionElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="3" id="rowsLink2" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableRowElement01.xml b/test/testcases/tests/level1/html/HTMLTableRowElement01.xml new file mode 100644 index 0000000..0dbd008 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableRowElement01.xml @@ -0,0 +1,46 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableRowElement01">
+<metadata>
+<title>HTMLTableRowElement01</title>
+<creator>NIST</creator>
+<description>
+ The rowIndex attribute specifies the index of the row, relative to the
+ entire table, starting from 0. This is in document tree order and
+ not display order. The rowIndex does not take into account sections
+ (THEAD, TFOOT, or TBODY) within the table.
+
+ Retrieve the third TR element within the document and examine
+ its rowIndex value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-67347567"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vrowindex" type="int" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablerow" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tr"'/>
+<assertSize collection="nodeList" size="5" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="3"/>
+<rowIndex interface="HTMLTableRowElement" obj="testNode" var="vrowindex"/>
+<assertEquals actual="vrowindex" expected="1" id="rowIndexLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableRowElement02.xml b/test/testcases/tests/level1/html/HTMLTableRowElement02.xml new file mode 100644 index 0000000..284bc84 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableRowElement02.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableRowElement02">
+<metadata>
+<title>HTMLTableRowElement02</title>
+<creator>NIST</creator>
+<description>
+ The sectionRowIndex attribute specifies the index of this row, relative
+ to the current section(THEAD, TFOOT, or TBODY),starting from 0.
+
+ Retrieve the second TR(1st In THEAD) element within the document and
+ examine its sectionRowIndex value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-79105901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vsectionrowindex" type="int" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablerow" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tr"'/>
+<assertSize collection="nodeList" size="5" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<sectionRowIndex interface="HTMLTableRowElement" obj="testNode" var="vsectionrowindex"/>
+<assertEquals actual="vsectionrowindex" expected="0" id="sectionRowIndexLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableRowElement03.xml b/test/testcases/tests/level1/html/HTMLTableRowElement03.xml new file mode 100644 index 0000000..341c2a5 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableRowElement03.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableRowElement03">
+<metadata>
+<title>HTMLTableRowElement03</title>
+<creator>NIST</creator>
+<description>
+ The sectionRowIndex attribute specifies the index of this row, relative
+ to the current section(THEAD, TFOOT, or TBODY),starting from 0.
+
+ Retrieve the third TR(1st In TFOOT) element within the document and
+ examine its sectionRowIndex value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-79105901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vsectionrowindex" type="int" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablerow" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tr"'/>
+<assertSize collection="nodeList" size="5" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="2"/>
+<sectionRowIndex interface="HTMLTableRowElement" obj="testNode" var="vsectionrowindex"/>
+<assertEquals actual="vsectionrowindex" expected="0" id="sectionRowIndexLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableRowElement04.xml b/test/testcases/tests/level1/html/HTMLTableRowElement04.xml new file mode 100644 index 0000000..bca05d4 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableRowElement04.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableRowElement04">
+<metadata>
+<title>HTMLTableRowElement04</title>
+<creator>NIST</creator>
+<description>
+ The sectionRowIndex attribute specifies the index of this row, relative
+ to the current section(THEAD, TFOOT, or TBODY),starting from 0.
+
+ Retrieve the fifth TR(2nd In TBODY) element within the document and
+ examine its sectionRowIndex value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-79105901"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vsectionrowindex" type="int" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablerow" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tr"'/>
+<assertSize collection="nodeList" size="5" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="4"/>
+<sectionRowIndex interface="HTMLTableRowElement" obj="testNode" var="vsectionrowindex"/>
+<assertEquals actual="vsectionrowindex" expected="1" id="sectionRowIndexLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableRowElement05.xml b/test/testcases/tests/level1/html/HTMLTableRowElement05.xml new file mode 100644 index 0000000..638126b --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableRowElement05.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableRowElement05">
+<metadata>
+<title>HTMLTableRowElement05</title>
+<creator>NIST</creator>
+<description>
+ The cells attribute specifies the collection of cells in this row.
+
+ Retrieve the fourth TR element and examine the value of
+ the cells length attribute.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-67349879"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="cellsnodeList" type="HTMLCollection"/>
+<var name="testNode" type="Node"/>
+<var name="vcells" type="int" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablerow" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tr"'/>
+<assertSize collection="nodeList" size="5" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="3"/>
+<cells interface="HTMLTableRowElement" obj="testNode" var="cellsnodeList"/>
+<length interface="HTMLCollection" obj="cellsnodeList" var="vcells"/>
+<assertEquals actual="vcells" expected="6" id="cellsLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableRowElement06.xml b/test/testcases/tests/level1/html/HTMLTableRowElement06.xml new file mode 100644 index 0000000..55fc2ac --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableRowElement06.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableRowElement06">
+<metadata>
+<title>HTMLTableRowElement06</title>
+<creator>NIST</creator>
+<description>
+ The align attribute specifies the horizontal alignment of data within
+ cells of this row.
+
+ Retrieve the align attribute of the second TR element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-74098257"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="valign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablerow" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tr"'/>
+<assertSize collection="nodeList" size="5" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<align interface="HTMLTableRowElement" obj="testNode" var="valign"/>
+<assertEquals actual="valign" expected='"center"' id="alignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableRowElement07.xml b/test/testcases/tests/level1/html/HTMLTableRowElement07.xml new file mode 100644 index 0000000..c586f6a --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableRowElement07.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableRowElement07"> +<metadata> +<title>HTMLTableRowElement07</title> +<creator>NIST</creator> +<description> + The bgColor attribute specifies the background color of rows. + + Retrieve the bgColor attribute of the second TR element and examine + its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-18161327"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vbgcolor" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="tablerow" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tr"'/> +<assertSize collection="nodeList" size="5" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<bgColor interface="HTMLTableRowElement" obj="testNode" var="vbgcolor"/> +<assertEquals actual="vbgcolor" expected='"#00FFFF"' id="bgColorLink" ignoreCase="true"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableRowElement08.xml b/test/testcases/tests/level1/html/HTMLTableRowElement08.xml new file mode 100644 index 0000000..751ef9e --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableRowElement08.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableRowElement08">
+<metadata>
+<title>HTMLTableRowElement08</title>
+<creator>NIST</creator>
+<description>
+ The ch attribute specifies the alignment character for cells in a column.
+
+ Retrieve the char attribute of the second TR element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-16230502"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vch" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablerow" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tr"'/>
+<assertSize collection="nodeList" size="5" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<ch interface="HTMLTableRowElement" obj="testNode" var="vch"/>
+<assertEquals actual="vch" expected='"*"' id="chLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableRowElement09.xml b/test/testcases/tests/level1/html/HTMLTableRowElement09.xml new file mode 100644 index 0000000..eda033b --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableRowElement09.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableRowElement09">
+<metadata>
+<title>HTMLTableRowElement09</title>
+<creator>NIST</creator>
+<description>
+ The chOff attribute specifies the offset of alignment character.
+
+ Retrieve the charoff attribute of the second TR element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-68207461"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vchoff" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablerow" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tr"'/>
+<assertSize collection="nodeList" size="5" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<chOff interface="HTMLTableRowElement" obj="testNode" var="vchoff"/>
+<assertEquals actual="vchoff" expected='"1"' id="charOffLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableRowElement10.xml b/test/testcases/tests/level1/html/HTMLTableRowElement10.xml new file mode 100644 index 0000000..3554fb6 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableRowElement10.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableRowElement10">
+<metadata>
+<title>HTMLTableRowElement10</title>
+<creator>NIST</creator>
+<description>
+ The vAlign attribute specifies the vertical alignment of data within
+ cells of this row.
+
+ Retrieve the vAlign attribute of the second TR element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-90000058"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vvalign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablerow" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tr"'/>
+<assertSize collection="nodeList" size="5" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<vAlign interface="HTMLTableRowElement" obj="testNode" var="vvalign"/>
+<assertEquals actual="vvalign" expected='"middle"' id="vAlignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableRowElement11.xml b/test/testcases/tests/level1/html/HTMLTableRowElement11.xml new file mode 100644 index 0000000..f284090 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableRowElement11.xml @@ -0,0 +1,67 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableRowElement11"> +<metadata> +<title>HTMLTableRowElement11</title> +<creator>NIST</creator> +<description> + The insertCell() method inserts an empty TD cell into this row. + + + 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 first TD element. Invoke the + insertCell() which will create an empty TD cell at the + zero index position. Check the value of the newly created + cell and make sure it is null and also the numbers of cells + should now be seven. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-06</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-68927016"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="cellsnodeList" type="HTMLCollection"/> +<var name="testNode" type="Node"/> +<var name="trNode" type="Node"/> +<var name="cellNode" type="Node"/> +<var name="value" type="DOMString"/> +<var name="newCell" type="HTMLElement"/> +<var name="vcells" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="tablerow" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tr"'/> +<assertSize collection="nodeList" size="5" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="3"/> +<cells interface="HTMLTableRowElement" obj="testNode" var="cellsnodeList"/> +<length interface="HTMLCollection" obj="cellsnodeList" var="vcells"/> +<assertEquals actual="vcells" expected="6" id="cellsLink1" ignoreCase="false"/> +<item interface="HTMLCollection" obj="cellsnodeList" var="trNode" index="0"/> +<firstChild interface="Node" obj="trNode" var="cellNode"/> +<nodeValue obj="cellNode" var="value"/> +<assertEquals actual="value" expected='"EMP0001"' id="value1Link" ignoreCase="false"/> +<insertCell interface="HTMLTableRowElement" obj="testNode" var="newCell" index="0"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="3"/> +<cells interface="HTMLTableRowElement" obj="testNode" var="cellsnodeList"/> +<length interface="HTMLCollection" obj="cellsnodeList" var="vcells"/> +<assertEquals actual="vcells" expected="7" id="cellsLink2" ignoreCase="false"/> +<item interface="HTMLCollection" obj="cellsnodeList" var="trNode" index="0"/> +<firstChild interface="Node" obj="trNode" var="cellNode"/> +<assertNull actual="cellNode" id="value2Link"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableRowElement12.xml b/test/testcases/tests/level1/html/HTMLTableRowElement12.xml new file mode 100644 index 0000000..121954c --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableRowElement12.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableRowElement12"> +<metadata> +<title>HTMLTableRowElement12</title> +<creator>NIST</creator> +<description> + The insertCell() method inserts an empty TD cell into this row. + + + 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() 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. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-06</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-68927016"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="cellsnodeList" type="HTMLCollection"/> +<var name="testNode" type="Node"/> +<var name="trNode" type="Node"/> +<var name="cellNode" type="Node"/> +<var name="value" type="DOMString"/> +<var name="newCell" type="HTMLElement"/> +<var name="vcells" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="tablerow" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tr"'/> +<assertSize collection="nodeList" size="5" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="3"/> +<cells interface="HTMLTableRowElement" obj="testNode" var="cellsnodeList"/> +<length interface="HTMLCollection" obj="cellsnodeList" var="vcells"/> +<assertEquals actual="vcells" expected="6" id="cellsLink1" ignoreCase="false"/> +<item interface="HTMLCollection" obj="cellsnodeList" var="trNode" index="5"/> +<firstChild interface="Node" obj="trNode" var="cellNode"/> +<nodeValue obj="cellNode" var="value"/> +<assertEquals actual="value" expected='"1230 North Ave. Dallas, Texas 98551"' id="value1Link" ignoreCase="false"/> +<insertCell interface="HTMLTableRowElement" obj="testNode" var="newCell" index="6"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="3"/> +<cells interface="HTMLTableRowElement" obj="testNode" var="cellsnodeList"/> +<length interface="HTMLCollection" obj="cellsnodeList" var="vcells"/> +<assertEquals actual="vcells" expected="7" id="cellsLink2" ignoreCase="false"/> +<item interface="HTMLCollection" obj="cellsnodeList" var="trNode" index="6"/> +<firstChild interface="Node" obj="trNode" var="cellNode"/> +<assertNull actual="cellNode" id="value2Link"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableRowElement13.xml b/test/testcases/tests/level1/html/HTMLTableRowElement13.xml new file mode 100644 index 0000000..a90f596 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableRowElement13.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableRowElement13"> +<metadata> +<title>HTMLTableRowElement13</title> +<creator>NIST</creator> +<description> + The deleteCell() method deletes a cell from the current row. + + + 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 first TD element. Invoke the + deleteCell() method which will delete a cell from the current row. + Check the value of the cell at the zero index and also check + the number of cells which should now be five. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-06</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-11738598"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="cellsnodeList" type="HTMLCollection"/> +<var name="testNode" type="Node"/> +<var name="trNode" type="Node"/> +<var name="cellNode" type="Node"/> +<var name="value" type="DOMString"/> +<var name="vcells" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="tablerow" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tr"'/> +<assertSize collection="nodeList" size="5" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="3"/> +<cells interface="HTMLTableRowElement" obj="testNode" var="cellsnodeList"/> +<length interface="HTMLCollection" obj="cellsnodeList" var="vcells"/> +<assertEquals actual="vcells" expected="6" id="cellsLink1" ignoreCase="false"/> +<item interface="HTMLCollection" obj="cellsnodeList" var="trNode" index="0"/> +<firstChild interface="Node" obj="trNode" var="cellNode"/> +<nodeValue obj="cellNode" var="value"/> +<assertEquals actual="value" expected='"EMP0001"' id="value1Link" ignoreCase="false"/> +<deleteCell interface="HTMLTableRowElement" obj="testNode" index="0"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="3"/> +<cells interface="HTMLTableRowElement" obj="testNode" var="cellsnodeList"/> +<length interface="HTMLCollection" obj="cellsnodeList" var="vcells"/> +<assertEquals actual="vcells" expected="5" id="cellsLink2" ignoreCase="false"/> +<item interface="HTMLCollection" obj="cellsnodeList" var="trNode" index="0"/> +<firstChild interface="Node" obj="trNode" var="cellNode"/> +<nodeValue obj="cellNode" var="value"/> +<assertEquals actual="value" expected='"Margaret Martin"' id="value2Link" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableRowElement14.xml b/test/testcases/tests/level1/html/HTMLTableRowElement14.xml new file mode 100644 index 0000000..27af8e2 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableRowElement14.xml @@ -0,0 +1,66 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableRowElement14"> +<metadata> +<title>HTMLTableRowElement14</title> +<creator>NIST</creator> +<description> + The deleteCell() method deletes a cell from the current row. + + + 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 third(index 2) TD element. Invoke the + deleteCell() method which will delete a cell from the current row. + Check the value of the third cell(index 2) and also check + the number of cells which should now be five. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-06</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-11738598"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="cellsnodeList" type="HTMLCollection"/> +<var name="testNode" type="Node"/> +<var name="trNode" type="Node"/> +<var name="cellNode" type="Node"/> +<var name="value" type="DOMString"/> +<var name="vcells" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="tablerow" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tr"'/> +<assertSize collection="nodeList" size="5" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="3"/> +<cells interface="HTMLTableRowElement" obj="testNode" var="cellsnodeList"/> +<length interface="HTMLCollection" obj="cellsnodeList" var="vcells"/> +<assertEquals actual="vcells" expected="6" id="cellsLink1" ignoreCase="false"/> +<item interface="HTMLCollection" obj="cellsnodeList" var="trNode" index="2"/> +<firstChild interface="Node" obj="trNode" var="cellNode"/> +<nodeValue obj="cellNode" var="value"/> +<assertEquals actual="value" expected='"Accountant"' id="value1Link" ignoreCase="false"/> +<deleteCell interface="HTMLTableRowElement" obj="testNode" index="2"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="3"/> +<cells interface="HTMLTableRowElement" obj="testNode" var="cellsnodeList"/> +<length interface="HTMLCollection" obj="cellsnodeList" var="vcells"/> +<assertEquals actual="vcells" expected="5" id="cellsLink2" ignoreCase="false"/> +<item interface="HTMLCollection" obj="cellsnodeList" var="trNode" index="2"/> +<firstChild interface="Node" obj="trNode" var="cellNode"/> +<nodeValue obj="cellNode" var="value"/> +<assertEquals actual="value" expected='"56,000"' id="value2Link" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement01.xml b/test/testcases/tests/level1/html/HTMLTableSectionElement01.xml new file mode 100644 index 0000000..238dcb2 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableSectionElement01.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableSectionElement01">
+<metadata>
+<title>HTMLTableSectionElement01</title>
+<creator>NIST</creator>
+<description>
+ The align attribute specifies the horizontal alignment of data within
+ cells.
+
+ Retrieve the align attribute of the first THEAD element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-40530119"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="valign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablesection" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"thead"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<align interface="HTMLTableSectionElement" obj="testNode" var="valign"/>
+<assertEquals actual="valign" expected='"center"' id="alignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement02.xml b/test/testcases/tests/level1/html/HTMLTableSectionElement02.xml new file mode 100644 index 0000000..c4bdbf9 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableSectionElement02.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableSectionElement02">
+<metadata>
+<title>HTMLTableSectionElement02</title>
+<creator>NIST</creator>
+<description>
+ The align attribute specifies the horizontal alignment of data within
+ cells.
+
+ Retrieve the align attribute of the first TFOOT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-40530119"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="valign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablesection" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tfoot"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<align interface="HTMLTableSectionElement" obj="testNode" var="valign"/>
+<assertEquals actual="valign" expected='"center"' id="alignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement03.xml b/test/testcases/tests/level1/html/HTMLTableSectionElement03.xml new file mode 100644 index 0000000..2236435 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableSectionElement03.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableSectionElement03"> +<metadata> +<title>HTMLTableSectionElement03</title> +<creator>NIST</creator> +<description> + The align attribute specifies the horizontal alignment of data within + cells. + + Retrieve the align attribute of the first TBODY element and examine + its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-40530119"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="valign" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="tablesection" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tbody"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<align interface="HTMLTableSectionElement" obj="testNode" var="valign"/> +<assertEquals actual="valign" expected='"center"' id="alignLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement04.xml b/test/testcases/tests/level1/html/HTMLTableSectionElement04.xml new file mode 100644 index 0000000..2060f35 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableSectionElement04.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableSectionElement04">
+<metadata>
+<title>HTMLTableSectionElement04</title>
+<creator>NIST</creator>
+<description>
+ The ch attribute specifies the alignment character for cells in a
+ column.
+
+ Retrieve the char attribute of the first THEAD element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-83470012"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vch" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablesection" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"thead"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<ch interface="HTMLTableSectionElement" obj="testNode" var="vch"/>
+<assertEquals actual="vch" expected='"*"' id="chLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement05.xml b/test/testcases/tests/level1/html/HTMLTableSectionElement05.xml new file mode 100644 index 0000000..32022bb --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableSectionElement05.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableSectionElement05">
+<metadata>
+<title>HTMLTableSectionElement05</title>
+<creator>NIST</creator>
+<description>
+ The ch attribute specifies the alignment character for cells in a
+ column.
+
+ Retrieve the char attribute of the first TFOOT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-83470012"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vch" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablesection" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tfoot"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<ch interface="HTMLTableSectionElement" obj="testNode" var="vch"/>
+<assertEquals actual="vch" expected='"+"' id="chLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement06.xml b/test/testcases/tests/level1/html/HTMLTableSectionElement06.xml new file mode 100644 index 0000000..be665e4 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableSectionElement06.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableSectionElement06"> +<metadata> +<title>HTMLTableSectionElement06</title> +<creator>NIST</creator> +<description> + The ch attribute specifies the alignment character for cells in a + column. + + Retrieve the char attribute of the first TBODY element and examine + its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-83470012"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vch" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="tablesection" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tbody"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<ch interface="HTMLTableSectionElement" obj="testNode" var="vch"/> +<assertEquals actual="vch" expected='"$"' id="chLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement07.xml b/test/testcases/tests/level1/html/HTMLTableSectionElement07.xml new file mode 100644 index 0000000..ecf38f3 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableSectionElement07.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableSectionElement07">
+<metadata>
+<title>HTMLTableSectionElement07</title>
+<creator>NIST</creator>
+<description>
+ The chOff attribute specifies the offset of alignment character.
+
+ Retrieve the charoff attribute of the first THEAD element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-53459732"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vcharoff" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablesection" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"thead"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<chOff interface="HTMLTableSectionElement" obj="testNode" var="vcharoff"/>
+<assertEquals actual="vcharoff" expected='"1"' id="chOffLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement08.xml b/test/testcases/tests/level1/html/HTMLTableSectionElement08.xml new file mode 100644 index 0000000..48440ca --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableSectionElement08.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableSectionElement08">
+<metadata>
+<title>HTMLTableSectionElement08</title>
+<creator>NIST</creator>
+<description>
+ The chOff attribute specifies the offset of alignment character.
+
+ Retrieve the charoff attribute of the first TFOOT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-53459732"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vcharoff" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablesection" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tfoot"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<chOff interface="HTMLTableSectionElement" obj="testNode" var="vcharoff"/>
+<assertEquals actual="vcharoff" expected='"2"' id="chOffLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement09.xml b/test/testcases/tests/level1/html/HTMLTableSectionElement09.xml new file mode 100644 index 0000000..501446b --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableSectionElement09.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableSectionElement09"> +<metadata> +<title>HTMLTableSectionElement09</title> +<creator>NIST</creator> +<description> + The chOff attribute specifies the offset of alignment character. + + Retrieve the charoff attribute of the first TBODY element and examine + its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-53459732"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vcharoff" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="tablesection" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tbody"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<chOff interface="HTMLTableSectionElement" obj="testNode" var="vcharoff"/> +<assertEquals actual="vcharoff" expected='"3"' id="chOffLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement10.xml b/test/testcases/tests/level1/html/HTMLTableSectionElement10.xml new file mode 100644 index 0000000..3e011c1 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableSectionElement10.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableSectionElement10">
+<metadata>
+<title>HTMLTableSectionElement10</title>
+<creator>NIST</creator>
+<description>
+ The vAlign attribute specifies the vertical alignment of cell data in
+ column.
+
+ Retrieve the vAlign attribute of the first THEAD element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-4379116"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vvalign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablesection" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"thead"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<vAlign interface="HTMLTableSectionElement" obj="testNode" var="vvalign"/>
+<assertEquals actual="vvalign" expected='"middle"' id="vAlignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement11.xml b/test/testcases/tests/level1/html/HTMLTableSectionElement11.xml new file mode 100644 index 0000000..ba5ae68 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableSectionElement11.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableSectionElement11">
+<metadata>
+<title>HTMLTableSectionElement11</title>
+<creator>NIST</creator>
+<description>
+ The vAlign attribute specifies the vertical alignment of cell data in
+ column.
+
+ Retrieve the vAlign attribute of the first TFOOT element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-4379116"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vvalign" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablesection" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tfoot"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<vAlign interface="HTMLTableSectionElement" obj="testNode" var="vvalign"/>
+<assertEquals actual="vvalign" expected='"middle"' id="vAlignLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement12.xml b/test/testcases/tests/level1/html/HTMLTableSectionElement12.xml new file mode 100644 index 0000000..e649489 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableSectionElement12.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableSectionElement12"> +<metadata> +<title>HTMLTableSectionElement12</title> +<creator>NIST</creator> +<description> + The vAlign attribute specifies the vertical alignment of cell data in + column. + + Retrieve the vAlign attribute of the first TBODY element and examine + its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-4379116"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vvalign" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="tablesection" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tbody"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<vAlign interface="HTMLTableSectionElement" obj="testNode" var="vvalign"/> +<assertEquals actual="vvalign" expected='"middle"' id="vAlignLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement13.xml b/test/testcases/tests/level1/html/HTMLTableSectionElement13.xml new file mode 100644 index 0000000..1110c65 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableSectionElement13.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableSectionElement13">
+<metadata>
+<title>HTMLTableSectionElement13</title>
+<creator>NIST</creator>
+<description>
+ The rows attribute specifies the collection of rows in this table section.
+
+ Retrieve the first THEAD element and examine the value of
+ the rows length attribute.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52092650"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="rowsnodeList" type="HTMLCollection"/>
+<var name="testNode" type="Node"/>
+<var name="vrows" type="int" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablesection" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"thead"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<rows interface="HTMLTableSectionElement" obj="testNode" var="rowsnodeList"/>
+<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/>
+<assertEquals actual="vrows" expected="1" id="rowsLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement14.xml b/test/testcases/tests/level1/html/HTMLTableSectionElement14.xml new file mode 100644 index 0000000..83c90c0 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableSectionElement14.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableSectionElement14">
+<metadata>
+<title>HTMLTableSectionElement14</title>
+<creator>NIST</creator>
+<description>
+ The rows attribute specifies the collection of rows in this table section.
+
+ Retrieve the first TFOOT element and examine the value of
+ the rows length attribute.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52092650"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="rowsnodeList" type="HTMLCollection"/>
+<var name="testNode" type="Node"/>
+<var name="vrows" type="int" />
+<var name="doc" type="Document"/>
+<load var="doc" href="tablesection" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tfoot"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<rows interface="HTMLTableSectionElement" obj="testNode" var="rowsnodeList"/>
+<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/>
+<assertEquals actual="vrows" expected="1" id="rowsLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement15.xml b/test/testcases/tests/level1/html/HTMLTableSectionElement15.xml new file mode 100644 index 0000000..6c8f0dd --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableSectionElement15.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableSectionElement15"> +<metadata> +<title>HTMLTableSectionElement15</title> +<creator>NIST</creator> +<description> + The rows attribute specifies the collection of rows in this table section. + + Retrieve the first TBODY element and examine the value of + the rows length attribute. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-52092650"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="rowsnodeList" type="HTMLCollection"/> +<var name="testNode" type="Node"/> +<var name="vrows" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="tablesection" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tbody"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<rows interface="HTMLTableSectionElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="2" id="rowsLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement16.xml b/test/testcases/tests/level1/html/HTMLTableSectionElement16.xml new file mode 100644 index 0000000..567d86b --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableSectionElement16.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableSectionElement16"> +<metadata> +<title>HTMLTableSectionElement16</title> +<creator>NIST</creator> +<description> + The insertRow() method inserts a new empty table row. + + Retrieve the first THEAD element and invoke the insertRow() method + with an index of 0. The nuber of rows in the THEAD section before + insertion of the new row is one. After the new row is inserted the number + of rows in the THEAD section is two. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-93995626"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="newRow" type="HTMLElement"/> +<var name="rowsnodeList" type="HTMLCollection"/> +<var name="vrows" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="tablesection" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"thead"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<rows interface="HTMLTableSectionElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="1" id="rowsLink1" ignoreCase="false"/> +<insertRow interface="HTMLTableSectionElement" obj="testNode" var="newRow" index="0"/> +<rows interface="HTMLTableSectionElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="2" id="rowsLink2" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement17.xml b/test/testcases/tests/level1/html/HTMLTableSectionElement17.xml new file mode 100644 index 0000000..4a3e283 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableSectionElement17.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableSectionElement17"> +<metadata> +<title>HTMLTableSectionElement17</title> +<creator>NIST</creator> +<description> + The insertRow() method inserts a new empty table row. + + Retrieve the first TFOOT element and invoke the insertRow() method + with an index of 0. The nuber of rows in the TFOOT section before + insertion of the new row is one. After the new row is inserted the number + of rows in the TFOOT section is two. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-93995626"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="newRow" type="HTMLElement"/> +<var name="rowsnodeList" type="HTMLCollection"/> +<var name="vrows" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="tablesection" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tfoot"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<rows interface="HTMLTableSectionElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="1" id="rowsLink1" ignoreCase="false"/> +<insertRow interface="HTMLTableSectionElement" obj="testNode" var="newRow" index="0"/> +<rows interface="HTMLTableSectionElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="2" id="rowsLink2" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement18.xml b/test/testcases/tests/level1/html/HTMLTableSectionElement18.xml new file mode 100644 index 0000000..e8073be --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableSectionElement18.xml @@ -0,0 +1,52 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableSectionElement18"> +<metadata> +<title>HTMLTableSectionElement18</title> +<creator>NIST</creator> +<description> + The insertRow() method inserts a new empty table row. + + Retrieve the first TBODY element and invoke the insertRow() method + with an index of 0. The nuber of rows in the TBODY section before + insertion of the new row is two. After the new row is inserted the number + of rows in the TBODY section is three. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-93995626"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="newRow" type="HTMLElement"/> +<var name="rowsnodeList" type="HTMLCollection"/> +<var name="vrows" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="tablesection" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tbody"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<rows interface="HTMLTableSectionElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="2" id="rowsLink1" ignoreCase="false"/> +<insertRow interface="HTMLTableSectionElement" obj="testNode" var="newRow" index="0"/> +<rows interface="HTMLTableSectionElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="3" id="rowsLink2" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement19.xml b/test/testcases/tests/level1/html/HTMLTableSectionElement19.xml new file mode 100644 index 0000000..f8d7933 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableSectionElement19.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableSectionElement19"> +<metadata> +<title>HTMLTableSectionElement19</title> +<creator>NIST</creator> +<description> + The insertRow() method inserts a new empty table row. + + Retrieve the first THEAD element and invoke the insertRow() method + with an index of 1. The nuber of rows in the THEAD section before + insertion of the new row is one therefore the new row is appended. + After the new row is inserted the number of rows in the THEAD + section is two. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-93995626"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="newRow" type="HTMLElement"/> +<var name="rowsnodeList" type="HTMLCollection"/> +<var name="vrows" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="tablesection" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"thead"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<rows interface="HTMLTableSectionElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="1" id="rowsLink1" ignoreCase="false"/> +<insertRow interface="HTMLTableSectionElement" obj="testNode" var="newRow" index="1"/> +<rows interface="HTMLTableSectionElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="2" id="rowsLink2" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement20.xml b/test/testcases/tests/level1/html/HTMLTableSectionElement20.xml new file mode 100644 index 0000000..99452e7 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableSectionElement20.xml @@ -0,0 +1,53 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableSectionElement20"> +<metadata> +<title>HTMLTableSectionElement20</title> +<creator>NIST</creator> +<description> + The insertRow() method inserts a new empty table row. + + Retrieve the first TFOOT element and invoke the insertRow() method + with an index of one. The nuber of rows in the TFOOT section before + insertion of the new row is one therefore the new row is appended. + After the new row is inserted the number of rows in the TFOOT section + is two. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-93995626"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="newRow" type="HTMLElement"/> +<var name="rowsnodeList" type="HTMLCollection"/> +<var name="vrows" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="tablesection" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tfoot"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<rows interface="HTMLTableSectionElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="1" id="rowsLink1" ignoreCase="false"/> +<insertRow interface="HTMLTableSectionElement" obj="testNode" var="newRow" index="1"/> +<rows interface="HTMLTableSectionElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="2" id="rowsLink2" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement21.xml b/test/testcases/tests/level1/html/HTMLTableSectionElement21.xml new file mode 100644 index 0000000..05d7ef8 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableSectionElement21.xml @@ -0,0 +1,54 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableSectionElement21"> +<metadata> +<title>HTMLTableSectionElement21</title> +<creator>NIST</creator> +<description> + The insertRow() method inserts a new empty table row. + + Retrieve the first TBODY element and invoke the insertRow() method + with an index of two. The number of rows in the TBODY section before + insertion of the new row is two therefore the row is appended. + After the new row is inserted the number of rows in the TBODY section is + three. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-93995626"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=502"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="newRow" type="HTMLElement"/> +<var name="rowsnodeList" type="HTMLCollection"/> +<var name="vrows" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="tablesection" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tbody"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<rows interface="HTMLTableSectionElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="2" id="rowsLink1" ignoreCase="false"/> +<insertRow interface="HTMLTableSectionElement" obj="testNode" var="newRow" index="2"/> +<rows interface="HTMLTableSectionElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="3" id="rowsLink2" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement22.xml b/test/testcases/tests/level1/html/HTMLTableSectionElement22.xml new file mode 100644 index 0000000..5d8bef4 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableSectionElement22.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableSectionElement22"> +<metadata> +<title>HTMLTableSectionElement22</title> +<creator>NIST</creator> +<description> + The deleteRow() method deletes a row from this section. + + Retrieve the first THEAD element and invoke the deleteRow() method + with an index of 0. The nuber of rows in the THEAD section before + the deletion of the row is one. After the row is deleted the number + of rows in the THEAD section is zero. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-5625626"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="rowsnodeList" type="HTMLCollection"/> +<var name="vrows" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="tablesection" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"thead"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<rows interface="HTMLTableSectionElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="1" id="rowsLink1" ignoreCase="false"/> +<deleteRow interface="HTMLTableSectionElement" obj="testNode" index="0"/> +<rows interface="HTMLTableSectionElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="0" id="rowsLink2" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement23.xml b/test/testcases/tests/level1/html/HTMLTableSectionElement23.xml new file mode 100644 index 0000000..eb3f972 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableSectionElement23.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableSectionElement23"> +<metadata> +<title>HTMLTableSectionElement23</title> +<creator>NIST</creator> +<description> + The deleteRow() method deletes a row from this section. + + Retrieve the first TFOOT element and invoke the deleteRow() method + with an index of 0. The nuber of rows in the TFOOT section before + the deletion of the row is one. After the row is deleted the number + of rows in the TFOOT section is zero. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-5625626"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="rowsnodeList" type="HTMLCollection"/> +<var name="vrows" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="tablesection" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tfoot"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<rows interface="HTMLTableSectionElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="1" id="rowsLink1" ignoreCase="false"/> +<deleteRow interface="HTMLTableSectionElement" obj="testNode" index="0"/> +<rows interface="HTMLTableSectionElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="0" id="rowsLink2" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTableSectionElement24.xml b/test/testcases/tests/level1/html/HTMLTableSectionElement24.xml new file mode 100644 index 0000000..39896e1 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTableSectionElement24.xml @@ -0,0 +1,51 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xml" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTableSectionElement24"> +<metadata> +<title>HTMLTableSectionElement24</title> +<creator>NIST</creator> +<description> + The deleteRow() method deletes a row from this section. + + Retrieve the first TBODY element and invoke the deleteRow() method + with an index of 0. The nuber of rows in the TBODY section before + the deletion of the row is two. After the row is deleted the number + of rows in the TBODY section is one. +</description> +<contributor>Rick Rivello</contributor> +<date qualifier="created">2002-05-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-5625626"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="rowsnodeList" type="HTMLCollection"/> +<var name="vrows" type="int" /> +<var name="doc" type="Document"/> +<load var="doc" href="tablesection" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tbody"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<rows interface="HTMLTableSectionElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="2" id="rowsLink1" ignoreCase="false"/> +<deleteRow interface="HTMLTableSectionElement" obj="testNode" index="0"/> +<rows interface="HTMLTableSectionElement" obj="testNode" var="rowsnodeList"/> +<length interface="HTMLCollection" obj="rowsnodeList" var="vrows"/> +<assertEquals actual="vrows" expected="1" id="rowsLink2" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTextAreaElement01.xml b/test/testcases/tests/level1/html/HTMLTextAreaElement01.xml new file mode 100644 index 0000000..dec8a4e --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTextAreaElement01.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTextAreaElement01">
+<metadata>
+<title>HTMLTextAreaElement01</title>
+<creator>NIST</creator>
+<description>
+ The defaultValue attribute represents the HTML value of the attribute
+ when the type attribute has the value of "Text", "File" or "Password".
+
+ Retrieve the defaultValue attribute of the 2nd TEXTAREA element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-36152213"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdefaultvalue" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="textarea" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"textarea"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<defaultValue interface="HTMLTextAreaElement" obj="testNode" var="vdefaultvalue"/>
+<assertEquals actual="vdefaultvalue" expected='"TEXTAREA2"' id="defaultValueLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTextAreaElement02.xml b/test/testcases/tests/level1/html/HTMLTextAreaElement02.xml new file mode 100644 index 0000000..557d7a5 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTextAreaElement02.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTextAreaElement02">
+<metadata>
+<title>HTMLTextAreaElement02</title>
+<creator>NIST</creator>
+<description>
+ The form attribute returns the FORM element containing this control.
+
+ Retrieve the form attribute from the first TEXTAREA element
+ and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-18911464"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vform" type="DOMString" />
+<var name="fNode" type="HTMLFormElement"/>
+<var name="doc" type="Document"/>
+<load var="doc" href="textarea" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"textarea"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<form interface="HTMLTextAreaElement" obj="testNode" var="fNode"/>
+<id obj="fNode" var="vform"/>
+<assertEquals actual="vform" expected='"form1"' id="formLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTextAreaElement03.xml b/test/testcases/tests/level1/html/HTMLTextAreaElement03.xml new file mode 100644 index 0000000..5d9528e --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTextAreaElement03.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTextAreaElement03">
+<metadata>
+<title>HTMLTextAreaElement03</title>
+<creator>NIST</creator>
+<description>
+ The form attribute returns null if control in not within the context of
+ a form.
+
+ Retrieve the second TEXTAREA element and
+ examine its form element.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-18911464"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vform" type="HTMLFormElement" />
+<var name="doc" type="Document"/>
+<load var="doc" href="textarea" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"textarea"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<form interface="HTMLTextAreaElement" obj="testNode" var="vform"/>
+<assertNull actual="vform" id="formNullLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTextAreaElement04.xml b/test/testcases/tests/level1/html/HTMLTextAreaElement04.xml new file mode 100644 index 0000000..2b6b8b2 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTextAreaElement04.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTextAreaElement04">
+<metadata>
+<title>HTMLTextAreaElement04</title>
+<creator>NIST</creator>
+<description>
+ The accessKey attribute specifies a single character access key to
+ give access to the form control.
+
+ Retrieve the accessKey attribute of the 1st TEXTAREA element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-93102991"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vaccesskey" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="textarea" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"textarea"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<accessKey interface="HTMLTextAreaElement" obj="testNode" var="vaccesskey"/>
+<assertEquals actual="vaccesskey" expected='"c"' id="accessKeyLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTextAreaElement05.xml b/test/testcases/tests/level1/html/HTMLTextAreaElement05.xml new file mode 100644 index 0000000..e51bcab --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTextAreaElement05.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTextAreaElement05">
+<metadata>
+<title>HTMLTextAreaElement05</title>
+<creator>NIST</creator>
+<description>
+ The cols attribute specifies the width of control(in characters).
+
+ Retrieve the cols attribute of the 1st TEXTAREA element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-51387225"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vcols" type="int" />
+<var name="doc" type="Document"/>
+<load var="doc" href="textarea" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"textarea"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<cols interface="HTMLTextAreaElement" obj="testNode" var="vcols"/>
+<assertEquals actual="vcols" expected="20" id="colsLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTextAreaElement06.xml b/test/testcases/tests/level1/html/HTMLTextAreaElement06.xml new file mode 100644 index 0000000..8ce1913 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTextAreaElement06.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTextAreaElement06">
+<metadata>
+<title>HTMLTextAreaElement06</title>
+<creator>NIST</creator>
+<description>
+ The disabled attribute specifies the control is unavailable in this
+ context.
+
+ Retrieve the disabled attribute from the 2nd TEXTAREA element and
+ examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-98725443"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vdisabled" type="boolean" />
+<var name="doc" type="Document"/>
+<load var="doc" href="textarea" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"textarea"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="1"/>
+<disabled interface="HTMLTextAreaElement" obj="testNode" var="vdisabled"/>
+<assertTrue actual="vdisabled" id="disabledLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTextAreaElement07.xml b/test/testcases/tests/level1/html/HTMLTextAreaElement07.xml new file mode 100644 index 0000000..eb71a3e --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTextAreaElement07.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTextAreaElement07">
+<metadata>
+<title>HTMLTextAreaElement07</title>
+<creator>NIST</creator>
+<description>
+ The name attribute specifies the form control or object name when
+ submitted with a form.
+
+ Retrieve the name attribute of the 1st TEXTAREA element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-70715578"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vname" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="textarea" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"textarea"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<name interface="HTMLTextAreaElement" obj="testNode" var="vname"/>
+<assertEquals actual="vname" expected='"text1"' id="nameLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTextAreaElement08.xml b/test/testcases/tests/level1/html/HTMLTextAreaElement08.xml new file mode 100644 index 0000000..5ba7c88 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTextAreaElement08.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTextAreaElement08">
+<metadata>
+<title>HTMLTextAreaElement08</title>
+<creator>NIST</creator>
+<description>
+ The readOnly attribute specifies this control is read-only.
+
+ Retrieve the readOnly attribute from the 3rd TEXTAREA element and
+ examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-39131423"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vreadonly" type="boolean" />
+<var name="doc" type="Document"/>
+<load var="doc" href="textarea" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"textarea"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="2"/>
+<readOnly interface="HTMLTextAreaElement" obj="testNode" var="vreadonly"/>
+<assertTrue actual="vreadonly" id="readOnlyLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTextAreaElement09.xml b/test/testcases/tests/level1/html/HTMLTextAreaElement09.xml new file mode 100644 index 0000000..4fc40dd --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTextAreaElement09.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTextAreaElement09">
+<metadata>
+<title>HTMLTextAreaElement09</title>
+<creator>NIST</creator>
+<description>
+ The rows attribute specifies the number of text rowns.
+
+ Retrieve the rows attribute of the 1st TEXTAREA element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-46975887"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vrows" type="int" />
+<var name="doc" type="Document"/>
+<load var="doc" href="textarea" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"textarea"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<rows interface="HTMLTextAreaElement" obj="testNode" var="vrows"/>
+<assertEquals actual="vrows" expected="7" id="rowsLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTextAreaElement10.xml b/test/testcases/tests/level1/html/HTMLTextAreaElement10.xml new file mode 100644 index 0000000..1cedcb0 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTextAreaElement10.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTextAreaElement10">
+<metadata>
+<title>HTMLTextAreaElement10</title>
+<creator>NIST</creator>
+<description>
+ The tabIndex attribute is an index that represents the element's position
+ in the tabbing order.
+
+ Retrieve the tabIndex attribute of the 1st TEXTAREA element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-60363303"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtabindex" type="int" />
+<var name="doc" type="Document"/>
+<load var="doc" href="textarea" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"textarea"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<tabIndex interface="HTMLTextAreaElement" obj="testNode" var="vtabindex"/>
+<assertEquals actual="vtabindex" expected="5" id="tabIndexLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTextAreaElement11.xml b/test/testcases/tests/level1/html/HTMLTextAreaElement11.xml new file mode 100644 index 0000000..a97ed10 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTextAreaElement11.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTextAreaElement11"> +<metadata> +<title>HTMLTextAreaElement11</title> +<creator>NIST</creator> +<description> + The type attribute specifies the type of this form control. + + Retrieve the type attribute of the 1st TEXTAREA element and examine + its value. +</description> +<contributor>Mary Brady</contributor> +<date qualifier="created">2002-02-22</date> +<!-- L1 HTML doesn't have an ID for the type attribute --> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-24874179"/> +<subject resource="http://www.w3.org/TR/DOM-Level-2-HTML/html#HTML-HTMLTextAreaElement-type"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vtype" type="DOMString" /> +<var name="doc" type="Document"/> +<load var="doc" href="textarea" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"textarea"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<type interface="HTMLTextAreaElement" obj="testNode" var="vtype"/> +<assertEquals actual="vtype" expected='"textarea"' id="typeLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTextAreaElement12.xml b/test/testcases/tests/level1/html/HTMLTextAreaElement12.xml new file mode 100644 index 0000000..5c03799 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTextAreaElement12.xml @@ -0,0 +1,44 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTextAreaElement12">
+<metadata>
+<title>HTMLTextAreaElement12</title>
+<creator>NIST</creator>
+<description>
+ The value attribute represents the current contents of the corresponding
+ form control, in an interactive user agent.
+
+ Retrieve the value attribute of the 1st TEXTAREA element and examine
+ its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-70715579"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vvalue" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="textarea" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"textarea"'/>
+<assertSize collection="nodeList" size="3" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<value interface="HTMLTextAreaElement" obj="testNode" var="vvalue"/>
+<assertEquals actual="vvalue" expected='"TEXTAREA1"' id="valueLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLTextAreaElement13.xml b/test/testcases/tests/level1/html/HTMLTextAreaElement13.xml new file mode 100644 index 0000000..20cf230 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTextAreaElement13.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +Copyright (c) 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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTextAreaElement13"> +<metadata> +<title>HTMLTextAreaElement13</title> +<creator>Curt Arnold</creator> +<description> +Calling HTMLTextAreaElement.blur should surrender input focus. +</description> +<date qualifier="created">2004-03-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-6750689"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="doc" type="Document"/> +<load var="doc" href="textarea" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"textarea"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<blur interface="HTMLTextAreaElement" obj="testNode"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTextAreaElement14.xml b/test/testcases/tests/level1/html/HTMLTextAreaElement14.xml new file mode 100644 index 0000000..ddc72a6 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTextAreaElement14.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +Copyright (c) 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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTextAreaElement14"> +<metadata> +<title>HTMLTextAreaElement14</title> +<creator>Curt Arnold</creator> +<description> +Calling HTMLTextAreaElement.focus should capture input focus. +</description> +<date qualifier="created">2004-03-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-39055426"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="doc" type="Document"/> +<load var="doc" href="textarea" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"textarea"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<focus interface="HTMLTextAreaElement" obj="testNode"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTextAreaElement15.xml b/test/testcases/tests/level1/html/HTMLTextAreaElement15.xml new file mode 100644 index 0000000..b192786 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTextAreaElement15.xml @@ -0,0 +1,37 @@ +<?xml version="1.0" encoding="UTF-8"?> +<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> + +<!-- + +Copyright (c) 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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTextAreaElement15"> +<metadata> +<title>HTMLTextAreaElement15</title> +<creator>Curt Arnold</creator> +<description> +Calling HTMLTextAreaElement.select should select the text area. +</description> +<date qualifier="created">2004-03-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-48880622"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="doc" type="Document"/> +<load var="doc" href="textarea" willBeModified="true"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"textarea"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<select interface="HTMLTextAreaElement" obj="testNode"/> +</test> diff --git a/test/testcases/tests/level1/html/HTMLTitleElement01.xml b/test/testcases/tests/level1/html/HTMLTitleElement01.xml new file mode 100644 index 0000000..9b95d95 --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLTitleElement01.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLTitleElement01">
+<metadata>
+<title>HTMLTitleElement01</title>
+<creator>NIST</creator>
+<description>
+ The text attribute is the specified title as a string.
+
+ Retrieve the text attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-77500413"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtext" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="title" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"title"'/>
+<assertSize collection="nodeList" size="1" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<text interface="HTMLTitleElement" obj="testNode" var="vtext"/>
+<assertEquals actual="vtext" expected='"NIST DOM HTML Test - TITLE"' id="textLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLUListElement01.xml b/test/testcases/tests/level1/html/HTMLUListElement01.xml new file mode 100644 index 0000000..75695aa --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLUListElement01.xml @@ -0,0 +1,43 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLUListElement01">
+<metadata>
+<title>HTMLUListElement01</title>
+<creator>NIST</creator>
+<description>
+ The compact attribute specifies whether to reduce spacing between list
+ items.
+
+ Retrieve the compact attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-39864178"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vcompact" type="boolean" />
+<var name="doc" type="Document"/>
+<load var="doc" href="ulist" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"ul"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<compact interface="HTMLUListElement" obj="testNode" var="vcompact"/>
+<assertTrue actual="vcompact" id="compactLink"/>
+</test>
diff --git a/test/testcases/tests/level1/html/HTMLUListElement02.xml b/test/testcases/tests/level1/html/HTMLUListElement02.xml new file mode 100644 index 0000000..e525d5b --- /dev/null +++ b/test/testcases/tests/level1/html/HTMLUListElement02.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<?xml-stylesheet href="test-to-html.xsl" type="text/xml"?>
+
+<!--
+
+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 "dom1.dtd">
+<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="HTMLUListElement02">
+<metadata>
+<title>HTMLUListElement02</title>
+<creator>NIST</creator>
+<description>
+ The type attribute specifies the bullet style.
+
+ Retrieve the type attribute and examine its value.
+</description>
+<contributor>Mary Brady</contributor>
+<date qualifier="created">2002-02-22</date>
+<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-96874670"/>
+</metadata>
+<var name="nodeList" type="NodeList"/>
+<var name="testNode" type="Node"/>
+<var name="vtype" type="DOMString" />
+<var name="doc" type="Document"/>
+<load var="doc" href="ulist" willBeModified="false"/>
+<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"ul"'/>
+<assertSize collection="nodeList" size="2" id="Asize"/>
+<item interface="NodeList" obj="nodeList" var="testNode" index="0"/>
+<type interface="HTMLUListElement" obj="testNode" var="vtype"/>
+<assertEquals actual="vtype" expected='"disc"' id="typeLink" ignoreCase="false"/>
+</test>
diff --git a/test/testcases/tests/level1/html/alltests.xml b/test/testcases/tests/level1/html/alltests.xml new file mode 100644 index 0000000..b90c242 --- /dev/null +++ b/test/testcases/tests/level1/html/alltests.xml @@ -0,0 +1,659 @@ +<?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 suite SYSTEM "dom1.dtd"> + +<suite xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="alltests"> +<metadata> +<title>DOM Level 1 HTML Test Suite</title> +<creator>DOM Test Suite Project</creator> +</metadata> + <suite.member href="HTMLAnchorElement01.xml"/> + <suite.member href="HTMLAnchorElement02.xml"/> + <suite.member href="HTMLAnchorElement03.xml"/> + <suite.member href="HTMLAnchorElement04.xml"/> + <suite.member href="HTMLAnchorElement05.xml"/> + <suite.member href="HTMLAnchorElement06.xml"/> + <suite.member href="HTMLAnchorElement07.xml"/> + <suite.member href="HTMLAnchorElement08.xml"/> + <suite.member href="HTMLAnchorElement09.xml"/> + <suite.member href="HTMLAnchorElement10.xml"/> + <suite.member href="HTMLAnchorElement11.xml"/> + <suite.member href="HTMLAnchorElement12.xml"/> + <suite.member href="HTMLAnchorElement13.xml"/> + <suite.member href="HTMLAnchorElement14.xml"/> + <suite.member href="HTMLAppletElement01.xml"/> + <suite.member href="HTMLAppletElement02.xml"/> + <suite.member href="HTMLAppletElement03.xml"/> + <suite.member href="HTMLAppletElement04.xml"/> + <suite.member href="HTMLAppletElement05.xml"/> + <suite.member href="HTMLAppletElement06.xml"/> + <suite.member href="HTMLAppletElement07.xml"/> + <suite.member href="HTMLAppletElement08.xml"/> + <suite.member href="HTMLAppletElement09.xml"/> + <suite.member href="HTMLAppletElement10.xml"/> + <suite.member href="HTMLAppletElement11.xml"/> + <suite.member href="HTMLAreaElement01.xml"/> + <suite.member href="HTMLAreaElement02.xml"/> + <suite.member href="HTMLAreaElement03.xml"/> + <suite.member href="HTMLAreaElement04.xml"/> + <suite.member href="HTMLAreaElement05.xml"/> + <suite.member href="HTMLAreaElement06.xml"/> + <suite.member href="HTMLAreaElement07.xml"/> + <suite.member href="HTMLAreaElement08.xml"/> + <suite.member href="HTMLBaseElement01.xml"/> + <suite.member href="HTMLBaseElement02.xml"/> + <suite.member href="HTMLBaseFontElement01.xml"/> + <suite.member href="HTMLBaseFontElement02.xml"/> + <suite.member href="HTMLBaseFontElement03.xml"/> + <suite.member href="HTMLBodyElement01.xml"/> + <suite.member href="HTMLBodyElement02.xml"/> + <suite.member href="HTMLBodyElement03.xml"/> + <suite.member href="HTMLBodyElement04.xml"/> + <suite.member href="HTMLBodyElement05.xml"/> + <suite.member href="HTMLBodyElement06.xml"/> + <suite.member href="HTMLBRElement01.xml"/> + <suite.member href="HTMLButtonElement01.xml"/> + <suite.member href="HTMLButtonElement02.xml"/> + <suite.member href="HTMLButtonElement03.xml"/> + <suite.member href="HTMLButtonElement04.xml"/> + <suite.member href="HTMLButtonElement05.xml"/> + <suite.member href="HTMLButtonElement06.xml"/> + <suite.member href="HTMLButtonElement07.xml"/> + <suite.member href="HTMLButtonElement08.xml"/> + <suite.member href="HTMLCollection01.xml"/> + <suite.member href="HTMLCollection02.xml"/> + <suite.member href="HTMLCollection03.xml"/> + <suite.member href="HTMLCollection04.xml"/> + <suite.member href="HTMLCollection05.xml"/> + <suite.member href="HTMLCollection06.xml"/> + <suite.member href="HTMLCollection07.xml"/> + <suite.member href="HTMLCollection08.xml"/> + <suite.member href="HTMLCollection09.xml"/> + <suite.member href="HTMLCollection10.xml"/> + <suite.member href="HTMLCollection11.xml"/> + <suite.member href="HTMLCollection12.xml"/> + <suite.member href="HTMLDirectoryElement01.xml"/> + <suite.member href="HTMLDivElement01.xml"/> + <suite.member href="HTMLDlistElement01.xml"/> + <suite.member href="HTMLDocument01.xml"/> + <suite.member href="HTMLDocument02.xml"/> + <suite.member href="HTMLDocument03.xml"/> + <suite.member href="HTMLDocument04.xml"/> + <suite.member href="HTMLDocument05.xml"/> + <suite.member href="HTMLDocument07.xml"/> + <suite.member href="HTMLDocument08.xml"/> + <suite.member href="HTMLDocument09.xml"/> + <suite.member href="HTMLDocument10.xml"/> + <suite.member href="HTMLDocument11.xml"/> + <suite.member href="HTMLDocument12.xml"/> + <suite.member href="HTMLDocument13.xml"/> + <suite.member href="HTMLDocument14.xml"/> + <suite.member href="HTMLDocument15.xml"/> + <suite.member href="HTMLDocument16.xml"/> + <suite.member href="HTMLDocument17.xml"/> + <suite.member href="HTMLDocument18.xml"/> + <suite.member href="HTMLDocument19.xml"/> + <suite.member href="HTMLDocument20.xml"/> + <suite.member href="HTMLDocument21.xml"/> + <suite.member href="HTMLElement01.xml"/> + <suite.member href="HTMLElement02.xml"/> + <suite.member href="HTMLElement03.xml"/> + <suite.member href="HTMLElement04.xml"/> + <suite.member href="HTMLElement05.xml"/> + <suite.member href="HTMLElement06.xml"/> + <suite.member href="HTMLElement07.xml"/> + <suite.member href="HTMLElement08.xml"/> + <suite.member href="HTMLElement09.xml"/> + <suite.member href="HTMLElement10.xml"/> + <suite.member href="HTMLElement11.xml"/> + <suite.member href="HTMLElement12.xml"/> + <suite.member href="HTMLElement13.xml"/> + <suite.member href="HTMLElement14.xml"/> + <suite.member href="HTMLElement15.xml"/> + <suite.member href="HTMLElement16.xml"/> + <suite.member href="HTMLElement17.xml"/> + <suite.member href="HTMLElement18.xml"/> + <suite.member href="HTMLElement19.xml"/> + <suite.member href="HTMLElement20.xml"/> + <suite.member href="HTMLElement21.xml"/> + <suite.member href="HTMLElement22.xml"/> + <suite.member href="HTMLElement23.xml"/> + <suite.member href="HTMLElement24.xml"/> + <suite.member href="HTMLElement25.xml"/> + <suite.member href="HTMLElement26.xml"/> + <suite.member href="HTMLElement27.xml"/> + <suite.member href="HTMLElement28.xml"/> + <suite.member href="HTMLElement29.xml"/> + <suite.member href="HTMLElement30.xml"/> + <suite.member href="HTMLElement31.xml"/> + <suite.member href="HTMLElement32.xml"/> + <suite.member href="HTMLElement33.xml"/> + <suite.member href="HTMLElement34.xml"/> + <suite.member href="HTMLElement35.xml"/> + <suite.member href="HTMLElement36.xml"/> + <suite.member href="HTMLElement37.xml"/> + <suite.member href="HTMLElement38.xml"/> + <suite.member href="HTMLElement39.xml"/> + <suite.member href="HTMLElement40.xml"/> + <suite.member href="HTMLElement41.xml"/> + <suite.member href="HTMLElement42.xml"/> + <suite.member href="HTMLElement43.xml"/> + <suite.member href="HTMLElement44.xml"/> + <suite.member href="HTMLElement45.xml"/> + <suite.member href="HTMLElement46.xml"/> + <suite.member href="HTMLElement47.xml"/> + <suite.member href="HTMLElement48.xml"/> + <suite.member href="HTMLElement49.xml"/> + <suite.member href="HTMLElement50.xml"/> + <suite.member href="HTMLElement51.xml"/> + <suite.member href="HTMLElement52.xml"/> + <suite.member href="HTMLElement53.xml"/> + <suite.member href="HTMLElement54.xml"/> + <suite.member href="HTMLElement55.xml"/> + <suite.member href="HTMLElement56.xml"/> + <suite.member href="HTMLElement57.xml"/> + <suite.member href="HTMLElement58.xml"/> + <suite.member href="HTMLElement59.xml"/> + <suite.member href="HTMLElement60.xml"/> + <suite.member href="HTMLElement61.xml"/> + <suite.member href="HTMLElement62.xml"/> + <suite.member href="HTMLElement63.xml"/> + <suite.member href="HTMLElement64.xml"/> + <suite.member href="HTMLElement65.xml"/> + <suite.member href="HTMLElement66.xml"/> + <suite.member href="HTMLElement67.xml"/> + <suite.member href="HTMLElement68.xml"/> + <suite.member href="HTMLElement69.xml"/> + <suite.member href="HTMLElement70.xml"/> + <suite.member href="HTMLElement71.xml"/> + <suite.member href="HTMLElement72.xml"/> + <suite.member href="HTMLElement73.xml"/> + <suite.member href="HTMLElement74.xml"/> + <suite.member href="HTMLElement75.xml"/> + <suite.member href="HTMLElement76.xml"/> + <suite.member href="HTMLElement77.xml"/> + <suite.member href="HTMLElement78.xml"/> + <suite.member href="HTMLElement79.xml"/> + <suite.member href="HTMLElement80.xml"/> + <suite.member href="HTMLElement81.xml"/> + <suite.member href="HTMLElement82.xml"/> + <suite.member href="HTMLElement83.xml"/> + <suite.member href="HTMLElement84.xml"/> + <suite.member href="HTMLElement85.xml"/> + <suite.member href="HTMLElement86.xml"/> + <suite.member href="HTMLElement87.xml"/> + <suite.member href="HTMLElement88.xml"/> + <suite.member href="HTMLElement89.xml"/> + <suite.member href="HTMLElement90.xml"/> + <suite.member href="HTMLElement91.xml"/> + <suite.member href="HTMLElement92.xml"/> + <suite.member href="HTMLElement93.xml"/> + <suite.member href="HTMLElement94.xml"/> + <suite.member href="HTMLElement95.xml"/> + <suite.member href="HTMLElement96.xml"/> + <suite.member href="HTMLElement97.xml"/> + <suite.member href="HTMLElement98.xml"/> + <suite.member href="HTMLElement99.xml"/> + <suite.member href="HTMLElement100.xml"/> + <suite.member href="HTMLElement101.xml"/> + <suite.member href="HTMLElement102.xml"/> + <suite.member href="HTMLElement103.xml"/> + <suite.member href="HTMLElement104.xml"/> + <suite.member href="HTMLElement105.xml"/> + <suite.member href="HTMLElement106.xml"/> + <suite.member href="HTMLElement107.xml"/> + <suite.member href="HTMLElement108.xml"/> + <suite.member href="HTMLElement109.xml"/> + <suite.member href="HTMLElement110.xml"/> + <suite.member href="HTMLElement111.xml"/> + <suite.member href="HTMLElement112.xml"/> + <suite.member href="HTMLElement113.xml"/> + <suite.member href="HTMLElement114.xml"/> + <suite.member href="HTMLElement115.xml"/> + <suite.member href="HTMLElement116.xml"/> + <suite.member href="HTMLElement117.xml"/> + <suite.member href="HTMLElement118.xml"/> + <suite.member href="HTMLElement119.xml"/> + <suite.member href="HTMLElement120.xml"/> + <suite.member href="HTMLElement121.xml"/> + <suite.member href="HTMLElement122.xml"/> + <suite.member href="HTMLElement123.xml"/> + <suite.member href="HTMLElement124.xml"/> + <suite.member href="HTMLElement125.xml"/> + <suite.member href="HTMLElement126.xml"/> + <suite.member href="HTMLElement127.xml"/> + <suite.member href="HTMLElement128.xml"/> + <suite.member href="HTMLElement129.xml"/> + <suite.member href="HTMLElement130.xml"/> + <suite.member href="HTMLElement131.xml"/> + <suite.member href="HTMLElement132.xml"/> + <suite.member href="HTMLElement133.xml"/> + <suite.member href="HTMLElement134.xml"/> + <suite.member href="HTMLElement135.xml"/> + <suite.member href="HTMLElement136.xml"/> + <suite.member href="HTMLElement137.xml"/> + <suite.member href="HTMLElement138.xml"/> + <suite.member href="HTMLElement139.xml"/> + <suite.member href="HTMLElement140.xml"/> + <suite.member href="HTMLElement141.xml"/> + <suite.member href="HTMLElement142.xml"/> + <suite.member href="HTMLElement143.xml"/> + <suite.member href="HTMLElement144.xml"/> + <suite.member href="HTMLElement145.xml"/> + <suite.member href="HTMLFieldSetElement01.xml"/> + <suite.member href="HTMLFieldSetElement02.xml"/> + <suite.member href="HTMLFontElement01.xml"/> + <suite.member href="HTMLFontElement02.xml"/> + <suite.member href="HTMLFontElement03.xml"/> + <suite.member href="HTMLFormElement01.xml"/> + <suite.member href="HTMLFormElement02.xml"/> + <suite.member href="HTMLFormElement03.xml"/> + <suite.member href="HTMLFormElement04.xml"/> + <suite.member href="HTMLFormElement05.xml"/> + <suite.member href="HTMLFormElement06.xml"/> + <suite.member href="HTMLFormElement07.xml"/> + <suite.member href="HTMLFormElement08.xml"/> + <suite.member href="HTMLFormElement09.xml"/> + <suite.member href="HTMLFormElement10.xml"/> + <suite.member href="HTMLFrameElement01.xml"/> + <suite.member href="HTMLFrameElement02.xml"/> + <suite.member href="HTMLFrameElement03.xml"/> + <suite.member href="HTMLFrameElement04.xml"/> + <suite.member href="HTMLFrameElement05.xml"/> + <suite.member href="HTMLFrameElement06.xml"/> + <suite.member href="HTMLFrameElement07.xml"/> + <suite.member href="HTMLFrameElement08.xml"/> + <suite.member href="HTMLFrameSetElement01.xml"/> + <suite.member href="HTMLFrameSetElement02.xml"/> + <suite.member href="HTMLHeadElement01.xml"/> + <suite.member href="HTMLHeadingElement01.xml"/> + <suite.member href="HTMLHeadingElement02.xml"/> + <suite.member href="HTMLHeadingElement03.xml"/> + <suite.member href="HTMLHeadingElement04.xml"/> + <suite.member href="HTMLHeadingElement05.xml"/> + <suite.member href="HTMLHeadingElement06.xml"/> + <suite.member href="HTMLHRElement01.xml"/> + <suite.member href="HTMLHRElement02.xml"/> + <suite.member href="HTMLHRElement03.xml"/> + <suite.member href="HTMLHRElement04.xml"/> + <suite.member href="HTMLHtmlElement01.xml"/> + <suite.member href="HTMLIFrameElement01.xml"/> + <suite.member href="HTMLIFrameElement02.xml"/> + <suite.member href="HTMLIFrameElement03.xml"/> + <suite.member href="HTMLIFrameElement04.xml"/> + <suite.member href="HTMLIFrameElement05.xml"/> + <suite.member href="HTMLIFrameElement06.xml"/> + <suite.member href="HTMLIFrameElement07.xml"/> + <suite.member href="HTMLIFrameElement08.xml"/> + <suite.member href="HTMLIFrameElement09.xml"/> + <suite.member href="HTMLIFrameElement10.xml"/> + <suite.member href="HTMLImageElement01.xml"/> + <suite.member href="HTMLImageElement02.xml"/> + <suite.member href="HTMLImageElement03.xml"/> + <suite.member href="HTMLImageElement04.xml"/> + <suite.member href="HTMLImageElement05.xml"/> + <suite.member href="HTMLImageElement06.xml"/> + <suite.member href="HTMLImageElement07.xml"/> + <suite.member href="HTMLImageElement08.xml"/> + <suite.member href="HTMLImageElement09.xml"/> + <suite.member href="HTMLImageElement10.xml"/> + <suite.member href="HTMLImageElement11.xml"/> + <suite.member href="HTMLImageElement12.xml"/> + <suite.member href="HTMLImageElement14.xml"/> + <suite.member href="HTMLInputElement01.xml"/> + <suite.member href="HTMLInputElement02.xml"/> + <suite.member href="HTMLInputElement03.xml"/> + <suite.member href="HTMLInputElement04.xml"/> + <suite.member href="HTMLInputElement05.xml"/> + <suite.member href="HTMLInputElement06.xml"/> + <suite.member href="HTMLInputElement07.xml"/> + <suite.member href="HTMLInputElement08.xml"/> + <suite.member href="HTMLInputElement09.xml"/> + <suite.member href="HTMLInputElement10.xml"/> + <suite.member href="HTMLInputElement11.xml"/> + <suite.member href="HTMLInputElement12.xml"/> + <suite.member href="HTMLInputElement13.xml"/> + <suite.member href="HTMLInputElement14.xml"/> + <suite.member href="HTMLInputElement15.xml"/> + <suite.member href="HTMLInputElement16.xml"/> + <suite.member href="HTMLInputElement17.xml"/> + <suite.member href="HTMLInputElement18.xml"/> + <suite.member href="HTMLInputElement19.xml"/> + <suite.member href="HTMLInputElement20.xml"/> + <suite.member href="HTMLInputElement21.xml"/> + <suite.member href="HTMLInputElement22.xml"/> + <suite.member href="HTMLIsIndexElement01.xml"/> + <suite.member href="HTMLIsIndexElement02.xml"/> + <suite.member href="HTMLIsIndexElement03.xml"/> + <suite.member href="HTMLLabelElement01.xml"/> + <suite.member href="HTMLLabelElement02.xml"/> + <suite.member href="HTMLLabelElement03.xml"/> + <suite.member href="HTMLLabelElement04.xml"/> + <suite.member href="HTMLLegendElement01.xml"/> + <suite.member href="HTMLLegendElement02.xml"/> + <suite.member href="HTMLLegendElement03.xml"/> + <suite.member href="HTMLLegendElement04.xml"/> + <suite.member href="HTMLLIElement01.xml"/> + <suite.member href="HTMLLIElement02.xml"/> + <suite.member href="HTMLLinkElement01.xml"/> + <suite.member href="HTMLLinkElement02.xml"/> + <suite.member href="HTMLLinkElement03.xml"/> + <suite.member href="HTMLLinkElement04.xml"/> + <suite.member href="HTMLLinkElement05.xml"/> + <suite.member href="HTMLLinkElement06.xml"/> + <suite.member href="HTMLLinkElement07.xml"/> + <suite.member href="HTMLLinkElement08.xml"/> + <suite.member href="HTMLLinkElement09.xml"/> + <suite.member href="HTMLMapElement01.xml"/> + <suite.member href="HTMLMapElement02.xml"/> + <suite.member href="HTMLMenuElement01.xml"/> + <suite.member href="HTMLMetaElement01.xml"/> + <suite.member href="HTMLMetaElement02.xml"/> + <suite.member href="HTMLMetaElement03.xml"/> + <suite.member href="HTMLMetaElement04.xml"/> + <suite.member href="HTMLModElement01.xml"/> + <suite.member href="HTMLModElement02.xml"/> + <suite.member href="HTMLModElement03.xml"/> + <suite.member href="HTMLModElement04.xml"/> + <suite.member href="HTMLObjectElement01.xml"/> + <suite.member href="HTMLObjectElement02.xml"/> + <suite.member href="HTMLObjectElement03.xml"/> + <suite.member href="HTMLObjectElement04.xml"/> + <suite.member href="HTMLObjectElement05.xml"/> + <suite.member href="HTMLObjectElement06.xml"/> + <suite.member href="HTMLObjectElement07.xml"/> + <suite.member href="HTMLObjectElement08.xml"/> + <suite.member href="HTMLObjectElement09.xml"/> + <suite.member href="HTMLObjectElement10.xml"/> + <suite.member href="HTMLObjectElement11.xml"/> + <suite.member href="HTMLObjectElement12.xml"/> + <suite.member href="HTMLObjectElement13.xml"/> + <suite.member href="HTMLObjectElement14.xml"/> + <suite.member href="HTMLObjectElement15.xml"/> + <suite.member href="HTMLObjectElement16.xml"/> + <suite.member href="HTMLObjectElement17.xml"/> + <suite.member href="HTMLObjectElement18.xml"/> + <suite.member href="HTMLObjectElement19.xml"/> + <suite.member href="HTMLOListElement01.xml"/> + <suite.member href="HTMLOListElement02.xml"/> + <suite.member href="HTMLOListElement03.xml"/> + <suite.member href="HTMLOptGroupElement01.xml"/> + <suite.member href="HTMLOptGroupElement02.xml"/> + <suite.member href="HTMLOptionElement01.xml"/> + <suite.member href="HTMLOptionElement02.xml"/> + <suite.member href="HTMLOptionElement03.xml"/> + <suite.member href="HTMLOptionElement04.xml"/> + <suite.member href="HTMLOptionElement05.xml"/> + <suite.member href="HTMLOptionElement06.xml"/> + <suite.member href="HTMLOptionElement07.xml"/> + <suite.member href="HTMLOptionElement08.xml"/> + <suite.member href="HTMLOptionElement09.xml"/> + <suite.member href="HTMLParagraphElement01.xml"/> + <suite.member href="HTMLParamElement01.xml"/> + <suite.member href="HTMLParamElement02.xml"/> + <suite.member href="HTMLParamElement03.xml"/> + <suite.member href="HTMLParamElement04.xml"/> + <suite.member href="HTMLPreElement01.xml"/> + <suite.member href="HTMLQuoteElement01.xml"/> + <suite.member href="HTMLQuoteElement02.xml"/> + <suite.member href="HTMLScriptElement01.xml"/> + <suite.member href="HTMLScriptElement02.xml"/> + <suite.member href="HTMLScriptElement03.xml"/> + <suite.member href="HTMLScriptElement04.xml"/> + <suite.member href="HTMLScriptElement05.xml"/> + <suite.member href="HTMLScriptElement06.xml"/> + <suite.member href="HTMLScriptElement07.xml"/> + <suite.member href="HTMLSelectElement01.xml"/> + <suite.member href="HTMLSelectElement02.xml"/> + <suite.member href="HTMLSelectElement03.xml"/> + <suite.member href="HTMLSelectElement04.xml"/> + <suite.member href="HTMLSelectElement05.xml"/> + <suite.member href="HTMLSelectElement06.xml"/> + <suite.member href="HTMLSelectElement07.xml"/> + <suite.member href="HTMLSelectElement08.xml"/> + <suite.member href="HTMLSelectElement09.xml"/> + <suite.member href="HTMLSelectElement10.xml"/> + <suite.member href="HTMLSelectElement11.xml"/> + <suite.member href="HTMLSelectElement12.xml"/> + <suite.member href="HTMLSelectElement13.xml"/> + <suite.member href="HTMLSelectElement14.xml"/> + <suite.member href="HTMLSelectElement15.xml"/> + <suite.member href="HTMLSelectElement16.xml"/> + <suite.member href="HTMLSelectElement17.xml"/> + <suite.member href="HTMLSelectElement18.xml"/> + <suite.member href="HTMLSelectElement19.xml"/> + <suite.member href="HTMLStyleElement01.xml"/> + <suite.member href="HTMLStyleElement02.xml"/> + <suite.member href="HTMLStyleElement03.xml"/> + <suite.member href="HTMLTableCaptionElement01.xml"/> + <suite.member href="HTMLTableCellElement01.xml"/> + <suite.member href="HTMLTableCellElement02.xml"/> + <suite.member href="HTMLTableCellElement03.xml"/> + <suite.member href="HTMLTableCellElement04.xml"/> + <suite.member href="HTMLTableCellElement05.xml"/> + <suite.member href="HTMLTableCellElement06.xml"/> + <suite.member href="HTMLTableCellElement07.xml"/> + <suite.member href="HTMLTableCellElement08.xml"/> + <suite.member href="HTMLTableCellElement09.xml"/> + <suite.member href="HTMLTableCellElement10.xml"/> + <suite.member href="HTMLTableCellElement11.xml"/> + <suite.member href="HTMLTableCellElement12.xml"/> + <suite.member href="HTMLTableCellElement13.xml"/> + <suite.member href="HTMLTableCellElement14.xml"/> + <suite.member href="HTMLTableCellElement15.xml"/> + <suite.member href="HTMLTableCellElement16.xml"/> + <suite.member href="HTMLTableCellElement17.xml"/> + <suite.member href="HTMLTableCellElement18.xml"/> + <suite.member href="HTMLTableCellElement19.xml"/> + <suite.member href="HTMLTableCellElement20.xml"/> + <suite.member href="HTMLTableCellElement21.xml"/> + <suite.member href="HTMLTableCellElement22.xml"/> + <suite.member href="HTMLTableCellElement23.xml"/> + <suite.member href="HTMLTableCellElement24.xml"/> + <suite.member href="HTMLTableCellElement25.xml"/> + <suite.member href="HTMLTableCellElement26.xml"/> + <suite.member href="HTMLTableCellElement27.xml"/> + <suite.member href="HTMLTableCellElement28.xml"/> + <suite.member href="HTMLTableCellElement29.xml"/> + <suite.member href="HTMLTableCellElement30.xml"/> + <suite.member href="HTMLTableColElement01.xml"/> + <suite.member href="HTMLTableColElement02.xml"/> + <suite.member href="HTMLTableColElement03.xml"/> + <suite.member href="HTMLTableColElement04.xml"/> + <suite.member href="HTMLTableColElement05.xml"/> + <suite.member href="HTMLTableColElement06.xml"/> + <suite.member href="HTMLTableColElement07.xml"/> + <suite.member href="HTMLTableColElement08.xml"/> + <suite.member href="HTMLTableColElement09.xml"/> + <suite.member href="HTMLTableColElement10.xml"/> + <suite.member href="HTMLTableColElement11.xml"/> + <suite.member href="HTMLTableColElement12.xml"/> + <suite.member href="HTMLTableElement01.xml"/> + <suite.member href="HTMLTableElement02.xml"/> + <suite.member href="HTMLTableElement03.xml"/> + <suite.member href="HTMLTableElement04.xml"/> + <suite.member href="HTMLTableElement05.xml"/> + <suite.member href="HTMLTableElement06.xml"/> + <suite.member href="HTMLTableElement07.xml"/> + <suite.member href="HTMLTableElement08.xml"/> + <suite.member href="HTMLTableElement09.xml"/> + <suite.member href="HTMLTableElement10.xml"/> + <suite.member href="HTMLTableElement11.xml"/> + <suite.member href="HTMLTableElement12.xml"/> + <suite.member href="HTMLTableElement13.xml"/> + <suite.member href="HTMLTableElement14.xml"/> + <suite.member href="HTMLTableElement15.xml"/> + <suite.member href="HTMLTableElement16.xml"/> + <suite.member href="HTMLTableElement17.xml"/> + <suite.member href="HTMLTableElement18.xml"/> + <suite.member href="HTMLTableElement19.xml"/> + <suite.member href="HTMLTableElement20.xml"/> + <suite.member href="HTMLTableElement21.xml"/> + <suite.member href="HTMLTableElement22.xml"/> + <suite.member href="HTMLTableElement23.xml"/> + <suite.member href="HTMLTableElement24.xml"/> + <suite.member href="HTMLTableElement25.xml"/> + <suite.member href="HTMLTableElement26.xml"/> + <suite.member href="HTMLTableElement27.xml"/> + <suite.member href="HTMLTableElement28.xml"/> + <suite.member href="HTMLTableElement29.xml"/> + <suite.member href="HTMLTableElement30.xml"/> + <suite.member href="HTMLTableElement31.xml"/> + <suite.member href="HTMLTableElement32.xml"/> + <suite.member href="HTMLTableElement33.xml"/> + <suite.member href="HTMLTableRowElement01.xml"/> + <suite.member href="HTMLTableRowElement02.xml"/> + <suite.member href="HTMLTableRowElement03.xml"/> + <suite.member href="HTMLTableRowElement04.xml"/> + <suite.member href="HTMLTableRowElement05.xml"/> + <suite.member href="HTMLTableRowElement06.xml"/> + <suite.member href="HTMLTableRowElement07.xml"/> + <suite.member href="HTMLTableRowElement08.xml"/> + <suite.member href="HTMLTableRowElement09.xml"/> + <suite.member href="HTMLTableRowElement10.xml"/> + <suite.member href="HTMLTableRowElement11.xml"/> + <suite.member href="HTMLTableRowElement12.xml"/> + <suite.member href="HTMLTableRowElement13.xml"/> + <suite.member href="HTMLTableRowElement14.xml"/> + <suite.member href="HTMLTableSectionElement01.xml"/> + <suite.member href="HTMLTableSectionElement02.xml"/> + <suite.member href="HTMLTableSectionElement03.xml"/> + <suite.member href="HTMLTableSectionElement04.xml"/> + <suite.member href="HTMLTableSectionElement05.xml"/> + <suite.member href="HTMLTableSectionElement06.xml"/> + <suite.member href="HTMLTableSectionElement07.xml"/> + <suite.member href="HTMLTableSectionElement08.xml"/> + <suite.member href="HTMLTableSectionElement09.xml"/> + <suite.member href="HTMLTableSectionElement10.xml"/> + <suite.member href="HTMLTableSectionElement11.xml"/> + <suite.member href="HTMLTableSectionElement12.xml"/> + <suite.member href="HTMLTableSectionElement13.xml"/> + <suite.member href="HTMLTableSectionElement14.xml"/> + <suite.member href="HTMLTableSectionElement15.xml"/> + <suite.member href="HTMLTableSectionElement16.xml"/> + <suite.member href="HTMLTableSectionElement17.xml"/> + <suite.member href="HTMLTableSectionElement18.xml"/> + <suite.member href="HTMLTableSectionElement19.xml"/> + <suite.member href="HTMLTableSectionElement20.xml"/> + <suite.member href="HTMLTableSectionElement21.xml"/> + <suite.member href="HTMLTableSectionElement22.xml"/> + <suite.member href="HTMLTableSectionElement23.xml"/> + <suite.member href="HTMLTableSectionElement24.xml"/> + <suite.member href="HTMLTextAreaElement01.xml"/> + <suite.member href="HTMLTextAreaElement02.xml"/> + <suite.member href="HTMLTextAreaElement03.xml"/> + <suite.member href="HTMLTextAreaElement04.xml"/> + <suite.member href="HTMLTextAreaElement05.xml"/> + <suite.member href="HTMLTextAreaElement06.xml"/> + <suite.member href="HTMLTextAreaElement07.xml"/> + <suite.member href="HTMLTextAreaElement08.xml"/> + <suite.member href="HTMLTextAreaElement09.xml"/> + <suite.member href="HTMLTextAreaElement10.xml"/> + <suite.member href="HTMLTextAreaElement11.xml"/> + <suite.member href="HTMLTextAreaElement12.xml"/> + <suite.member href="HTMLTextAreaElement13.xml"/> + <suite.member href="HTMLTextAreaElement14.xml"/> + <suite.member href="HTMLTextAreaElement15.xml"/> + <suite.member href="HTMLTitleElement01.xml"/> + <suite.member href="HTMLUListElement01.xml"/> + <suite.member href="HTMLUListElement02.xml"/> + + <!-- netscape tests --> + <suite.member href="anchor01.xml"/> + <suite.member href="anchor02.xml"/> + <suite.member href="anchor03.xml"/> + <suite.member href="anchor04.xml"/> + <suite.member href="anchor05.xml"/> + <suite.member href="anchor06.xml"/> + <suite.member href="area01.xml"/> + <suite.member href="area02.xml"/> + <suite.member href="area03.xml"/> + <suite.member href="area04.xml"/> + <suite.member href="basefont01.xml"/> + <suite.member href="body01.xml"/> + <suite.member href="button01.xml"/> + <suite.member href="button02.xml"/> + <suite.member href="button03.xml"/> + <suite.member href="button04.xml"/> + <suite.member href="button05.xml"/> + <suite.member href="button06.xml"/> + <suite.member href="button07.xml"/> + <suite.member href="button08.xml"/> + <suite.member href="button09.xml"/> + <suite.member href="dlist01.xml"/> + <suite.member href="doc01.xml"/> + <suite.member href="hasFeature01.xml"/> + <suite.member href="object01.xml"/> + <suite.member href="object02.xml"/> + <suite.member href="object03.xml"/> + <suite.member href="object04.xml"/> + <suite.member href="object05.xml"/> + <suite.member href="object06.xml"/> + <suite.member href="object07.xml"/> + <suite.member href="object08.xml"/> + <suite.member href="object09.xml"/> + <suite.member href="object10.xml"/> + <suite.member href="object11.xml"/> + <suite.member href="object12.xml"/> + <suite.member href="object13.xml"/> + <suite.member href="object14.xml"/> + <suite.member href="object15.xml"/> + <suite.member href="table01.xml"/> + <suite.member href="table02.xml"/> + <suite.member href="table03.xml"/> + <suite.member href="table04.xml"/> + <suite.member href="table06.xml"/> + <suite.member href="table07.xml"/> + <suite.member href="table08.xml"/> + <suite.member href="table09.xml"/> + <suite.member href="table10.xml"/> + <suite.member href="table12.xml"/> + <suite.member href="table15.xml"/> + <suite.member href="table17.xml"/> + <suite.member href="table18.xml"/> + <suite.member href="table19.xml"/> + <suite.member href="table20.xml"/> + <suite.member href="table21.xml"/> + <suite.member href="table22.xml"/> + <suite.member href="table23.xml"/> + <suite.member href="table24.xml"/> + <suite.member href="table25.xml"/> + <suite.member href="table26.xml"/> + <suite.member href="table27.xml"/> + <suite.member href="table28.xml"/> + <suite.member href="table29.xml"/> + <suite.member href="table30.xml"/> + <suite.member href="table31.xml"/> + <suite.member href="table32.xml"/> + <suite.member href="table33.xml"/> + <suite.member href="table34.xml"/> + <suite.member href="table35.xml"/> + <suite.member href="table36.xml"/> + <suite.member href="table37.xml"/> + <suite.member href="table38.xml"/> + <suite.member href="table39.xml"/> + <suite.member href="table40.xml"/> + <suite.member href="table41.xml"/> + <suite.member href="table42.xml"/> + <suite.member href="table43.xml"/> + <suite.member href="table44.xml"/> + <suite.member href="table45.xml"/> + <suite.member href="table46.xml"/> + <suite.member href="table47.xml"/> + <suite.member href="table48.xml"/> + <suite.member href="table49.xml"/> + <suite.member href="table50.xml"/> + <suite.member href="table51.xml"/> + <suite.member href="table52.xml"/> + <suite.member href="table53.xml"/> + +</suite> diff --git a/test/testcases/tests/level1/html/anchor01.xml b/test/testcases/tests/level1/html/anchor01.xml new file mode 100644 index 0000000..19a2711 --- /dev/null +++ b/test/testcases/tests/level1/html/anchor01.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="anchor01"> +<metadata> +<title>anchor01</title> +<creator>Netscape</creator> +<description> +A single character access key to give access to the form control. +The value of attribute accessKey of the anchor element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-89647724"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vaccesskey" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="anchor" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"a"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<accessKey interface="HTMLAnchorElement" obj="testNode" var="vaccesskey"/> +<assertEquals actual="vaccesskey" expected='"g"' id="accessKeyLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/anchor02.xml b/test/testcases/tests/level1/html/anchor02.xml new file mode 100644 index 0000000..61486a7 --- /dev/null +++ b/test/testcases/tests/level1/html/anchor02.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="anchor02"> +<metadata> +<title>anchor02</title> +<creator>Netscape</creator> +<description> +The character encoding of the linked resource. +The value of attribute charset of the anchor element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-67619266"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vcharset" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="anchor" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"a"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<charset interface="HTMLAnchorElement" obj="testNode" var="vcharset"/> +<assertEquals actual="vcharset" expected='"US-ASCII"' id="charsetLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/anchor03.xml b/test/testcases/tests/level1/html/anchor03.xml new file mode 100644 index 0000000..e6bd32e --- /dev/null +++ b/test/testcases/tests/level1/html/anchor03.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="anchor03"> +<metadata> +<title>anchor03</title> +<creator>Netscape</creator> +<description> +Comma-separated list of lengths, defining an active region geometry. +The value of attribute coords of the anchor element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-92079539"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vcoords" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="anchor" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"a"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<coords interface="HTMLAnchorElement" obj="testNode" var="vcoords"/> +<assertEquals actual="vcoords" expected='"0,0,100,100"' id="coordsLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/anchor04.xml b/test/testcases/tests/level1/html/anchor04.xml new file mode 100644 index 0000000..b5ce201 --- /dev/null +++ b/test/testcases/tests/level1/html/anchor04.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="anchor04"> +<metadata> +<title>anchor04</title> +<creator>Netscape</creator> +<description> +The URI of the linked resource. +The value of attribute href of the anchor element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-88517319"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vhref" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="anchor" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"a"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<href interface="HTMLAnchorElement" obj="testNode" var="vhref"/> +<assertURIEquals actual="vhref" isAbsolute="true" file='"submit.gif"' id="hrefLink"/> +</test> diff --git a/test/testcases/tests/level1/html/anchor05.xml b/test/testcases/tests/level1/html/anchor05.xml new file mode 100644 index 0000000..27b34ac --- /dev/null +++ b/test/testcases/tests/level1/html/anchor05.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="anchor05"> +<metadata> +<title>anchor05</title> +<creator>Netscape</creator> +<description> +Advisory content type. +The value of attribute type of the anchor element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63938221"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vtype" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="anchor" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"a"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<type interface="HTMLAnchorElement" obj="testNode" var="vtype"/> +<assertEquals actual="vtype" expected='"image/gif"' id="typeLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/anchor06.xml b/test/testcases/tests/level1/html/anchor06.xml new file mode 100644 index 0000000..31190be --- /dev/null +++ b/test/testcases/tests/level1/html/anchor06.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="anchor06"> +<metadata> +<title>anchor06</title> +<creator>Netscape</creator> +<description> +The shape of the active area. The coordinates are given by coords +The value of attribute shape of the anchor element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-02</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-49899808"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vshape" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="anchor" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"a"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<shape interface="HTMLAnchorElement" obj="testNode" var="vshape"/> +<assertEquals actual="vshape" expected='"rect"' id="shapeLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/area01.xml b/test/testcases/tests/level1/html/area01.xml new file mode 100644 index 0000000..34ebdb2 --- /dev/null +++ b/test/testcases/tests/level1/html/area01.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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="area01"> +<metadata> +<title>area01</title> +<creator>Netscape</creator> +<description> + +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-08</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-66021476"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vcoords" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="area" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"area"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<coords interface="HTMLAreaElement" obj="testNode" var="vcoords"/> +<assertEquals actual="vcoords" expected='"0,2,45,45"' id="coordsLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/area02.xml b/test/testcases/tests/level1/html/area02.xml new file mode 100644 index 0000000..8f85598 --- /dev/null +++ b/test/testcases/tests/level1/html/area02.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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="area02"> +<metadata> +<title>area02</title> +<creator>Netscape</creator> +<description> + +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-08</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-61826871"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vnohref" type="boolean" /> +<var name="doc" type="Node"/> +<load var="doc" href="area" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"area"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<noHref interface="HTMLAreaElement" obj="testNode" var="vnohref"/> +<assertFalse actual="vnohref" id="noHrefLink"/> +</test> diff --git a/test/testcases/tests/level1/html/area03.xml b/test/testcases/tests/level1/html/area03.xml new file mode 100644 index 0000000..577e711 --- /dev/null +++ b/test/testcases/tests/level1/html/area03.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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="area03"> +<metadata> +<title>area03</title> +<creator>Netscape</creator> +<description> + +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-08</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-8722121"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vtabindex" type="int" /> +<var name="doc" type="Node"/> +<load var="doc" href="area" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"area"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<tabIndex interface="HTMLAreaElement" obj="testNode" var="vtabindex"/> +<assertEquals actual="vtabindex" expected="10" id="tabIndexLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/area04.xml b/test/testcases/tests/level1/html/area04.xml new file mode 100644 index 0000000..f964a57 --- /dev/null +++ b/test/testcases/tests/level1/html/area04.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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="area04"> +<metadata> +<title>area04</title> +<creator>Netscape</creator> +<description> + +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-08</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-57944457"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vaccesskey" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="area" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"area"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<accessKey interface="HTMLAreaElement" obj="testNode" var="vaccesskey"/> +<assertEquals actual="vaccesskey" expected='"a"' id="accessKeyLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/basefont01.xml b/test/testcases/tests/level1/html/basefont01.xml new file mode 100644 index 0000000..eadfca4 --- /dev/null +++ b/test/testcases/tests/level1/html/basefont01.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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="basefont01"> +<metadata> +<title>basefont01</title> +<creator>Netscape</creator> +<description> +The value of attribute color of the basefont element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-08</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-87502302"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vcolor" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="basefont" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"basefont"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<color interface="HTMLBaseFontElement" obj="testNode" var="vcolor"/> +<assertEquals actual="vcolor" expected='"#000000"' id="colorLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/body01.xml b/test/testcases/tests/level1/html/body01.xml new file mode 100644 index 0000000..3ab179d --- /dev/null +++ b/test/testcases/tests/level1/html/body01.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="body01"> +<metadata> +<title>body01</title> +<creator>Netscape</creator> +<description> +Color of active links (after mouse-button down, but before mouse-button up). +The value of attribute alink of the body element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-08</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59424581"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="valink" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="body" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"body"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<aLink interface="HTMLBodyElement" obj="testNode" var="valink"/> +<assertEquals actual="valink" expected='"#0000ff"' id="aLinkLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/button01.xml b/test/testcases/tests/level1/html/button01.xml new file mode 100644 index 0000000..f128ea8 --- /dev/null +++ b/test/testcases/tests/level1/html/button01.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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="button01"> +<metadata> +<title>button01</title> +<creator>Netscape</creator> +<description> +Returns the FORM element containing this control. Returns null if this control is not within the context of a form. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-03-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-71254493"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vform" type="Node"/> +<var name="doc" type="Node"/> +<load var="doc" href="button" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"button"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<form interface="HTMLButtonElement" obj="testNode" var="vform"/> +<assertNull actual="vform" id="formLink"/> +</test> diff --git a/test/testcases/tests/level1/html/button02.xml b/test/testcases/tests/level1/html/button02.xml new file mode 100644 index 0000000..bd072ef --- /dev/null +++ b/test/testcases/tests/level1/html/button02.xml @@ -0,0 +1,42 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="button02"> +<metadata> +<title>button02</title> +<creator>Netscape</creator> +<description> +The value of attribute name of the form element which contains this button is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-03-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-71254493"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-63534901"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="formNode" type="Node"/> +<var name="vfname" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="button" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"button"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<form interface="HTMLButtonElement" obj="testNode" var="formNode"/> +<id interface="HTMLElement" obj="formNode" var="vfname"/> +<assertEquals actual="vfname" expected='"form2"' id="formLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/button03.xml b/test/testcases/tests/level1/html/button03.xml new file mode 100644 index 0000000..4074059 --- /dev/null +++ b/test/testcases/tests/level1/html/button03.xml @@ -0,0 +1,42 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="button03"> +<metadata> +<title>button03</title> +<creator>Netscape</creator> +<description> +The value of attribute action of the form element which contains this button is read and checked against the expected value +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-03-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-71254493"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-74049184"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="formNode" type="Node"/> +<var name="vfaction" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="button" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"button"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<form interface="HTMLButtonElement" obj="testNode" var="formNode"/> +<action interface="HTMLFormElement" obj="formNode" var="vfaction"/> +<assertEquals actual="vfaction" expected='"..."' id="formLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/button04.xml b/test/testcases/tests/level1/html/button04.xml new file mode 100644 index 0000000..737ddaa --- /dev/null +++ b/test/testcases/tests/level1/html/button04.xml @@ -0,0 +1,42 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="button04"> +<metadata> +<title>button04</title> +<creator>Netscape</creator> +<description> +The value of attribute method of the form element which contains this button is read and checked against the expected value +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-03-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-71254493"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-82545539"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="formNode" type="Node"/> +<var name="vfmethod" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="button" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"button"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<form interface="HTMLButtonElement" obj="testNode" var="formNode"/> +<method interface="HTMLFormElement" obj="formNode" var="vfmethod"/> +<assertEquals actual="vfmethod" expected='"POST"' id="formLink" ignoreCase="true"/> +</test> diff --git a/test/testcases/tests/level1/html/button05.xml b/test/testcases/tests/level1/html/button05.xml new file mode 100644 index 0000000..ecff6b5 --- /dev/null +++ b/test/testcases/tests/level1/html/button05.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="button05"> +<metadata> +<title>button05</title> +<creator>Netscape</creator> +<description> +A single character access key to give access to the form control. +The value of attribute accessKey of the button element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-03-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-73169431"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vakey" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="button" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"button"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<accessKey interface="HTMLButtonElement" obj="testNode" var="vakey"/> +<assertEquals actual="vakey" expected='"f"' id="accessKeyLink" ignoreCase="true"/> +</test> diff --git a/test/testcases/tests/level1/html/button06.xml b/test/testcases/tests/level1/html/button06.xml new file mode 100644 index 0000000..7a5e558 --- /dev/null +++ b/test/testcases/tests/level1/html/button06.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="button06"> +<metadata> +<title>button06</title> +<creator>Netscape</creator> +<description> +Index that represents the element's position in the tabbing order. +The value of attribute tabIndex of the button element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-03-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-39190908"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vtabIndex" type="int" /> +<var name="doc" type="Node"/> +<load var="doc" href="button" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"button"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<tabIndex interface="HTMLButtonElement" obj="testNode" var="vtabIndex"/> +<assertEquals actual="vtabIndex" expected="20" id="tabIndexLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/button07.xml b/test/testcases/tests/level1/html/button07.xml new file mode 100644 index 0000000..daddf76 --- /dev/null +++ b/test/testcases/tests/level1/html/button07.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="button07"> +<metadata> +<title>button07</title> +<creator>Netscape</creator> +<description> +The type of button +The value of attribute type of the button element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-03-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-27430092"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vtype" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="button" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"button"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<type interface="HTMLButtonElement" obj="testNode" var="vtype"/> +<assertEquals actual="vtype" expected='"reset"' id="typeLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/button08.xml b/test/testcases/tests/level1/html/button08.xml new file mode 100644 index 0000000..a4dbb0b --- /dev/null +++ b/test/testcases/tests/level1/html/button08.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="button08"> +<metadata> +<title>button08</title> +<creator>Netscape</creator> +<description> +The control is unavailable in this context. +The boolean value of attribute disabled of the button element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-03-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-92757155"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vdisabled" type="boolean" /> +<var name="doc" type="Node"/> +<load var="doc" href="button" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"button"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<disabled interface="HTMLButtonElement" obj="testNode" var="vdisabled"/> +<assertTrue actual="vdisabled" id="disabledLink"/> +</test> diff --git a/test/testcases/tests/level1/html/button09.xml b/test/testcases/tests/level1/html/button09.xml new file mode 100644 index 0000000..d0efa94 --- /dev/null +++ b/test/testcases/tests/level1/html/button09.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="button09"> +<metadata> +<title>button09</title> +<creator>Netscape</creator> +<description> +The current form control value. +The value of attribute value of the button element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-03-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-72856782"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vvalue" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="button" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"button"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<value interface="HTMLButtonElement" obj="testNode" var="vvalue"/> +<assertEquals actual="vvalue" expected='"Reset Disabled Button"' id="typeLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/dlist01.xml b/test/testcases/tests/level1/html/dlist01.xml new file mode 100644 index 0000000..35cbe2c --- /dev/null +++ b/test/testcases/tests/level1/html/dlist01.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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="dlist01"> +<metadata> +<title>dlist01</title> +<creator>Netscape</creator> +<description> + +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-08</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-21738539"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vcompact" type="boolean" /> +<var name="doc" type="Node"/> +<load var="doc" href="dl" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"dl"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<compact interface="HTMLDListElement" obj="testNode" var="vcompact"/> +<assertTrue actual="vcompact" id="compactLink"/> +</test> diff --git a/test/testcases/tests/level1/html/doc01.xml b/test/testcases/tests/level1/html/doc01.xml new file mode 100644 index 0000000..cb0c897 --- /dev/null +++ b/test/testcases/tests/level1/html/doc01.xml @@ -0,0 +1,34 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="doc01"> +<metadata> +<title>doc01</title> +<creator>Netscape</creator> +<description> +Retrieve the title attribute of HTMLDocument and examine it's value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-08</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-18446827"/> +</metadata> +<var name="vtitle" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="anchor" willBeModified="false"/> +<title interface="HTMLDocument" obj="doc" var="vtitle"/> +<assertEquals actual="vtitle" expected='"NIST DOM HTML Test - Anchor"' id="titleLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/files/.cvsignore b/test/testcases/tests/level1/html/files/.cvsignore new file mode 100644 index 0000000..30d6772 --- /dev/null +++ b/test/testcases/tests/level1/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/level1/html/files/CVS/Entries b/test/testcases/tests/level1/html/files/CVS/Entries new file mode 100644 index 0000000..ceb0a2b --- /dev/null +++ b/test/testcases/tests/level1/html/files/CVS/Entries @@ -0,0 +1,196 @@ +/.cvsignore/1.1/Fri Apr 3 02:48:01 2009// +/anchor.html/1.3/Fri Apr 3 02:48:01 2009// +/anchor.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/anchor.xml/1.3/Fri Apr 3 02:48:01 2009// +/anchor2.html/1.2/Fri Apr 3 02:48:01 2009// +/anchor2.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/anchor2.xml/1.3/Fri Apr 3 02:48:01 2009// +/applet.html/1.5/Fri Apr 3 02:48:01 2009// +/applet.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/applet.xml/1.6/Fri Apr 3 02:48:01 2009// +/applet2.html/1.3/Fri Apr 3 02:48:01 2009// +/applet2.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/applet2.xml/1.3/Fri Apr 3 02:48:01 2009// +/area.html/1.3/Fri Apr 3 02:48:01 2009// +/area.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/area.xml/1.4/Fri Apr 3 02:48:01 2009// +/area2.html/1.3/Fri Apr 3 02:48:01 2009// +/area2.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/area2.xml/1.4/Fri Apr 3 02:48:01 2009// +/base.html/1.4/Fri Apr 3 02:48:01 2009// +/base.xhtml/1.3/Fri Apr 3 02:48:01 2009/-kb/ +/base.xml/1.4/Fri Apr 3 02:48:01 2009// +/base2.html/1.4/Fri Apr 3 02:48:01 2009// +/base2.xhtml/1.4/Fri Apr 3 02:48:01 2009/-kb/ +/base2.xml/1.4/Fri Apr 3 02:48:01 2009// +/basefont.html/1.3/Fri Apr 3 02:48:01 2009// +/basefont.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/basefont.xml/1.3/Fri Apr 3 02:48:01 2009// +/body.html/1.3/Fri Apr 3 02:48:01 2009// +/body.xhtml/1.3/Fri Apr 3 02:48:01 2009/-kb/ +/body.xml/1.3/Fri Apr 3 02:48:01 2009// +/br.html/1.3/Fri Apr 3 02:48:01 2009// +/br.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/br.xml/1.3/Fri Apr 3 02:48:01 2009// +/button.html/1.4/Fri Apr 3 02:48:01 2009// +/button.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/button.xml/1.3/Fri Apr 3 02:48:01 2009// +/collection.html/1.3/Fri Apr 3 02:48:01 2009// +/collection.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/collection.xml/1.3/Fri Apr 3 02:48:01 2009// +/directory.html/1.3/Fri Apr 3 02:48:01 2009// +/directory.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/directory.xml/1.3/Fri Apr 3 02:48:01 2009// +/div.html/1.3/Fri Apr 3 02:48:01 2009// +/div.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/div.xml/1.3/Fri Apr 3 02:48:01 2009// +/dl.html/1.3/Fri Apr 3 02:48:01 2009// +/dl.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/dl.xml/1.3/Fri Apr 3 02:48:01 2009// +/document.html/1.5/Fri Apr 3 02:48:01 2009// +/document.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/document.xml/1.6/Fri Apr 3 02:48:01 2009// +/element.html/1.3/Fri Apr 3 02:48:01 2009// +/element.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/element.xml/1.3/Fri Apr 3 02:48:01 2009// +/fieldset.html/1.4/Fri Apr 3 02:48:01 2009// +/fieldset.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/fieldset.xml/1.3/Fri Apr 3 02:48:01 2009// +/font.html/1.3/Fri Apr 3 02:48:01 2009// +/font.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/font.xml/1.3/Fri Apr 3 02:48:01 2009// +/form.html/1.3/Fri Apr 3 02:48:01 2009// +/form.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/form.xml/1.3/Fri Apr 3 02:48:01 2009// +/form2.html/1.2/Fri Apr 3 02:48:01 2009// +/form2.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/form2.xml/1.3/Fri Apr 3 02:48:01 2009// +/form3.html/1.1/Fri Apr 3 02:48:01 2009// +/form3.xhtml/1.1/Fri Apr 3 02:48:01 2009/-kb/ +/form3.xml/1.1/Fri Apr 3 02:48:01 2009// +/frame.html/1.3/Fri Apr 3 02:48:01 2009// +/frame.xhtml/1.3/Fri Apr 3 02:48:01 2009/-kb/ +/frame.xml/1.5/Fri Apr 3 02:48:01 2009// +/frameset.html/1.2/Fri Apr 3 02:48:01 2009// +/frameset.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/frameset.xml/1.3/Fri Apr 3 02:48:01 2009// +/head.html/1.4/Fri Apr 3 02:48:01 2009// +/head.xhtml/1.3/Fri Apr 3 02:48:01 2009/-kb/ +/head.xml/1.3/Fri Apr 3 02:48:01 2009// +/heading.html/1.3/Fri Apr 3 02:48:01 2009// +/heading.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/heading.xml/1.3/Fri Apr 3 02:48:01 2009// +/hr.html/1.3/Fri Apr 3 02:48:01 2009// +/hr.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/hr.xml/1.3/Fri Apr 3 02:48:01 2009// +/html.html/1.4/Fri Apr 3 02:48:01 2009// +/html.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/html.xml/1.3/Fri Apr 3 02:48:01 2009// +/iframe.html/1.4/Fri Apr 3 02:48:01 2009// +/iframe.xhtml/1.3/Fri Apr 3 02:48:01 2009/-kb/ +/iframe.xml/1.4/Fri Apr 3 02:48:01 2009// +/img.html/1.3/Fri Apr 3 02:48:01 2009// +/img.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/img.xml/1.3/Fri Apr 3 02:48:01 2009// +/input.html/1.5/Fri Apr 3 02:48:01 2009// +/input.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/input.xml/1.5/Fri Apr 3 02:48:01 2009// +/isindex.html/1.4/Fri Apr 3 02:48:01 2009// +/isindex.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/isindex.xml/1.4/Fri Apr 3 02:48:01 2009// +/label.html/1.3/Fri Apr 3 02:48:01 2009// +/label.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/label.xml/1.4/Fri Apr 3 02:48:01 2009// +/legend.html/1.4/Fri Apr 3 02:48:01 2009// +/legend.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/legend.xml/1.4/Fri Apr 3 02:48:01 2009// +/li.html/1.3/Fri Apr 3 02:48:01 2009// +/li.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/li.xml/1.3/Fri Apr 3 02:48:01 2009// +/link.html/1.4/Fri Apr 3 02:48:01 2009// +/link.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/link.xml/1.3/Fri Apr 3 02:48:01 2009// +/link2.html/1.2/Fri Apr 3 02:48:01 2009// +/link2.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/link2.xml/1.3/Fri Apr 3 02:48:01 2009// +/map.html/1.3/Fri Apr 3 02:48:01 2009// +/map.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/map.xml/1.3/Fri Apr 3 02:48:01 2009// +/menu.html/1.3/Fri Apr 3 02:48:01 2009// +/menu.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/menu.xml/1.3/Fri Apr 3 02:48:01 2009// +/meta.html/1.2/Fri Apr 3 02:48:01 2009// +/meta.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/meta.xml/1.3/Fri Apr 3 02:48:01 2009// +/mod.html/1.2/Fri Apr 3 02:48:01 2009// +/mod.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/mod.xml/1.3/Fri Apr 3 02:48:01 2009// +/object.html/1.5/Fri Apr 3 02:48:01 2009// +/object.xhtml/1.3/Fri Apr 3 02:48:01 2009/-kb/ +/object.xml/1.3/Fri Apr 3 02:48:01 2009// +/object2.html/1.3/Fri Apr 3 02:48:01 2009// +/object2.xhtml/1.3/Fri Apr 3 02:48:01 2009/-kb/ +/object2.xml/1.2/Fri Apr 3 02:48:01 2009// +/olist.html/1.3/Fri Apr 3 02:48:01 2009// +/olist.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/olist.xml/1.3/Fri Apr 3 02:48:01 2009// +/optgroup.html/1.2/Fri Apr 3 02:48:01 2009// +/optgroup.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/optgroup.xml/1.3/Fri Apr 3 02:48:01 2009// +/option.html/1.3/Fri Apr 3 02:48:01 2009// +/option.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/option.xml/1.4/Fri Apr 3 02:48:01 2009// +/paragraph.html/1.3/Fri Apr 3 02:48:01 2009// +/paragraph.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/paragraph.xml/1.3/Fri Apr 3 02:48:01 2009// +/param.html/1.2/Fri Apr 3 02:48:01 2009// +/param.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/param.xml/1.4/Fri Apr 3 02:48:01 2009// +/pre.html/1.3/Fri Apr 3 02:48:01 2009// +/pre.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/pre.xml/1.3/Fri Apr 3 02:48:01 2009// +/quote.html/1.2/Fri Apr 3 02:48:01 2009// +/quote.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/quote.xml/1.3/Fri Apr 3 02:48:01 2009// +/right.png/1.1/Fri Apr 3 02:48:01 2009/-kb/ +/script.html/1.3/Fri Apr 3 02:48:01 2009// +/script.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/script.xml/1.3/Fri Apr 3 02:48:01 2009// +/select.html/1.4/Fri Apr 3 02:48:01 2009// +/select.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/select.xml/1.4/Fri Apr 3 02:48:01 2009// +/style.html/1.3/Fri Apr 3 02:48:01 2009// +/style.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/style.xml/1.3/Fri Apr 3 02:48:01 2009// +/table.html/1.3/Fri Apr 3 02:48:01 2009// +/table.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/table.xml/1.3/Fri Apr 3 02:48:01 2009// +/table1.html/1.4/Fri Apr 3 02:48:01 2009// +/table1.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/table1.xml/1.3/Fri Apr 3 02:48:01 2009// +/tablecaption.html/1.3/Fri Apr 3 02:48:01 2009// +/tablecaption.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/tablecaption.xml/1.3/Fri Apr 3 02:48:01 2009// +/tablecell.html/1.3/Fri Apr 3 02:48:01 2009// +/tablecell.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/tablecell.xml/1.4/Fri Apr 3 02:48:01 2009// +/tablecol.html/1.3/Fri Apr 3 02:48:01 2009// +/tablecol.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/tablecol.xml/1.3/Fri Apr 3 02:48:01 2009// +/tablerow.html/1.3/Fri Apr 3 02:48:01 2009// +/tablerow.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/tablerow.xml/1.3/Fri Apr 3 02:48:01 2009// +/tablesection.html/1.4/Fri Apr 3 02:48:01 2009// +/tablesection.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/tablesection.xml/1.4/Fri Apr 3 02:48:01 2009// +/textarea.html/1.4/Fri Apr 3 02:48:01 2009// +/textarea.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/textarea.xml/1.4/Fri Apr 3 02:48:01 2009// +/title.html/1.3/Fri Apr 3 02:48:01 2009// +/title.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/title.xml/1.3/Fri Apr 3 02:48:01 2009// +/ulist.html/1.3/Fri Apr 3 02:48:01 2009// +/ulist.xhtml/1.2/Fri Apr 3 02:48:01 2009/-kb/ +/ulist.xml/1.3/Fri Apr 3 02:48:01 2009// +/w3c_main.png/1.1/Fri Apr 3 02:48:01 2009/-kb/ +D diff --git a/test/testcases/tests/level1/html/files/CVS/Repository b/test/testcases/tests/level1/html/files/CVS/Repository new file mode 100644 index 0000000..82d4385 --- /dev/null +++ b/test/testcases/tests/level1/html/files/CVS/Repository @@ -0,0 +1 @@ +2001/DOM-Test-Suite/tests/level1/html/files diff --git a/test/testcases/tests/level1/html/files/CVS/Root b/test/testcases/tests/level1/html/files/CVS/Root new file mode 100644 index 0000000..3c7177e --- /dev/null +++ b/test/testcases/tests/level1/html/files/CVS/Root @@ -0,0 +1 @@ +:pserver:anonymous@dev.w3.org:/sources/public diff --git a/test/testcases/tests/level1/html/files/CVS/Template b/test/testcases/tests/level1/html/files/CVS/Template new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/test/testcases/tests/level1/html/files/CVS/Template diff --git a/test/testcases/tests/level1/html/files/anchor.html b/test/testcases/tests/level1/html/files/anchor.html new file mode 100644 index 0000000..952e8d9 --- /dev/null +++ b/test/testcases/tests/level1/html/files/anchor.html @@ -0,0 +1,12 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - Anchor</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<P> +<A ID="Anchor" DIR="LTR" HREF="./pix/submit.gif" ACCESSKEY="g" TYPE="image/gif" COORDS="0,0,100,100" SHAPE="rect" REL="GLOSSARY" REV="STYLESHEET" HREFLANG="en" CHARSET="US-ASCII" TABINDEX="22" NAME="Anchor">View Submit Button</A> +</P> +</BODY> +</HTML> diff --git a/test/testcases/tests/level1/html/files/anchor.xhtml b/test/testcases/tests/level1/html/files/anchor.xhtml new file mode 100644 index 0000000..1be5755 --- /dev/null +++ b/test/testcases/tests/level1/html/files/anchor.xhtml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - Anchor</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<a id="Anchor" dir="ltr" href="./pix/submit.gif" accesskey="g" type="image/gif" coords="0,0,100,100" shape="rect" rel="GLOSSARY" rev="STYLESHEET" hreflang="en" charset="US-ASCII" tabindex="22" name="Anchor">View Submit Button</a> +</p> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/anchor.xml b/test/testcases/tests/level1/html/files/anchor.xml new file mode 100644 index 0000000..1be5755 --- /dev/null +++ b/test/testcases/tests/level1/html/files/anchor.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - Anchor</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<a id="Anchor" dir="ltr" href="./pix/submit.gif" accesskey="g" type="image/gif" coords="0,0,100,100" shape="rect" rel="GLOSSARY" rev="STYLESHEET" hreflang="en" charset="US-ASCII" tabindex="22" name="Anchor">View Submit Button</a> +</p> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/anchor2.html b/test/testcases/tests/level1/html/files/anchor2.html new file mode 100644 index 0000000..1b04fb9 --- /dev/null +++ b/test/testcases/tests/level1/html/files/anchor2.html @@ -0,0 +1,13 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" + "http://www.w3.org/TR/html4/loose.dtd"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - Anchor</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<P> +<A HREF="./pix/submit.gif" TARGET="dynamic">View Submit Button</A> +</P> +</BODY> +</HTML> diff --git a/test/testcases/tests/level1/html/files/anchor2.xhtml b/test/testcases/tests/level1/html/files/anchor2.xhtml new file mode 100644 index 0000000..096eb60 --- /dev/null +++ b/test/testcases/tests/level1/html/files/anchor2.xhtml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - Anchor</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<a href="./pix/submit.gif" target="dynamic">View Submit Button</a> +</p> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/anchor2.xml b/test/testcases/tests/level1/html/files/anchor2.xml new file mode 100644 index 0000000..096eb60 --- /dev/null +++ b/test/testcases/tests/level1/html/files/anchor2.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - Anchor</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<a href="./pix/submit.gif" target="dynamic">View Submit Button</a> +</p> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/applet.html b/test/testcases/tests/level1/html/files/applet.html new file mode 100644 index 0000000..d721cf1 --- /dev/null +++ b/test/testcases/tests/level1/html/files/applet.html @@ -0,0 +1,12 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - Applet</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<P> +<APPLET ALIGN="bottom" ALT="Applet Number 1" ARCHIVE="" CODE="org/w3c/domts/DOMTSApplet.class" CODEBASE="applets" HEIGHT="306" HSPACE="0" NAME="applet1" VSPACE="0" WIDTH="301"></APPLET> +</P> +</BODY> +</HTML> diff --git a/test/testcases/tests/level1/html/files/applet.xhtml b/test/testcases/tests/level1/html/files/applet.xhtml new file mode 100644 index 0000000..cf2070c --- /dev/null +++ b/test/testcases/tests/level1/html/files/applet.xhtml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - Applet</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<applet align="bottom" alt="Applet Number 1" archive="" code="org/w3c/domts/DOMTSApplet.class" codebase="applets" height="306" hspace="0" name="applet1" vspace="0" width="301"></applet> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/applet.xml b/test/testcases/tests/level1/html/files/applet.xml new file mode 100644 index 0000000..cf2070c --- /dev/null +++ b/test/testcases/tests/level1/html/files/applet.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - Applet</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<applet align="bottom" alt="Applet Number 1" archive="" code="org/w3c/domts/DOMTSApplet.class" codebase="applets" height="306" hspace="0" name="applet1" vspace="0" width="301"></applet> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/applet2.html b/test/testcases/tests/level1/html/files/applet2.html new file mode 100644 index 0000000..0379ed1 --- /dev/null +++ b/test/testcases/tests/level1/html/files/applet2.html @@ -0,0 +1,12 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - Applet</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<P> +<APPLET ALIGN="bottom" ALT="Applet Number 1" ARCHIVE="" OBJECT="DOMTSApplet.dat" CODEBASE="applets" HEIGHT="306" HSPACE="0" NAME="applet1" VSPACE="0" WIDTH="301"></APPLET> +</P> +</BODY> +</HTML> diff --git a/test/testcases/tests/level1/html/files/applet2.xhtml b/test/testcases/tests/level1/html/files/applet2.xhtml new file mode 100644 index 0000000..43b27da --- /dev/null +++ b/test/testcases/tests/level1/html/files/applet2.xhtml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - Applet</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<applet align="bottom" alt="Applet Number 1" archive="" object="DOMTSApplet.dat" codebase="applets" height="306" hspace="0" name="applet1" vspace="0" width="301"></applet> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/applet2.xml b/test/testcases/tests/level1/html/files/applet2.xml new file mode 100644 index 0000000..43b27da --- /dev/null +++ b/test/testcases/tests/level1/html/files/applet2.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - Applet</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<applet align="bottom" alt="Applet Number 1" archive="" object="DOMTSApplet.dat" codebase="applets" height="306" hspace="0" name="applet1" vspace="0" width="301"></applet> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/area.html b/test/testcases/tests/level1/html/files/area.html new file mode 100644 index 0000000..dddff68 --- /dev/null +++ b/test/testcases/tests/level1/html/files/area.html @@ -0,0 +1,14 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - Area</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<P> +<MAP NAME="mapid" ID="mapid"> +<AREA TABINDEX="10" ACCESSKEY="a" SHAPE="rect" ALT="Domain" COORDS="0,2,45,45" HREF="./files/dletter.html" TITLE="Domain"> +</MAP> +</P> +</BODY> +</HTML> diff --git a/test/testcases/tests/level1/html/files/area.xhtml b/test/testcases/tests/level1/html/files/area.xhtml new file mode 100644 index 0000000..1e497f3 --- /dev/null +++ b/test/testcases/tests/level1/html/files/area.xhtml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - Area</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<map name="mapid" id="mapid"> +<area tabindex="10" accesskey="a" shape="rect" alt="Domain" coords="0,2,45,45" href="./files/dletter.html" title="Domain"/> +</map> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/area.xml b/test/testcases/tests/level1/html/files/area.xml new file mode 100644 index 0000000..1e497f3 --- /dev/null +++ b/test/testcases/tests/level1/html/files/area.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - Area</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<map name="mapid" id="mapid"> +<area tabindex="10" accesskey="a" shape="rect" alt="Domain" coords="0,2,45,45" href="./files/dletter.html" title="Domain"/> +</map> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/area2.html b/test/testcases/tests/level1/html/files/area2.html new file mode 100644 index 0000000..f1ae081 --- /dev/null +++ b/test/testcases/tests/level1/html/files/area2.html @@ -0,0 +1,15 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" + "http://www.w3.org/TR/html4/loose.dtd"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - Area</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<P> +<MAP NAME="mapid" ID="mapid"> +<AREA HREF="./files/dletter.html" ALT="Domain" TARGET="dynamic"> +</MAP> +</P> +</BODY> +</HTML> diff --git a/test/testcases/tests/level1/html/files/area2.xhtml b/test/testcases/tests/level1/html/files/area2.xhtml new file mode 100644 index 0000000..5476bee --- /dev/null +++ b/test/testcases/tests/level1/html/files/area2.xhtml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - Area</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<map name="mapid" id="mapid"> +<area href="./files/dletter.html" alt="Domain" target="dynamic"/> +</map> +</p> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/area2.xml b/test/testcases/tests/level1/html/files/area2.xml new file mode 100644 index 0000000..5476bee --- /dev/null +++ b/test/testcases/tests/level1/html/files/area2.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - Area</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<map name="mapid" id="mapid"> +<area href="./files/dletter.html" alt="Domain" target="dynamic"/> +</map> +</p> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/base.html b/test/testcases/tests/level1/html/files/base.html new file mode 100644 index 0000000..53d151d --- /dev/null +++ b/test/testcases/tests/level1/html/files/base.html @@ -0,0 +1,11 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<BASE HREF="about:blank"> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - Base</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<P>Some Text</P> +</BODY> +</HTML> diff --git a/test/testcases/tests/level1/html/files/base.xhtml b/test/testcases/tests/level1/html/files/base.xhtml new file mode 100644 index 0000000..bc41a1d --- /dev/null +++ b/test/testcases/tests/level1/html/files/base.xhtml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<base href="about:blank"/> +<title>NIST DOM HTML Test - Base</title> +</head> +<body onload="parent.loadComplete()"> +<p>Some Text</p> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/base.xml b/test/testcases/tests/level1/html/files/base.xml new file mode 100644 index 0000000..bc41a1d --- /dev/null +++ b/test/testcases/tests/level1/html/files/base.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<base href="about:blank"/> +<title>NIST DOM HTML Test - Base</title> +</head> +<body onload="parent.loadComplete()"> +<p>Some Text</p> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/base2.html b/test/testcases/tests/level1/html/files/base2.html new file mode 100644 index 0000000..c9e0d1a --- /dev/null +++ b/test/testcases/tests/level1/html/files/base2.html @@ -0,0 +1,15 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" +"http://www.w3.org/TR/html4/frameset.dtd"> +<HTML> +<HEAD> +<BASE HREF="about:blank" TARGET="Frame1"> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - Base2</TITLE> +</HEAD> +<FRAMESET COLS="20, 80" onload="parent.loadComplete()"> +<FRAMESET ROWS="100, 200"> +<FRAME MARGINHEIGHT="10" MARGINWIDTH="5" NORESIZE="NORESIZE" NAME="Frame1" FRAMEBORDER="1" SCROLLING="yes"> +</FRAMESET> +<FRAME> +</FRAMESET> +</HTML> diff --git a/test/testcases/tests/level1/html/files/base2.xhtml b/test/testcases/tests/level1/html/files/base2.xhtml new file mode 100644 index 0000000..a29dcd9 --- /dev/null +++ b/test/testcases/tests/level1/html/files/base2.xhtml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" + "xhtml1-frameset.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<base href="about:blank" target="Frame1"/> +<title>NIST DOM HTML Test - Base2</title> +</head> +<frameset cols="20, 80" onload="parent.loadComplete()"> +<frameset rows="100, 200"> +<frame marginheight="10" marginwidth="5" noresize="noresize" name="Frame1" frameborder="1" scrolling="yes" /> +</frameset> +<frame /> +</frameset> +</html> diff --git a/test/testcases/tests/level1/html/files/base2.xml b/test/testcases/tests/level1/html/files/base2.xml new file mode 100644 index 0000000..a29dcd9 --- /dev/null +++ b/test/testcases/tests/level1/html/files/base2.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" + "xhtml1-frameset.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<base href="about:blank" target="Frame1"/> +<title>NIST DOM HTML Test - Base2</title> +</head> +<frameset cols="20, 80" onload="parent.loadComplete()"> +<frameset rows="100, 200"> +<frame marginheight="10" marginwidth="5" noresize="noresize" name="Frame1" frameborder="1" scrolling="yes" /> +</frameset> +<frame /> +</frameset> +</html> diff --git a/test/testcases/tests/level1/html/files/basefont.html b/test/testcases/tests/level1/html/files/basefont.html new file mode 100644 index 0000000..e3753f7 --- /dev/null +++ b/test/testcases/tests/level1/html/files/basefont.html @@ -0,0 +1,12 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - BaseFont</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<P> +<BASEFONT COLOR="#000000" FACE="arial,helvitica" SIZE="4"> +</P> +</BODY> +</HTML> diff --git a/test/testcases/tests/level1/html/files/basefont.xhtml b/test/testcases/tests/level1/html/files/basefont.xhtml new file mode 100644 index 0000000..c5fc9b5 --- /dev/null +++ b/test/testcases/tests/level1/html/files/basefont.xhtml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - BaseFont</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<basefont color="#000000" face="arial,helvitica" size="4"/> +</p> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/basefont.xml b/test/testcases/tests/level1/html/files/basefont.xml new file mode 100644 index 0000000..c5fc9b5 --- /dev/null +++ b/test/testcases/tests/level1/html/files/basefont.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - BaseFont</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<basefont color="#000000" face="arial,helvitica" size="4"/> +</p> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/body.html b/test/testcases/tests/level1/html/files/body.html new file mode 100644 index 0000000..6468cd0 --- /dev/null +++ b/test/testcases/tests/level1/html/files/body.html @@ -0,0 +1,10 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - Body</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()" ALINK="#0000ff" BACKGROUND="./pix/back1.gif" BGCOLOR="#ffff00" LINK="#ff0000" TEXT="#000000" VLINK="#00ffff"> +<P>Hello, World</P> +</BODY> +</HTML> diff --git a/test/testcases/tests/level1/html/files/body.xhtml b/test/testcases/tests/level1/html/files/body.xhtml new file mode 100644 index 0000000..f2ac2a0 --- /dev/null +++ b/test/testcases/tests/level1/html/files/body.xhtml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - Body</title> +</head> +<body onload="parent.loadComplete()" alink="#0000ff" background="./pix/back1.gif" bgcolor="#ffff00" link="#ff0000" text="#000000" vlink="#00ffff"> +<p>Hello, World.</p> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/body.xml b/test/testcases/tests/level1/html/files/body.xml new file mode 100644 index 0000000..fa6d1b7 --- /dev/null +++ b/test/testcases/tests/level1/html/files/body.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<base href="http://xw2k.sdct.itl.nist.gov/brady/dom/"/> +<title>NIST DOM HTML Test - Body</title> +</head> +<body onload="parent.loadComplete()" alink="#0000ff" background="./pix/back1.gif" bgcolor="#ffff00" link="#ff0000" text="#000000" vlink="#00ffff"> +<p>Hello, World.</p> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/br.html b/test/testcases/tests/level1/html/files/br.html new file mode 100644 index 0000000..0a3a3d4 --- /dev/null +++ b/test/testcases/tests/level1/html/files/br.html @@ -0,0 +1,12 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - BR</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<P> +<BR CLEAR="none"> +</P> +</BODY> +</HTML> diff --git a/test/testcases/tests/level1/html/files/br.xhtml b/test/testcases/tests/level1/html/files/br.xhtml new file mode 100644 index 0000000..99c9c1e --- /dev/null +++ b/test/testcases/tests/level1/html/files/br.xhtml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - BR</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<br clear="none"/> +</p> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/br.xml b/test/testcases/tests/level1/html/files/br.xml new file mode 100644 index 0000000..99c9c1e --- /dev/null +++ b/test/testcases/tests/level1/html/files/br.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - BR</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<br clear="none"/> +</p> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/button.html b/test/testcases/tests/level1/html/files/button.html new file mode 100644 index 0000000..c891ba4 --- /dev/null +++ b/test/testcases/tests/level1/html/files/button.html @@ -0,0 +1,21 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - Button</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<FORM ID="form2" ACTION="..." METHOD="POST"> +<P> + <BUTTON ACCESSKEY="f" NAME="disabledButton" TABINDEX="20" TYPE="reset" VALUE="Reset Disabled Button" DISABLED="disabled">Reset</BUTTON> +</P> +</FORM> +<TABLE SUMMARY="Extra Button Table"> +<TR> +<TD> +<BUTTON>Extra Button</BUTTON> +</TD> +</TR> +</TABLE> +</BODY> +</HTML> diff --git a/test/testcases/tests/level1/html/files/button.xhtml b/test/testcases/tests/level1/html/files/button.xhtml new file mode 100644 index 0000000..3136988 --- /dev/null +++ b/test/testcases/tests/level1/html/files/button.xhtml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - Button</title> +</head> +<body onload="parent.loadComplete()"> +<form id="form2" action="..." method="post"> +<p> + <button accesskey="f" name="disabledButton" tabindex="20" type="reset" value="Reset Disabled Button" disabled="disabled">Reset</button> +</p> +</form> +<table summary="Extra Button Table"> +<tr> +<td> +<button>Extra Button</button> +</td> +</tr> +</table> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/button.xml b/test/testcases/tests/level1/html/files/button.xml new file mode 100644 index 0000000..3136988 --- /dev/null +++ b/test/testcases/tests/level1/html/files/button.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - Button</title> +</head> +<body onload="parent.loadComplete()"> +<form id="form2" action="..." method="post"> +<p> + <button accesskey="f" name="disabledButton" tabindex="20" type="reset" value="Reset Disabled Button" disabled="disabled">Reset</button> +</p> +</form> +<table summary="Extra Button Table"> +<tr> +<td> +<button>Extra Button</button> +</td> +</tr> +</table> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/collection.html b/test/testcases/tests/level1/html/files/collection.html new file mode 100644 index 0000000..885202d --- /dev/null +++ b/test/testcases/tests/level1/html/files/collection.html @@ -0,0 +1,79 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - SELECT</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<TABLE ID="table-1" BORDER="4" FRAME="border" CELLPADDING="2" CELLSPACING="2" SUMMARY="HTML Control Table" RULES="all"> +<CAPTION>Table Caption</CAPTION> +<THEAD ALIGN="center" VALIGN="middle"> +<TR ALIGN="center" VALIGN="middle" CHAR="*" CHAROFF="1"> +<TH ID="header-1">Employee Id</TH> +<TH ID="header-2" ABBR="maiden" AXIS="center" ALIGN="center" COLSPAN="1" ROWSPAN="1" SCOPE="col" HEADERS="header-1" VALIGN="middle">Employee Name</TH> +<TH>Position</TH> +<TH>Salary</TH> +<TH>Gender</TH> +<TH>Address</TH> +</TR> +</THEAD> +<TFOOT ALIGN="center" VALIGN="middle"> +<TR> +<TH>next page ...</TH> +<TH>next page ...</TH> +<TH>next page ...</TH> +<TH>next page ...</TH> +<TH>next page ...</TH> +<TH>next page ...</TH> +</TR> +</TFOOT> +<TBODY ALIGN="center" VALIGN="middle"> +<TR> +<TD AXIS="center" ID="Table-3" ABBR="maiden2" COLSPAN="1" ROWSPAN="1" SCOPE="col" HEADERS="header-2" VALIGN="middle">EMP0001</TD> +<TD HEADERS="header-2">Margaret Martin</TD> +<TD>Accountant</TD> +<TD>56,000</TD> +<TD>Female</TD> +<TD>1230 North Ave. Dallas, Texas 98551</TD> +</TR> +<TR> +<TD>EMP0002</TD> +<TD>Martha Raynolds</TD> +<TD>Secretary</TD> +<TD>35,000</TD> +<TD>Female</TD> +<TD>1900 Dallas Road Dallas, Texas 98554</TD> +</TR> +</TBODY> +</TABLE> +<FORM ID="form1" ACTION="./files/getData.pl" METHOD="post"> +<P> +<SELECT ID="selectId" DIR="ltr" TABINDEX="7" NAME="select1" MULTIPLE="multiple" SIZE="1"> +<OPTION SELECTED="selected" value="EMP1">EMP10001</OPTION> +<OPTION>EMP10002</OPTION> +<OPTION>EMP10003</OPTION> +<OPTION>EMP10004</OPTION> +<OPTION>EMP10005</OPTION> +</SELECT> +</P> +</FORM> +<P> +<SELECT NAME="select2"> +<OPTION>EMP20001</OPTION> +<OPTION>EMP20002</OPTION> +<OPTION>EMP20003</OPTION> +<OPTION>EMP20004</OPTION> +<OPTION>EMP20005</OPTION> +</SELECT> +</P> +<P> +<SELECT NAME="select3" DISABLED="disabled" TABINDEX="1"> +<OPTION>EMP30001</OPTION> +<OPTION>EMP30002</OPTION> +<OPTION>EMP30003</OPTION> +<OPTION>EMP30004</OPTION> +<OPTION>EMP30005</OPTION> +</SELECT> +</P> +</BODY> +</HTML> diff --git a/test/testcases/tests/level1/html/files/collection.xhtml b/test/testcases/tests/level1/html/files/collection.xhtml new file mode 100644 index 0000000..9da52c1 --- /dev/null +++ b/test/testcases/tests/level1/html/files/collection.xhtml @@ -0,0 +1,82 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - BR</title> +</head> +<body onload="parent.loadComplete()"> +<table id="table-1" border="4" frame="border" cellpadding="2" cellspacing="2" summary="HTML Control Table" rules="all"> +<caption>Table Caption</caption> +<thead align="center" valign="middle"> +<tr align="center" valign="middle" char="*" charoff="1"> +<th id="header-1">Employee Id</th> +<th id="header-2" abbr="maiden" axis="center" align="center" colspan="1" rowspan="1" scope="col" headers="header-1" valign="middle">Employee Name</th> +<th>Position</th> +<th>Salary</th> +<th>Gender</th> +<th>Address</th> +</tr> +</thead> +<tfoot align="center" valign="middle"> +<tr> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +</tr> +</tfoot> +<tbody align="center" valign="middle"> +<tr> +<td axis="center" id="Table-3" abbr="maiden2" colspan="1" rowspan="1" scope="col" headers="header-2" valign="middle">EMP0001</td> +<td headers="header-2">Margaret Martin</td> +<td>Accountant</td> +<td>56,000</td> +<td>Female</td> +<td>1230 North Ave. Dallas, Texas 98551</td> +</tr> +<tr> +<td>EMP0002</td> +<td>Martha Raynolds</td> +<td>Secretary</td> +<td>35,000</td> +<td>Female</td> +<td>1900 Dallas Road Dallas, Texas 98554</td> +</tr> +</tbody> +</table> +<form id="form1" action="./files/getData.pl" method="post"> +<p> +<select id="selectId" dir="ltr" tabindex="7" name="select1" multiple="multiple" size="1"> +<option selected="selected" value="EMP1">EMP10001</option> +<option>EMP10002</option> +<option>EMP10003</option> +<option>EMP10004</option> +<option>EMP10005</option> +</select> +</p> +</form> +<p> +<select name="select2"> +<option>EMP20001</option> +<option>EMP20002</option> +<option>EMP20003</option> +<option>EMP20004</option> +<option>EMP20005</option> +</select> +</p> +<p> +<select name="select3" disabled="disabled" tabindex="1"> +<option>EMP30001</option> +<option>EMP30002</option> +<option>EMP30003</option> +<option>EMP30004</option> +<option>EMP30005</option> +</select> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/collection.xml b/test/testcases/tests/level1/html/files/collection.xml new file mode 100644 index 0000000..9da52c1 --- /dev/null +++ b/test/testcases/tests/level1/html/files/collection.xml @@ -0,0 +1,82 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - BR</title> +</head> +<body onload="parent.loadComplete()"> +<table id="table-1" border="4" frame="border" cellpadding="2" cellspacing="2" summary="HTML Control Table" rules="all"> +<caption>Table Caption</caption> +<thead align="center" valign="middle"> +<tr align="center" valign="middle" char="*" charoff="1"> +<th id="header-1">Employee Id</th> +<th id="header-2" abbr="maiden" axis="center" align="center" colspan="1" rowspan="1" scope="col" headers="header-1" valign="middle">Employee Name</th> +<th>Position</th> +<th>Salary</th> +<th>Gender</th> +<th>Address</th> +</tr> +</thead> +<tfoot align="center" valign="middle"> +<tr> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +</tr> +</tfoot> +<tbody align="center" valign="middle"> +<tr> +<td axis="center" id="Table-3" abbr="maiden2" colspan="1" rowspan="1" scope="col" headers="header-2" valign="middle">EMP0001</td> +<td headers="header-2">Margaret Martin</td> +<td>Accountant</td> +<td>56,000</td> +<td>Female</td> +<td>1230 North Ave. Dallas, Texas 98551</td> +</tr> +<tr> +<td>EMP0002</td> +<td>Martha Raynolds</td> +<td>Secretary</td> +<td>35,000</td> +<td>Female</td> +<td>1900 Dallas Road Dallas, Texas 98554</td> +</tr> +</tbody> +</table> +<form id="form1" action="./files/getData.pl" method="post"> +<p> +<select id="selectId" dir="ltr" tabindex="7" name="select1" multiple="multiple" size="1"> +<option selected="selected" value="EMP1">EMP10001</option> +<option>EMP10002</option> +<option>EMP10003</option> +<option>EMP10004</option> +<option>EMP10005</option> +</select> +</p> +</form> +<p> +<select name="select2"> +<option>EMP20001</option> +<option>EMP20002</option> +<option>EMP20003</option> +<option>EMP20004</option> +<option>EMP20005</option> +</select> +</p> +<p> +<select name="select3" disabled="disabled" tabindex="1"> +<option>EMP30001</option> +<option>EMP30002</option> +<option>EMP30003</option> +<option>EMP30004</option> +<option>EMP30005</option> +</select> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/directory.html b/test/testcases/tests/level1/html/files/directory.html new file mode 100644 index 0000000..0e2f460 --- /dev/null +++ b/test/testcases/tests/level1/html/files/directory.html @@ -0,0 +1,14 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - Directory</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<DIR COMPACT="compact"> +<LI>DIR item number 1.</LI> +<LI>DIR item number 2.</LI> +<LI>DIR item number 3.</LI> +</DIR> +</BODY> +</HTML> diff --git a/test/testcases/tests/level1/html/files/directory.xhtml b/test/testcases/tests/level1/html/files/directory.xhtml new file mode 100644 index 0000000..bf70ef8 --- /dev/null +++ b/test/testcases/tests/level1/html/files/directory.xhtml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - Directory</title> +</head> +<body onload="parent.loadComplete()"> +<dir compact="compact"> +<li>DIR item number 1.</li> +<li>DIR item number 2.</li> +<li>DIR item number 3.</li> +</dir> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/directory.xml b/test/testcases/tests/level1/html/files/directory.xml new file mode 100644 index 0000000..bf70ef8 --- /dev/null +++ b/test/testcases/tests/level1/html/files/directory.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - Directory</title> +</head> +<body onload="parent.loadComplete()"> +<dir compact="compact"> +<li>DIR item number 1.</li> +<li>DIR item number 2.</li> +<li>DIR item number 3.</li> +</dir> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/div.html b/test/testcases/tests/level1/html/files/div.html new file mode 100644 index 0000000..6b83646 --- /dev/null +++ b/test/testcases/tests/level1/html/files/div.html @@ -0,0 +1,10 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - DIV</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<DIV ALIGN="center">The DIV element is a generic block container. This text should be centered.</DIV> +</BODY> +</HTML> diff --git a/test/testcases/tests/level1/html/files/div.xhtml b/test/testcases/tests/level1/html/files/div.xhtml new file mode 100644 index 0000000..7a1059a --- /dev/null +++ b/test/testcases/tests/level1/html/files/div.xhtml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - DIV</title> +</head> +<body onload="parent.loadComplete()"> +<div align="center">The DIV element is a generic block container. This text should be centered.</div> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/div.xml b/test/testcases/tests/level1/html/files/div.xml new file mode 100644 index 0000000..7a1059a --- /dev/null +++ b/test/testcases/tests/level1/html/files/div.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - DIV</title> +</head> +<body onload="parent.loadComplete()"> +<div align="center">The DIV element is a generic block container. This text should be centered.</div> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/dl.html b/test/testcases/tests/level1/html/files/dl.html new file mode 100644 index 0000000..5dec3af --- /dev/null +++ b/test/testcases/tests/level1/html/files/dl.html @@ -0,0 +1,15 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - DL</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<DL COMPACT="COMPACT"> +<DD>Accountant</DD> +<DD>56,000</DD> +<DD>Female</DD> +<DD>1230 North Ave. Dallas, Texas 98551</DD> +</DL> +</BODY> +</HTML> diff --git a/test/testcases/tests/level1/html/files/dl.xhtml b/test/testcases/tests/level1/html/files/dl.xhtml new file mode 100644 index 0000000..72c6475 --- /dev/null +++ b/test/testcases/tests/level1/html/files/dl.xhtml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - DL</title> +</head> +<body onload="parent.loadComplete()"> +<dl compact="compact"> +<dd>Accountant</dd> +<dd>56,000</dd> +<dd>Female</dd> +<dd>1230 North Ave. Dallas, Texas 98551</dd> +</dl> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/dl.xml b/test/testcases/tests/level1/html/files/dl.xml new file mode 100644 index 0000000..72c6475 --- /dev/null +++ b/test/testcases/tests/level1/html/files/dl.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - DL</title> +</head> +<body onload="parent.loadComplete()"> +<dl compact="compact"> +<dd>Accountant</dd> +<dd>56,000</dd> +<dd>Female</dd> +<dd>1230 North Ave. Dallas, Texas 98551</dd> +</dl> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/document.html b/test/testcases/tests/level1/html/files/document.html new file mode 100644 index 0000000..9cd9c8a --- /dev/null +++ b/test/testcases/tests/level1/html/files/document.html @@ -0,0 +1,36 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - DOCUMENT</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()" ID="TEST-BODY"> +<FORM ID="form1" ACCEPT-CHARSET="US-ASCII" ACTION="./files/getData.pl" ENCTYPE="application/x-www-form-urlencoded" METHOD="post"> +<P> +<TEXTAREA NAME="text1" COLS="20" ROWS="7"></TEXTAREA> +<INPUT TYPE="submit" NAME="submit" VALUE="Submit" /> +<INPUT TYPE="reset" NAME="reset" VALUE="Reset" /> +</P> +</FORM> +<P> +<MAP NAME="mapid" ID="mapid"> +<AREA TABINDEX="10" ACCESSKEY="a" SHAPE="rect" ALT="Domain" COORDS="0,2,45,45" HREF="./files/dletter.html" TITLE="Domain1"> +<AREA TABINDEX="10" ACCESSKEY="a" SHAPE="rect" ALT="Domain" COORDS="0,2,45,45" HREF="./files/dletter.html" TITLE="Domain2"> +</MAP> +</P> +<P> +<IMG ID="IMAGE-1" NAME="IMAGE-1" SRC="./pix/dts.gif" ALT="DTS IMAGE LOGO" LONGDESC="./files/desc.html" USEMAP="#DTS-MAP" WIDTH="115"/> +</P> +<P> +<OBJECT DATA="./pix/line.gif" CODETYPE="image/gif" HEIGHT="10"> +<APPLET ALT="Applet Number 1" CODE="applet1.class"></APPLET> +</OBJECT> +<OBJECT DATA="./pix/logo.gif" type="image/gif"> +<APPLET ALT="Applet Number 2" CODE="applet2.class"></APPLET> +</OBJECT> +</P> +<P> +<A ID="Anchor" DIR="LTR" HREF="./pix/submit.gif" ACCESSKEY="g" TYPE="image/gif" COORDS="0,0,100,100" SHAPE="rect" REL="GLOSSARY" REV="STYLESHEET" HREFLANG="en" CHARSET="US-ASCII" TABINDEX="22" NAME="Anchor">View Submit Button</A> +</P> +</BODY> +</HTML> diff --git a/test/testcases/tests/level1/html/files/document.xhtml b/test/testcases/tests/level1/html/files/document.xhtml new file mode 100644 index 0000000..3cc6ccf --- /dev/null +++ b/test/testcases/tests/level1/html/files/document.xhtml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - DOCUMENT</title> +</head> +<body onload="parent.loadComplete()" id="TEST-BODY"> +<form id="form1" accept-charset="US-ASCII" action="./files/getData.pl" enctype="application/x-www-form-urlencoded" method="post"> +<p> +<textarea name="text1" cols="20" rows="7"></textarea> +<input type="submit" name="submit1" value="Submit" /> +<input type="reset" name="submit2" value="Reset" /> +</p> +</form> +<p> +<map name="mapid" id="mapid"> +<area tabindex="10" accesskey="a" shape="rect" alt="Domain" coords="0,2,45,45" href="./files/dletter.html" title="Domain1" /> +<area tabindex="10" accesskey="a" shape="rect" alt="Domain" coords="0,2,45,45" href="./files/dletter.html" title="Domain2" /> +</map> +</p> +<p> +<img id="IMAGE-1" src="./pix/dts.gif" alt="DTS IMAGE LOGO" longdesc="./files/desc.html" usemap="#DTS-MAP" width="115"/> +</p> +<p> +<object data="./pix/line.gif" codetype="image/gif" height="10"> +<applet alt="Applet Number 1" code="applet1.class" width="10" height="10"></applet> +</object> +<object data="./pix/logo.gif" type="image/gif"> +<applet alt="Applet Number 2" code="applet2.class" width="10" height="10"></applet> +</object> +</p> +<p> +<a id="Anchor" dir="ltr" href="./pix/submit.gif" accesskey="g" type="image/gif" coords="0,0,100,100" shape="rect" rel="GLOSSARY" rev="STYLESHEET" hreflang="en" charset="US-ASCII" tabindex="22" name="Anchor">View Submit Button</a> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/document.xml b/test/testcases/tests/level1/html/files/document.xml new file mode 100644 index 0000000..3cc6ccf --- /dev/null +++ b/test/testcases/tests/level1/html/files/document.xml @@ -0,0 +1,39 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - DOCUMENT</title> +</head> +<body onload="parent.loadComplete()" id="TEST-BODY"> +<form id="form1" accept-charset="US-ASCII" action="./files/getData.pl" enctype="application/x-www-form-urlencoded" method="post"> +<p> +<textarea name="text1" cols="20" rows="7"></textarea> +<input type="submit" name="submit1" value="Submit" /> +<input type="reset" name="submit2" value="Reset" /> +</p> +</form> +<p> +<map name="mapid" id="mapid"> +<area tabindex="10" accesskey="a" shape="rect" alt="Domain" coords="0,2,45,45" href="./files/dletter.html" title="Domain1" /> +<area tabindex="10" accesskey="a" shape="rect" alt="Domain" coords="0,2,45,45" href="./files/dletter.html" title="Domain2" /> +</map> +</p> +<p> +<img id="IMAGE-1" src="./pix/dts.gif" alt="DTS IMAGE LOGO" longdesc="./files/desc.html" usemap="#DTS-MAP" width="115"/> +</p> +<p> +<object data="./pix/line.gif" codetype="image/gif" height="10"> +<applet alt="Applet Number 1" code="applet1.class" width="10" height="10"></applet> +</object> +<object data="./pix/logo.gif" type="image/gif"> +<applet alt="Applet Number 2" code="applet2.class" width="10" height="10"></applet> +</object> +</p> +<p> +<a id="Anchor" dir="ltr" href="./pix/submit.gif" accesskey="g" type="image/gif" coords="0,0,100,100" shape="rect" rel="GLOSSARY" rev="STYLESHEET" hreflang="en" charset="US-ASCII" tabindex="22" name="Anchor">View Submit Button</a> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/element.html b/test/testcases/tests/level1/html/files/element.html new file mode 100644 index 0000000..a0c198e --- /dev/null +++ b/test/testcases/tests/level1/html/files/element.html @@ -0,0 +1,81 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD ID="Test-HEAD" TITLE="HEAD Element" LANG="en" DIR="ltr" CLASS="HEAD-class"> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - Element</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<CENTER ID="Test-CENTER" TITLE="CENTER Element" LANG="en" DIR="ltr" CLASS="CENTER-class"> +<OBJECT align="middle"></OBJECT> +</CENTER> +<CENTER> +<P align="center">Test Lists</P> +</CENTER> +<BR> +<OL compact="compact" start="1" type="1"> + <LI type="square" value=2>EMP0001 + <UL compact type="disc"> + <LI>Margaret Martin + <DL> + <DD ID="Test-DD" TITLE="DD Element" LANG="en" DIR="ltr" CLASS="DD-class">Accountant</DD> + <DD>56,000</DD> + <DD>Female</DD> + <DD>1230 North Ave. Dallas, Texas 98551</DD> + </DL> + </LI> + </UL> + </LI> +</OL> +<BR /> +<B ID="Test-B" TITLE="B Element" LANG="en" DIR="ltr" CLASS="B-class">Bold</B> +<BR /> +<DL> + <DT ID="Test-DT" TITLE="DT Element" LANG="en" DIR="ltr" CLASS="DT-class">DT element</DT> +</DL> +<BR /> +<BDO ID="Test-BDO" TITLE="BDO Element" LANG="en" DIR="ltr" CLASS="BDO-class">Bidirectional algorithm overide +</BDO> +<BR /> +<I ID="Test-I" TITLE="I Element" LANG="en" DIR="ltr" CLASS="I-class">Italicized</I> +<BR /> +<SPAN ID="Test-SPAN" TITLE="SPAN Element" LANG="en" DIR="ltr" CLASS="SPAN-class"></SPAN> +<BR /> +<TT ID="Test-TT" TITLE="TT Element" LANG="en" DIR="ltr" CLASS="TT-class">Teletype</TT> +<BR /> +<SUB ID="Test-SUB" TITLE="SUB Element" LANG="en" DIR="ltr" CLASS="SUB-class">Subscript</SUB> +<BR /> +<SUP ID="Test-SUP" TITLE="SUP Element" LANG="en" DIR="ltr" CLASS="SUP-class">SuperScript</SUP> +<BR /> +<S ID="Test-S" TITLE="S Element" LANG="en" DIR="ltr" CLASS="S-class">Strike Through (S)</S> +<BR /> +<STRIKE ID="Test-STRIKE" TITLE="STRIKE Element" LANG="en" DIR="ltr" CLASS="STRIKE-class">Strike Through (STRIKE)</STRIKE> +<BR /> +<SMALL id="Test-SMALL" TITLE="SMALL Element" LANG="en" DIR="ltr" CLASS="SMALL-class">Small</SMALL> +<BR /> +<BIG ID="Test-BIG" TITLE="BIG Element" LANG="en" DIR="ltr" CLASS="BIG-class">Big</BIG> +<BR /> +<EM ID="Test-EM" TITLE="EM Element" LANG="en" DIR="ltr" CLASS="EM-class">Emphasis</EM> +<BR /> +<STRONG ID="Test-STRONG" TITLE="STRONG Element" LANG="en" DIR="ltr" CLASS="STRONG-class">Strong</STRONG> +<BR /> +<DFN ID="Test-DFN" TITLE="DFN Element" LANG="en" DIR="ltr" CLASS="DFN-class"> + <CODE ID="Test-CODE" TITLE="CODE Element" LANG="en" DIR="ltr" CLASS="CODE-class">10 Computer Code Fragment 20 Temp = 10</CODE> + <SAMP ID="Test-SAMP" TITLE="SAMP Element" LANG="en" DIR="ltr" CLASS="SAMP-class">Temp = 20</SAMP> + <KBD ID="Test-KBD" TITLE="KBD Element" LANG="en" DIR="ltr" CLASS="KBD-class">*2</KBD> + <VAR ID="Test-VAR" TITLE="VAR Element" LANG="en" DIR="ltr" CLASS="VAR-class">Temp</VAR> + <CITE ID="Test-CITE" TITLE="CITE Element" LANG="en" DIR="ltr" CLASS="CITE-class">Citation</CITE> +</DFN> +<BR /> +<ABBR ID="Test-ABBR" TITLE="ABBR Element" LANG="en" DIR="ltr" CLASS="ABBR-class">Temp</ABBR> +<BR /> +<ACRONYM ID="Test-ACRONYM" TITLE="ACRONYM Element" LANG="en" DIR="ltr" CLASS="ACRONYM-class">NIST</ACRONYM> +<BR /> +<ADDRESS ID="Test-ADDRESS" TITLE="ADDRESS Element" LANG="en" DIR="ltr" CLASS="ADDRESS-class">Gaithersburg, MD 20899</ADDRESS> +<BR /> +<NOFRAMES ID="Test-NOFRAMES" TITLE="NOFRAMES Element" LANG="en" DIR="ltr" CLASS="NOFRAMES-class">Not</NOFRAMES> +<BR /> +<NOSCRIPT ID="Test-NOSCRIPT" TITLE="NOSCRIPT Element" LANG="en" DIR="ltr" CLASS="NOSCRIPT-class">Not</NoScript> +<BR /> +<U ID="Test-U" TITLE="U Element" LANG="en" DIR="ltr" CLASS="U-class">Underlined</U> +</BODY> +</HTML> diff --git a/test/testcases/tests/level1/html/files/element.xhtml b/test/testcases/tests/level1/html/files/element.xhtml new file mode 100644 index 0000000..ee99601 --- /dev/null +++ b/test/testcases/tests/level1/html/files/element.xhtml @@ -0,0 +1,83 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html lang="en" dir="ltr" xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - Element</title> +</head> +<body onload="parent.loadComplete()"> +<center id="Test-CENTER" title="CENTER Element" lang="en" dir="ltr" class="CENTER-class"> +<object align="middle"></object> +</center> +<center> +<p align="center">Test Lists</p> +</center> +<br /> +<ol compact="compact" start="1" type="1"> + <li type="square" value="2">EMP0001 + <ul compact="compact" type="disc"> + <li>Margaret Martin + <dl> + <dd id="Test-DD" title="DD Element" lang="en" dir="ltr" class="DD-class">Accountant</dd> + <dd>56,000</dd> + <dd>Female</dd> + <dd>1230 North Ave. Dallas, Texas 98551</dd> + </dl> + </li> + </ul> + </li> +</ol> +<br /> +<b id="Test-B" title="B Element" lang="en" dir="ltr" class="B-class">Bold</b> +<br /> +<dl> + <dt id="Test-DT" title="DT Element" lang="en" dir="ltr" class="DT-class">DT element</dt> +</dl> +<br /> +<bdo id="Test-BDO" title="BDO Element" lang="en" dir="ltr" class="BDO-class">Bidirectional algorithm overide +</bdo> +<br /> +<i id="Test-I" title="I Element" lang="en" dir="ltr" class="I-class">Italicized</i> +<br /> +<span id="Test-SPAN" title="SPAN Element" lang="en" dir="ltr" class="SPAN-class"></span> +<br /> +<tt id="Test-TT" title="TT Element" lang="en" dir="ltr" class="TT-class">Teletype</tt> +<br /> +<sub id="Test-SUB" title="SUB Element" lang="en" dir="ltr" class="SUB-class">Subscript</sub> +<br /> +<sup id="Test-SUP" title="SUP Element" lang="en" dir="ltr" class="SUP-class">SuperScript</sup> +<br /> +<s id="Test-S" title="S Element" lang="en" dir="ltr" class="S-class">Strike Through (S)</s> +<br /> +<strike id="Test-STRIKE" title="STRIKE Element" lang="en" dir="ltr" class="STRIKE-class">Strike Through (STRIKE)</strike> +<br /> +<small id="Test-SMALL" title="SMALL Element" lang="en" dir="ltr" class="SMALL-class">Small</small> +<br /> +<big id="Test-BIG" title="BIG Element" lang="en" dir="ltr" class="BIG-class">Big</big> +<br /> +<em id="Test-EM" title="EM Element" lang="en" dir="ltr" class="EM-class">Emphasis</em> +<br /> +<strong id="Test-STRONG" title="STRONG Element" lang="en" dir="ltr" class="STRONG-class">Strong</strong> +<br /> +<dfn id="Test-DFN" title="DFN Element" lang="en" dir="ltr" class="DFN-class"> + <code id="Test-CODE" title="CODE Element" lang="en" dir="ltr" class="CODE-class">10 Computer Code Fragment 20 Temp = 10</code> + <samp id="Test-SAMP" title="SAMP Element" lang="en" dir="ltr" class="SAMP-class">Temp = 20</samp> + <kbd id="Test-KBD" title="KBD Element" lang="en" dir="ltr" class="KBD-class">*2</kbd> + <var id="Test-VAR" title="VAR Element" lang="en" dir="ltr" class="VAR-class">Temp</var> + <cite id="Test-CITE" title="CITE Element" lang="en" dir="ltr" class="CITE-class">Citation</cite> +</dfn> +<br /> +<abbr id="Test-ABBR" title="ABBR Element" lang="en" dir="ltr" class="ABBR-class">Temp</abbr> +<br /> +<acronym id="Test-ACRONYM" title="ACRONYM Element" lang="en" dir="ltr" class="ACRONYM-class">NIST</acronym> +<br /> +<address id="Test-ADDRESS" title="ADDRESS Element" lang="en" dir="ltr" class="ADDRESS-class">Gaithersburg, MD 20899</address> +<br /> +<noframes id="Test-NOFRAMES" title="NOFRAMES Element" lang="en" dir="ltr" class="NOFRAMES-class">Not</noframes> +<br /> +<noscript id="Test-NOSCRIPT" title="NOSCRIPT Element" lang="en" dir="ltr" class="NOSCRIPT-class">Not</noscript> +<br /> +<u id="Test-U" title="U Element" lang="en" dir="ltr" class="U-class">Underlined</u> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/element.xml b/test/testcases/tests/level1/html/files/element.xml new file mode 100644 index 0000000..ee99601 --- /dev/null +++ b/test/testcases/tests/level1/html/files/element.xml @@ -0,0 +1,83 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html lang="en" dir="ltr" xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - Element</title> +</head> +<body onload="parent.loadComplete()"> +<center id="Test-CENTER" title="CENTER Element" lang="en" dir="ltr" class="CENTER-class"> +<object align="middle"></object> +</center> +<center> +<p align="center">Test Lists</p> +</center> +<br /> +<ol compact="compact" start="1" type="1"> + <li type="square" value="2">EMP0001 + <ul compact="compact" type="disc"> + <li>Margaret Martin + <dl> + <dd id="Test-DD" title="DD Element" lang="en" dir="ltr" class="DD-class">Accountant</dd> + <dd>56,000</dd> + <dd>Female</dd> + <dd>1230 North Ave. Dallas, Texas 98551</dd> + </dl> + </li> + </ul> + </li> +</ol> +<br /> +<b id="Test-B" title="B Element" lang="en" dir="ltr" class="B-class">Bold</b> +<br /> +<dl> + <dt id="Test-DT" title="DT Element" lang="en" dir="ltr" class="DT-class">DT element</dt> +</dl> +<br /> +<bdo id="Test-BDO" title="BDO Element" lang="en" dir="ltr" class="BDO-class">Bidirectional algorithm overide +</bdo> +<br /> +<i id="Test-I" title="I Element" lang="en" dir="ltr" class="I-class">Italicized</i> +<br /> +<span id="Test-SPAN" title="SPAN Element" lang="en" dir="ltr" class="SPAN-class"></span> +<br /> +<tt id="Test-TT" title="TT Element" lang="en" dir="ltr" class="TT-class">Teletype</tt> +<br /> +<sub id="Test-SUB" title="SUB Element" lang="en" dir="ltr" class="SUB-class">Subscript</sub> +<br /> +<sup id="Test-SUP" title="SUP Element" lang="en" dir="ltr" class="SUP-class">SuperScript</sup> +<br /> +<s id="Test-S" title="S Element" lang="en" dir="ltr" class="S-class">Strike Through (S)</s> +<br /> +<strike id="Test-STRIKE" title="STRIKE Element" lang="en" dir="ltr" class="STRIKE-class">Strike Through (STRIKE)</strike> +<br /> +<small id="Test-SMALL" title="SMALL Element" lang="en" dir="ltr" class="SMALL-class">Small</small> +<br /> +<big id="Test-BIG" title="BIG Element" lang="en" dir="ltr" class="BIG-class">Big</big> +<br /> +<em id="Test-EM" title="EM Element" lang="en" dir="ltr" class="EM-class">Emphasis</em> +<br /> +<strong id="Test-STRONG" title="STRONG Element" lang="en" dir="ltr" class="STRONG-class">Strong</strong> +<br /> +<dfn id="Test-DFN" title="DFN Element" lang="en" dir="ltr" class="DFN-class"> + <code id="Test-CODE" title="CODE Element" lang="en" dir="ltr" class="CODE-class">10 Computer Code Fragment 20 Temp = 10</code> + <samp id="Test-SAMP" title="SAMP Element" lang="en" dir="ltr" class="SAMP-class">Temp = 20</samp> + <kbd id="Test-KBD" title="KBD Element" lang="en" dir="ltr" class="KBD-class">*2</kbd> + <var id="Test-VAR" title="VAR Element" lang="en" dir="ltr" class="VAR-class">Temp</var> + <cite id="Test-CITE" title="CITE Element" lang="en" dir="ltr" class="CITE-class">Citation</cite> +</dfn> +<br /> +<abbr id="Test-ABBR" title="ABBR Element" lang="en" dir="ltr" class="ABBR-class">Temp</abbr> +<br /> +<acronym id="Test-ACRONYM" title="ACRONYM Element" lang="en" dir="ltr" class="ACRONYM-class">NIST</acronym> +<br /> +<address id="Test-ADDRESS" title="ADDRESS Element" lang="en" dir="ltr" class="ADDRESS-class">Gaithersburg, MD 20899</address> +<br /> +<noframes id="Test-NOFRAMES" title="NOFRAMES Element" lang="en" dir="ltr" class="NOFRAMES-class">Not</noframes> +<br /> +<noscript id="Test-NOSCRIPT" title="NOSCRIPT Element" lang="en" dir="ltr" class="NOSCRIPT-class">Not</noscript> +<br /> +<u id="Test-U" title="U Element" lang="en" dir="ltr" class="U-class">Underlined</u> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/fieldset.html b/test/testcases/tests/level1/html/files/fieldset.html new file mode 100644 index 0000000..312ea44 --- /dev/null +++ b/test/testcases/tests/level1/html/files/fieldset.html @@ -0,0 +1,23 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - FieldSet</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<FORM ID="form2" ACTION="..." METHOD="POST"> +<FIELDSET> +<LEGEND>All data entered must be valid</LEGEND> +</FIELDSET> +</FORM> +<TABLE SUMMARY="Table 1"> +<TR> +<TD> +<FIELDSET> +<LEGEND>All data entered must be valid</LEGEND> +</FIELDSET> +</TD> +</TR> +</TABLE> +</BODY> +</HTML> diff --git a/test/testcases/tests/level1/html/files/fieldset.xhtml b/test/testcases/tests/level1/html/files/fieldset.xhtml new file mode 100644 index 0000000..dcfeba1 --- /dev/null +++ b/test/testcases/tests/level1/html/files/fieldset.xhtml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - FieldSet</title> +</head> +<body onload="parent.loadComplete()"> +<form id="form2" action="..." method="post"> +<fieldset> +<legend>All data entered must be valid</legend> +</fieldset> +</form> +<table summary="Table 1"> +<tr> +<td> +<fieldset> +<legend>All data entered must be valid</legend> +</fieldset> +</td> +</tr> +</table> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/fieldset.xml b/test/testcases/tests/level1/html/files/fieldset.xml new file mode 100644 index 0000000..dcfeba1 --- /dev/null +++ b/test/testcases/tests/level1/html/files/fieldset.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - FieldSet</title> +</head> +<body onload="parent.loadComplete()"> +<form id="form2" action="..." method="post"> +<fieldset> +<legend>All data entered must be valid</legend> +</fieldset> +</form> +<table summary="Table 1"> +<tr> +<td> +<fieldset> +<legend>All data entered must be valid</legend> +</fieldset> +</td> +</tr> +</table> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/font.html b/test/testcases/tests/level1/html/files/font.html new file mode 100644 index 0000000..894e442 --- /dev/null +++ b/test/testcases/tests/level1/html/files/font.html @@ -0,0 +1,10 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - Font</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<FONT COLOR="#000000" FACE="arial,helvetica" SIZE="4">Test Tables</FONT> +</BODY> +</HTML> diff --git a/test/testcases/tests/level1/html/files/font.xhtml b/test/testcases/tests/level1/html/files/font.xhtml new file mode 100644 index 0000000..818db76 --- /dev/null +++ b/test/testcases/tests/level1/html/files/font.xhtml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - BaseFont</title> +</head> +<body onload="parent.loadComplete()"> +<font color="#000000" face="arial,helvitica" size="4">Test Tables</font> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/font.xml b/test/testcases/tests/level1/html/files/font.xml new file mode 100644 index 0000000..818db76 --- /dev/null +++ b/test/testcases/tests/level1/html/files/font.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - BaseFont</title> +</head> +<body onload="parent.loadComplete()"> +<font color="#000000" face="arial,helvitica" size="4">Test Tables</font> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/form.html b/test/testcases/tests/level1/html/files/form.html new file mode 100644 index 0000000..d8bf024 --- /dev/null +++ b/test/testcases/tests/level1/html/files/form.html @@ -0,0 +1,17 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - FORM</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<FORM ID="form1" ACCEPT-CHARSET="US-ASCII" ACTION="./files/getData.pl" ENCTYPE="application/x-www-form-urlencoded" METHOD="post"> +<P> +<TEXTAREA NAME="text1" COLS="20" ROWS="7"></TEXTAREA> +<INPUT TYPE="submit" NAME="submit1" VALUE="Submit" /> +<INPUT TYPE="reset" NAME="submit2" VALUE="Reset" /> +</P> +</FORM> +</BODY> +</HTML> + diff --git a/test/testcases/tests/level1/html/files/form.xhtml b/test/testcases/tests/level1/html/files/form.xhtml new file mode 100644 index 0000000..40d6bf0 --- /dev/null +++ b/test/testcases/tests/level1/html/files/form.xhtml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - FORM</title> +</head> +<body onload="parent.loadComplete()"> +<form id="form1" accept-charset="US-ASCII" action="./files/getData.pl" enctype="application/x-www-form-urlencoded" method="post"> +<p> +<textarea id="text1" cols="20" rows="7"></textarea> +<input type="submit" name="submit1" value="Submit" /> +<input type="reset" name="submit2" value="Reset" /> +</p> +</form> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/form.xml b/test/testcases/tests/level1/html/files/form.xml new file mode 100644 index 0000000..40d6bf0 --- /dev/null +++ b/test/testcases/tests/level1/html/files/form.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - FORM</title> +</head> +<body onload="parent.loadComplete()"> +<form id="form1" accept-charset="US-ASCII" action="./files/getData.pl" enctype="application/x-www-form-urlencoded" method="post"> +<p> +<textarea id="text1" cols="20" rows="7"></textarea> +<input type="submit" name="submit1" value="Submit" /> +<input type="reset" name="submit2" value="Reset" /> +</p> +</form> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/form2.html b/test/testcases/tests/level1/html/files/form2.html new file mode 100644 index 0000000..c44b672 --- /dev/null +++ b/test/testcases/tests/level1/html/files/form2.html @@ -0,0 +1,17 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" + "http://www.w3.org/TR/html4/loose.dtd"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - FORM</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<FORM ID="form1" TARGET="dynamic" ACCEPT-CHARSET="US-ASCII" ACTION="./files/getData.pl" ENCTYPE="application/x-www-form-urlencoded" METHOD="post"> +<P> +<TEXTAREA NAME="text1" COLS="20" ROWS="7"></TEXTAREA> +<INPUT TYPE="submit" NAME="submit1" VALUE="Submit" /> +<INPUT TYPE="reset" NAME="submit2" VALUE="Reset" /> +</P> +</FORM> +</BODY> +</HTML> diff --git a/test/testcases/tests/level1/html/files/form2.xhtml b/test/testcases/tests/level1/html/files/form2.xhtml new file mode 100644 index 0000000..e639432 --- /dev/null +++ b/test/testcases/tests/level1/html/files/form2.xhtml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - FORM</title> +</head> +<body onload="parent.loadComplete()"> +<form id="form1" target="dynamic" accept-charset="US-ASCII" action="./files/getData.pl" enctype="application/x-www-form-urlencoded" method="post"> +<p> +<textarea id="text1" cols="20" rows="7"></textarea> +<input type="submit" name="submit1" value="Submit" /> +<input type="reset" name="submit2" value="Reset" /> +</p> +</form> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/form2.xml b/test/testcases/tests/level1/html/files/form2.xml new file mode 100644 index 0000000..e639432 --- /dev/null +++ b/test/testcases/tests/level1/html/files/form2.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - FORM</title> +</head> +<body onload="parent.loadComplete()"> +<form id="form1" target="dynamic" accept-charset="US-ASCII" action="./files/getData.pl" enctype="application/x-www-form-urlencoded" method="post"> +<p> +<textarea id="text1" cols="20" rows="7"></textarea> +<input type="submit" name="submit1" value="Submit" /> +<input type="reset" name="submit2" value="Reset" /> +</p> +</form> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/form3.html b/test/testcases/tests/level1/html/files/form3.html new file mode 100644 index 0000000..543d09e --- /dev/null +++ b/test/testcases/tests/level1/html/files/form3.html @@ -0,0 +1,17 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>FORM3</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<FORM ID="form1" ACTION="about:blank"> +<P> +<TEXTAREA NAME="text1" COLS="20" ROWS="7"></TEXTAREA> +<INPUT TYPE="submit" NAME="submit1" VALUE="Submit" /> +<INPUT TYPE="reset" NAME="submit2" VALUE="Reset" /> +</P> +</FORM> +</BODY> +</HTML> + diff --git a/test/testcases/tests/level1/html/files/form3.xhtml b/test/testcases/tests/level1/html/files/form3.xhtml new file mode 100644 index 0000000..48f5019 --- /dev/null +++ b/test/testcases/tests/level1/html/files/form3.xhtml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "xhtml1-strict.dtd">
+<html xmlns='http://www.w3.org/1999/xhtml'>
+<head>
+<title>FORM3</title>
+</head>
+<body onload="parent.loadComplete()">
+<form id="form1" action="about:blank">
+<p>
+<textarea id="text1" cols="20" rows="7"></textarea>
+<input type="submit" name="submit1" value="Submit" />
+<input type="reset" name="submit2" value="Reset" />
+</p>
+</form>
+</body>
+</html>
diff --git a/test/testcases/tests/level1/html/files/form3.xml b/test/testcases/tests/level1/html/files/form3.xml new file mode 100644 index 0000000..bbed66f --- /dev/null +++ b/test/testcases/tests/level1/html/files/form3.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>FORM3</title> +</head> +<body onload="parent.loadComplete()"> +<form id="form1" action="about:blank"> +<p> +<textarea id="text1" cols="20" rows="7"></textarea> +<input type="submit" name="submit1" value="Submit" /> +<input type="reset" name="submit2" value="Reset" /> +</p> +</form> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/frame.html b/test/testcases/tests/level1/html/files/frame.html new file mode 100644 index 0000000..41182c9 --- /dev/null +++ b/test/testcases/tests/level1/html/files/frame.html @@ -0,0 +1,14 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" +"http://www.w3.org/TR/html4/frameset.dtd"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - FRAME</TITLE> +</HEAD> +<FRAMESET COLS="20, 80" onload="parent.loadComplete()"> +<FRAMESET ROWS="100, 200"> +<FRAME LONGDESC="about:blank" MARGINHEIGHT="10" MARGINWIDTH="5" NORESIZE="NORESIZE" NAME="Frame1" FRAMEBORDER="1" SCROLLING="yes" SRC="right.png"> +</FRAMESET> +<FRAME SRC="w3c_main.png"> +</FRAMESET> +</HTML> diff --git a/test/testcases/tests/level1/html/files/frame.xhtml b/test/testcases/tests/level1/html/files/frame.xhtml new file mode 100644 index 0000000..bbe00fa --- /dev/null +++ b/test/testcases/tests/level1/html/files/frame.xhtml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" + "xhtml1-frameset.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - FRAME</title> +</head> +<frameset cols="20, 80" onload="parent.loadComplete()"> +<frameset rows="100, 200"> +<frame longdesc="about:blank" marginheight="10" marginwidth="5" noresize="noresize" name="Frame1" frameborder="1" scrolling="yes" src="right.png" /> +</frameset> +<frame src="w3c_main.png" /> +</frameset> +</html> diff --git a/test/testcases/tests/level1/html/files/frame.xml b/test/testcases/tests/level1/html/files/frame.xml new file mode 100644 index 0000000..bbe00fa --- /dev/null +++ b/test/testcases/tests/level1/html/files/frame.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" + "xhtml1-frameset.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - FRAME</title> +</head> +<frameset cols="20, 80" onload="parent.loadComplete()"> +<frameset rows="100, 200"> +<frame longdesc="about:blank" marginheight="10" marginwidth="5" noresize="noresize" name="Frame1" frameborder="1" scrolling="yes" src="right.png" /> +</frameset> +<frame src="w3c_main.png" /> +</frameset> +</html> diff --git a/test/testcases/tests/level1/html/files/frameset.html b/test/testcases/tests/level1/html/files/frameset.html new file mode 100644 index 0000000..f208fe0 --- /dev/null +++ b/test/testcases/tests/level1/html/files/frameset.html @@ -0,0 +1,14 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" +"http://www.w3.org/TR/html4/frameset.dtd"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - FRAMESET</TITLE> +</HEAD> +<FRAMESET COLS="20, 80" onload="parent.loadComplete()"> +<FRAMESET ROWS="100, 200"> +<FRAME SRC="right.png"> +</FRAMESET> +<FRAME SRC="w3c_main.png"> +</FRAMESET> +</HTML> diff --git a/test/testcases/tests/level1/html/files/frameset.xhtml b/test/testcases/tests/level1/html/files/frameset.xhtml new file mode 100644 index 0000000..2035bd9 --- /dev/null +++ b/test/testcases/tests/level1/html/files/frameset.xhtml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" + "xhtml1-frameset.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - FRAMESET</title> +</head> +<frameset cols="20, 80" onload="parent.loadComplete()"> +<frameset rows="100, 200"> +<frame src="right.png" /> +</frameset> +<frame src="w3c_main.png" /> +</frameset> +</html> diff --git a/test/testcases/tests/level1/html/files/frameset.xml b/test/testcases/tests/level1/html/files/frameset.xml new file mode 100644 index 0000000..2035bd9 --- /dev/null +++ b/test/testcases/tests/level1/html/files/frameset.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" + "xhtml1-frameset.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - FRAMESET</title> +</head> +<frameset cols="20, 80" onload="parent.loadComplete()"> +<frameset rows="100, 200"> +<frame src="right.png" /> +</frameset> +<frame src="w3c_main.png" /> +</frameset> +</html> diff --git a/test/testcases/tests/level1/html/files/head.html b/test/testcases/tests/level1/html/files/head.html new file mode 100644 index 0000000..5bbb8c0 --- /dev/null +++ b/test/testcases/tests/level1/html/files/head.html @@ -0,0 +1,11 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> +<HTML> +<HEAD PROFILE="http://www.w3.org/2004/07/profile"> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - HEAD</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<P>Hello, World.</P> +</BODY> +</HTML> + diff --git a/test/testcases/tests/level1/html/files/head.xhtml b/test/testcases/tests/level1/html/files/head.xhtml new file mode 100644 index 0000000..eb60ea2 --- /dev/null +++ b/test/testcases/tests/level1/html/files/head.xhtml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head profile="http://www.w3.org/2004/07/profile"> +<title>NIST DOM HTML Test - HEAD</title> +</head> +<body onload="parent.loadComplete()"> +<p>Hello, World.</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/head.xml b/test/testcases/tests/level1/html/files/head.xml new file mode 100644 index 0000000..eb3678c --- /dev/null +++ b/test/testcases/tests/level1/html/files/head.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head profile="http://xw2k.sdct.itl.nist.gov/brady/dom/files/profile"> +<title>NIST DOM HTML Test - HEAD</title> +</head> +<body onload="parent.loadComplete()"> +<p>Hello, World.</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/heading.html b/test/testcases/tests/level1/html/files/heading.html new file mode 100644 index 0000000..90d388c --- /dev/null +++ b/test/testcases/tests/level1/html/files/heading.html @@ -0,0 +1,16 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - HEADING</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<H1 ALIGN="center">Head Element 1</H1> +<H2 ALIGN="left">Head Element 2</H2> +<H3 ALIGN="right">Head Element 3</H3> +<H4 ALIGN="justify">Head Element 4</H4> +<H5 ALIGN="center">Head Element 5</H5> +<H6 ALIGN="left">Head Element 6</H6> +</BODY> +</HTML> + diff --git a/test/testcases/tests/level1/html/files/heading.xhtml b/test/testcases/tests/level1/html/files/heading.xhtml new file mode 100644 index 0000000..3fda259 --- /dev/null +++ b/test/testcases/tests/level1/html/files/heading.xhtml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - HEADING</title> +</head> +<body onload="parent.loadComplete()"> +<h1 align="center">Head Element 1</h1> +<h2 align="left">Head Element 2</h2> +<h3 align="right">Head Element 3</h3> +<h4 align="right">Head Element 4</h4> +<h5 align="center">Head Element 5</h5> +<h6 align="left">Head Element 6</h6> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/heading.xml b/test/testcases/tests/level1/html/files/heading.xml new file mode 100644 index 0000000..3fda259 --- /dev/null +++ b/test/testcases/tests/level1/html/files/heading.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - HEADING</title> +</head> +<body onload="parent.loadComplete()"> +<h1 align="center">Head Element 1</h1> +<h2 align="left">Head Element 2</h2> +<h3 align="right">Head Element 3</h3> +<h4 align="right">Head Element 4</h4> +<h5 align="center">Head Element 5</h5> +<h6 align="left">Head Element 6</h6> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/hr.html b/test/testcases/tests/level1/html/files/hr.html new file mode 100644 index 0000000..9c4facc --- /dev/null +++ b/test/testcases/tests/level1/html/files/hr.html @@ -0,0 +1,11 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - HR</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<HR ALIGN="center" NOSHADE="noShade" SIZE="5" WIDTH="400" /> +</BODY> +</HTML> + diff --git a/test/testcases/tests/level1/html/files/hr.xhtml b/test/testcases/tests/level1/html/files/hr.xhtml new file mode 100644 index 0000000..685de35 --- /dev/null +++ b/test/testcases/tests/level1/html/files/hr.xhtml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - HR</title> +</head> +<body onload="parent.loadComplete()"> +<hr align="center" noshade="noshade" size="5" width="400"/> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/hr.xml b/test/testcases/tests/level1/html/files/hr.xml new file mode 100644 index 0000000..685de35 --- /dev/null +++ b/test/testcases/tests/level1/html/files/hr.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - HR</title> +</head> +<body onload="parent.loadComplete()"> +<hr align="center" noshade="noshade" size="5" width="400"/> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/html.html b/test/testcases/tests/level1/html/files/html.html new file mode 100644 index 0000000..2c91731 --- /dev/null +++ b/test/testcases/tests/level1/html/files/html.html @@ -0,0 +1,12 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML VERSION="-//W3C//DTD HTML 4.01 Transitional//EN"> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - Html</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<P>Hello, World.</P> +</BODY> +</HTML> + + diff --git a/test/testcases/tests/level1/html/files/html.xhtml b/test/testcases/tests/level1/html/files/html.xhtml new file mode 100644 index 0000000..f07d2c1 --- /dev/null +++ b/test/testcases/tests/level1/html/files/html.xhtml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - Html</title> +</head> +<body onload="parent.loadComplete()"> +<p>Hello, World.</p> +</body> +</html> + + diff --git a/test/testcases/tests/level1/html/files/html.xml b/test/testcases/tests/level1/html/files/html.xml new file mode 100644 index 0000000..f07d2c1 --- /dev/null +++ b/test/testcases/tests/level1/html/files/html.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - Html</title> +</head> +<body onload="parent.loadComplete()"> +<p>Hello, World.</p> +</body> +</html> + + diff --git a/test/testcases/tests/level1/html/files/iframe.html b/test/testcases/tests/level1/html/files/iframe.html new file mode 100644 index 0000000..0a44fc3 --- /dev/null +++ b/test/testcases/tests/level1/html/files/iframe.html @@ -0,0 +1,10 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - IFRAME</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<IFRAME LONGDESC="about:blank" MARGINHEIGHT="10" MARGINWIDTH="5" WIDTH="60" HEIGHT="50" NAME="Iframe1" FRAMEBORDER="1" SCROLLING="yes" SRC="right.png" ALIGN="top">IFRAME1</IFRAME> +</BODY> +</HTML> diff --git a/test/testcases/tests/level1/html/files/iframe.xhtml b/test/testcases/tests/level1/html/files/iframe.xhtml new file mode 100644 index 0000000..93326c8 --- /dev/null +++ b/test/testcases/tests/level1/html/files/iframe.xhtml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - IFRAME</title> +</head> +<body onload="parent.loadComplete()"> +<iframe longdesc="about:blank" marginheight="10" marginwidth="5" width="60" height="50" name="Iframe1" frameborder="1" scrolling="yes" src="right.png" align="top">IFRAME1</iframe> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/iframe.xml b/test/testcases/tests/level1/html/files/iframe.xml new file mode 100644 index 0000000..93326c8 --- /dev/null +++ b/test/testcases/tests/level1/html/files/iframe.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - IFRAME</title> +</head> +<body onload="parent.loadComplete()"> +<iframe longdesc="about:blank" marginheight="10" marginwidth="5" width="60" height="50" name="Iframe1" frameborder="1" scrolling="yes" src="right.png" align="top">IFRAME1</iframe> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/img.html b/test/testcases/tests/level1/html/files/img.html new file mode 100644 index 0000000..b4e8b27 --- /dev/null +++ b/test/testcases/tests/level1/html/files/img.html @@ -0,0 +1,13 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - IMG</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<P> +<IMG ID="IMAGE-1" NAME="IMAGE-1" SRC="./pix/dts.gif" ALIGN="middle" ALT="DTS IMAGE LOGO" BORDER="0" HEIGHT="47" HSPACE="4" LONGDESC="./files/desc.html" USEMAP="#DTS-MAP" VSPACE="10" WIDTH="115"/> +</P> +</BODY> +</HTML> + diff --git a/test/testcases/tests/level1/html/files/img.xhtml b/test/testcases/tests/level1/html/files/img.xhtml new file mode 100644 index 0000000..40e3695 --- /dev/null +++ b/test/testcases/tests/level1/html/files/img.xhtml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - IMG</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<img id="IMAGE-1" name="IMAGE-1" src="./pix/dts.gif" align="middle" alt="DTS IMAGE LOGO" border="0" height="47" hspace="4" longdesc="./files/desc.html" usemap="#DTS-MAP" vspace="10" width="115"/> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/img.xml b/test/testcases/tests/level1/html/files/img.xml new file mode 100644 index 0000000..40e3695 --- /dev/null +++ b/test/testcases/tests/level1/html/files/img.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - IMG</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<img id="IMAGE-1" name="IMAGE-1" src="./pix/dts.gif" align="middle" alt="DTS IMAGE LOGO" border="0" height="47" hspace="4" longdesc="./files/desc.html" usemap="#DTS-MAP" vspace="10" width="115"/> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/input.html b/test/testcases/tests/level1/html/files/input.html new file mode 100644 index 0000000..c36e87d --- /dev/null +++ b/test/testcases/tests/level1/html/files/input.html @@ -0,0 +1,60 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - INPUT</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<TABLE CELLPADDING="15" BORDER="BORDER" SUMMARY="Table 1"> +<TR ALIGN="center"> +<TD VAlign="top">Under a FORM control +<FORM ID="form1" ACTION="./files/getData.pl" METHOD="post"> +<TABLE BORDER="15" SUMMARY="Table 2"> +<TR> +<TD> +<LABEL ACCESSKEY="b" FOR="input1">Enter Your Password:</LABEL> +</TD> +<TD> +<INPUT DIR="LTR" ID="input1" TABINDEX="8" VALUE="Password" TYPE="password" NAME="Password" SIZE="25" MAXLENGTH="5" ALT="Password entry" READONLY="READONLY"/> +</TD> +</TR> +<TR> +<TD> +<INPUT TYPE="RADIO" NAME="Radio1" ACCESSKEY="c" VALUE="ReHire"/>ReHire +</TD> +</TR> +<TR> +<TD> +<INPUT TYPE="RADIO" NAME="Radio2" VALUE="NewHire" TABINDEX="9" CHECKED="CHECKED"/>NewHire +</TD> +</TR> +<TR> +<TD>Hours available to work</TD> +<TD> +<INPUT TYPE="CHECKBOX" NAME="Check1" ALIGN="bottom" TABINDEX="10" VALUE="EarlyMornings" CHECKED="CHECKED"/>EarlyMornings +<BR/> +<INPUT ID="input5" TYPE="CHECKBOX" NAME="Check2" TABINDEX="11" VALUE="AfterNoon" ONCLICK="newId(this)"/>Afternoon +<BR/> +<INPUT TYPE="CHECKBOX" NAME="Check3" TABINDEX="12" VALUE="Evenings"/>Evenings +<BR/> +<INPUT TYPE="CHECKBOX" NAME="Check4" TABINDEX="13" VALUE="Closing" DISABLED="DISABLED"/>Closing +<BR/> +</TD> +</TR> +<TR> +<TD COLSPAN="2"> +<INPUT TYPE="IMAGE" TABINDEX="14" NAME="SubmitImage" USEMAP="#submit-map" SRC="./pix/submit.gif"/> +</TD> +</TR> +<TR> +<TD COLSPAN="2"> +<INPUT TITLE="old_title" TYPE="FILE" NAME="FileControl" TABINDEX="15" ACCEPT="GIF,JPEG" ONSELECT="newTitle(this)"/> +</TD> +</TR> +</TABLE> +</FORM> +</TD> +</TR> +</TABLE> +</BODY> +</HTML> diff --git a/test/testcases/tests/level1/html/files/input.xhtml b/test/testcases/tests/level1/html/files/input.xhtml new file mode 100644 index 0000000..b7704ad --- /dev/null +++ b/test/testcases/tests/level1/html/files/input.xhtml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - INPUT</title> +</head> +<body onload="parent.loadComplete()"> +<table cellpadding="15" border="border" summary="Table 1"> +<tr align="center"> +<td valign="top">Under a FORM control +<form id="form1" action="./files/getData.pl" method="post"> +<table border="15" summary="Table 2"> +<tr> +<td> +<label accesskey="b" for="input1">Enter Your Password:</label> +</td> +<td> +<input dir="ltr" id="input1" tabindex="8" value="Password" type="password" name="Password" size="25" maxlength="5" alt="Password entry" readonly="readonly"/> +</td> +</tr> +<tr> +<td> +<input type="radio" name="Radio1" accesskey="c" value="ReHire"/> +</td> +</tr> +<tr> +<td> +<input type="radio" name="Radio2" value="NewHire" tabindex="9" checked="checked"/> +</td> +</tr> +<tr> +<td>Hours available to work</td> +<td> +<input type="checkbox" name="Check1" align="bottom" tabindex="10" value="EarlyMornings" checked="checked"/> +<br/> +<input id="input5" type="checkbox" name="Check2" tabindex="11" value="AfterNoon" onclick="newId(this)"/> +<br/> +<input type="checkbox" name="Check3" tabindex="12" value="Evenings"/> +<br/> +<input type="checkbox" name="Check4" tabindex="13" value="Closing" disabled="disabled"/> +<br/> +</td> +</tr> +<tr> +<td colspan="2"> +<input type="image" tabindex="14" name="SubmitImage" usemap="#submit-map" src="./pix/submit.gif"/> +</td> +</tr> +<tr> +<td colspan="2"> +<input title="old_title" type="file" name="FileControl" tabindex="15" accept="GIF,JPEG" onselect="newTitle(this)"/> +</td> +</tr> +</table> +</form> +</td> +</tr> +</table> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/input.xml b/test/testcases/tests/level1/html/files/input.xml new file mode 100644 index 0000000..b7704ad --- /dev/null +++ b/test/testcases/tests/level1/html/files/input.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - INPUT</title> +</head> +<body onload="parent.loadComplete()"> +<table cellpadding="15" border="border" summary="Table 1"> +<tr align="center"> +<td valign="top">Under a FORM control +<form id="form1" action="./files/getData.pl" method="post"> +<table border="15" summary="Table 2"> +<tr> +<td> +<label accesskey="b" for="input1">Enter Your Password:</label> +</td> +<td> +<input dir="ltr" id="input1" tabindex="8" value="Password" type="password" name="Password" size="25" maxlength="5" alt="Password entry" readonly="readonly"/> +</td> +</tr> +<tr> +<td> +<input type="radio" name="Radio1" accesskey="c" value="ReHire"/> +</td> +</tr> +<tr> +<td> +<input type="radio" name="Radio2" value="NewHire" tabindex="9" checked="checked"/> +</td> +</tr> +<tr> +<td>Hours available to work</td> +<td> +<input type="checkbox" name="Check1" align="bottom" tabindex="10" value="EarlyMornings" checked="checked"/> +<br/> +<input id="input5" type="checkbox" name="Check2" tabindex="11" value="AfterNoon" onclick="newId(this)"/> +<br/> +<input type="checkbox" name="Check3" tabindex="12" value="Evenings"/> +<br/> +<input type="checkbox" name="Check4" tabindex="13" value="Closing" disabled="disabled"/> +<br/> +</td> +</tr> +<tr> +<td colspan="2"> +<input type="image" tabindex="14" name="SubmitImage" usemap="#submit-map" src="./pix/submit.gif"/> +</td> +</tr> +<tr> +<td colspan="2"> +<input title="old_title" type="file" name="FileControl" tabindex="15" accept="GIF,JPEG" onselect="newTitle(this)"/> +</td> +</tr> +</table> +</form> +</td> +</tr> +</table> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/isindex.html b/test/testcases/tests/level1/html/files/isindex.html new file mode 100644 index 0000000..0fd50ce --- /dev/null +++ b/test/testcases/tests/level1/html/files/isindex.html @@ -0,0 +1,14 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - ISINDEX</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<FORM ID="form1" ACTION="./files/getData.pl" METHOD="post"> +<ISINDEX PROMPT="New Employee: "> +</FORM> +<ISINDEX PROMPT="Old Employee: "> +</BODY> +</HTML> + diff --git a/test/testcases/tests/level1/html/files/isindex.xhtml b/test/testcases/tests/level1/html/files/isindex.xhtml new file mode 100644 index 0000000..a48d9a5 --- /dev/null +++ b/test/testcases/tests/level1/html/files/isindex.xhtml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - ISINDEX</title> +</head> +<body onload="parent.loadComplete()"> +<form id="form1" action="./files/getData.pl" method="post"> +<isindex prompt="New Employee: "/> +</form> +<isindex prompt="Old Employee: "/> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/isindex.xml b/test/testcases/tests/level1/html/files/isindex.xml new file mode 100644 index 0000000..a48d9a5 --- /dev/null +++ b/test/testcases/tests/level1/html/files/isindex.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - ISINDEX</title> +</head> +<body onload="parent.loadComplete()"> +<form id="form1" action="./files/getData.pl" method="post"> +<isindex prompt="New Employee: "/> +</form> +<isindex prompt="Old Employee: "/> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/label.html b/test/testcases/tests/level1/html/files/label.html new file mode 100644 index 0000000..d0abc04 --- /dev/null +++ b/test/testcases/tests/level1/html/files/label.html @@ -0,0 +1,21 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - LABEL</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<FORM ID="form1" ACTION="./files/getData.pl" METHOD="post"> +<P> +<LABEL ACCESSKEY="b" FOR="input1">Enter Your First Password:</LABEL> +<INPUT ID="input1" TYPE="password" NAME="Password1"/> +</P> +</FORM> +<P> +<LABEL ACCESSKEY="c" FOR="input2">Enter Your Second Password:</LABEL> +<INPUT ID="input2" TYPE="password" NAME="Password2"/> +</P> +</BODY> +</HTML> + + diff --git a/test/testcases/tests/level1/html/files/label.xhtml b/test/testcases/tests/level1/html/files/label.xhtml new file mode 100644 index 0000000..902584f --- /dev/null +++ b/test/testcases/tests/level1/html/files/label.xhtml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - LABEL</title> +</head> +<body onload="parent.loadComplete()"> +<form id="form1" action="./files/getData.pl" method="post"> +<p> +<label accesskey="b" for="input1">Enter Your First Password:</label> +<input id="input1" type="password" name="Password1"/> +</p> +</form> +<p> +<label accesskey="c" for="input2">Enter Your Second Password:</label> +<input id="input2" type="password" name="Password2"/> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/label.xml b/test/testcases/tests/level1/html/files/label.xml new file mode 100644 index 0000000..902584f --- /dev/null +++ b/test/testcases/tests/level1/html/files/label.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - LABEL</title> +</head> +<body onload="parent.loadComplete()"> +<form id="form1" action="./files/getData.pl" method="post"> +<p> +<label accesskey="b" for="input1">Enter Your First Password:</label> +<input id="input1" type="password" name="Password1"/> +</p> +</form> +<p> +<label accesskey="c" for="input2">Enter Your Second Password:</label> +<input id="input2" type="password" name="Password2"/> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/legend.html b/test/testcases/tests/level1/html/files/legend.html new file mode 100644 index 0000000..53160ee --- /dev/null +++ b/test/testcases/tests/level1/html/files/legend.html @@ -0,0 +1,22 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - LEGEND</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<FORM ID="form1" ACTION="./files/getData.pl" METHOD="post"> +<FIELDSET> +<LEGEND ACCESSKEY="b" ALIGN="top">Enter Password1:</LEGEND> +<INPUT ID="input1" TYPE="password" NAME="Password1"/> +</FIELDSET> +</FORM> +<FIELDSET> +<LEGEND ACCESSKEY="c" ALIGN="bottom">Enter Password2:</LEGEND> +<INPUT ID="input2" TYPE="password" NAME="Password2"/> +</FIELDSET> +</BODY> +</HTML> + + + diff --git a/test/testcases/tests/level1/html/files/legend.xhtml b/test/testcases/tests/level1/html/files/legend.xhtml new file mode 100644 index 0000000..c95e685 --- /dev/null +++ b/test/testcases/tests/level1/html/files/legend.xhtml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - LEGEND</title> +</head> +<body onload="parent.loadComplete()"> +<form id="form1" action="./files/getData.pl" method="post"> +<fieldset> +<legend accesskey="b" align="top">Enter Password1:</legend> +<input id="input1" type="password" name="Password1"/> +</fieldset> +</form> +<fieldset> +<legend accesskey="c" align="bottom">Enter Password2:</legend> +<input id="input2" type="password" name="Password2"/> +</fieldset> +</body> +</html> + + diff --git a/test/testcases/tests/level1/html/files/legend.xml b/test/testcases/tests/level1/html/files/legend.xml new file mode 100644 index 0000000..c95e685 --- /dev/null +++ b/test/testcases/tests/level1/html/files/legend.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - LEGEND</title> +</head> +<body onload="parent.loadComplete()"> +<form id="form1" action="./files/getData.pl" method="post"> +<fieldset> +<legend accesskey="b" align="top">Enter Password1:</legend> +<input id="input1" type="password" name="Password1"/> +</fieldset> +</form> +<fieldset> +<legend accesskey="c" align="bottom">Enter Password2:</legend> +<input id="input2" type="password" name="Password2"/> +</fieldset> +</body> +</html> + + diff --git a/test/testcases/tests/level1/html/files/li.html b/test/testcases/tests/level1/html/files/li.html new file mode 100644 index 0000000..0c97b4c --- /dev/null +++ b/test/testcases/tests/level1/html/files/li.html @@ -0,0 +1,23 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - LI</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<OL> +<LI TYPE="square" VALUE="2">EMP0001 +<UL> +<LI>Margaret Martin +<DL> +<DD>Accountant</DD> +<DD>56,000</DD> +<DD>Female</DD> +</DL> +</LI> +</UL> +</LI> +</OL> +</BODY> +</HTML> + diff --git a/test/testcases/tests/level1/html/files/li.xhtml b/test/testcases/tests/level1/html/files/li.xhtml new file mode 100644 index 0000000..79af811 --- /dev/null +++ b/test/testcases/tests/level1/html/files/li.xhtml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - LI</title> +</head> +<body onload="parent.loadComplete()"> +<ol> +<li type="square" value="2">EMP0001 +<ul> +<li>Margaret Martin +<dl> +<dd>Accountant</dd> +<dd>56,000</dd> +<dd>Female</dd> +</dl> +</li> +</ul> +</li> +</ol> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/li.xml b/test/testcases/tests/level1/html/files/li.xml new file mode 100644 index 0000000..79af811 --- /dev/null +++ b/test/testcases/tests/level1/html/files/li.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - LI</title> +</head> +<body onload="parent.loadComplete()"> +<ol> +<li type="square" value="2">EMP0001 +<ul> +<li>Margaret Martin +<dl> +<dd>Accountant</dd> +<dd>56,000</dd> +<dd>Female</dd> +</dl> +</li> +</ul> +</li> +</ol> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/link.html b/test/testcases/tests/level1/html/files/link.html new file mode 100644 index 0000000..2d4c082 --- /dev/null +++ b/test/testcases/tests/level1/html/files/link.html @@ -0,0 +1,15 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - LINK</TITLE> +<LINK CHARSET="Latin-1" HREF="./files/glossary.html" HREFLANG="en" MEDIA="screen" REL="Glossary" TYPE="text/html"> +<LINK CHARSET="Latin-1" HREF="./files/style1.css" HREFLANG="en" MEDIA="screen" REV="stylesheet" TYPE="text/css"> +</HEAD> +<BODY onload="parent.loadComplete()"> +<P> +<BR> +</P> +</BODY> +</HTML> + diff --git a/test/testcases/tests/level1/html/files/link.xhtml b/test/testcases/tests/level1/html/files/link.xhtml new file mode 100644 index 0000000..5a0f18c --- /dev/null +++ b/test/testcases/tests/level1/html/files/link.xhtml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - LINK</title> +<link charset="Latin-1" href="./files/glossary.html" hreflang="en" media="screen" rel="Glossary" type="text/html"/> +<link charset="Latin-1" href="./files/style1.css" hreflang="en" media="screen" rev="stylesheet" type="text/css"/> +</head> +<body onload="parent.loadComplete()"> +<p> +<br/> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/link.xml b/test/testcases/tests/level1/html/files/link.xml new file mode 100644 index 0000000..5a0f18c --- /dev/null +++ b/test/testcases/tests/level1/html/files/link.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - LINK</title> +<link charset="Latin-1" href="./files/glossary.html" hreflang="en" media="screen" rel="Glossary" type="text/html"/> +<link charset="Latin-1" href="./files/style1.css" hreflang="en" media="screen" rev="stylesheet" type="text/css"/> +</head> +<body onload="parent.loadComplete()"> +<p> +<br/> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/link2.html b/test/testcases/tests/level1/html/files/link2.html new file mode 100644 index 0000000..12fac9d --- /dev/null +++ b/test/testcases/tests/level1/html/files/link2.html @@ -0,0 +1,15 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" + "http://www.w3.org/TR/html4/loose.dtd"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - LINK</TITLE> +<LINK CHARSET="Latin-1" TARGET="dynamic" HREF="./files/glossary.html" HREFLANG="en" MEDIA="screen" REL="Glossary" TYPE="text/html"> +<LINK CHARSET="Latin-1" HREF="./files/style1.css" HREFLANG="en" MEDIA="screen" REV="stylesheet" TYPE="text/css"> +</HEAD> +<BODY onload="parent.loadComplete()"> +<P> +<BR> +</P> +</BODY> +</HTML> diff --git a/test/testcases/tests/level1/html/files/link2.xhtml b/test/testcases/tests/level1/html/files/link2.xhtml new file mode 100644 index 0000000..95c8004 --- /dev/null +++ b/test/testcases/tests/level1/html/files/link2.xhtml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - LINK</title> +<link charset="Latin-1" target="dynamic" href="./files/glossary.html" hreflang="en" media="screen" rel="Glossary" type="text/html"/> +<link charset="Latin-1" href="./files/style1.css" hreflang="en" media="screen" rev="stylesheet" type="text/css"/> +</head> +<body onload="parent.loadComplete()"> +<p> +<br/> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/link2.xml b/test/testcases/tests/level1/html/files/link2.xml new file mode 100644 index 0000000..95c8004 --- /dev/null +++ b/test/testcases/tests/level1/html/files/link2.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - LINK</title> +<link charset="Latin-1" target="dynamic" href="./files/glossary.html" hreflang="en" media="screen" rel="Glossary" type="text/html"/> +<link charset="Latin-1" href="./files/style1.css" hreflang="en" media="screen" rev="stylesheet" type="text/css"/> +</head> +<body onload="parent.loadComplete()"> +<p> +<br/> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/map.html b/test/testcases/tests/level1/html/files/map.html new file mode 100644 index 0000000..a636fa5 --- /dev/null +++ b/test/testcases/tests/level1/html/files/map.html @@ -0,0 +1,16 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - MAP</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<P> +<MAP NAME="mapid" ID="mapid"> +<AREA HREF="./files/dletter1.html" TITLE="Domain1" ALT="Domain1"> +<AREA HREF="./files/dletter2.html" TITLE="Domain2" ALT="Domain2"> +<AREA HREF="./files/dletter3.html" TITLE="Domain3" ALT="Domain3"> +</MAP> +</P> +</BODY> +</HTML> diff --git a/test/testcases/tests/level1/html/files/map.xhtml b/test/testcases/tests/level1/html/files/map.xhtml new file mode 100644 index 0000000..f61a2ad --- /dev/null +++ b/test/testcases/tests/level1/html/files/map.xhtml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - MAP</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<map name="mapid" id="mapid"> +<area href="./files/dletter1.html" title="Domain1" alt="Domain1"/> +<area href="./files/dletter2.html" title="Domain2" alt="Domain2"/> +<area href="./files/dletter3.html" title="Domain3" alt="Domain3"/> +</map> +</p> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/map.xml b/test/testcases/tests/level1/html/files/map.xml new file mode 100644 index 0000000..f61a2ad --- /dev/null +++ b/test/testcases/tests/level1/html/files/map.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - MAP</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<map name="mapid" id="mapid"> +<area href="./files/dletter1.html" title="Domain1" alt="Domain1"/> +<area href="./files/dletter2.html" title="Domain2" alt="Domain2"/> +<area href="./files/dletter3.html" title="Domain3" alt="Domain3"/> +</map> +</p> +</body> +</html> diff --git a/test/testcases/tests/level1/html/files/menu.html b/test/testcases/tests/level1/html/files/menu.html new file mode 100644 index 0000000..e07204f --- /dev/null +++ b/test/testcases/tests/level1/html/files/menu.html @@ -0,0 +1,15 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - MENU</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<MENU COMPACT="COMPACT"> +<LI>Interview</LI> +<LI>Paperwork</LI> +<LI>Give start date</LI> +</MENU> +</BODY> +</HTML> + diff --git a/test/testcases/tests/level1/html/files/menu.xhtml b/test/testcases/tests/level1/html/files/menu.xhtml new file mode 100644 index 0000000..9f020ff --- /dev/null +++ b/test/testcases/tests/level1/html/files/menu.xhtml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - MENU</title> +</head> +<body onload="parent.loadComplete()"> +<menu compact="compact"> +<li>Interview</li> +<li>Paperwork</li> +<li>Give start date</li> +</menu> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/menu.xml b/test/testcases/tests/level1/html/files/menu.xml new file mode 100644 index 0000000..9f020ff --- /dev/null +++ b/test/testcases/tests/level1/html/files/menu.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - MENU</title> +</head> +<body onload="parent.loadComplete()"> +<menu compact="compact"> +<li>Interview</li> +<li>Paperwork</li> +<li>Give start date</li> +</menu> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/meta.html b/test/testcases/tests/level1/html/files/meta.html new file mode 100644 index 0000000..e88fe8f --- /dev/null +++ b/test/testcases/tests/level1/html/files/meta.html @@ -0,0 +1,13 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> +<HTML> +<HEAD> +<META NAME="Meta-Name" HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8" SCHEME="NIST"> +<TITLE>NIST DOM HTML Test - META</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<P> +<BR/> +</P> +</BODY> +</HTML> + diff --git a/test/testcases/tests/level1/html/files/meta.xhtml b/test/testcases/tests/level1/html/files/meta.xhtml new file mode 100644 index 0000000..bf89bbe --- /dev/null +++ b/test/testcases/tests/level1/html/files/meta.xhtml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<meta name="Meta-Name" http-equiv="Content-Type" content="text/html; CHARSET=utf-8" scheme="NIST"/> +<title>NIST DOM HTML Test - META</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<br/> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/meta.xml b/test/testcases/tests/level1/html/files/meta.xml new file mode 100644 index 0000000..bf89bbe --- /dev/null +++ b/test/testcases/tests/level1/html/files/meta.xml @@ -0,0 +1,16 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<meta name="Meta-Name" http-equiv="Content-Type" content="text/html; CHARSET=utf-8" scheme="NIST"/> +<title>NIST DOM HTML Test - META</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<br/> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/mod.html b/test/testcases/tests/level1/html/files/mod.html new file mode 100644 index 0000000..1ab7969 --- /dev/null +++ b/test/testcases/tests/level1/html/files/mod.html @@ -0,0 +1,15 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - MOD</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<P> +<INS CITE="./files/ins-reasons.html" DATETIME="January 1, 2002">The INS element is used to indicate that a section of a document had been inserted.</INS> +<BR/> +<DEL CITE="./files/del-reasons.html" DATETIME="January 2, 2002">The DEL element is used to indicate that a section of a document had been removed.</DEL> +</P> +</BODY> +</HTML> + diff --git a/test/testcases/tests/level1/html/files/mod.xhtml b/test/testcases/tests/level1/html/files/mod.xhtml new file mode 100644 index 0000000..b81432d --- /dev/null +++ b/test/testcases/tests/level1/html/files/mod.xhtml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - MOD</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<ins cite="./files/ins-reasons.html" datetime="January 1, 2002">The INS element is used to indicate that a section of a document had been inserted.</ins> +<br/> +<del cite="./files/del-reasons.html" datetime="January 2, 2002">The DEL element is used to indicate that a section of a document had been removed.</del> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/mod.xml b/test/testcases/tests/level1/html/files/mod.xml new file mode 100644 index 0000000..b81432d --- /dev/null +++ b/test/testcases/tests/level1/html/files/mod.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - MOD</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<ins cite="./files/ins-reasons.html" datetime="January 1, 2002">The INS element is used to indicate that a section of a document had been inserted.</ins> +<br/> +<del cite="./files/del-reasons.html" datetime="January 2, 2002">The DEL element is used to indicate that a section of a document had been removed.</del> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/object.html b/test/testcases/tests/level1/html/files/object.html new file mode 100644 index 0000000..7960549 --- /dev/null +++ b/test/testcases/tests/level1/html/files/object.html @@ -0,0 +1,18 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - OBJECT</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<P> +<OBJECT ALIGN="middle" ARCHIVE="" BORDER="0" CODEBASE="http://www.w3.org/DOM/" DATA="./pix/logo.gif" HEIGHT="60" HSPACE="0" STANDBY="Loading Image ..." TABINDEX="0" TYPE="image/gif" USEMAP="#DivLogo-map" VSPACE="0" WIDTH="550"></OBJECT> +</P> +<FORM NAME="OBJECT2" ACTION="./files/getData.pl" METHOD="post"> +<P> +<OBJECT DECLARE="declare" NAME="OBJECT2" CODETYPE="image/gif"></OBJECT> +</P> +</FORM> +</BODY> +</HTML> + diff --git a/test/testcases/tests/level1/html/files/object.xhtml b/test/testcases/tests/level1/html/files/object.xhtml new file mode 100644 index 0000000..3399588 --- /dev/null +++ b/test/testcases/tests/level1/html/files/object.xhtml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - OBJECT</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<object align="middle" archive="" border="0" codebase="http://www.w3.org/DOM/" data="./pix/logo.gif" height="60" hspace="0" standby="Loading Image ..." tabindex="0" type="image/gif" usemap="#DivLogo-map" vspace="0" width="550"></object> +</p> +<form name="OBJECT2" action="./files/getData.pl" method="post"> +<p> +<object declare="declare" name="OBJECT2" codetype="image/gif"></object> +</p> +</form> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/object.xml b/test/testcases/tests/level1/html/files/object.xml new file mode 100644 index 0000000..824f7fc --- /dev/null +++ b/test/testcases/tests/level1/html/files/object.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - OBJECT</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<object align="middle" archive="" border="0" codebase="http://xw2k.sdct.itl.nist.gov/brady/dom/" data="./pix/logo.gif" height="60" hspace="0" standby="Loading Image ..." tabindex="0" type="image/gif" usemap="#DivLogo-map" vspace="0" width="550"></object> +</p> +<form name="OBJECT2" action="./files/getData.pl" method="post"> +<p> +<object declare="declare" name="OBJECT2" codetype="image/gif"></object> +</p> +</form> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/object2.html b/test/testcases/tests/level1/html/files/object2.html new file mode 100644 index 0000000..0a39363 --- /dev/null +++ b/test/testcases/tests/level1/html/files/object2.html @@ -0,0 +1,17 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - OBJECT</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<P> +<OBJECT ALIGN="middle" ARCHIVE="" BORDER="0" CODEBASE="http://www.w3.org/DOM/" DATA="./pix/logo.gif" HEIGHT="60" HSPACE="0" STANDBY="Loading Image ..." TABINDEX="0" TYPE="image/gif" USEMAP="#DivLogo-map" VSPACE="0" WIDTH="550"></OBJECT> +</P> +<FORM ID="object2" ACTION="./files/getData.pl" METHOD="post"> +<P> +<OBJECT DECLARE="declare" NAME="OBJECT2" CODETYPE="image/gif"></OBJECT> +</P> +</FORM> +</BODY> +</HTML> diff --git a/test/testcases/tests/level1/html/files/object2.xhtml b/test/testcases/tests/level1/html/files/object2.xhtml new file mode 100644 index 0000000..e318a3c --- /dev/null +++ b/test/testcases/tests/level1/html/files/object2.xhtml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - OBJECT</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<object align="middle" archive="" border="0" codebase="http://www.w3.org/DOM/" data="./pix/logo.gif" height="60" hspace="0" standby="Loading Image ..." tabindex="0" type="image/gif" usemap="#DivLogo-map" vspace="0" width="550"></object> +</p> +<form id="object2" action="./files/getData.pl" method="post"> +<p> +<object declare="declare" name="OBJECT2" codetype="image/gif"></object> +</p> +</form> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/object2.xml b/test/testcases/tests/level1/html/files/object2.xml new file mode 100644 index 0000000..a41e03d --- /dev/null +++ b/test/testcases/tests/level1/html/files/object2.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - OBJECT</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<object align="middle" archive="" border="0" codebase="http://xw2k.sdct.itl.nist.gov/brady/dom/" data="./pix/logo.gif" height="60" hspace="0" standby="Loading Image ..." tabindex="0" type="image/gif" usemap="#DivLogo-map" vspace="0" width="550"></object> +</p> +<form id="object2" action="./files/getData.pl" method="post"> +<p> +<object declare="declare" name="OBJECT2" codetype="image/gif"></object> +</p> +</form> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/olist.html b/test/testcases/tests/level1/html/files/olist.html new file mode 100644 index 0000000..f69c9de --- /dev/null +++ b/test/testcases/tests/level1/html/files/olist.html @@ -0,0 +1,32 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - OLIST</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<OL COMPACT="compact" START="1" TYPE="1"> +<LI>EMP0001 +<UL> +<LI>Margaret Martin +<DL> +<DD>Accountant</DD> +<DD>56,000</DD> +</DL> +</LI> +</UL> +</LI> +<LI>EMP0002 +<UL> +<LI>Martha Raynolds +<DL> +<DD>Secretary</DD> +<DD>35,000</DD> +</DL> +</LI> +</UL> +</LI> +</OL> +</BODY> +</HTML> + diff --git a/test/testcases/tests/level1/html/files/olist.xhtml b/test/testcases/tests/level1/html/files/olist.xhtml new file mode 100644 index 0000000..cbe1ab6 --- /dev/null +++ b/test/testcases/tests/level1/html/files/olist.xhtml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - OLIST</title> +</head> +<body onload="parent.loadComplete()"> +<ol compact="compact" start="1" type="1"> +<li>EMP0001 +<ul> +<li>Margaret Martin +<dl> +<dd>Accountant</dd> +<dd>56,000</dd> +</dl> +</li> +</ul> +</li> +<li>EMP0002 +<ul> +<li>Martha Raynolds +<dl> +<dd>Secretary</dd> +<dd>35,000</dd> +</dl> +</li> +</ul> +</li> +</ol> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/olist.xml b/test/testcases/tests/level1/html/files/olist.xml new file mode 100644 index 0000000..cbe1ab6 --- /dev/null +++ b/test/testcases/tests/level1/html/files/olist.xml @@ -0,0 +1,34 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - OLIST</title> +</head> +<body onload="parent.loadComplete()"> +<ol compact="compact" start="1" type="1"> +<li>EMP0001 +<ul> +<li>Margaret Martin +<dl> +<dd>Accountant</dd> +<dd>56,000</dd> +</dl> +</li> +</ul> +</li> +<li>EMP0002 +<ul> +<li>Martha Raynolds +<dl> +<dd>Secretary</dd> +<dd>35,000</dd> +</dl> +</li> +</ul> +</li> +</ol> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/optgroup.html b/test/testcases/tests/level1/html/files/optgroup.html new file mode 100644 index 0000000..a354af8 --- /dev/null +++ b/test/testcases/tests/level1/html/files/optgroup.html @@ -0,0 +1,25 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - OPTGROUP</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<FORM ID="Form1" ACTION="test.pl" METHOD="post"> +<P> +<SELECT NAME="select2"> +<OPTGROUP LABEL="Regular Employees"> +<OPTION>EMP0001</OPTION> +<OPTION>EMP0002</OPTION> +<OPTION>EMP0003A</OPTION> +</OPTGROUP> +<OPTGROUP DISABLED="disabled" LABEL="Temporary Employees"> +<OPTION>EMP0004</OPTION> +<OPTION>EMP0005</OPTION> +</OPTGROUP> +</SELECT> +</P> +</FORM> +</BODY> +</HTML> + diff --git a/test/testcases/tests/level1/html/files/optgroup.xhtml b/test/testcases/tests/level1/html/files/optgroup.xhtml new file mode 100644 index 0000000..b421eca --- /dev/null +++ b/test/testcases/tests/level1/html/files/optgroup.xhtml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - OPTGROUP</title> +</head> +<body onload="parent.loadComplete()"> +<form id="Form1" action="test.pl" method="post"> +<p> +<select name="select2"> +<optgroup label="Regular Employees"> +<option>EMP0001</option> +<option>EMP0002</option> +<option>EMP0003A</option> +</optgroup> +<optgroup disabled="disabled" label="Temporary Employees"> +<option>EMP0004</option> +<option>EMP0005</option> +</optgroup> +</select> +</p> +</form> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/optgroup.xml b/test/testcases/tests/level1/html/files/optgroup.xml new file mode 100644 index 0000000..b421eca --- /dev/null +++ b/test/testcases/tests/level1/html/files/optgroup.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - OPTGROUP</title> +</head> +<body onload="parent.loadComplete()"> +<form id="Form1" action="test.pl" method="post"> +<p> +<select name="select2"> +<optgroup label="Regular Employees"> +<option>EMP0001</option> +<option>EMP0002</option> +<option>EMP0003A</option> +</optgroup> +<optgroup disabled="disabled" label="Temporary Employees"> +<option>EMP0004</option> +<option>EMP0005</option> +</optgroup> +</select> +</p> +</form> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/option.html b/test/testcases/tests/level1/html/files/option.html new file mode 100644 index 0000000..83707c3 --- /dev/null +++ b/test/testcases/tests/level1/html/files/option.html @@ -0,0 +1,36 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - OPTION</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<FORM ID="form1" NAME="form1" ACTION="./files/getData.pl" METHOD="post"> +<P> +<SELECT ID="selectId" DIR="ltr" TABINDEX="7" NAME="select1" MULTIPLE="multiple" SIZE="1"> +<OPTION SELECTED="selected" value="10001">EMP10001</OPTION> +<OPTION LABEL="l1">EMP10002</OPTION> +<OPTION>EMP10003</OPTION> +<OPTION>EMP10004</OPTION> +<OPTION>EMP10005</OPTION> +</SELECT> +</P> +</FORM> +<P> +<SELECT NAME="select2" disabled="disabled"> +<OPTION>EMP20001</OPTION> +<OPTION>EMP20002</OPTION> +<OPTION>EMP20003</OPTION> +<OPTION>EMP20004</OPTION> +<OPTION DISABLED="disabled">EMP20005</OPTION> +</SELECT> +</P> +</BODY> +</HTML> + + + + + + + diff --git a/test/testcases/tests/level1/html/files/option.xhtml b/test/testcases/tests/level1/html/files/option.xhtml new file mode 100644 index 0000000..8cf88d8 --- /dev/null +++ b/test/testcases/tests/level1/html/files/option.xhtml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - OPTION</title> +</head> +<body onload="parent.loadComplete()"> +<form id="form1" action="./files/getData.pl" method="post"> +<p> +<select id="selectId" dir="ltr" tabindex="7" name="select1" multiple="multiple" size="1"> +<option selected="selected" value="10001">EMP10001</option> +<option label="l1">EMP10002</option> +<option>EMP10003</option> +<option>EMP10004</option> +<option>EMP10005</option> +</select> +</p> +</form> +<p> +<select name="select2" disabled="disabled"> +<option>EMP20001</option> +<option>EMP20002</option> +<option>EMP20003</option> +<option>EMP20004</option> +<option disabled="disabled">EMP20005</option> +</select> +</p> +</body> +</html> + + diff --git a/test/testcases/tests/level1/html/files/option.xml b/test/testcases/tests/level1/html/files/option.xml new file mode 100644 index 0000000..8cf88d8 --- /dev/null +++ b/test/testcases/tests/level1/html/files/option.xml @@ -0,0 +1,33 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - OPTION</title> +</head> +<body onload="parent.loadComplete()"> +<form id="form1" action="./files/getData.pl" method="post"> +<p> +<select id="selectId" dir="ltr" tabindex="7" name="select1" multiple="multiple" size="1"> +<option selected="selected" value="10001">EMP10001</option> +<option label="l1">EMP10002</option> +<option>EMP10003</option> +<option>EMP10004</option> +<option>EMP10005</option> +</select> +</p> +</form> +<p> +<select name="select2" disabled="disabled"> +<option>EMP20001</option> +<option>EMP20002</option> +<option>EMP20003</option> +<option>EMP20004</option> +<option disabled="disabled">EMP20005</option> +</select> +</p> +</body> +</html> + + diff --git a/test/testcases/tests/level1/html/files/paragraph.html b/test/testcases/tests/level1/html/files/paragraph.html new file mode 100644 index 0000000..0da4836 --- /dev/null +++ b/test/testcases/tests/level1/html/files/paragraph.html @@ -0,0 +1,13 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - PARAGRAPH</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<P ALIGN="center"> +TEXT +</P> +</BODY> +</HTML> + diff --git a/test/testcases/tests/level1/html/files/paragraph.xhtml b/test/testcases/tests/level1/html/files/paragraph.xhtml new file mode 100644 index 0000000..2cdb1df --- /dev/null +++ b/test/testcases/tests/level1/html/files/paragraph.xhtml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - PARAGRAPH</title> +</head> +<body onload="parent.loadComplete()"> +<p align="center"> +TEXT +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/paragraph.xml b/test/testcases/tests/level1/html/files/paragraph.xml new file mode 100644 index 0000000..2cdb1df --- /dev/null +++ b/test/testcases/tests/level1/html/files/paragraph.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - PARAGRAPH</title> +</head> +<body onload="parent.loadComplete()"> +<p align="center"> +TEXT +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/param.html b/test/testcases/tests/level1/html/files/param.html new file mode 100644 index 0000000..290e626 --- /dev/null +++ b/test/testcases/tests/level1/html/files/param.html @@ -0,0 +1,14 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - PARAM</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<P> +<OBJECT> +<PARAM NAME="image3" TYPE="image/gif" VALUE="image/file.gif" VALUETYPE="ref"> +</OBJECT> +</P> +</BODY> +</HTML> diff --git a/test/testcases/tests/level1/html/files/param.xhtml b/test/testcases/tests/level1/html/files/param.xhtml new file mode 100644 index 0000000..3e916eb --- /dev/null +++ b/test/testcases/tests/level1/html/files/param.xhtml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - PARAM</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<object> +<param name="image3" type="image/gif" value="image/file.gif" valuetype="ref"/> +</object> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/param.xml b/test/testcases/tests/level1/html/files/param.xml new file mode 100644 index 0000000..3e916eb --- /dev/null +++ b/test/testcases/tests/level1/html/files/param.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - PARAM</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<object> +<param name="image3" type="image/gif" value="image/file.gif" valuetype="ref"/> +</object> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/pre.html b/test/testcases/tests/level1/html/files/pre.html new file mode 100644 index 0000000..2a40206 --- /dev/null +++ b/test/testcases/tests/level1/html/files/pre.html @@ -0,0 +1,17 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - PRE</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<PRE WIDTH="277">The PRE is used to indicate pre-formatted text. Visual agents may: + + leave white space intact. + May render text with a fixed-pitch font. + May disable automatic word wrap. + Must not disable bidirectional processing. +</PRE> +</BODY> +</HTML> + diff --git a/test/testcases/tests/level1/html/files/pre.xhtml b/test/testcases/tests/level1/html/files/pre.xhtml new file mode 100644 index 0000000..69f652b --- /dev/null +++ b/test/testcases/tests/level1/html/files/pre.xhtml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - PRE</title> +</head> +<body onload="parent.loadComplete()"> +<pre>The PRE is used to indicate pre-formatted text. Visual agents may: + + leave white space intact. + May render text with a fixed-pitch font. + May disable automatic word wrap. + Must not disable bidirectional processing. +</pre> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/pre.xml b/test/testcases/tests/level1/html/files/pre.xml new file mode 100644 index 0000000..69f652b --- /dev/null +++ b/test/testcases/tests/level1/html/files/pre.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - PRE</title> +</head> +<body onload="parent.loadComplete()"> +<pre>The PRE is used to indicate pre-formatted text. Visual agents may: + + leave white space intact. + May render text with a fixed-pitch font. + May disable automatic word wrap. + Must not disable bidirectional processing. +</pre> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/quote.html b/test/testcases/tests/level1/html/files/quote.html new file mode 100644 index 0000000..6bad2b8 --- /dev/null +++ b/test/testcases/tests/level1/html/files/quote.html @@ -0,0 +1,16 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - QUOTE</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<P> +<Q CITE="./files/Q.html">The Q element is intended for short quotations</Q> +</P> +<BLOCKQUOTE CITE="./files/BLOCKQUOTE.html"> +<P>The BLOCKQUOTE element is used for long quotations.</P> +</BLOCKQUOTE> +</BODY> +</HTML> + diff --git a/test/testcases/tests/level1/html/files/quote.xhtml b/test/testcases/tests/level1/html/files/quote.xhtml new file mode 100644 index 0000000..93e6c42 --- /dev/null +++ b/test/testcases/tests/level1/html/files/quote.xhtml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - QUOTE</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<q cite="./files/Q.html">The Q element is intended for short quotations</q> +</p> +<blockquote cite="./files/BLOCKQUOTE.html"> +<p>The BLOCKQUOTE element is used for long quotations.</p> +</blockquote> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/quote.xml b/test/testcases/tests/level1/html/files/quote.xml new file mode 100644 index 0000000..93e6c42 --- /dev/null +++ b/test/testcases/tests/level1/html/files/quote.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - QUOTE</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<q cite="./files/Q.html">The Q element is intended for short quotations</q> +</p> +<blockquote cite="./files/BLOCKQUOTE.html"> +<p>The BLOCKQUOTE element is used for long quotations.</p> +</blockquote> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/right.png b/test/testcases/tests/level1/html/files/right.png Binary files differnew file mode 100644 index 0000000..41ad0bd --- /dev/null +++ b/test/testcases/tests/level1/html/files/right.png diff --git a/test/testcases/tests/level1/html/files/script.html b/test/testcases/tests/level1/html/files/script.html new file mode 100644 index 0000000..362860b --- /dev/null +++ b/test/testcases/tests/level1/html/files/script.html @@ -0,0 +1,11 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - SCRIPT</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<SCRIPT CHARSET="US-ASCII" TYPE="text/javaScript" DEFER="defer" SRC="./files/script1.js">var a=2;</SCRIPT> +</BODY> +</HTML> + diff --git a/test/testcases/tests/level1/html/files/script.xhtml b/test/testcases/tests/level1/html/files/script.xhtml new file mode 100644 index 0000000..ebdaa72 --- /dev/null +++ b/test/testcases/tests/level1/html/files/script.xhtml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - SCRIPT</title> +</head> +<body onload="parent.loadComplete()"> +<script charset="US-ASCII" type="text/javaScript" defer="defer" src="./files/script1.js">var a=2;</script> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/script.xml b/test/testcases/tests/level1/html/files/script.xml new file mode 100644 index 0000000..ebdaa72 --- /dev/null +++ b/test/testcases/tests/level1/html/files/script.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - SCRIPT</title> +</head> +<body onload="parent.loadComplete()"> +<script charset="US-ASCII" type="text/javaScript" defer="defer" src="./files/script1.js">var a=2;</script> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/select.html b/test/testcases/tests/level1/html/files/select.html new file mode 100644 index 0000000..7820624 --- /dev/null +++ b/test/testcases/tests/level1/html/files/select.html @@ -0,0 +1,44 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - SELECT</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<FORM ID="form1" ACTION="./files/getData.pl" METHOD="post"> +<P> +<SELECT ID="selectId" DIR="ltr" TABINDEX="7" NAME="select1" MULTIPLE="multiple" SIZE="1"> +<OPTION SELECTED="selected" value="EMP1">EMP10001</OPTION> +<OPTION>EMP10002</OPTION> +<OPTION>EMP10003</OPTION> +<OPTION>EMP10004</OPTION> +<OPTION>EMP10005</OPTION> +</SELECT> +</P> +</FORM> +<P> +<SELECT NAME="select2"> +<OPTION>EMP20001</OPTION> +<OPTION>EMP20002</OPTION> +<OPTION>EMP20003</OPTION> +<OPTION>EMP20004</OPTION> +<OPTION>EMP20005</OPTION> +</SELECT> +</P> +<P> +<SELECT NAME="select3" DISABLED="disabled" TABINDEX="1"> +<OPTION>EMP30001</OPTION> +<OPTION>EMP30002</OPTION> +<OPTION>EMP30003</OPTION> +<OPTION>EMP30004</OPTION> +<OPTION>EMP30005</OPTION> +</SELECT> +</P> +</BODY> +</HTML> + + + + + + diff --git a/test/testcases/tests/level1/html/files/select.xhtml b/test/testcases/tests/level1/html/files/select.xhtml new file mode 100644 index 0000000..491a74c --- /dev/null +++ b/test/testcases/tests/level1/html/files/select.xhtml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - SELECT</title> +</head> +<body onload="parent.loadComplete()"> +<form id="form1" action="./files/getData.pl" method="post"> +<p> +<select id="selectId" dir="ltr" tabindex="7" name="select1" multiple="multiple" size="1"> +<option selected="selected" value="EMP1">EMP10001</option> +<option>EMP10002</option> +<option>EMP10003</option> +<option>EMP10004</option> +<option>EMP10005</option> +</select> +</p> +</form> +<p> +<select name="select2"> +<option>EMP20001</option> +<option>EMP20002</option> +<option>EMP20003</option> +<option>EMP20004</option> +<option>EMP20005</option> +</select> +</p> +<p> +<select name="select3" disabled="disabled" tabindex="1"> +<option>EMP30001</option> +<option>EMP30002</option> +<option>EMP30003</option> +<option>EMP30004</option> +<option>EMP30005</option> +</select> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/select.xml b/test/testcases/tests/level1/html/files/select.xml new file mode 100644 index 0000000..491a74c --- /dev/null +++ b/test/testcases/tests/level1/html/files/select.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - SELECT</title> +</head> +<body onload="parent.loadComplete()"> +<form id="form1" action="./files/getData.pl" method="post"> +<p> +<select id="selectId" dir="ltr" tabindex="7" name="select1" multiple="multiple" size="1"> +<option selected="selected" value="EMP1">EMP10001</option> +<option>EMP10002</option> +<option>EMP10003</option> +<option>EMP10004</option> +<option>EMP10005</option> +</select> +</p> +</form> +<p> +<select name="select2"> +<option>EMP20001</option> +<option>EMP20002</option> +<option>EMP20003</option> +<option>EMP20004</option> +<option>EMP20005</option> +</select> +</p> +<p> +<select name="select3" disabled="disabled" tabindex="1"> +<option>EMP30001</option> +<option>EMP30002</option> +<option>EMP30003</option> +<option>EMP30004</option> +<option>EMP30005</option> +</select> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/style.html b/test/testcases/tests/level1/html/files/style.html new file mode 100644 index 0000000..c3df424 --- /dev/null +++ b/test/testcases/tests/level1/html/files/style.html @@ -0,0 +1,12 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<STYLE MEDIA="screen" type="text/css"></STYLE> +<TITLE>NIST DOM HTML Test - STYLE</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<P>Hello, World.</P> +</BODY> +</HTML> + diff --git a/test/testcases/tests/level1/html/files/style.xhtml b/test/testcases/tests/level1/html/files/style.xhtml new file mode 100644 index 0000000..b8477c1 --- /dev/null +++ b/test/testcases/tests/level1/html/files/style.xhtml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<style media="screen" type="text/css"></style> +<title>NIST DOM HTML Test - BR</title> +</head> +<body onload="parent.loadComplete()"> +<p>Hello, World.</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/style.xml b/test/testcases/tests/level1/html/files/style.xml new file mode 100644 index 0000000..b8477c1 --- /dev/null +++ b/test/testcases/tests/level1/html/files/style.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<style media="screen" type="text/css"></style> +<title>NIST DOM HTML Test - BR</title> +</head> +<body onload="parent.loadComplete()"> +<p>Hello, World.</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/table.html b/test/testcases/tests/level1/html/files/table.html new file mode 100644 index 0000000..b8f151e --- /dev/null +++ b/test/testcases/tests/level1/html/files/table.html @@ -0,0 +1,78 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - TABLE</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<TABLE ALIGN="center" SUMMARY="Table 1"> +<TR> +<TH>Id</TH> +<TH>Name</TH> +<TH>Position</TH> +<TH>Salary</TH> +</TR> +</TABLE> +<TABLE ID="table-1" ALIGN="center" BORDER="4" BGCOLOR="#ff0000" FRAME="border" CELLPADDING="2" CELLSPACING="2" SUMMARY="HTML Control Table" RULES="all" WIDTH="680"> +<CAPTION ALIGN="top">Table Caption</CAPTION> +<THEAD ALIGN="center" VALIGN="middle"> +<TR ALIGN="center" BGCOLOR="#00FFFF" VALIGN="middle"> +<TH ID="header-1">Employee Id</TH> +<TH ID="header-2" ABBR="maiden" AXIS="center" ALIGN="center" BGCOLOR="#00FFFF" COLSPAN="1" HEIGHT="50" NOWRAP="nowrap" ROWSPAN="1" SCOPE="col" HEADERS="header-1" VALIGN="middle" WIDTH="100">Employee Name</TH> +<TH>Position</TH> +<TH>Salary</TH> +<TH>Gender</TH> +<TH>Address</TH> +</TR> +</THEAD> +<TFOOT ALIGN="center" VALIGN="middle"> +<TR> +<TH>next page ...</TH> +<TH>next page ...</TH> +<TH>next page ...</TH> +<TH>next page ...</TH> +<TH>next page ...</TH> +<TH>next page ...</TH> +</TR> +</TFOOT> +<TBODY ALIGN="center" VALIGN="middle"> +<TR> +<TD AXIS="center" ID="Table-3" ABBR="maiden2" ALIGN="center" BGCOLOR="#FF0000" COLSPAN="1" HEIGHT="50" NOWRAP="nowrap" ROWSPAN="1" SCOPE="col" HEADERS="header-2" VALIGN="middle" WIDTH="175">EMP0001</TD> +<TD HEADERS="header-2">Margaret Martin</TD> +<TD>Accountant</TD> +<TD>56,000</TD> +<TD>Female</TD> +<TD>1230 North Ave. Dallas, Texas 98551</TD> +</TR> +<TR> +<TD>EMP0002</TD> +<TD>Martha Raynolds</TD> +<TD>Secretary</TD> +<TD>35,000</TD> +<TD>Female</TD> +<TD>1900 Dallas Road Dallas, Texas 98554</TD> +</TR> +</TBODY> +</TABLE> +<TABLE SUMMARY="Table 3"> +<TBODY> +<TR> +<TD> +</TD> +</TR> +</TBODY> +<TBODY> +<TR> +<TD> +</TD> +</TR> +</TBODY> +<TBODY> +<TR> +<TD> +</TD> +</TR> +</TBODY> +</TABLE> +</BODY> +</HTML> diff --git a/test/testcases/tests/level1/html/files/table.xhtml b/test/testcases/tests/level1/html/files/table.xhtml new file mode 100644 index 0000000..8300b90 --- /dev/null +++ b/test/testcases/tests/level1/html/files/table.xhtml @@ -0,0 +1,81 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - TABLE</title> +</head> +<body onload="parent.loadComplete()"> +<table align="center" summary="Table 1"> +<tr> +<th>Id</th> +<th>Name</th> +<th>Position</th> +<th>Salary</th> +</tr> +</table> +<table id="table-1" align="center" border="4" bgcolor="#ff0000" frame="border" cellpadding="2" cellspacing="2" summary="HTML Control Table" rules="all" width="680"> +<caption align="top">Table Caption</caption> +<thead align="center" valign="middle"> +<tr align="center" bgcolor="#00FFFF" valign="middle"> +<th id="header-1">Employee Id</th> +<th id="header-2" abbr="maiden" axis="center" align="center" bgcolor="#00FFFF" colspan="1" height="50" nowrap="nowrap" rowspan="1" scope="col" headers="header-1" valign="middle" width="100">Employee Name</th> +<th>Position</th> +<th>Salary</th> +<th>Gender</th> +<th>Address</th> +</tr> +</thead> +<tfoot align="center" valign="middle"> +<tr> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +</tr> +</tfoot> +<tbody align="center" valign="middle"> +<tr> +<td axis="center" id="Table-3" abbr="maiden2" align="center" bgcolor="#FF0000" colspan="1" height="50" nowrap="nowrap" rowspan="1" scope="col" headers="header-2" valign="middle" width="175">EMP0001</td> +<td headers="header-2">Margaret Martin</td> +<td>Accountant</td> +<td>56,000</td> +<td>Female</td> +<td>1230 North Ave. Dallas, Texas 98551</td> +</tr> +<tr> +<td>EMP0002</td> +<td>Martha Raynolds</td> +<td>Secretary</td> +<td>35,000</td> +<td>Female</td> +<td>1900 Dallas Road Dallas, Texas 98554</td> +</tr> +</tbody> +</table> +<table summary="Table 3"> +<tbody> +<tr> +<td> +</td> +</tr> +</tbody> +<tbody> +<tr> +<td> +</td> +</tr> +</tbody> +<tbody> +<tr> +<td> +</td> +</tr> +</tbody> +</table> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/table.xml b/test/testcases/tests/level1/html/files/table.xml new file mode 100644 index 0000000..8300b90 --- /dev/null +++ b/test/testcases/tests/level1/html/files/table.xml @@ -0,0 +1,81 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - TABLE</title> +</head> +<body onload="parent.loadComplete()"> +<table align="center" summary="Table 1"> +<tr> +<th>Id</th> +<th>Name</th> +<th>Position</th> +<th>Salary</th> +</tr> +</table> +<table id="table-1" align="center" border="4" bgcolor="#ff0000" frame="border" cellpadding="2" cellspacing="2" summary="HTML Control Table" rules="all" width="680"> +<caption align="top">Table Caption</caption> +<thead align="center" valign="middle"> +<tr align="center" bgcolor="#00FFFF" valign="middle"> +<th id="header-1">Employee Id</th> +<th id="header-2" abbr="maiden" axis="center" align="center" bgcolor="#00FFFF" colspan="1" height="50" nowrap="nowrap" rowspan="1" scope="col" headers="header-1" valign="middle" width="100">Employee Name</th> +<th>Position</th> +<th>Salary</th> +<th>Gender</th> +<th>Address</th> +</tr> +</thead> +<tfoot align="center" valign="middle"> +<tr> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +</tr> +</tfoot> +<tbody align="center" valign="middle"> +<tr> +<td axis="center" id="Table-3" abbr="maiden2" align="center" bgcolor="#FF0000" colspan="1" height="50" nowrap="nowrap" rowspan="1" scope="col" headers="header-2" valign="middle" width="175">EMP0001</td> +<td headers="header-2">Margaret Martin</td> +<td>Accountant</td> +<td>56,000</td> +<td>Female</td> +<td>1230 North Ave. Dallas, Texas 98551</td> +</tr> +<tr> +<td>EMP0002</td> +<td>Martha Raynolds</td> +<td>Secretary</td> +<td>35,000</td> +<td>Female</td> +<td>1900 Dallas Road Dallas, Texas 98554</td> +</tr> +</tbody> +</table> +<table summary="Table 3"> +<tbody> +<tr> +<td> +</td> +</tr> +</tbody> +<tbody> +<tr> +<td> +</td> +</tr> +</tbody> +<tbody> +<tr> +<td> +</td> +</tr> +</tbody> +</table> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/table1.html b/test/testcases/tests/level1/html/files/table1.html new file mode 100644 index 0000000..8f5d19b --- /dev/null +++ b/test/testcases/tests/level1/html/files/table1.html @@ -0,0 +1,12 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - TABLE</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<TABLE SUMMARY="Empty Table"> +<tr><td>HTML can't abide empty table</td></tr> +</TABLE> +</BODY> +</HTML> diff --git a/test/testcases/tests/level1/html/files/table1.xhtml b/test/testcases/tests/level1/html/files/table1.xhtml new file mode 100644 index 0000000..e174c63 --- /dev/null +++ b/test/testcases/tests/level1/html/files/table1.xhtml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - TABLE</title> +</head> +<body onload="parent.loadComplete()"> +<table summary="Empty Table"> +<tr><td>XHTML can't abide empty table</td></tr> +</table> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/table1.xml b/test/testcases/tests/level1/html/files/table1.xml new file mode 100644 index 0000000..e174c63 --- /dev/null +++ b/test/testcases/tests/level1/html/files/table1.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - TABLE</title> +</head> +<body onload="parent.loadComplete()"> +<table summary="Empty Table"> +<tr><td>XHTML can't abide empty table</td></tr> +</table> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/tablecaption.html b/test/testcases/tests/level1/html/files/tablecaption.html new file mode 100644 index 0000000..f9181c7 --- /dev/null +++ b/test/testcases/tests/level1/html/files/tablecaption.html @@ -0,0 +1,25 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - TABLECAPTION</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<TABLE SUMMARY="Table Summary"> +<CAPTION ALIGN="top">CAPTION 1</CAPTION> +<TR> +<TH>Employee Id</TH> +<TH>Employee Name</TH> +<TH>Position</TH> +<TH>Salary</TH> +</TR> +</TABLE> +</BODY> +</HTML> + + + + + + + diff --git a/test/testcases/tests/level1/html/files/tablecaption.xhtml b/test/testcases/tests/level1/html/files/tablecaption.xhtml new file mode 100644 index 0000000..67b72dc --- /dev/null +++ b/test/testcases/tests/level1/html/files/tablecaption.xhtml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - BR</title> +</head> +<body onload="parent.loadComplete()"> +<table summary="Table 1"> +<caption align="top">CAPTION 1</caption> +<tr> +<th>Employee Id</th> +<th>Employee Name</th> +<th>Position</th> +<th>Salary</th> +</tr> +</table> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/tablecaption.xml b/test/testcases/tests/level1/html/files/tablecaption.xml new file mode 100644 index 0000000..67b72dc --- /dev/null +++ b/test/testcases/tests/level1/html/files/tablecaption.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - BR</title> +</head> +<body onload="parent.loadComplete()"> +<table summary="Table 1"> +<caption align="top">CAPTION 1</caption> +<tr> +<th>Employee Id</th> +<th>Employee Name</th> +<th>Position</th> +<th>Salary</th> +</tr> +</table> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/tablecell.html b/test/testcases/tests/level1/html/files/tablecell.html new file mode 100644 index 0000000..c9adef2 --- /dev/null +++ b/test/testcases/tests/level1/html/files/tablecell.html @@ -0,0 +1,23 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - TABLECELL</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<TABLE SUMMARY="Table Summary"> +<TR> +<TH ID="header-1">Employee Id</TH> +<TH ID="header-2" ABBR="hd1" AXIS="center" ALIGN="center" BGCOLOR="#00FFFF" CHAR=":" CHAROFF="1" COLSPAN="1" HEIGHT="50" NOWRAP="nowrap" ROWSPAN="1" SCOPE="col" HEADERS="header-1" VALIGN="middle" WIDTH="170">Employee Name</TH> +<TH>Position</TH> +<TH>Salary</TH> +</TR> +<TR> +<TD ID="header-3">EMP0001</TD> +<TD ID="header-4" ABBR="hd2" AXIS="center" ALIGN="center" BGCOLOR="#FF0000" CHAR=":" CHAROFF="1" COLSPAN="1" HEIGHT="50" NOWRAP="nowrap" ROWSPAN="1" SCOPE="col" HEADERS="header-3" VALIGN="middle" WIDTH="175">Margaret Martin</TD> +<TD>Accountant</TD> +<TD>56,000</TD> +</TR> +</TABLE> +</BODY> +</HTML> diff --git a/test/testcases/tests/level1/html/files/tablecell.xhtml b/test/testcases/tests/level1/html/files/tablecell.xhtml new file mode 100644 index 0000000..0e8ee7f --- /dev/null +++ b/test/testcases/tests/level1/html/files/tablecell.xhtml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - TABLECELL</title> +</head> +<body onload="parent.loadComplete()"> +<table summary="Table 1"> +<tr> +<th id="header-1">Employee Id</th> +<th id="header-2" abbr="hd1" axis="center" align="center" bgcolor="#00FFFF" char=":" charoff="1" colspan="1" height="50" nowrap="nowrap" rowspan="1" scope="col" headers="header-1" valign="middle" width="170">Employee Name</th> +<th>Position</th> +<th>Salary</th> +</tr> +<tr> +<td id="header-3">EMP0001</td> +<td id="header-4" abbr="hd2" axis="center" align="center" bgcolor="#FF0000" char=":" charoff="1" colspan="1" height="50" nowrap="nowrap" rowspan="1" scope="col" headers="header-3" valign="middle" width="175">Margaret Martin</td> +<td>Accountant</td> +<td>56,000</td> +</tr> +</table> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/tablecell.xml b/test/testcases/tests/level1/html/files/tablecell.xml new file mode 100644 index 0000000..0e8ee7f --- /dev/null +++ b/test/testcases/tests/level1/html/files/tablecell.xml @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - TABLECELL</title> +</head> +<body onload="parent.loadComplete()"> +<table summary="Table 1"> +<tr> +<th id="header-1">Employee Id</th> +<th id="header-2" abbr="hd1" axis="center" align="center" bgcolor="#00FFFF" char=":" charoff="1" colspan="1" height="50" nowrap="nowrap" rowspan="1" scope="col" headers="header-1" valign="middle" width="170">Employee Name</th> +<th>Position</th> +<th>Salary</th> +</tr> +<tr> +<td id="header-3">EMP0001</td> +<td id="header-4" abbr="hd2" axis="center" align="center" bgcolor="#FF0000" char=":" charoff="1" colspan="1" height="50" nowrap="nowrap" rowspan="1" scope="col" headers="header-3" valign="middle" width="175">Margaret Martin</td> +<td>Accountant</td> +<td>56,000</td> +</tr> +</table> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/tablecol.html b/test/testcases/tests/level1/html/files/tablecol.html new file mode 100644 index 0000000..c72a948 --- /dev/null +++ b/test/testcases/tests/level1/html/files/tablecol.html @@ -0,0 +1,35 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - TABLECOL</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<TABLE SUMMARY="Table Summary"> +<COLGROUP VALIGN="middle" SPAN="2" ALIGN="center" WIDTH="20" CHAR="$" CHAROFF="15"> +<COL VALIGN="middle" SPAN="1" ALIGN="center" WIDTH="20" CHAR="*" CHAROFF="20"> +</COLGROUP> +<TR> +<TH>Id</TH> +<TH>Name</TH> +<TH>Position</TH> +<TH>Salary</TH> +</TR> +<TR> +<TD>EMP0001</TD> +<TD>Martin</TD> +<TD>Accountant</TD> +<TD>56,000</TD> +</TR> +</TABLE> +</BODY> +</HTML> + + + + + + + + + diff --git a/test/testcases/tests/level1/html/files/tablecol.xhtml b/test/testcases/tests/level1/html/files/tablecol.xhtml new file mode 100644 index 0000000..a69c4fe --- /dev/null +++ b/test/testcases/tests/level1/html/files/tablecol.xhtml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - TABLECOL</title> +</head> +<body onload="parent.loadComplete()"> +<table summary="Table 1"> +<colgroup valign="middle" span="2" align="center" width="20" char="$" charoff="15"> +<col valign="middle" span="1" align="center" width="20" char="*" charoff="20"/> +</colgroup> +<tr> +<th>Id</th> +<th>Name</th> +<th>Position</th> +<th>Salary</th> +</tr> +<tr> +<td>EMP0001</td> +<td>Martin</td> +<td>Accountant</td> +<td>56,000</td> +</tr> +</table> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/tablecol.xml b/test/testcases/tests/level1/html/files/tablecol.xml new file mode 100644 index 0000000..a69c4fe --- /dev/null +++ b/test/testcases/tests/level1/html/files/tablecol.xml @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - TABLECOL</title> +</head> +<body onload="parent.loadComplete()"> +<table summary="Table 1"> +<colgroup valign="middle" span="2" align="center" width="20" char="$" charoff="15"> +<col valign="middle" span="1" align="center" width="20" char="*" charoff="20"/> +</colgroup> +<tr> +<th>Id</th> +<th>Name</th> +<th>Position</th> +<th>Salary</th> +</tr> +<tr> +<td>EMP0001</td> +<td>Martin</td> +<td>Accountant</td> +<td>56,000</td> +</tr> +</table> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/tablerow.html b/test/testcases/tests/level1/html/files/tablerow.html new file mode 100644 index 0000000..9e76a4c --- /dev/null +++ b/test/testcases/tests/level1/html/files/tablerow.html @@ -0,0 +1,59 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - TABLEROW</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<TABLE ALIGN="center" SUMMARY="Table 1"> +<TR> +<TH>Id</TH> +<TH>Name</TH> +<TH>Position</TH> +<TH>Salary</TH> +</TR> +</TABLE> +<TABLE ID="table-1" ALIGN="center" BORDER="4" BGCOLOR="#ff0000" FRAME="border" CELLPADDING="2" CELLSPACING="2" SUMMARY="HTML Control Table" RULES="all" WIDTH="680"> +<CAPTION ALIGN="top">Table Caption</CAPTION> +<THEAD ALIGN="center" VALIGN="middle"> +<TR ALIGN="center" BGCOLOR="#00FFFF" VALIGN="middle" CHAR="*" CHAROFF="1"> +<TH ID="header-1">Employee Id</TH> +<TH ID="header-2" ABBR="maiden" AXIS="center" ALIGN="center" BGCOLOR="#00FFFF" COLSPAN="1" HEIGHT="50" NOWRAP="nowrap" ROWSPAN="1" SCOPE="col" HEADERS="header-1" VALIGN="middle" WIDTH="100">Employee Name</TH> +<TH>Position</TH> +<TH>Salary</TH> +<TH>Gender</TH> +<TH>Address</TH> +</TR> +</THEAD> +<TFOOT ALIGN="center" VALIGN="middle"> +<TR> +<TH>next page ...</TH> +<TH>next page ...</TH> +<TH>next page ...</TH> +<TH>next page ...</TH> +<TH>next page ...</TH> +<TH>next page ...</TH> +</TR> +</TFOOT> +<TBODY ALIGN="center" VALIGN="middle"> +<TR> +<TD AXIS="center" ID="Table-3" ABBR="maiden2" ALIGN="center" BGCOLOR="#FF0000" COLSPAN="1" HEIGHT="50" NOWRAP="nowrap" ROWSPAN="1" SCOPE="col" HEADERS="header-2" VALIGN="middle" WIDTH="175">EMP0001</TD> +<TD HEADERS="header-2">Margaret Martin</TD> +<TD>Accountant</TD> +<TD>56,000</TD> +<TD>Female</TD> +<TD>1230 North Ave. Dallas, Texas 98551</TD> +</TR> +<TR> +<TD>EMP0002</TD> +<TD>Martha Raynolds</TD> +<TD>Secretary</TD> +<TD>35,000</TD> +<TD>Female</TD> +<TD>1900 Dallas Road Dallas, Texas 98554</TD> +</TR> +</TBODY> +</TABLE> +</BODY> +</HTML> + diff --git a/test/testcases/tests/level1/html/files/tablerow.xhtml b/test/testcases/tests/level1/html/files/tablerow.xhtml new file mode 100644 index 0000000..b901e3c --- /dev/null +++ b/test/testcases/tests/level1/html/files/tablerow.xhtml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - TABLE</title> +</head> +<body onload="parent.loadComplete()"> +<table align="center" summary="Table 1"> +<tr> +<th>Id</th> +<th>Name</th> +<th>Position</th> +<th>Salary</th> +</tr> +</table> +<table id="table-1" align="center" border="4" bgcolor="#ff0000" frame="border" cellpadding="2" cellspacing="2" summary="HTML Control Table" rules="all" width="680"> +<caption align="top">Table Caption</caption> +<thead align="center" valign="middle"> +<tr align="center" bgcolor="#00FFFF" valign="middle" char="*" charoff="1"> +<th id="header-1">Employee Id</th> +<th id="header-2" abbr="maiden" axis="center" align="center" bgcolor="#00FFFF" colspan="1" height="50" nowrap="nowrap" rowspan="1" scope="col" headers="header-1" valign="middle" width="100">Employee Name</th> +<th>Position</th> +<th>Salary</th> +<th>Gender</th> +<th>Address</th> +</tr> +</thead> +<tfoot align="center" valign="middle"> +<tr> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +</tr> +</tfoot> +<tbody align="center" valign="middle"> +<tr> +<td axis="center" id="Table-3" abbr="maiden2" align="center" bgcolor="#FF0000" colspan="1" height="50" nowrap="nowrap" rowspan="1" scope="col" headers="header-2" valign="middle" width="175">EMP0001</td> +<td headers="header-2">Margaret Martin</td> +<td>Accountant</td> +<td>56,000</td> +<td>Female</td> +<td>1230 North Ave. Dallas, Texas 98551</td> +</tr> +<tr> +<td>EMP0002</td> +<td>Martha Raynolds</td> +<td>Secretary</td> +<td>35,000</td> +<td>Female</td> +<td>1900 Dallas Road Dallas, Texas 98554</td> +</tr> +</tbody> +</table> +</body> +</html> + + diff --git a/test/testcases/tests/level1/html/files/tablerow.xml b/test/testcases/tests/level1/html/files/tablerow.xml new file mode 100644 index 0000000..b901e3c --- /dev/null +++ b/test/testcases/tests/level1/html/files/tablerow.xml @@ -0,0 +1,62 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - TABLE</title> +</head> +<body onload="parent.loadComplete()"> +<table align="center" summary="Table 1"> +<tr> +<th>Id</th> +<th>Name</th> +<th>Position</th> +<th>Salary</th> +</tr> +</table> +<table id="table-1" align="center" border="4" bgcolor="#ff0000" frame="border" cellpadding="2" cellspacing="2" summary="HTML Control Table" rules="all" width="680"> +<caption align="top">Table Caption</caption> +<thead align="center" valign="middle"> +<tr align="center" bgcolor="#00FFFF" valign="middle" char="*" charoff="1"> +<th id="header-1">Employee Id</th> +<th id="header-2" abbr="maiden" axis="center" align="center" bgcolor="#00FFFF" colspan="1" height="50" nowrap="nowrap" rowspan="1" scope="col" headers="header-1" valign="middle" width="100">Employee Name</th> +<th>Position</th> +<th>Salary</th> +<th>Gender</th> +<th>Address</th> +</tr> +</thead> +<tfoot align="center" valign="middle"> +<tr> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +</tr> +</tfoot> +<tbody align="center" valign="middle"> +<tr> +<td axis="center" id="Table-3" abbr="maiden2" align="center" bgcolor="#FF0000" colspan="1" height="50" nowrap="nowrap" rowspan="1" scope="col" headers="header-2" valign="middle" width="175">EMP0001</td> +<td headers="header-2">Margaret Martin</td> +<td>Accountant</td> +<td>56,000</td> +<td>Female</td> +<td>1230 North Ave. Dallas, Texas 98551</td> +</tr> +<tr> +<td>EMP0002</td> +<td>Martha Raynolds</td> +<td>Secretary</td> +<td>35,000</td> +<td>Female</td> +<td>1900 Dallas Road Dallas, Texas 98554</td> +</tr> +</tbody> +</table> +</body> +</html> + + diff --git a/test/testcases/tests/level1/html/files/tablesection.html b/test/testcases/tests/level1/html/files/tablesection.html new file mode 100644 index 0000000..0c1a5f7 --- /dev/null +++ b/test/testcases/tests/level1/html/files/tablesection.html @@ -0,0 +1,62 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - TABLESECTION</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<TABLE ALIGN="center" SUMMARY="Table 1"> +<TBODY> +<TR> +<TH>Id</TH> +<TH>Name</TH> +<TH>Position</TH> +<TH>Salary</TH> +</TR> +</TBODY> +</TABLE> +<TABLE ID="table-1" ALIGN="center" BORDER="4" BGCOLOR="#ff0000" FRAME="border" CELLPADDING="2" CELLSPACING="2" SUMMARY="HTML Control Table" RULES="all" WIDTH="680"> +<CAPTION ALIGN="top">Table Caption</CAPTION> +<THEAD ALIGN="center" VALIGN="middle" CHAR="*" CHAROFF="1"> +<TR ALIGN="center" BGCOLOR="#00FFFF" VALIGN="middle" CHAR="*" CHAROFF="1"> +<TH ID="header-1">Employee Id</TH> +<TH ID="header-2" ABBR="maiden" AXIS="center" ALIGN="center" BGCOLOR="#00FFFF" COLSPAN="1" HEIGHT="50" NOWRAP="nowrap" ROWSPAN="1" SCOPE="col" HEADERS="header-1" VALIGN="middle" WIDTH="100">Employee Name</TH> +<TH>Position</TH> +<TH>Salary</TH> +<TH>Gender</TH> +<TH>Address</TH> +</TR> +</THEAD> +<TFOOT ALIGN="center" VALIGN="middle" CHAR="+" CHAROFF="2"> +<TR> +<TH>next page ...</TH> +<TH>next page ...</TH> +<TH>next page ...</TH> +<TH>next page ...</TH> +<TH>next page ...</TH> +<TH>next page ...</TH> +</TR> +</TFOOT> +<TBODY ALIGN="center" VALIGN="middle" CHAR="$" CHAROFF="3"> +<TR> +<TD AXIS="center" ID="Table-3" ABBR="maiden2" ALIGN="center" BGCOLOR="#FF0000" COLSPAN="1" HEIGHT="50" NOWRAP="nowrap" ROWSPAN="1" SCOPE="col" HEADERS="header-2" VALIGN="middle" WIDTH="175">EMP0001</TD> +<TD HEADERS="header-2">Margaret Martin</TD> +<TD>Accountant</TD> +<TD>56,000</TD> +<TD>Female</TD> +<TD>1230 North Ave. Dallas, Texas 98551</TD> +</TR> +<TR> +<TD>EMP0002</TD> +<TD>Martha Raynolds</TD> +<TD>Secretary</TD> +<TD>35,000</TD> +<TD>Female</TD> +<TD>1900 Dallas Road Dallas, Texas 98554</TD> +</TR> +</TBODY> +</TABLE> +</BODY> +</HTML> + + diff --git a/test/testcases/tests/level1/html/files/tablesection.xhtml b/test/testcases/tests/level1/html/files/tablesection.xhtml new file mode 100644 index 0000000..3498650 --- /dev/null +++ b/test/testcases/tests/level1/html/files/tablesection.xhtml @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - TABLESECTION</title> +</head> +<body onload="parent.loadComplete()"> +<table align="center" summary="Table 1"> +<tbody> +<tr> +<th>Id</th> +<th>Name</th> +<th>Position</th> +<th>Salary</th> +</tr> +</tbody> +</table> +<table id="table-1" align="center" border="4" bgcolor="#ff0000" frame="border" cellpadding="2" cellspacing="2" summary="HTML Control Table" rules="all" width="680"> +<caption align="top">Table Caption</caption> +<thead align="center" valign="middle" char="*" charoff="1"> +<tr align="center" bgcolor="#00FFFF" valign="middle" char="*" charoff="1"> +<th id="header-1">Employee Id</th> +<th id="header-2" abbr="maiden" axis="center" align="center" bgcolor="#00FFFF" colspan="1" height="50" nowrap="nowrap" rowspan="1" scope="col" headers="header-1" valign="middle" width="100">Employee Name</th> +<th>Position</th> +<th>Salary</th> +<th>Gender</th> +<th>Address</th> +</tr> +</thead> +<tfoot align="center" valign="middle" char="+" charoff="2"> +<tr> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +</tr> +</tfoot> +<tbody align="center" valign="middle" char="$" charoff="3"> +<tr> +<td axis="center" id="Table-3" abbr="maiden2" align="center" bgcolor="#FF0000" colspan="1" height="50" nowrap="nowrap" rowspan="1" scope="col" headers="header-2" valign="middle" width="175">EMP0001</td> +<td headers="header-2">Margaret Martin</td> +<td>Accountant</td> +<td>56,000</td> +<td>Female</td> +<td>1230 North Ave. Dallas, Texas 98551</td> +</tr> +<tr> +<td>EMP0002</td> +<td>Martha Raynolds</td> +<td>Secretary</td> +<td>35,000</td> +<td>Female</td> +<td>1900 Dallas Road Dallas, Texas 98554</td> +</tr> +</tbody> +</table> +</body> +</html> + + + diff --git a/test/testcases/tests/level1/html/files/tablesection.xml b/test/testcases/tests/level1/html/files/tablesection.xml new file mode 100644 index 0000000..3498650 --- /dev/null +++ b/test/testcases/tests/level1/html/files/tablesection.xml @@ -0,0 +1,65 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - TABLESECTION</title> +</head> +<body onload="parent.loadComplete()"> +<table align="center" summary="Table 1"> +<tbody> +<tr> +<th>Id</th> +<th>Name</th> +<th>Position</th> +<th>Salary</th> +</tr> +</tbody> +</table> +<table id="table-1" align="center" border="4" bgcolor="#ff0000" frame="border" cellpadding="2" cellspacing="2" summary="HTML Control Table" rules="all" width="680"> +<caption align="top">Table Caption</caption> +<thead align="center" valign="middle" char="*" charoff="1"> +<tr align="center" bgcolor="#00FFFF" valign="middle" char="*" charoff="1"> +<th id="header-1">Employee Id</th> +<th id="header-2" abbr="maiden" axis="center" align="center" bgcolor="#00FFFF" colspan="1" height="50" nowrap="nowrap" rowspan="1" scope="col" headers="header-1" valign="middle" width="100">Employee Name</th> +<th>Position</th> +<th>Salary</th> +<th>Gender</th> +<th>Address</th> +</tr> +</thead> +<tfoot align="center" valign="middle" char="+" charoff="2"> +<tr> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +<th>next page ...</th> +</tr> +</tfoot> +<tbody align="center" valign="middle" char="$" charoff="3"> +<tr> +<td axis="center" id="Table-3" abbr="maiden2" align="center" bgcolor="#FF0000" colspan="1" height="50" nowrap="nowrap" rowspan="1" scope="col" headers="header-2" valign="middle" width="175">EMP0001</td> +<td headers="header-2">Margaret Martin</td> +<td>Accountant</td> +<td>56,000</td> +<td>Female</td> +<td>1230 North Ave. Dallas, Texas 98551</td> +</tr> +<tr> +<td>EMP0002</td> +<td>Martha Raynolds</td> +<td>Secretary</td> +<td>35,000</td> +<td>Female</td> +<td>1900 Dallas Road Dallas, Texas 98554</td> +</tr> +</tbody> +</table> +</body> +</html> + + + diff --git a/test/testcases/tests/level1/html/files/textarea.html b/test/testcases/tests/level1/html/files/textarea.html new file mode 100644 index 0000000..b9aedc4 --- /dev/null +++ b/test/testcases/tests/level1/html/files/textarea.html @@ -0,0 +1,26 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - TEXTAREA</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<FORM ID="form1" ACCEPT-CHARSET="US-ASCII" ACTION="./files/getData.pl" METHOD="post"> +<P> +<TEXTAREA NAME="text1" COLS="20" ROWS="7" ACCESSKEY="c" TABINDEX="5">TEXTAREA1</TEXTAREA> +<INPUT TYPE="submit" NAME="submit1" VALUE="Submit1"/> +<INPUT TYPE="reset" NAME="reset1" VALUE="Reset1"/> +</P> +</FORM> +<P> +<TEXTAREA NAME="text2" COLS="50" ROWS="2" DISABLED="disabled">TEXTAREA2</TEXTAREA> +<INPUT TYPE="submit" NAME="submit2" VALUE="Submit2"/> +<INPUT TYPE="reset" NAME="reset2" VALUE="Reset2"/> +<TEXTAREA NAME="text2" COLS="50" ROWS="2" READONLY="readonly">TEXTAREA3</TEXTAREA> +<INPUT TYPE="submit" NAME="submit2" VALUE="Submit2"/> +<INPUT TYPE="reset" NAME="reset3" VALUE="Reset3"/> +</P> +</BODY> +</HTML> + + diff --git a/test/testcases/tests/level1/html/files/textarea.xhtml b/test/testcases/tests/level1/html/files/textarea.xhtml new file mode 100644 index 0000000..eb6ca48 --- /dev/null +++ b/test/testcases/tests/level1/html/files/textarea.xhtml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - TEXTAREA</title> +</head> +<body onload="parent.loadComplete()"> +<form id="form1" action="./files/getData.pl" method="post"> +<p> +<textarea name="text1" cols="20" rows="7" accesskey="c" tabindex="5">TEXTAREA1</textarea> +<input type="submit" name="submit1" value="Submit1"/> +<input type="reset" name="reset1" value="Reset1"/> +</p> +</form> +<p> +<textarea name="text2" cols="50" rows="2" disabled="disabled">TEXTAREA2</textarea> +<input type="submit" name="submit2" value="Submit2"/> +<input type="reset" name="reset2" value="Reset2"/> +<textarea name="text2" cols="50" rows="2" readonly="readonly">TEXTAREA3</textarea> +<input type="submit" name="submit3" value="Submit3"/> +<input type="reset" name="reset3" value="Reset3"/> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/textarea.xml b/test/testcases/tests/level1/html/files/textarea.xml new file mode 100644 index 0000000..eb6ca48 --- /dev/null +++ b/test/testcases/tests/level1/html/files/textarea.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - TEXTAREA</title> +</head> +<body onload="parent.loadComplete()"> +<form id="form1" action="./files/getData.pl" method="post"> +<p> +<textarea name="text1" cols="20" rows="7" accesskey="c" tabindex="5">TEXTAREA1</textarea> +<input type="submit" name="submit1" value="Submit1"/> +<input type="reset" name="reset1" value="Reset1"/> +</p> +</form> +<p> +<textarea name="text2" cols="50" rows="2" disabled="disabled">TEXTAREA2</textarea> +<input type="submit" name="submit2" value="Submit2"/> +<input type="reset" name="reset2" value="Reset2"/> +<textarea name="text2" cols="50" rows="2" readonly="readonly">TEXTAREA3</textarea> +<input type="submit" name="submit3" value="Submit3"/> +<input type="reset" name="reset3" value="Reset3"/> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/title.html b/test/testcases/tests/level1/html/files/title.html new file mode 100644 index 0000000..2078ee9 --- /dev/null +++ b/test/testcases/tests/level1/html/files/title.html @@ -0,0 +1,13 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - TITLE</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<P> +<BR/> +</P> +</BODY> +</HTML> + diff --git a/test/testcases/tests/level1/html/files/title.xhtml b/test/testcases/tests/level1/html/files/title.xhtml new file mode 100644 index 0000000..e8ec6b5 --- /dev/null +++ b/test/testcases/tests/level1/html/files/title.xhtml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - TITLE</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<br/> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/title.xml b/test/testcases/tests/level1/html/files/title.xml new file mode 100644 index 0000000..e8ec6b5 --- /dev/null +++ b/test/testcases/tests/level1/html/files/title.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" + "xhtml1-strict.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - TITLE</title> +</head> +<body onload="parent.loadComplete()"> +<p> +<br/> +</p> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/ulist.html b/test/testcases/tests/level1/html/files/ulist.html new file mode 100644 index 0000000..75498e2 --- /dev/null +++ b/test/testcases/tests/level1/html/files/ulist.html @@ -0,0 +1,36 @@ +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +<HTML> +<HEAD> +<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=utf-8"> +<TITLE>NIST DOM HTML Test - ULIST</TITLE> +</HEAD> +<BODY onload="parent.loadComplete()"> +<OL> +<LI>EMP0001 +<UL COMPACT="compact" TYPE="disc"> +<LI>Margaret Martin +<DL> +<DD>Accountant</DD> +<DD>56,000</DD> +<DD>Female</DD> +<DD>1230 North Ave. Dallas, Texas 98551</DD> +</DL> +</LI> +</UL> +</LI> +<LI>EMP0002 +<UL> +<LI>Martha Raynolds +<DL> +<DD>Secretary</DD> +<DD>35,000</DD> +<DD>Female</DD> +<DD>1900 Dallas Road. Dallas, Texas 98554</DD> +</DL> +</LI> +</UL> +</LI> +</OL> +</BODY> +</HTML> + diff --git a/test/testcases/tests/level1/html/files/ulist.xhtml b/test/testcases/tests/level1/html/files/ulist.xhtml new file mode 100644 index 0000000..fd9d7a5 --- /dev/null +++ b/test/testcases/tests/level1/html/files/ulist.xhtml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - ULIST</title> +</head> +<body onload="parent.loadComplete()"> +<ol> +<li>EMP0001 +<ul compact="compact" type="disc"> +<li>Margaret Martin +<dl> +<dd>Accountant</dd> +<dd>56,000</dd> +<dd>Female</dd> +<dd>1230 North Ave. Dallas, Texas 98551</dd> +</dl> +</li> +</ul> +</li> +<li>EMP0002 +<ul> +<li>Martha Raynolds +<dl> +<dd>Secretary</dd> +<dd>35,000</dd> +<dd>Female</dd> +<dd>1900 Dallas Road. Dallas, Texas 98554</dd> +</dl> +</li> +</ul> +</li> +</ol> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/ulist.xml b/test/testcases/tests/level1/html/files/ulist.xml new file mode 100644 index 0000000..fd9d7a5 --- /dev/null +++ b/test/testcases/tests/level1/html/files/ulist.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE html + PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" + "xhtml1-transitional.dtd"> +<html xmlns='http://www.w3.org/1999/xhtml'> +<head> +<title>NIST DOM HTML Test - ULIST</title> +</head> +<body onload="parent.loadComplete()"> +<ol> +<li>EMP0001 +<ul compact="compact" type="disc"> +<li>Margaret Martin +<dl> +<dd>Accountant</dd> +<dd>56,000</dd> +<dd>Female</dd> +<dd>1230 North Ave. Dallas, Texas 98551</dd> +</dl> +</li> +</ul> +</li> +<li>EMP0002 +<ul> +<li>Martha Raynolds +<dl> +<dd>Secretary</dd> +<dd>35,000</dd> +<dd>Female</dd> +<dd>1900 Dallas Road. Dallas, Texas 98554</dd> +</dl> +</li> +</ul> +</li> +</ol> +</body> +</html> + diff --git a/test/testcases/tests/level1/html/files/w3c_main.png b/test/testcases/tests/level1/html/files/w3c_main.png Binary files differnew file mode 100644 index 0000000..ac0ecd3 --- /dev/null +++ b/test/testcases/tests/level1/html/files/w3c_main.png diff --git a/test/testcases/tests/level1/html/hasFeature01.xml b/test/testcases/tests/level1/html/hasFeature01.xml new file mode 100644 index 0000000..5ac8b93 --- /dev/null +++ b/test/testcases/tests/level1/html/hasFeature01.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 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 "dom1.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="hasFeature01"> +<metadata> +<title>hasFeature01</title> +<creator>Curt Arnold</creator> +<description> +hasFeature("hTmL", null) should return true. +</description> +<date qualifier="created">2004-03-18</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-5CED94D7"/> +</metadata> +<var name="doc" type="Document"/> +<var name="domImpl" type="DOMImplementation"/> +<var name="version" type="DOMString" isNull="true"/> +<var name="state" type="boolean"/> +<implementation var="domImpl"/> +<hasFeature obj="domImpl" var="state" feature='"hTmL"' version="version"/> +<assertTrue actual="state" id="hasHTMLnull"/> +</test> diff --git a/test/testcases/tests/level1/html/index.htm b/test/testcases/tests/level1/html/index.htm new file mode 100644 index 0000000..9349596 --- /dev/null +++ b/test/testcases/tests/level1/html/index.htm @@ -0,0 +1,240 @@ +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" +"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> +<html +xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> +<head> +<meta http-equiv="Content-Type" content="text/html; +charset=us-ascii" /> +<title>Document Object Model (DOM) Conformance Test + Suites, Level 1 HTML</title> +<link type="text/css" rel="stylesheet" href="resources/activity-home.css" /> +<script type="text/javascript" +src="resources/toc.js"> +</script> +</head> + + +<body onload="init()"> +<p class="navbar" align="right"><a href="http://www.w3.org/"><img +align="left" src="resources/w3c_home.png" border="0" +alt="W3C" /></a><a href="http://www.nist.gov/"><img +src="resources/nist_home.gif" alt="National Institute of +Standards and Technology" height="45" width="231" align="left" +border="0" /></a><small><a href="http://www.w3.org/DOM/">About +DOM</a> . +<a href="http://www.w3.org/DOM/Activity">DOM Activity statement</a><br /> +<a href="http://www.w3.org/DOM/DOMTR">Technical Reports</a> . <a +href="http://www.w3.org/DOM/DOMTM">Technical +Materials</a><br /> +<a href="http://www.w3.org/DOM/Test/">Test Suites</a> . <a +href="http://www.w3.org/DOM/Test/Documents/DOMTSFAQ">Test Suites FAQ</a> . +<a href="http://www.w3.org/DOM/Test/MailingList">Mailing +Lists</a><br /> +Members only resource: <a href="http://www.w3.org/DOM/Group/">DOM Working +Group</a></small></p> + +<h1>DOM Conformance Test Suite, Level 1 HTML</h1> + +<div id="thisdoc"> +<h2>This document</h2> +</div> + +<p> +This document describes how to run the DOM Level 1 HTML Test Suite. It also includes pointers to relevant software as well as relevant resources. +</p> +<p>The DOM TS has been developed in accordance with the <a +href="http://www.w3.org/DOM/DOMTS-Process">DOM Conformance Test Suites Process Document</a>. For +additional information and to download other DOM Test Suites, visit the <a +href="http://www.w3.org/DOM/Test">DOM Conformance Test Suites page</a>.</p> + +<div id="overview"> +<h2>Overview</h2> +</div> + +<p> +The DOM Conformance Test Suite consist of a series of tests that have been generated from XML test descriptions, then transformed into the two official DOM +bindings, Java and ECMA. In order to run the test suite, we have provided the possibility to run the +tests using the <a href="http://www.junit.org">JUnit</a> and <a href="http://www.jsunit.net">JsUnit</a> testing frameworks, both included in this +distribution. +</p> +<p>The DOM Level 1 HTML TS was released on February 13, 2002.</p> + +<div id="latestVersion"> +<h2>Latest Version</h2> +</div> +<p>Download the <a +href="http://www.w3.org/DOM/Test/Downloads/DOMTSL1HTML">latest version</a> +of the DOM Level 1 HTML Test Suite.</p> + +<div id="distribution"> +<h2>Distribution</h2> +</div> +<p>This distribution is organized as follows:</p> +<table width="100%" border="0"> +<tr> + <td width="20%">index.html</td><td>This file</td> +</tr> +<tr> + <td><a href="dom1-html-matrix.html">dom1-html-matrix.html</a></td> + <td>A cross reference of the tests to the DOM 1 HTML Recommendation, pointers to the tests and documentation.</td> +</tr> +<tr> + <td><a href="ecmascript/jsunit/testRunner.html">ecmascript/jsunit/testRunner.html</a></td> + <td>A modified <a href="http://www.jsunit.net">JSUnit</a> test runner. JSUnit is licensed under the <a href="ecmascript/jsunit/docs/gnugpl.html">GNU Public License</a></td> +</tr> +<tr> + <td>ecmascript/jsunit/app, ecmascript/jsunit/docs, ecmascript/jsunit/images, ecmascript/jsunit/tests</td> + <td>JSUnit support files</td> +</tr> +<tr> + <td>ecmascript/level1/html</td> + <td>DOM tests for use with JSUnit</td> +</tr> +<tr> + <td>java/dom1-html.jar</td> + <td>DOM tests for Java implementations, includes source code.</td> +</tr> +<tr> + <td>java/junit-run.jar</td> + <td>A test framework adapter that supports running dom1-html.jar with the JUnit 3.7 test framework.</td> +</tr> +<tr> + <td>java/junit.jar</td> + <td><a href="http://www.junit.org">JUnit 3.7</a>. JUnit 3.7 is licensed under the <a href="java/junit-license.html">IBM Public License</a>.</td> +</tr> +<tr> + <td>tests/*.xml</td> + <td>Test definitions in XML.</td> +</tr> +<tr> + <td><a href="tests/dom1.dtd">tests/dom1.dtd</a></td> + <td>Document Type Definition for DOM 1 HTML tests.</td> +</tr> +<tr> + <td><a href="tests/dom1.xsd">tests/dom1.xsd</a></td> + <td>XML Schema for DOM 1 HTML tests.</td> +</tr> +<tr> + <td>tests/files/</td> + <td>Test documents</td> +</tr> +<tr> + <td>doxygen/</td> + <td>Documentation generated by <a href="http://www.doxygen.org">doxygen</a> from the generated Java code. Useful in diagnosing test failures. + Click <a href="doxygen/html/hierarchy.html">here</a> for a class hierarchy.</td> +</tr> +</table> + +<div id="runningECMA"> +<h2>Running the ECMAScript tests</h2> +</div> +<p>The DOM TS currently tests XML and SVG implementations of DOM Level 1 HTML. Later revisions will provide testing of HTML implementation conformance with DOM Level +1.</p> +<p>To run the ECMAScript tests, open the <a +href="ecmascript/jsunit/testRunner.html">JsUnit test runner</a> in the browser +you want to test, press the browse button and look for the file +"ecmascript/level1/html/alltests.html". +After that, press Run to run all DOM 1 tests compatible +with the implementation. If you choose to run individual tests, the +above procedure works similarly, just browse for the test you want to +run in the "ecmascript/level1/html" directory.</p> +<p>These tests have been run with Microsoft +Internet Explorer 5.0 and later for Microsoft Windows and +Mozilla 0.9.8 and Netscape Navigator 6.2 and later for Microsoft Windows, Linux and Apple OS X. +Use on Apple OS X required replacing colon (:) in the test case name with slashes (/).</p> +<p>To test the DOM implementation of the <a href="http://www.adobe.com/svg">Adobe SVG Viewer</a>, select +"ecmascript/level1/html/svg-alltests.html" and press Run.</p> +<p>For JsUnit reference, please visit the <a href="http://www.jsunit.net">JsUnit +home page</a>. JsUnit will provide output with indication on how many tests that were run, how many failed and +how many errors were found while running. The error log points to the actual test, so identifying +what you need to do in your implementation is simplified.</p> + +<div id="runningJava"> +<h2>Running the Java tests</h2> +</div> +<p>Running the Java tests will require placing a JAXP 1.1 compatible parser on the classpath or +placing a common JAXP 1.1 parser (<a href="http://xml.apache.org/crimson/index.html">Apache Xerces</a>, <a href="http://xml.apache.org/crimson/index.html">Apache Crimson</a>, <a href="http://otn.oracle.com/software/tech/xml/xdk_java/content.html">Oracle XML Developer Kit</a>, or <a href="http://www.gnu.org/software/classpathx/jaxp/">GNUJAXP</a>) in the java/ directory.</p> +<p>Running "java -jar dom1-html.jar" from the java/ directory will write to the console a summary of the parser under +test and the results of the tests run in two distinct configurations. The parser under test can +be selected by any mechanism supported by JAXP 1.1.</p> + +<p>The Java tests may also be run using from JUnit TestRunner's. To run +all tests against the default JAXP parser in a default configuration from the JUnit text user interface, run " +java -classpath dom1-html.jar junit.textui.TestRunner org.w3c.domts.level1.html.TestDefaultParser". +The run the Swing or AWT user interfaces, replace "textui" with "swingui" or "awtui" and add "-noloading" before the +test case to not use JUnit's custom ClassLoader, for example, "java -classpath dom1-html.jar +junit.swingui.TestRunner -noloading org.w3c.domts.level1.html.TestDefaultParser"</p> + +<p>Running "java -jar junit-run.jar" will launch the JUnit SwingUI without the custom ClassLoader.</p> + +<p>The following TestSuite's are provided for use within JUnit TestRunner's. These provide +the only mechanism for testing implementations that do not support JAXP 1.1 such as Batik or +DOM4J.</p> +<table border="0" width="100%"> +<tr><td width="20%">org.w3c.domts.level1.html.TestBatik</td><td>Tests the <a href="http://xml.apache.org/batik">Apache Batik</a> SVG project (currently fails loading test documents).</td></tr> +<tr><td>org.w3c.domts.level1.html.TestCrimson</td><td>Tests the Apache Crimson Parser in the default configuration.</td></tr> +<tr><td>org.w3c.domts.level1.html.TestCrimsonAltConfig</td><td>Tests the Apache Crimson Parser in an alternative configuration.</td></tr> +<tr><td>org.w3c.domts.level1.html.TestDefaultParser</td><td>Tests the current JAXP 1.1 Parser in the default configuration.</td></tr> +<tr><td>org.w3c.domts.level1.html.TestDefaultParserAltConfig</td><td>Tests the current JAXP 1.1 Parser in an alternative configuration.</td></tr> +<tr><td>org.w3c.domts.level1.html.TestDOM4J</td><td>Tests <a href="http://www.dom4j.org">DOM4J</a>.</td></tr> +<tr><td>org.w3c.domts.level1.html.TestGNUJAXP</td><td>Tests the GNUJAXP Parser in the default configuration.</td></tr> +<tr><td>org.w3c.domts.level1.html.TestGNUJAXPAltConfig</td><td>Tests the GNUJAXP Parser in an alternative configuration.</td></tr> +<tr><td>org.w3c.domts.level1.html.TestOracle</td><td>Tests the Oracle XML Parser in the default configuration.</td></tr> +<tr><td>org.w3c.domts.level1.html.TestOracleAltConfig</td><td>Tests the Oracle XML Parser in an alternative configuration.</td></tr> +<tr><td>org.w3c.domts.level1.html.TestXerces</td><td>Tests the Apache Xerces Parser in the default configuration.</td></tr> +<tr><td>org.w3c.domts.level1.html.TestXercesAltConfig</td><td>Tests the Apache Xerces Parser in an alternative configuration.</td></tr> +</table> + + + +<div id="feedback"> +<h2>Feedback</h2> +</div> +<p>We look forward to your comments. The DOM TS Group communicates primarily through the <a href="mailto:www-dom-ts@w3.org">DOM TS mailing list</a> (<a +href="http://lists.w3.org/Archives/Public/www-dom-ts/">archive</a>).</p> + + +<div id="copyright"> +<h2>Copyright</h2> +</div> +<p>Tests in this table are released under the <a +href="http://www.w3.org/Consortium/Legal/copyright-software-19980720.html">W3C +Software Copyright Notice and license</a>:<br /><a +href="resources/COPYRIGHT.html">Copyright</a> (c) +2002 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.<br />See W3C License <a href="http://www.w3.org/Consortium/Legal/">http://www.w3.org/Consortium/Legal/</a> for more +details.</p> + + + +<div id="Acknowledgments"> +<h2>Acknowledgments</h2> +</div> + +<p>The DOM TS was jointly launched by the <a href="www.w3.org">W3C</a> and <a +href="www.nist.org">NIST</a>. It is, however, a publically developed and open +framework. Reaching the point of being able to finalize and release the DOM +TS would not have been possible were it not for the contribution from several +people in the developer community, especially <a +href="mailto:Curt.Arnold@hyprotech.com">Curt Arnold</a> and <a +href="mailto:fdrake@acm.org">Fred Drake</a>.</p> +<hr /> +<address> +<small><a href="mailto:mary.brady@nist.gov">Mary Brady</a>, <a +href="http://www.nist.gov">NIST</a> representative<br /> +<a href="mailto:dimitris@ontologicon.com">Dimitris Dimitriadis</a>, DOM TS + Representative for the <a href="Group/">W3C DOM Working Group</a> <br /> +<a href="/People/LeHegaret/">Philippe Le Hégaret</a>, DOM + Activity Lead<br /> +</small> +</address> +</body> +</html> + + diff --git a/test/testcases/tests/level1/html/metadata.xml b/test/testcases/tests/level1/html/metadata.xml new file mode 100644 index 0000000..6826b5c --- /dev/null +++ b/test/testcases/tests/level1/html/metadata.xml @@ -0,0 +1,15 @@ +<?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 metadata SYSTEM "dom1.dtd"> + +<metadata xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1"> +</metadata> diff --git a/test/testcases/tests/level1/html/object01.xml b/test/testcases/tests/level1/html/object01.xml new file mode 100644 index 0000000..52e053c --- /dev/null +++ b/test/testcases/tests/level1/html/object01.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="object01"> +<metadata> +<title>object01</title> +<creator>Netscape</creator> +<description> +Returns the FORM element containing this control. Returns null if this control is not within the context of a form. +The value of attribute form of the object element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-46094773"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vform" type="HTMLFormElement" /> +<var name="doc" type="Node"/> +<load var="doc" href="object" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<form interface="HTMLObjectElement" obj="testNode" var="vform"/> +<assertNull actual="vform" id="formLink"/> +</test> diff --git a/test/testcases/tests/level1/html/object02.xml b/test/testcases/tests/level1/html/object02.xml new file mode 100644 index 0000000..fc3c215 --- /dev/null +++ b/test/testcases/tests/level1/html/object02.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="object02"> +<metadata> +<title>object02</title> +<creator>Netscape</creator> +<description> +Aligns this object (vertically or horizontally) with respect to its surrounding text. +The value of attribute align of the object element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-16962097"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="valign" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="object" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<align interface="HTMLObjectElement" obj="testNode" var="valign"/> +<assertEquals actual="valign" expected='"middle"' id="alignLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/object03.xml b/test/testcases/tests/level1/html/object03.xml new file mode 100644 index 0000000..e2591ad --- /dev/null +++ b/test/testcases/tests/level1/html/object03.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="object03"> +<metadata> +<title>object03</title> +<creator>Netscape</creator> +<description> +Space-separated list of archives +The value of attribute archive of the object element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-47783837"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="varchive" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="object" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<archive interface="HTMLObjectElement" obj="testNode" var="varchive"/> +<assertEquals actual="varchive" expected='""' id="archiveLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/object04.xml b/test/testcases/tests/level1/html/object04.xml new file mode 100644 index 0000000..33a99a5 --- /dev/null +++ b/test/testcases/tests/level1/html/object04.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="object04"> +<metadata> +<title>object04</title> +<creator>Netscape</creator> +<description> +Width of border around the object. +The value of attribute border of the object element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-82818419"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vborder" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="object" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<border interface="HTMLObjectElement" obj="testNode" var="vborder"/> +<assertEquals actual="vborder" expected='"0"' id="borderLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/object05.xml b/test/testcases/tests/level1/html/object05.xml new file mode 100644 index 0000000..93e2967 --- /dev/null +++ b/test/testcases/tests/level1/html/object05.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="object05"> +<metadata> +<title>object05</title> +<creator>Netscape</creator> +<description> +Base URI for classid, data, and archive attributes. +The value of attribute codebase of the object element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-25709136"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vcodebase" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="object" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<codeBase interface="HTMLObjectElement" obj="testNode" var="vcodebase"/> +<assertEquals actual="vcodebase" expected='"http://xw2k.sdct.itl.nist.gov/brady/dom/"' id="codebaseLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/object06.xml b/test/testcases/tests/level1/html/object06.xml new file mode 100644 index 0000000..6f9e613 --- /dev/null +++ b/test/testcases/tests/level1/html/object06.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="object06"> +<metadata> +<title>object06</title> +<creator>Netscape</creator> +<description> +A URI specifying the location of the object's data. +The value of attribute data of the object element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-81766986"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vdata" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="object" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<data interface="HTMLObjectElement" obj="testNode" var="vdata"/> +<assertEquals actual="vdata" expected='"./pix/logo.gif"' id="dataLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/object07.xml b/test/testcases/tests/level1/html/object07.xml new file mode 100644 index 0000000..aff1fcc --- /dev/null +++ b/test/testcases/tests/level1/html/object07.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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="object07"> +<metadata> +<title>object07</title> +<creator>Netscape</creator> +<description> +The value of attribute height of the object element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-88925838"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vheight" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="object" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<height interface="HTMLObjectElement" obj="testNode" var="vheight"/> +<assertEquals actual="vheight" expected='"60"' id="heightLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/object08.xml b/test/testcases/tests/level1/html/object08.xml new file mode 100644 index 0000000..f9f9055 --- /dev/null +++ b/test/testcases/tests/level1/html/object08.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="object08"> +<metadata> +<title>object08</title> +<creator>Netscape</creator> +<description> +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. + + This test is incompatible with L2 HTML implementations due to a change in the type of the attribute. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-17085376"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=504"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vhspace" type="DOMString" /> +<var name="doc" type="Document"/> +<var name="domImpl" type="DOMImplementation"/> +<var name="hasHTML2" type="boolean"/> +<load var="doc" href="object" willBeModified="false"/> +<implementation var="domImpl" obj="doc"/> +<hasFeature var="hasHTML2" obj="domImpl" feature='"HTML"' version='"2.0"'/> +<if><isFalse value="hasHTML2"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<hspace interface="HTMLObjectElement" obj="testNode" var="vhspace"/> +<assertEquals actual="vhspace" expected='"0"' id="hspaceLink" ignoreCase="false"/> +</if> +</test> diff --git a/test/testcases/tests/level1/html/object09.xml b/test/testcases/tests/level1/html/object09.xml new file mode 100644 index 0000000..4b9d336 --- /dev/null +++ b/test/testcases/tests/level1/html/object09.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="object09"> +<metadata> +<title>object09</title> +<creator>Netscape</creator> +<description> +Message to render while loading the object. +The value of attribute standby of the object element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-25039673"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vstandby" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="object" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<standby interface="HTMLObjectElement" obj="testNode" var="vstandby"/> +<assertEquals actual="vstandby" expected='"Loading Image ..."' id="standbyLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/object10.xml b/test/testcases/tests/level1/html/object10.xml new file mode 100644 index 0000000..7dd5741 --- /dev/null +++ b/test/testcases/tests/level1/html/object10.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="object10"> +<metadata> +<title>object10</title> +<creator>Netscape</creator> +<description> +Index that represents the element's position in the tabbing order. +The value of attribute tabIndex of the object element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-27083787"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vtabindex" type="int" /> +<var name="doc" type="Node"/> +<load var="doc" href="object" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<tabIndex interface="HTMLObjectElement" obj="testNode" var="vtabindex"/> +<assertEquals actual="vtabindex" expected="0" id="tabIndexLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/object11.xml b/test/testcases/tests/level1/html/object11.xml new file mode 100644 index 0000000..332ca50 --- /dev/null +++ b/test/testcases/tests/level1/html/object11.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="object11"> +<metadata> +<title>object11</title> +<creator>Netscape</creator> +<description> +Content type for data downloaded via data attribute. +The value of attribute type of the object element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-91665621"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vtype" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="object" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<type interface="HTMLObjectElement" obj="testNode" var="vtype"/> +<assertEquals actual="vtype" expected='"image/gif"' id="typeLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/object12.xml b/test/testcases/tests/level1/html/object12.xml new file mode 100644 index 0000000..4af4455 --- /dev/null +++ b/test/testcases/tests/level1/html/object12.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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="object12"> +<metadata> +<title>object12</title> +<creator>Netscape</creator> +<description> +The value of attribute usemap of the object element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-6649772"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vusemap" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="object" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<useMap interface="HTMLObjectElement" obj="testNode" var="vusemap"/> +<assertEquals actual="vusemap" expected='"#DivLogo-map"' id="useMapLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/object13.xml b/test/testcases/tests/level1/html/object13.xml new file mode 100644 index 0000000..7782e4e --- /dev/null +++ b/test/testcases/tests/level1/html/object13.xml @@ -0,0 +1,49 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="object13"> +<metadata> +<title>object13</title> +<creator>Netscape</creator> +<description> +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. + + This test is incompatible with L2 HTML implementations due to a change in the type of the attribute. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-8682483"/> +<subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=504"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vvspace" type="DOMString" /> +<var name="doc" type="Document"/> +<var name="domImpl" type="DOMImplementation"/> +<var name="hasHTML2" type="boolean"/> +<load var="doc" href="object" willBeModified="false"/> +<implementation var="domImpl" obj="doc"/> +<hasFeature var="hasHTML2" obj="domImpl" feature='"HTML"' version='"2.0"'/> +<if><isFalse value="hasHTML2"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<vspace interface="HTMLObjectElement" obj="testNode" var="vvspace"/> +<assertEquals actual="vvspace" expected='"0"' id="vspaceLink" ignoreCase="false"/> +</if> +</test> diff --git a/test/testcases/tests/level1/html/object14.xml b/test/testcases/tests/level1/html/object14.xml new file mode 100644 index 0000000..0a8fce5 --- /dev/null +++ b/test/testcases/tests/level1/html/object14.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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="object14"> +<metadata> +<title>object14</title> +<creator>Netscape</creator> +<description> +The value of attribute width of the object element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-38538620"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vwidth" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="object" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<width interface="HTMLObjectElement" obj="testNode" var="vwidth"/> +<assertEquals actual="vwidth" expected='"550"' id="widthLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/object15.xml b/test/testcases/tests/level1/html/object15.xml new file mode 100644 index 0000000..37182c0 --- /dev/null +++ b/test/testcases/tests/level1/html/object15.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="object15"> +<metadata> +<title>object15</title> +<creator>Netscape</creator> +<description> +Content type for data downloaded via classid attribute. +The value of attribute codetype of the object element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-19945008"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vcodetype" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="object" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"object"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<codeType interface="HTMLObjectElement" obj="testNode" var="vcodetype"/> +<assertEquals actual="vcodetype" expected='"image/gif"' id="codeTypeLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table01.xml b/test/testcases/tests/level1/html/table01.xml new file mode 100644 index 0000000..4cee6f7 --- /dev/null +++ b/test/testcases/tests/level1/html/table01.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table01"> +<metadata> +<title>table01</title> +<creator>Netscape</creator> +<description> +Returns the table's CAPTION, or void if none exists. +The value of attribute caption of the table element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-14594520"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vcaption" type="Node"/> +<var name="doc" type="Node"/> +<load var="doc" href="table1" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<caption interface="HTMLTableElement" obj="testNode" var="vcaption"/> +<assertNull actual="vcaption" id="captionLink"/> +</test> diff --git a/test/testcases/tests/level1/html/table02.xml b/test/testcases/tests/level1/html/table02.xml new file mode 100644 index 0000000..2433751 --- /dev/null +++ b/test/testcases/tests/level1/html/table02.xml @@ -0,0 +1,42 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table02"> +<metadata> +<title>table02</title> +<creator>Netscape</creator> +<description> +Caption alignment with respect to the table. +The value of attribute align of the tablecaption element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-14594520"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vcaption" type="HTMLTableCaptionElement" /> +<var name="valign" type="DOMString"/> +<var name="doc" type="Node"/> +<load var="doc" href="tablesection" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<caption interface="HTMLTableElement" obj="testNode" var="vcaption"/> +<align interface="HTMLTableCaptionElement" obj="vcaption" var="valign"/> +<assertEquals actual="valign" expected='"top"' id="alignLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table03.xml b/test/testcases/tests/level1/html/table03.xml new file mode 100644 index 0000000..b8c3ef6 --- /dev/null +++ b/test/testcases/tests/level1/html/table03.xml @@ -0,0 +1,42 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table03"> +<metadata> +<title>table03</title> +<creator>Netscape</creator> +<description> +Alignment character for cells in a column. +The value of attribute ch of the tablesection element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-9530944"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vsection" type="HTMLTableSectionElement" /> +<var name="vch" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablesection" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<tHead interface="HTMLTableElement" obj="testNode" var="vsection"/> +<ch interface="HTMLTableSectionElement" obj="vsection" var="vch"/> +<assertEquals actual="vch" expected='"*"' id="chLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table04.xml b/test/testcases/tests/level1/html/table04.xml new file mode 100644 index 0000000..2d4fcf8 --- /dev/null +++ b/test/testcases/tests/level1/html/table04.xml @@ -0,0 +1,42 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table04"> +<metadata> +<title>table04</title> +<creator>Netscape</creator> +<description> +Horizontal alignment of data in cells. +The value of attribute align of the tablesection element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-9530944"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vsection" type="HTMLTableSectionElement" /> +<var name="valign" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablesection" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<tHead interface="HTMLTableElement" obj="testNode" var="vsection"/> +<align interface="HTMLTableSectionElement" obj="vsection" var="valign"/> +<assertEquals actual="valign" expected='"center"' id="alignLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table06.xml b/test/testcases/tests/level1/html/table06.xml new file mode 100644 index 0000000..3d461f6 --- /dev/null +++ b/test/testcases/tests/level1/html/table06.xml @@ -0,0 +1,42 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table06"> +<metadata> +<title>table06</title> +<creator>Netscape</creator> +<description> +Vertical alignment of data in cells. +The value of attribute valign of the tablesection element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-64197097"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vsection" type="HTMLTableSectionElement" /> +<var name="vvAlign" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablesection" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<tFoot interface="HTMLTableElement" obj="testNode" var="vsection"/> +<vAlign interface="HTMLTableSectionElement" obj="vsection" var="vvAlign"/> +<assertEquals actual="vvAlign" expected='"middle"' id="vAlignLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table07.xml b/test/testcases/tests/level1/html/table07.xml new file mode 100644 index 0000000..4a04d77 --- /dev/null +++ b/test/testcases/tests/level1/html/table07.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table07"> +<metadata> +<title>table07</title> +<creator>Netscape</creator> +<description> +The collection of rows in this table section. +The value of attribute rows of the tablesection element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-64197097"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vsection" type="HTMLTableSectionElement" /> +<var name="vcollection" type="HTMLCollection" /> +<var name="vrows" type="int" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablesection" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<tFoot interface="HTMLTableElement" obj="testNode" var="vsection"/> +<rows interface="HTMLTableSectionElement" obj="vsection" var="vcollection"/> +<length interface="HTMLCollection" obj="vcollection" var="vrows" /> +<assertEquals actual="vrows" expected="1" id="vrowsLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table08.xml b/test/testcases/tests/level1/html/table08.xml new file mode 100644 index 0000000..ea77b80 --- /dev/null +++ b/test/testcases/tests/level1/html/table08.xml @@ -0,0 +1,42 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table08"> +<metadata> +<title>table08</title> +<creator>Netscape</creator> +<description> +Horizontal alignment of data in cells. +The value of attribute align of the tablesection element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-64197097"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vsection" type="HTMLTableSectionElement" /> +<var name="valign" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablesection" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<tFoot interface="HTMLTableElement" obj="testNode" var="vsection"/> +<align interface="HTMLTableSectionElement" obj="vsection" var="valign"/> +<assertEquals actual="valign" expected='"center"' id="alignLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table09.xml b/test/testcases/tests/level1/html/table09.xml new file mode 100644 index 0000000..fcb9018 --- /dev/null +++ b/test/testcases/tests/level1/html/table09.xml @@ -0,0 +1,42 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table09"> +<metadata> +<title>table09</title> +<creator>Netscape</creator> +<description> +Vertical alignment of data in cells. +The value of attribute valign of the table element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-9530944"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vsection" type="HTMLTableSectionElement" /> +<var name="vvalign" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablesection" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<tHead interface="HTMLTableElement" obj="testNode" var="vsection"/> +<vAlign interface="HTMLTableSectionElement" obj="vsection" var="vvalign"/> +<assertEquals actual="vvalign" expected='"middle"' id="alignLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table10.xml b/test/testcases/tests/level1/html/table10.xml new file mode 100644 index 0000000..aa05594 --- /dev/null +++ b/test/testcases/tests/level1/html/table10.xml @@ -0,0 +1,42 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table10"> +<metadata> +<title>table10</title> +<creator>Netscape</creator> +<description> +Alignment character for cells in a column. +The value of attribute ch of the tablesection element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-64197097"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vsection" type="HTMLTableSectionElement" /> +<var name="vch" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablesection" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<tFoot interface="HTMLTableElement" obj="testNode" var="vsection"/> +<ch interface="HTMLTableSectionElement" obj="vsection" var="vch"/> +<assertEquals actual="vch" expected='"+"' id="chLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table12.xml b/test/testcases/tests/level1/html/table12.xml new file mode 100644 index 0000000..93e475b --- /dev/null +++ b/test/testcases/tests/level1/html/table12.xml @@ -0,0 +1,42 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table12"> +<metadata> +<title>table12</title> +<creator>Netscape</creator> +<description> +Offset of alignment character. +The value of attribute choff of the tablesection element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-64197097"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vsection" type="HTMLTableSectionElement" /> +<var name="vchoff" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablesection" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<tHead interface="HTMLTableElement" obj="testNode" var="vsection"/> +<chOff interface="HTMLTableSectionElement" obj="vsection" var="vchoff"/> +<assertEquals actual="vchoff" expected='"1"' id="choffLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table15.xml b/test/testcases/tests/level1/html/table15.xml new file mode 100644 index 0000000..89455c3 --- /dev/null +++ b/test/testcases/tests/level1/html/table15.xml @@ -0,0 +1,44 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table15"> +<metadata> +<title>table15</title> +<creator>Netscape</creator> +<description> +The collection of rows in this table section. +The value of attribute rows of the tablesection element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-64197097"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vsection" type="HTMLTableSectionElement" /> +<var name="vcollection" type="HTMLCollection" /> +<var name="vrows" type="int" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablesection" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<tHead interface="HTMLTableElement" obj="testNode" var="vsection"/> +<rows interface="HTMLTableSectionElement" obj="vsection" var="vcollection"/> +<length interface="HTMLCollection" obj="vcollection" var="vrows" /> +<assertEquals actual="vrows" expected="1" id="vrowsLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table17.xml b/test/testcases/tests/level1/html/table17.xml new file mode 100644 index 0000000..7223562 --- /dev/null +++ b/test/testcases/tests/level1/html/table17.xml @@ -0,0 +1,42 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table17"> +<metadata> +<title>table17</title> +<creator>Netscape</creator> +<description> +Offset of alignment character. +The value of attribute chOff of the tablesection element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-64197097"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vsection" type="HTMLTableSectionElement" /> +<var name="vchoff" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablesection" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="2" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<tFoot interface="HTMLTableElement" obj="testNode" var="vsection"/> +<chOff interface="HTMLTableSectionElement" obj="vsection" var="vchoff"/> +<assertEquals actual="vchoff" expected='"2"' id="choffLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table18.xml b/test/testcases/tests/level1/html/table18.xml new file mode 100644 index 0000000..db8c161 --- /dev/null +++ b/test/testcases/tests/level1/html/table18.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table18"> +<metadata> +<title>table18</title> +<creator>Netscape</creator> +<description> +The index of this cell in the row. +The value of attribute cellIndex of the tablecell element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-80748363"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vcindex" type="int" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablecell" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/> +<assertSize collection="nodeList" size="4" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<cellIndex interface="HTMLTableCellElement" obj="testNode" var="vcindex"/> +<assertEquals actual="vcindex" expected="1" id="cellIndexLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table19.xml b/test/testcases/tests/level1/html/table19.xml new file mode 100644 index 0000000..e88be88 --- /dev/null +++ b/test/testcases/tests/level1/html/table19.xml @@ -0,0 +1,41 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table19"> +<metadata> +<title>table19</title> +<creator>Netscape</creator> +<description> +Abbreviation for header cells. +The index of this cell in the row. +The value of attribute abbr of the tablecell element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-74444037"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vabbr" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablecell" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/> +<assertSize collection="nodeList" size="4" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<abbr interface="HTMLTableCellElement" obj="testNode" var="vabbr"/> +<assertEquals actual="vabbr" expected='"hd2"' id="abbrLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table20.xml b/test/testcases/tests/level1/html/table20.xml new file mode 100644 index 0000000..2205987 --- /dev/null +++ b/test/testcases/tests/level1/html/table20.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table20"> +<metadata> +<title>table20</title> +<creator>Netscape</creator> +<description> +Names group of related headers. +The value of attribute axis of the tablecell element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-76554418"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vaxis" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablecell" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/> +<assertSize collection="nodeList" size="4" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<axis interface="HTMLTableCellElement" obj="testNode" var="vaxis"/> +<assertEquals actual="vaxis" expected='"center"' id="axisLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table21.xml b/test/testcases/tests/level1/html/table21.xml new file mode 100644 index 0000000..fa22103 --- /dev/null +++ b/test/testcases/tests/level1/html/table21.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table21"> +<metadata> +<title>table21</title> +<creator>Netscape</creator> +<description> +Horizontal alignment of data in cell. +The value of attribute align of the tablecell element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-98433879"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="valign" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablecell" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/> +<assertSize collection="nodeList" size="4" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<align interface="HTMLTableCellElement" obj="testNode" var="valign"/> +<assertEquals actual="valign" expected='"center"' id="alignLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table22.xml b/test/testcases/tests/level1/html/table22.xml new file mode 100644 index 0000000..7c097b4 --- /dev/null +++ b/test/testcases/tests/level1/html/table22.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table22"> +<metadata> +<title>table22</title> +<creator>Netscape</creator> +<description> +Cell background color. +The value of attribute bgColor of the tablecell element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-88135431"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vbgcolor" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablecell" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/> +<assertSize collection="nodeList" size="4" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<bgColor interface="HTMLTableCellElement" obj="testNode" var="vbgcolor"/> +<assertEquals actual="vbgcolor" expected='"#FF0000"' id="bgcolorLink" ignoreCase="true"/> +</test> diff --git a/test/testcases/tests/level1/html/table23.xml b/test/testcases/tests/level1/html/table23.xml new file mode 100644 index 0000000..4ea8ace --- /dev/null +++ b/test/testcases/tests/level1/html/table23.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table23"> +<metadata> +<title>table23</title> +<creator>Netscape</creator> +<description> +Alignment character for cells in a column. +The value of attribute char of the tablecell element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-30914780"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vch" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablecell" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/> +<assertSize collection="nodeList" size="4" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<ch interface="HTMLTableCellElement" obj="testNode" var="vch"/> +<assertEquals actual="vch" expected='":"' id="chLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table24.xml b/test/testcases/tests/level1/html/table24.xml new file mode 100644 index 0000000..7606917 --- /dev/null +++ b/test/testcases/tests/level1/html/table24.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table24"> +<metadata> +<title>table24</title> +<creator>Netscape</creator> +<description> +offset of alignment character. +The value of attribute chOff of the tablecell element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-20144310"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vchoff" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablecell" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/> +<assertSize collection="nodeList" size="4" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<chOff interface="HTMLTableCellElement" obj="testNode" var="vchoff"/> +<assertEquals actual="vchoff" expected='"1"' id="chOffLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table25.xml b/test/testcases/tests/level1/html/table25.xml new file mode 100644 index 0000000..b8e10dd --- /dev/null +++ b/test/testcases/tests/level1/html/table25.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table25"> +<metadata> +<title>table25</title> +<creator>Netscape</creator> +<description> +Number of columns spanned by cell. +The value of attribute colspan of the tablecell element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-84645244"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vcolspan" type="int" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablecell" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/> +<assertSize collection="nodeList" size="4" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<colSpan interface="HTMLTableCellElement" obj="testNode" var="vcolspan"/> +<assertEquals actual="vcolspan" expected="1" id="colSpanLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table26.xml b/test/testcases/tests/level1/html/table26.xml new file mode 100644 index 0000000..9f09d4f --- /dev/null +++ b/test/testcases/tests/level1/html/table26.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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table26"> +<metadata> +<title>table26</title> +<creator>Netscape</creator> +<description> +The value of attribute height of the tablecell element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-83679212"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vheight" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablecell" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/> +<assertSize collection="nodeList" size="4" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<height interface="HTMLTableCellElement" obj="testNode" var="vheight"/> +<assertEquals actual="vheight" expected='"50"' id="heightLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table27.xml b/test/testcases/tests/level1/html/table27.xml new file mode 100644 index 0000000..e0dc78d --- /dev/null +++ b/test/testcases/tests/level1/html/table27.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table27"> +<metadata> +<title>table27</title> +<creator>Netscape</creator> +<description> +Suppress word wrapping. +The value of attribute nowrap of the tablecell element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-62922045"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vnowrap" type="boolean" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablecell" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/> +<assertSize collection="nodeList" size="4" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<noWrap interface="HTMLTableCellElement" obj="testNode" var="vnowrap"/> +<assertTrue actual="vnowrap" id="nowrapLink"/> +</test> diff --git a/test/testcases/tests/level1/html/table28.xml b/test/testcases/tests/level1/html/table28.xml new file mode 100644 index 0000000..d445a1c --- /dev/null +++ b/test/testcases/tests/level1/html/table28.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table28"> +<metadata> +<title>table28</title> +<creator>Netscape</creator> +<description> +Number of rows spanned by cell. +The value of attribute rowspan of the tablecell element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-48237625"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vrowspan" type="int" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablecell" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/> +<assertSize collection="nodeList" size="4" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<rowSpan interface="HTMLTableCellElement" obj="testNode" var="vrowspan"/> +<assertEquals actual="vrowspan" expected="1" id="rowSpanLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table29.xml b/test/testcases/tests/level1/html/table29.xml new file mode 100644 index 0000000..ae483d4 --- /dev/null +++ b/test/testcases/tests/level1/html/table29.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table29"> +<metadata> +<title>table29</title> +<creator>Netscape</creator> +<description> +Scope covered by header cells. +The value of attribute scope of the tablecell element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-36139952"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vscope" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablecell" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/> +<assertSize collection="nodeList" size="4" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<scope interface="HTMLTableCellElement" obj="testNode" var="vscope"/> +<assertEquals actual="vscope" expected='"col"' id="scopeLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table30.xml b/test/testcases/tests/level1/html/table30.xml new file mode 100644 index 0000000..837be29 --- /dev/null +++ b/test/testcases/tests/level1/html/table30.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table30"> +<metadata> +<title>table30</title> +<creator>Netscape</creator> +<description> +List of id attribute values for header cells. +The value of attribute headers of the tablecell element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-89104817"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vheaders" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablecell" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/> +<assertSize collection="nodeList" size="4" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<headers interface="HTMLTableCellElement" obj="testNode" var="vheaders"/> +<assertEquals actual="vheaders" expected='"header-3"' id="headersLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table31.xml b/test/testcases/tests/level1/html/table31.xml new file mode 100644 index 0000000..f5c3fa6 --- /dev/null +++ b/test/testcases/tests/level1/html/table31.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table31"> +<metadata> +<title>table31</title> +<creator>Netscape</creator> +<description> +Vertical alignment of data in cell. +The value of attribute valign of the tablecell element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-58284221"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vvalign" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablecell" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/> +<assertSize collection="nodeList" size="4" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<vAlign interface="HTMLTableCellElement" obj="testNode" var="vvalign"/> +<assertEquals actual="vvalign" expected='"middle"' id="vAlignLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table32.xml b/test/testcases/tests/level1/html/table32.xml new file mode 100644 index 0000000..cf7e0cd --- /dev/null +++ b/test/testcases/tests/level1/html/table32.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table32"> +<metadata> +<title>table32</title> +<creator>Netscape</creator> +<description> +cell width. +The value of attribute width of the table element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-27480795"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vwidth" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablecell" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"td"'/> +<assertSize collection="nodeList" size="4" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<width interface="HTMLTableCellElement" obj="testNode" var="vwidth"/> +<assertEquals actual="vwidth" expected='"175"' id="vwidthLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table33.xml b/test/testcases/tests/level1/html/table33.xml new file mode 100644 index 0000000..5c0e447 --- /dev/null +++ b/test/testcases/tests/level1/html/table33.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table33"> +<metadata> +<title>table33</title> +<creator>Netscape</creator> +<description> +Specifies the table's position with respect to the rest of the document. +The value of attribute align of the table element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-23180977"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="valign" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="table" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<align interface="HTMLTableElement" obj="testNode" var="valign"/> +<assertEquals actual="valign" expected='"center"' id="alignLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table34.xml b/test/testcases/tests/level1/html/table34.xml new file mode 100644 index 0000000..07443ef --- /dev/null +++ b/test/testcases/tests/level1/html/table34.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table34"> +<metadata> +<title>table34</title> +<creator>Netscape</creator> +<description> +The width of the border around the table. +The value of attribute border of the table element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-50969400"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vborder" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="table" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<border interface="HTMLTableElement" obj="testNode" var="vborder"/> +<assertEquals actual="vborder" expected='"4"' id="borderLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table35.xml b/test/testcases/tests/level1/html/table35.xml new file mode 100644 index 0000000..32cce60 --- /dev/null +++ b/test/testcases/tests/level1/html/table35.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table35"> +<metadata> +<title>table35</title> +<creator>Netscape</creator> +<description> +Cell background color. +The value of attribute bgcolor of the table element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-83532985"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vbgcolor" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="table" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<bgColor interface="HTMLTableElement" obj="testNode" var="vbgcolor"/> +<assertEquals actual="vbgcolor" expected='"#ff0000"' id="bgcolorLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table36.xml b/test/testcases/tests/level1/html/table36.xml new file mode 100644 index 0000000..2bdded8 --- /dev/null +++ b/test/testcases/tests/level1/html/table36.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table36"> +<metadata> +<title>table36</title> +<creator>Netscape</creator> +<description> +Specifies which external table borders to render. +The value of attribute frame of the table element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-64808476"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vframe" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="table" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<frame interface="HTMLTableElement" obj="testNode" var="vframe"/> +<assertEquals actual="vframe" expected='"border"' id="frameLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table37.xml b/test/testcases/tests/level1/html/table37.xml new file mode 100644 index 0000000..cdf5b73 --- /dev/null +++ b/test/testcases/tests/level1/html/table37.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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table37"> +<metadata> +<title>table37</title> +<creator>Netscape</creator> +<description> +Specifies the horizontal and vertical space between cell content and cell borders. The value of attribute cellpadding of the table element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-59162158"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vcellpadding" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="table" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<cellPadding interface="HTMLTableElement" obj="testNode" var="vcellpadding"/> +<assertEquals actual="vcellpadding" expected='"2"' id="cellpaddingLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table38.xml b/test/testcases/tests/level1/html/table38.xml new file mode 100644 index 0000000..fad8dfe --- /dev/null +++ b/test/testcases/tests/level1/html/table38.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table38"> +<metadata> +<title>table38</title> +<creator>Netscape</creator> +<description> +Specifies the horizontal and vertical separation between cells. +The value of attribute cellspacing of the table element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-68907883"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vcellspacing" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="table" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<cellSpacing interface="HTMLTableElement" obj="testNode" var="vcellspacing"/> +<assertEquals actual="vcellspacing" expected='"2"' id="cellspacingLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table39.xml b/test/testcases/tests/level1/html/table39.xml new file mode 100644 index 0000000..1fd66db --- /dev/null +++ b/test/testcases/tests/level1/html/table39.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table39"> +<metadata> +<title>table39</title> +<creator>Netscape</creator> +<description> +Supplementary description about the purpose or structure of a table. +The value of attribute summary of the table element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-44998528"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vsummary" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="table" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<summary interface="HTMLTableElement" obj="testNode" var="vsummary"/> +<assertEquals actual="vsummary" expected='"HTML Control Table"' id="summaryLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table40.xml b/test/testcases/tests/level1/html/table40.xml new file mode 100644 index 0000000..31a9763 --- /dev/null +++ b/test/testcases/tests/level1/html/table40.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table40"> +<metadata> +<title>table40</title> +<creator>Netscape</creator> +<description> +Specifies which internal table borders to render. +The value of attribute rules of the table element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-26347553"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vrules" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="table" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<rules interface="HTMLTableElement" obj="testNode" var="vrules"/> +<assertEquals actual="vrules" expected='"all"' id="rulesLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table41.xml b/test/testcases/tests/level1/html/table41.xml new file mode 100644 index 0000000..4030b09 --- /dev/null +++ b/test/testcases/tests/level1/html/table41.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table41"> +<metadata> +<title>table41</title> +<creator>Netscape</creator> +<description> +Specifies the desired table width. +The value of attribute width of the table element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-77447361"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vwidth" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="table" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"table"'/> +<assertSize collection="nodeList" size="3" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<width interface="HTMLTableElement" obj="testNode" var="vwidth"/> +<assertEquals actual="vwidth" expected='"680"' id="widthLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table42.xml b/test/testcases/tests/level1/html/table42.xml new file mode 100644 index 0000000..8fa86f1 --- /dev/null +++ b/test/testcases/tests/level1/html/table42.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table42"> +<metadata> +<title>table42</title> +<creator>Netscape</creator> +<description> +Horizontal alignment of data within cells of this row. +The value of attribute align of the tablerow element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-74098257"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="valign" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="table" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tr"'/> +<assertSize collection="nodeList" size="8" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<align interface="HTMLTableRowElement" obj="testNode" var="valign"/> +<assertEquals actual="valign" expected='"center"' id="alignLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table43.xml b/test/testcases/tests/level1/html/table43.xml new file mode 100644 index 0000000..ea9e5de --- /dev/null +++ b/test/testcases/tests/level1/html/table43.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table43"> +<metadata> +<title>table43</title> +<creator>Netscape</creator> +<description> +Background color for rows. +The value of attribute bgcolor of the tablerow element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-18161327"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vbgcolor" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="table" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tr"'/> +<assertSize collection="nodeList" size="8" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<bgColor interface="HTMLTableRowElement" obj="testNode" var="vbgcolor"/> +<assertEquals actual="vbgcolor" expected='"#00FFFF"' id="bgcolorLink" ignoreCase="true"/> +</test> diff --git a/test/testcases/tests/level1/html/table44.xml b/test/testcases/tests/level1/html/table44.xml new file mode 100644 index 0000000..a893f76 --- /dev/null +++ b/test/testcases/tests/level1/html/table44.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table44"> +<metadata> +<title>table44</title> +<creator>Netscape</creator> +<description> +Vertical alignment of data within cells of this row. +The value of attribute valign of the tablerow element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-90000058"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vvalign" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="table" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tr"'/> +<assertSize collection="nodeList" size="8" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<vAlign interface="HTMLTableRowElement" obj="testNode" var="vvalign"/> +<assertEquals actual="vvalign" expected='"middle"' id="valignLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table45.xml b/test/testcases/tests/level1/html/table45.xml new file mode 100644 index 0000000..b1717db --- /dev/null +++ b/test/testcases/tests/level1/html/table45.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table45"> +<metadata> +<title>table45</title> +<creator>Netscape</creator> +<description> +Alignment character for cells in a column. +The value of attribute ch of the tablerow element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-16230502"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vch" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablerow" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tr"'/> +<assertSize collection="nodeList" size="5" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<ch interface="HTMLTableRowElement" obj="testNode" var="vch"/> +<assertEquals actual="vch" expected='"*"' id="vchLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table46.xml b/test/testcases/tests/level1/html/table46.xml new file mode 100644 index 0000000..096b892 --- /dev/null +++ b/test/testcases/tests/level1/html/table46.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table46"> +<metadata> +<title>table46</title> +<creator>Netscape</creator> +<description> +Offset of alignment character. +The value of attribute choff of the tablerow element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-68207461"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vchoff" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablerow" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tr"'/> +<assertSize collection="nodeList" size="5" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="1"/> +<chOff interface="HTMLTableRowElement" obj="testNode" var="vchoff"/> +<assertEquals actual="vchoff" expected='"1"' id="choffLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table47.xml b/test/testcases/tests/level1/html/table47.xml new file mode 100644 index 0000000..4d8340b --- /dev/null +++ b/test/testcases/tests/level1/html/table47.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table47"> +<metadata> +<title>table47</title> +<creator>Netscape</creator> +<description> +The index of this row, relative to the entire table. +The value of attribute rowIndex of the table element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-67347567"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vrindex" type="int" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablerow" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"tr"'/> +<assertSize collection="nodeList" size="5" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="4"/> +<rowIndex interface="HTMLTableRowElement" obj="testNode" var="vrindex"/> +<assertEquals actual="vrindex" expected="2" id="rowIndexLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table48.xml b/test/testcases/tests/level1/html/table48.xml new file mode 100644 index 0000000..1910883 --- /dev/null +++ b/test/testcases/tests/level1/html/table48.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table48"> +<metadata> +<title>HTMLTableColElement align</title> +<creator>Netscape</creator> +<description> +Horizontal alignment of cell data in column. +The value of attribute align of the tablecol element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-74098257"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="valign" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablecol" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"col"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<align interface="HTMLTableColElement" obj="testNode" var="valign"/> +<assertEquals actual="valign" expected='"center"' id="alignLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table49.xml b/test/testcases/tests/level1/html/table49.xml new file mode 100644 index 0000000..1db690b --- /dev/null +++ b/test/testcases/tests/level1/html/table49.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table49"> +<metadata> +<title>table49</title> +<creator>Netscape</creator> +<description> +Alignment character for cells in a column. +The value of attribute ch of the tablecol element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-16230502"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vch" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablecol" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"col"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<ch interface="HTMLTableColElement" obj="testNode" var="vch"/> +<assertEquals actual="vch" expected='"*"' id="chLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table50.xml b/test/testcases/tests/level1/html/table50.xml new file mode 100644 index 0000000..8f60638 --- /dev/null +++ b/test/testcases/tests/level1/html/table50.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table50"> +<metadata> +<title>table50</title> +<creator>Netscape</creator> +<description> +Offset of alignment character. +The value of attribute choff of the tablecol element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-68207461"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vchoff" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablecol" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"col"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<chOff interface="HTMLTableColElement" obj="testNode" var="vchoff"/> +<assertEquals actual="vchoff" expected='"20"' id="chOffLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table51.xml b/test/testcases/tests/level1/html/table51.xml new file mode 100644 index 0000000..c917f27 --- /dev/null +++ b/test/testcases/tests/level1/html/table51.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table51"> +<metadata> +<title>table51</title> +<creator>Netscape</creator> +<description> +Indicates the number of columns in a group or affected by a grouping. +The value of attribute span of the tablecol element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-96511335"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vspan" type="int"/> +<var name="doc" type="Node"/> +<load var="doc" href="tablecol" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"col"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<span interface="HTMLTableColElement" obj="testNode" var="vspan"/> +<assertEquals actual="vspan" expected="1" id="spanLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table52.xml b/test/testcases/tests/level1/html/table52.xml new file mode 100644 index 0000000..bf94572 --- /dev/null +++ b/test/testcases/tests/level1/html/table52.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table52"> +<metadata> +<title>table52</title> +<creator>Netscape</creator> +<description> +Vertical alignment of cell data in column. +The value of attribute valign of the tablecol element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-83291710"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vvalign" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablecol" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"col"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<vAlign interface="HTMLTableColElement" obj="testNode" var="vvalign"/> +<assertEquals actual="vvalign" expected='"middle"' id="vAlignLink" ignoreCase="false"/> +</test> diff --git a/test/testcases/tests/level1/html/table53.xml b/test/testcases/tests/level1/html/table53.xml new file mode 100644 index 0000000..210c7e1 --- /dev/null +++ b/test/testcases/tests/level1/html/table53.xml @@ -0,0 +1,40 @@ +<?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 "dom1.dtd"> +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="table53"> +<metadata> +<title>table53</title> +<creator>Netscape</creator> +<description> +Default column width. +The value of attribute width of the tablecol element is read and checked against the expected value. +</description> +<contributor>Sivakiran Tummala</contributor> +<date qualifier="created">2002-02-15</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-html#ID-25196799"/> +</metadata> +<var name="nodeList" type="NodeList"/> +<var name="testNode" type="Node"/> +<var name="vwidth" type="DOMString" /> +<var name="doc" type="Node"/> +<load var="doc" href="tablecol" willBeModified="false"/> +<getElementsByTagName interface="Document" obj="doc" var="nodeList" tagname='"col"'/> +<assertSize collection="nodeList" size="1" id="Asize"/> +<item interface="NodeList" obj="nodeList" var="testNode" index="0"/> +<width interface="HTMLTableColElement" obj="testNode" var="vwidth"/> +<assertEquals actual="vwidth" expected='"20"' id="widthLink" ignoreCase="false"/> +</test> |