From 3dc3985aad18507d316d9798e1c5417b91f29273 Mon Sep 17 00:00:00 2001 From: "edburns%acm.org" Date: Sat, 31 Aug 2002 18:18:26 +0000 Subject: [PATCH] remove these until they can be replaced with JUnit tests git-svn-id: svn://10.0.0.236/trunk@128625 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/java/dom/tests/src/BWBaseTest.java | 81 -- .../java/dom/tests/src/BWJavaTemplate.README | 102 -- .../java/dom/tests/src/BWJavaTemplate.html | 192 ---- .../java/dom/tests/src/BWJavaTemplate.java | 895 ------------------ mozilla/java/dom/tests/src/BWProperties | 7 - mozilla/java/dom/tests/src/BWTestClass.lst | 1 - .../java/dom/tests/src/BWTestClass.lst.ORIG | 237 ----- .../dom/tests/src/BWTestClass.lst.html.ORIG | 174 ---- .../dom/tests/src/BWTestClass.lst.xml.ORIG | 121 --- mozilla/java/dom/tests/src/BWTestThread.java | 119 --- mozilla/java/dom/tests/src/DOMAccessor.java | 200 ---- mozilla/java/dom/tests/src/DOMFactory.java | 201 ---- mozilla/java/dom/tests/src/DocumentImpl.java | 93 -- mozilla/java/dom/tests/src/Execution.java | 37 - mozilla/java/dom/tests/src/Makefile | 59 -- mozilla/java/dom/tests/src/Makefile.solaris | 59 -- mozilla/java/dom/tests/src/Makefile.win | 80 -- .../java/dom/tests/src/ParamCombination.java | 134 --- mozilla/java/dom/tests/src/README | 121 --- mozilla/java/dom/tests/src/README.html | 341 ------- .../java/dom/tests/src/ReflectionTest.java | 140 --- mozilla/java/dom/tests/src/TestLoader.java | 721 -------------- .../java/dom/tests/src/TestLoaderHTML.html | 7 - mozilla/java/dom/tests/src/TestLoaderXML.html | 7 - .../dom/tests/src/api/AttrImpl_getName.java | 126 --- .../src/api/AttrImpl_getOwnerElement.java | 129 --- .../tests/src/api/AttrImpl_getSpecified.java | 120 --- .../dom/tests/src/api/AttrImpl_getValue.java | 127 --- .../src/api/AttrImpl_setValue_String_0.java | 128 --- .../src/api/AttrImpl_setValue_String_1.java | 133 --- .../java/dom/tests/src/api/BWTestClass.lst | 1 - .../dom/tests/src/api/BWTestClass.lst.ORIG | 231 ----- ...CharacterDataImpl_appendData_String_0.java | 146 --- ...CharacterDataImpl_appendData_String_1.java | 134 --- ...haracterDataImpl_deleteData_int_int_0.java | 137 --- ...haracterDataImpl_deleteData_int_int_1.java | 139 --- ...haracterDataImpl_deleteData_int_int_2.java | 139 --- ...haracterDataImpl_deleteData_int_int_3.java | 139 --- ...haracterDataImpl_deleteData_int_int_4.java | 141 --- ...haracterDataImpl_deleteData_int_int_5.java | 139 --- ...haracterDataImpl_deleteData_int_int_6.java | 138 --- ...haracterDataImpl_deleteData_int_int_7.java | 138 --- ...haracterDataImpl_deleteData_int_int_8.java | 138 --- .../src/api/CharacterDataImpl_getData.java | 135 --- .../src/api/CharacterDataImpl_getLength.java | 124 --- ...acterDataImpl_insertData_int_String_0.java | 139 --- ...acterDataImpl_insertData_int_String_1.java | 139 --- ...acterDataImpl_insertData_int_String_2.java | 139 --- ...acterDataImpl_insertData_int_String_3.java | 140 --- ...acterDataImpl_insertData_int_String_4.java | 139 --- ...acterDataImpl_insertData_int_String_5.java | 139 --- ...DataImpl_replaceData_int_int_String_0.java | 142 --- ...DataImpl_replaceData_int_int_String_1.java | 145 --- ...ataImpl_replaceData_int_int_String_10.java | 142 --- ...ataImpl_replaceData_int_int_String_11.java | 148 --- ...ataImpl_replaceData_int_int_String_12.java | 142 --- ...ataImpl_replaceData_int_int_String_13.java | 148 --- ...ataImpl_replaceData_int_int_String_14.java | 142 --- ...ataImpl_replaceData_int_int_String_15.java | 149 --- ...ataImpl_replaceData_int_int_String_16.java | 142 --- ...ataImpl_replaceData_int_int_String_17.java | 147 --- ...DataImpl_replaceData_int_int_String_2.java | 142 --- ...DataImpl_replaceData_int_int_String_3.java | 142 --- ...DataImpl_replaceData_int_int_String_4.java | 142 --- ...DataImpl_replaceData_int_int_String_5.java | 148 --- ...DataImpl_replaceData_int_int_String_6.java | 142 --- ...DataImpl_replaceData_int_int_String_7.java | 143 --- ...DataImpl_replaceData_int_int_String_8.java | 143 --- ...DataImpl_replaceData_int_int_String_9.java | 142 --- .../CharacterDataImpl_setData_String_0.java | 139 --- .../CharacterDataImpl_setData_String_1.java | 138 --- ...acterDataImpl_substringData_int_int_0.java | 140 --- ...acterDataImpl_substringData_int_int_1.java | 139 --- ...acterDataImpl_substringData_int_int_2.java | 139 --- ...acterDataImpl_substringData_int_int_3.java | 139 --- ...acterDataImpl_substringData_int_int_4.java | 139 --- ...acterDataImpl_substringData_int_int_5.java | 139 --- ...acterDataImpl_substringData_int_int_6.java | 139 --- ...acterDataImpl_substringData_int_int_7.java | 133 --- ...acterDataImpl_substringData_int_int_8.java | 139 --- ...teDocumentType_String_String_String_0.java | 133 --- ...teDocumentType_String_String_String_1.java | 134 --- ...teDocumentType_String_String_String_2.java | 134 --- ...teDocumentType_String_String_String_3.java | 134 --- ...teDocumentType_String_String_String_4.java | 134 --- ...entType_String_String_String_String_0.java | 131 --- ...Document_String_String_DocumentType_0.java | 136 --- ...Document_String_String_DocumentType_1.java | 131 --- ...Document_String_String_DocumentType_2.java | 138 --- ...Document_String_String_DocumentType_3.java | 137 --- ...Document_String_String_DocumentType_4.java | 139 --- ...tationImpl_hasFeature_String_String_0.java | 122 --- ...tationImpl_hasFeature_String_String_1.java | 120 --- ...tationImpl_hasFeature_String_String_2.java | 120 --- ...tationImpl_hasFeature_String_String_3.java | 121 --- ...tationImpl_hasFeature_String_String_4.java | 121 --- ...mpl_createAttributeNS_String_String_0.java | 123 --- ...mpl_createAttributeNS_String_String_1.java | 125 --- ...mpl_createAttributeNS_String_String_2.java | 125 --- ...mpl_createAttributeNS_String_String_3.java | 125 --- ...DocumentImpl_createAttribute_String_0.java | 125 --- ...DocumentImpl_createAttribute_String_1.java | 125 --- ...umentImpl_createCDATASection_String_0.java | 125 --- ...umentImpl_createCDATASection_String_1.java | 121 --- .../DocumentImpl_createComment_String_0.java | 126 --- .../DocumentImpl_createComment_String_1.java | 125 --- .../DocumentImpl_createDocumentFragment.java | 122 --- ...tImpl_createElementNS_String_String_0.java | 125 --- ...tImpl_createElementNS_String_String_1.java | 125 --- ...tImpl_createElementNS_String_String_2.java | 125 --- ...tImpl_createElementNS_String_String_3.java | 125 --- .../DocumentImpl_createElement_String_0.java | 125 --- .../DocumentImpl_createElement_String_1.java | 126 --- ...ntImpl_createEntityReference_String_0.java | 124 --- ...ntImpl_createEntityReference_String_1.java | 125 --- .../DocumentImpl_createEvent_String_0.java | 118 --- .../DocumentImpl_createEvent_String_1.java | 124 --- .../DocumentImpl_createEvent_String_2.java | 118 --- ...ProcessingInstruction_String_String_0.java | 126 --- ...ProcessingInstruction_String_String_1.java | 126 --- ...ProcessingInstruction_String_String_2.java | 126 --- ...ProcessingInstruction_String_String_3.java | 124 --- .../DocumentImpl_createTextNode_String_0.java | 123 --- .../DocumentImpl_createTextNode_String_1.java | 123 --- .../src/api/DocumentImpl_getDoctype.java | 123 --- .../src/api/DocumentImpl_getDoctype_xml.java | 123 --- .../api/DocumentImpl_getDocumentElement.java | 124 --- .../DocumentImpl_getElementById_String_0.java | 122 --- .../DocumentImpl_getElementById_String_1.java | 119 --- .../DocumentImpl_getElementById_String_2.java | 119 --- ...etElementsByTagNameNS_String_String_0.java | 123 --- ...etElementsByTagNameNS_String_String_1.java | 118 --- ...etElementsByTagNameNS_String_String_2.java | 119 --- ...etElementsByTagNameNS_String_String_3.java | 119 --- ...entImpl_getElementsByTagName_String_0.java | 123 --- ...entImpl_getElementsByTagName_String_1.java | 123 --- .../api/DocumentImpl_getImplementation.java | 122 --- ...ocumentImpl_importNode_Node_boolean_0.java | 125 --- ...ocumentImpl_importNode_Node_boolean_1.java | 125 --- ...ocumentImpl_importNode_Node_boolean_2.java | 137 --- ...ocumentImpl_importNode_Node_boolean_3.java | 137 --- .../src/api/DocumentTypeImpl_getEntities.java | 126 --- .../DocumentTypeImpl_getInternalSubset.java | 127 --- .../src/api/DocumentTypeImpl_getName.java | 127 --- .../api/DocumentTypeImpl_getNotations.java | 125 --- .../src/api/DocumentTypeImpl_getPublicId.java | 126 --- .../src/api/DocumentTypeImpl_getSystemId.java | 127 --- ...ntImpl_getAttributeNS_String_String_0.java | 145 --- ...ntImpl_getAttributeNS_String_String_1.java | 136 --- ...ntImpl_getAttributeNS_String_String_2.java | 136 --- ...ntImpl_getAttributeNS_String_String_3.java | 136 --- ...pl_getAttributeNodeNS_String_String_0.java | 136 --- ...pl_getAttributeNodeNS_String_String_1.java | 136 --- ...pl_getAttributeNodeNS_String_String_2.java | 136 --- ...pl_getAttributeNodeNS_String_String_3.java | 145 --- ...ElementImpl_getAttributeNode_String_0.java | 126 --- ...ElementImpl_getAttributeNode_String_1.java | 127 --- .../ElementImpl_getAttribute_String_0.java | 127 --- .../ElementImpl_getAttribute_String_1.java | 134 --- ...etElementsByTagNameNS_String_String_0.java | 136 --- ...etElementsByTagNameNS_String_String_1.java | 136 --- ...etElementsByTagNameNS_String_String_2.java | 136 --- ...etElementsByTagNameNS_String_String_3.java | 140 --- ...entImpl_getElementsByTagName_String_0.java | 126 --- ...entImpl_getElementsByTagName_String_1.java | 126 --- .../tests/src/api/ElementImpl_getTagName.java | 128 --- ...ntImpl_hasAttributeNS_String_String_0.java | 133 --- ...ntImpl_hasAttributeNS_String_String_1.java | 133 --- ...ntImpl_hasAttributeNS_String_String_2.java | 133 --- ...ntImpl_hasAttributeNS_String_String_3.java | 137 --- .../ElementImpl_hasAttribute_String_0.java | 125 --- .../ElementImpl_hasAttribute_String_1.java | 126 --- .../ElementImpl_hasAttribute_String_2.java | 129 --- .../tests/src/api/ElementImpl_normalize.java | 123 --- ...mpl_removeAttributeNS_String_String_0.java | 136 --- ...mpl_removeAttributeNS_String_String_1.java | 136 --- ...mpl_removeAttributeNS_String_String_2.java | 136 --- ...mpl_removeAttributeNS_String_String_3.java | 144 --- ...lementImpl_removeAttributeNode_Attr_0.java | 137 --- ...lementImpl_removeAttributeNode_Attr_1.java | 143 --- .../ElementImpl_removeAttribute_String_0.java | 134 --- .../ElementImpl_removeAttribute_String_1.java | 137 --- ...setAttributeNS_String_String_String_0.java | 137 --- ...setAttributeNS_String_String_String_1.java | 138 --- ...setAttributeNS_String_String_String_2.java | 138 --- ...setAttributeNS_String_String_String_3.java | 138 --- ...setAttributeNS_String_String_String_4.java | 138 --- ...setAttributeNS_String_String_String_5.java | 138 --- ...setAttributeNS_String_String_String_6.java | 138 --- ...setAttributeNS_String_String_String_7.java | 138 --- ...setAttributeNS_String_String_String_8.java | 138 --- ...setAttributeNS_String_String_String_9.java | 147 --- ...ElementImpl_setAttributeNodeNS_Attr_0.java | 135 --- ...ElementImpl_setAttributeNodeNS_Attr_1.java | 138 --- .../ElementImpl_setAttributeNode_Attr_0.java | 131 --- .../ElementImpl_setAttributeNode_Attr_1.java | 143 --- .../ElementImpl_setAttributeNode_Attr_2.java | 157 --- ...mentImpl_setAttribute_String_String_0.java | 126 --- ...mentImpl_setAttribute_String_String_1.java | 136 --- ...mentImpl_setAttribute_String_String_2.java | 130 --- ...mentImpl_setAttribute_String_String_3.java | 132 --- mozilla/java/dom/tests/src/api/Makefile | 276 ------ .../java/dom/tests/src/api/Makefile.solaris | 276 ------ mozilla/java/dom/tests/src/api/Makefile.win | 278 ------ .../src/api/NamedNodeMapImpl_getLength.java | 143 --- ...apImpl_getNamedItemNS_String_String_0.java | 152 --- ...apImpl_getNamedItemNS_String_String_1.java | 152 --- ...apImpl_getNamedItemNS_String_String_2.java | 152 --- ...apImpl_getNamedItemNS_String_String_3.java | 152 --- ...amedNodeMapImpl_getNamedItem_String_0.java | 147 --- ...amedNodeMapImpl_getNamedItem_String_1.java | 148 --- .../src/api/NamedNodeMapImpl_item_int_0.java | 148 --- .../src/api/NamedNodeMapImpl_item_int_1.java | 147 --- .../src/api/NamedNodeMapImpl_item_int_2.java | 148 --- ...mpl_removeNamedItemNS_String_String_0.java | 156 --- ...mpl_removeNamedItemNS_String_String_1.java | 156 --- ...mpl_removeNamedItemNS_String_String_2.java | 156 --- ...mpl_removeNamedItemNS_String_String_3.java | 152 --- ...dNodeMapImpl_removeNamedItem_String_0.java | 151 --- ...dNodeMapImpl_removeNamedItem_String_1.java | 151 --- ...amedNodeMapImpl_setNamedItemNS_Node_0.java | 157 --- ...amedNodeMapImpl_setNamedItemNS_Node_1.java | 166 ---- .../NamedNodeMapImpl_setNamedItem_Node_0.java | 151 --- .../NamedNodeMapImpl_setNamedItem_Node_1.java | 159 ---- .../NamedNodeMapImpl_setNamedItem_Node_2.java | 180 ---- .../src/api/NodeImpl_appendChild_Node_0.java | 144 --- .../src/api/NodeImpl_appendChild_Node_1.java | 144 --- .../src/api/NodeImpl_cloneNode_boolean_0.java | 144 --- .../src/api/NodeImpl_cloneNode_boolean_1.java | 144 --- .../src/api/NodeImpl_equals_Object_0.java | 164 ---- .../src/api/NodeImpl_equals_Object_1.java | 165 ---- .../src/api/NodeImpl_equals_Object_2.java | 153 --- .../src/api/NodeImpl_equals_Object_3.java | 139 --- .../tests/src/api/NodeImpl_getAttributes.java | 140 --- .../tests/src/api/NodeImpl_getChildNodes.java | 137 --- .../tests/src/api/NodeImpl_getFirstChild.java | 138 --- .../tests/src/api/NodeImpl_getLastChild.java | 138 --- .../tests/src/api/NodeImpl_getLocalName.java | 124 --- .../src/api/NodeImpl_getNamespaceURI.java | 124 --- .../src/api/NodeImpl_getNextSibling.java | 138 --- .../tests/src/api/NodeImpl_getNodeName.java | 135 --- .../tests/src/api/NodeImpl_getNodeType.java | 138 --- .../tests/src/api/NodeImpl_getNodeValue.java | 138 --- .../src/api/NodeImpl_getOwnerDocument.java | 130 --- .../tests/src/api/NodeImpl_getParentNode.java | 131 --- .../dom/tests/src/api/NodeImpl_getPrefix.java | 138 --- .../tests/src/api/NodeImpl_getPrefix_0.java | 124 --- .../tests/src/api/NodeImpl_getPrefix_1.java | 126 --- .../src/api/NodeImpl_getPreviousSibling.java | 130 --- .../tests/src/api/NodeImpl_hasChildNodes.java | 129 --- .../dom/tests/src/api/NodeImpl_hashCode.java | 121 --- .../NodeImpl_insertBefore_Node_Node_0.java | 147 --- .../NodeImpl_insertBefore_Node_Node_1.java | 154 --- .../NodeImpl_insertBefore_Node_Node_2.java | 155 --- .../NodeImpl_insertBefore_Node_Node_3.java | 162 ---- .../dom/tests/src/api/NodeImpl_normalize.java | 137 --- .../src/api/NodeImpl_removeChild_Node_0.java | 154 --- .../src/api/NodeImpl_removeChild_Node_1.java | 153 --- .../NodeImpl_replaceChild_Node_Node_0.java | 139 --- .../NodeImpl_replaceChild_Node_Node_1.java | 155 --- .../NodeImpl_replaceChild_Node_Node_2.java | 149 --- .../NodeImpl_replaceChild_Node_Node_3.java | 162 ---- .../api/NodeImpl_setNodeValue_String_0.java | 135 --- .../api/NodeImpl_setNodeValue_String_1.java | 134 --- .../src/api/NodeImpl_setPrefix_String_0.java | 124 --- .../src/api/NodeImpl_setPrefix_String_1.java | 126 --- .../NodeImpl_supports_String_String_0.java | 121 --- .../NodeImpl_supports_String_String_1.java | 122 --- .../NodeImpl_supports_String_String_2.java | 123 --- .../NodeImpl_supports_String_String_3.java | 124 --- .../dom/tests/src/api/NodeImpl_toString.java | 135 --- .../tests/src/api/NodeListImpl_getLength.java | 122 --- .../src/api/NodeListImpl_item_int_0.java | 128 --- .../src/api/NodeListImpl_item_int_1.java | 128 --- .../src/api/NodeListImpl_item_int_2.java | 129 --- .../ProcessingInstructionImpl_getData.java | 135 --- .../ProcessingInstructionImpl_getTarget.java | 135 --- ...ssingInstructionImpl_setData_String_0.java | 132 --- ...ssingInstructionImpl_setData_String_1.java | 133 --- .../src/api/TextImpl_splitText_int_0.java | 132 --- .../src/api/TextImpl_splitText_int_1.java | 132 --- .../src/api/TextImpl_splitText_int_2.java | 132 --- .../src/applets/DOMTreeDumperApplet.java | 50 - .../src/applets/TestDOMAccessorApplet.java | 38 - .../src/applets/TestDOMEventsApplet.java | 92 -- .../tests/src/applets/TestRunnerApplet.java | 58 -- mozilla/java/dom/tests/src/applets/index.html | 21 - mozilla/java/dom/tests/src/applets/testa.html | 21 - mozilla/java/dom/tests/src/applets/testb.html | 22 - mozilla/java/dom/tests/src/applets/testc.html | 22 - mozilla/java/dom/tests/src/applets/testd.html | 23 - mozilla/java/dom/tests/src/autorun.pl | 529 ----------- mozilla/java/dom/tests/src/autorun.sh | 669 ------------- mozilla/java/dom/tests/src/build_test.bat | 1 - mozilla/java/dom/tests/src/gen_rules.pl | 36 - mozilla/java/dom/tests/src/gen_tests.pl | 36 - mozilla/java/dom/tests/src/html_rules | 58 -- mozilla/java/dom/tests/src/mozilla.bat | 38 - mozilla/java/dom/tests/src/mozilla.csh | 22 - .../tests/src/newsrc/DOMViewerFactory.java | 107 --- mozilla/java/dom/tests/src/newsrc/Makefile | 50 - .../dom/tests/src/newsrc/Makefile.solaris | 51 - .../java/dom/tests/src/newsrc/Makefile.win | 58 -- mozilla/java/dom/tests/src/newsrc/README | 121 --- mozilla/java/dom/tests/src/newsrc/manifest | 2 - mozilla/java/dom/tests/src/newsrc/mozilla.bat | 38 - mozilla/java/dom/tests/src/newsrc/mozilla.csh | 22 - mozilla/java/dom/tests/src/newsrc/test.html | 7 - .../java/dom/tests/src/newsrc/testxml.html | 39 - mozilla/java/dom/tests/src/redirect.html | 7 - mozilla/java/dom/tests/src/redirectxml.html | 7 - mozilla/java/dom/tests/src/test.html | 7 - mozilla/java/dom/tests/src/test.xml | 17 - mozilla/java/dom/tests/src/testxml.html | 39 - 314 files changed, 41772 deletions(-) delete mode 100755 mozilla/java/dom/tests/src/BWBaseTest.java delete mode 100755 mozilla/java/dom/tests/src/BWJavaTemplate.README delete mode 100755 mozilla/java/dom/tests/src/BWJavaTemplate.html delete mode 100755 mozilla/java/dom/tests/src/BWJavaTemplate.java delete mode 100755 mozilla/java/dom/tests/src/BWProperties delete mode 100644 mozilla/java/dom/tests/src/BWTestClass.lst delete mode 100755 mozilla/java/dom/tests/src/BWTestClass.lst.ORIG delete mode 100755 mozilla/java/dom/tests/src/BWTestClass.lst.html.ORIG delete mode 100755 mozilla/java/dom/tests/src/BWTestClass.lst.xml.ORIG delete mode 100644 mozilla/java/dom/tests/src/BWTestThread.java delete mode 100644 mozilla/java/dom/tests/src/DOMAccessor.java delete mode 100755 mozilla/java/dom/tests/src/DOMFactory.java delete mode 100644 mozilla/java/dom/tests/src/DocumentImpl.java delete mode 100755 mozilla/java/dom/tests/src/Execution.java delete mode 100755 mozilla/java/dom/tests/src/Makefile delete mode 100755 mozilla/java/dom/tests/src/Makefile.solaris delete mode 100644 mozilla/java/dom/tests/src/Makefile.win delete mode 100755 mozilla/java/dom/tests/src/ParamCombination.java delete mode 100755 mozilla/java/dom/tests/src/README delete mode 100644 mozilla/java/dom/tests/src/README.html delete mode 100755 mozilla/java/dom/tests/src/ReflectionTest.java delete mode 100755 mozilla/java/dom/tests/src/TestLoader.java delete mode 100644 mozilla/java/dom/tests/src/TestLoaderHTML.html delete mode 100644 mozilla/java/dom/tests/src/TestLoaderXML.html delete mode 100755 mozilla/java/dom/tests/src/api/AttrImpl_getName.java delete mode 100755 mozilla/java/dom/tests/src/api/AttrImpl_getOwnerElement.java delete mode 100755 mozilla/java/dom/tests/src/api/AttrImpl_getSpecified.java delete mode 100755 mozilla/java/dom/tests/src/api/AttrImpl_getValue.java delete mode 100755 mozilla/java/dom/tests/src/api/AttrImpl_setValue_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/AttrImpl_setValue_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/BWTestClass.lst delete mode 100755 mozilla/java/dom/tests/src/api/BWTestClass.lst.ORIG delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_appendData_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_appendData_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_0.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_1.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_2.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_3.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_4.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_5.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_6.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_7.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_8.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_getData.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_getLength.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_insertData_int_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_insertData_int_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_insertData_int_String_2.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_insertData_int_String_3.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_insertData_int_String_4.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_insertData_int_String_5.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_10.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_11.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_12.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_13.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_14.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_15.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_16.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_17.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_2.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_3.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_4.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_5.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_6.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_7.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_8.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_9.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_setData_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_setData_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_0.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_1.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_2.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_3.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_4.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_5.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_6.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_7.java delete mode 100755 mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_8.java delete mode 100644 mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocumentType_String_String_String_0.java delete mode 100644 mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocumentType_String_String_String_1.java delete mode 100644 mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocumentType_String_String_String_2.java delete mode 100644 mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocumentType_String_String_String_3.java delete mode 100644 mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocumentType_String_String_String_4.java delete mode 100644 mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocumentType_String_String_String_String_0.java delete mode 100644 mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocument_String_String_DocumentType_0.java delete mode 100644 mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocument_String_String_DocumentType_1.java delete mode 100644 mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocument_String_String_DocumentType_2.java delete mode 100644 mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocument_String_String_DocumentType_3.java delete mode 100644 mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocument_String_String_DocumentType_4.java delete mode 100755 mozilla/java/dom/tests/src/api/DOMImplementationImpl_hasFeature_String_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/DOMImplementationImpl_hasFeature_String_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/DOMImplementationImpl_hasFeature_String_String_2.java delete mode 100755 mozilla/java/dom/tests/src/api/DOMImplementationImpl_hasFeature_String_String_3.java delete mode 100755 mozilla/java/dom/tests/src/api/DOMImplementationImpl_hasFeature_String_String_4.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_createAttributeNS_String_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_createAttributeNS_String_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_createAttributeNS_String_String_2.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_createAttributeNS_String_String_3.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_createAttribute_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_createAttribute_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_createCDATASection_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_createCDATASection_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_createComment_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_createComment_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_createDocumentFragment.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_createElementNS_String_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_createElementNS_String_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_createElementNS_String_String_2.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_createElementNS_String_String_3.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_createElement_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_createElement_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_createEntityReference_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_createEntityReference_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_createEvent_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_createEvent_String_1.java delete mode 100644 mozilla/java/dom/tests/src/api/DocumentImpl_createEvent_String_2.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_createProcessingInstruction_String_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_createProcessingInstruction_String_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_createProcessingInstruction_String_String_2.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_createProcessingInstruction_String_String_3.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_createTextNode_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_createTextNode_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_getDoctype.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_getDoctype_xml.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_getDocumentElement.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_getElementById_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_getElementById_String_1.java delete mode 100644 mozilla/java/dom/tests/src/api/DocumentImpl_getElementById_String_2.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_getElementsByTagNameNS_String_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_getElementsByTagNameNS_String_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_getElementsByTagNameNS_String_String_2.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_getElementsByTagNameNS_String_String_3.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_getElementsByTagName_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_getElementsByTagName_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_getImplementation.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_importNode_Node_boolean_0.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_importNode_Node_boolean_1.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_importNode_Node_boolean_2.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentImpl_importNode_Node_boolean_3.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentTypeImpl_getEntities.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentTypeImpl_getInternalSubset.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentTypeImpl_getName.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentTypeImpl_getNotations.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentTypeImpl_getPublicId.java delete mode 100755 mozilla/java/dom/tests/src/api/DocumentTypeImpl_getSystemId.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNS_String_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNS_String_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNS_String_String_2.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNS_String_String_3.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNodeNS_String_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNodeNS_String_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNodeNS_String_String_2.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNodeNS_String_String_3.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNode_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNode_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_getAttribute_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_getAttribute_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_getElementsByTagNameNS_String_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_getElementsByTagNameNS_String_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_getElementsByTagNameNS_String_String_2.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_getElementsByTagNameNS_String_String_3.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_getElementsByTagName_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_getElementsByTagName_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_getTagName.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_hasAttributeNS_String_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_hasAttributeNS_String_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_hasAttributeNS_String_String_2.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_hasAttributeNS_String_String_3.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_hasAttribute_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_hasAttribute_String_1.java delete mode 100644 mozilla/java/dom/tests/src/api/ElementImpl_hasAttribute_String_2.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_normalize.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_removeAttributeNS_String_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_removeAttributeNS_String_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_removeAttributeNS_String_String_2.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_removeAttributeNS_String_String_3.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_removeAttributeNode_Attr_0.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_removeAttributeNode_Attr_1.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_removeAttribute_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_removeAttribute_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_2.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_3.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_4.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_5.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_6.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_7.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_8.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_9.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNodeNS_Attr_0.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNodeNS_Attr_1.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNode_Attr_0.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNode_Attr_1.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNode_Attr_2.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_setAttribute_String_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_setAttribute_String_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_setAttribute_String_String_2.java delete mode 100755 mozilla/java/dom/tests/src/api/ElementImpl_setAttribute_String_String_3.java delete mode 100755 mozilla/java/dom/tests/src/api/Makefile delete mode 100644 mozilla/java/dom/tests/src/api/Makefile.solaris delete mode 100644 mozilla/java/dom/tests/src/api/Makefile.win delete mode 100755 mozilla/java/dom/tests/src/api/NamedNodeMapImpl_getLength.java delete mode 100755 mozilla/java/dom/tests/src/api/NamedNodeMapImpl_getNamedItemNS_String_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/NamedNodeMapImpl_getNamedItemNS_String_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/NamedNodeMapImpl_getNamedItemNS_String_String_2.java delete mode 100755 mozilla/java/dom/tests/src/api/NamedNodeMapImpl_getNamedItemNS_String_String_3.java delete mode 100755 mozilla/java/dom/tests/src/api/NamedNodeMapImpl_getNamedItem_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/NamedNodeMapImpl_getNamedItem_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/NamedNodeMapImpl_item_int_0.java delete mode 100755 mozilla/java/dom/tests/src/api/NamedNodeMapImpl_item_int_1.java delete mode 100755 mozilla/java/dom/tests/src/api/NamedNodeMapImpl_item_int_2.java delete mode 100755 mozilla/java/dom/tests/src/api/NamedNodeMapImpl_removeNamedItemNS_String_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/NamedNodeMapImpl_removeNamedItemNS_String_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/NamedNodeMapImpl_removeNamedItemNS_String_String_2.java delete mode 100755 mozilla/java/dom/tests/src/api/NamedNodeMapImpl_removeNamedItemNS_String_String_3.java delete mode 100755 mozilla/java/dom/tests/src/api/NamedNodeMapImpl_removeNamedItem_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/NamedNodeMapImpl_removeNamedItem_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/NamedNodeMapImpl_setNamedItemNS_Node_0.java delete mode 100755 mozilla/java/dom/tests/src/api/NamedNodeMapImpl_setNamedItemNS_Node_1.java delete mode 100755 mozilla/java/dom/tests/src/api/NamedNodeMapImpl_setNamedItem_Node_0.java delete mode 100755 mozilla/java/dom/tests/src/api/NamedNodeMapImpl_setNamedItem_Node_1.java delete mode 100755 mozilla/java/dom/tests/src/api/NamedNodeMapImpl_setNamedItem_Node_2.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_appendChild_Node_0.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_appendChild_Node_1.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_cloneNode_boolean_0.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_cloneNode_boolean_1.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_equals_Object_0.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_equals_Object_1.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_equals_Object_2.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_equals_Object_3.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_getAttributes.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_getChildNodes.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_getFirstChild.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_getLastChild.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_getLocalName.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_getNamespaceURI.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_getNextSibling.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_getNodeName.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_getNodeType.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_getNodeValue.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_getOwnerDocument.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_getParentNode.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_getPrefix.java delete mode 100644 mozilla/java/dom/tests/src/api/NodeImpl_getPrefix_0.java delete mode 100644 mozilla/java/dom/tests/src/api/NodeImpl_getPrefix_1.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_getPreviousSibling.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_hasChildNodes.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_hashCode.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_insertBefore_Node_Node_0.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_insertBefore_Node_Node_1.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_insertBefore_Node_Node_2.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_insertBefore_Node_Node_3.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_normalize.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_removeChild_Node_0.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_removeChild_Node_1.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_replaceChild_Node_Node_0.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_replaceChild_Node_Node_1.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_replaceChild_Node_Node_2.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_replaceChild_Node_Node_3.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_setNodeValue_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_setNodeValue_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_setPrefix_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_setPrefix_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_supports_String_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_supports_String_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_supports_String_String_2.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_supports_String_String_3.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeImpl_toString.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeListImpl_getLength.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeListImpl_item_int_0.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeListImpl_item_int_1.java delete mode 100755 mozilla/java/dom/tests/src/api/NodeListImpl_item_int_2.java delete mode 100755 mozilla/java/dom/tests/src/api/ProcessingInstructionImpl_getData.java delete mode 100755 mozilla/java/dom/tests/src/api/ProcessingInstructionImpl_getTarget.java delete mode 100755 mozilla/java/dom/tests/src/api/ProcessingInstructionImpl_setData_String_0.java delete mode 100755 mozilla/java/dom/tests/src/api/ProcessingInstructionImpl_setData_String_1.java delete mode 100755 mozilla/java/dom/tests/src/api/TextImpl_splitText_int_0.java delete mode 100755 mozilla/java/dom/tests/src/api/TextImpl_splitText_int_1.java delete mode 100755 mozilla/java/dom/tests/src/api/TextImpl_splitText_int_2.java delete mode 100644 mozilla/java/dom/tests/src/applets/DOMTreeDumperApplet.java delete mode 100644 mozilla/java/dom/tests/src/applets/TestDOMAccessorApplet.java delete mode 100644 mozilla/java/dom/tests/src/applets/TestDOMEventsApplet.java delete mode 100644 mozilla/java/dom/tests/src/applets/TestRunnerApplet.java delete mode 100644 mozilla/java/dom/tests/src/applets/index.html delete mode 100644 mozilla/java/dom/tests/src/applets/testa.html delete mode 100644 mozilla/java/dom/tests/src/applets/testb.html delete mode 100644 mozilla/java/dom/tests/src/applets/testc.html delete mode 100644 mozilla/java/dom/tests/src/applets/testd.html delete mode 100644 mozilla/java/dom/tests/src/autorun.pl delete mode 100755 mozilla/java/dom/tests/src/autorun.sh delete mode 100644 mozilla/java/dom/tests/src/build_test.bat delete mode 100644 mozilla/java/dom/tests/src/gen_rules.pl delete mode 100644 mozilla/java/dom/tests/src/gen_tests.pl delete mode 100644 mozilla/java/dom/tests/src/html_rules delete mode 100644 mozilla/java/dom/tests/src/mozilla.bat delete mode 100755 mozilla/java/dom/tests/src/mozilla.csh delete mode 100755 mozilla/java/dom/tests/src/newsrc/DOMViewerFactory.java delete mode 100755 mozilla/java/dom/tests/src/newsrc/Makefile delete mode 100755 mozilla/java/dom/tests/src/newsrc/Makefile.solaris delete mode 100755 mozilla/java/dom/tests/src/newsrc/Makefile.win delete mode 100755 mozilla/java/dom/tests/src/newsrc/README delete mode 100755 mozilla/java/dom/tests/src/newsrc/manifest delete mode 100644 mozilla/java/dom/tests/src/newsrc/mozilla.bat delete mode 100755 mozilla/java/dom/tests/src/newsrc/mozilla.csh delete mode 100755 mozilla/java/dom/tests/src/newsrc/test.html delete mode 100755 mozilla/java/dom/tests/src/newsrc/testxml.html delete mode 100755 mozilla/java/dom/tests/src/redirect.html delete mode 100755 mozilla/java/dom/tests/src/redirectxml.html delete mode 100755 mozilla/java/dom/tests/src/test.html delete mode 100755 mozilla/java/dom/tests/src/test.xml delete mode 100755 mozilla/java/dom/tests/src/testxml.html diff --git a/mozilla/java/dom/tests/src/BWBaseTest.java b/mozilla/java/dom/tests/src/BWBaseTest.java deleted file mode 100755 index 4f75bd1c7bc..00000000000 --- a/mozilla/java/dom/tests/src/BWBaseTest.java +++ /dev/null @@ -1,81 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -public class BWBaseTest implements Execution -{ - - /** - * This is a dummy implementation of interface method - * - * @param obj Object instance (Node/Document/....) - * - * @return if test has passed then return true else false - * - * - */ - public boolean execute(Object obj) - { - return true; - } - - /** - * Send a null Object. Classes extending this class will override this - * method - * - * - * @return Null object reference - * - */ - public Object returnObject() - { - return null; - } - - /** - * This method indicates whether a particular method is UNSUPPORTED or - * not. - * - */ - public void setUnsupported() - { - UNSUPPORTED = true; - } - - /** - * This method indicates whether a particular method is UNSUPPORTED or - * not. - * - * - * @return Value of boolean varibale UNSUPPORTED. - * - */ - public boolean isUnsupported() - { - return UNSUPPORTED; - } - - - public static boolean FAILED=false; - public static boolean PASSED=true; - public boolean UNSUPPORTED=false; -} diff --git a/mozilla/java/dom/tests/src/BWJavaTemplate.README b/mozilla/java/dom/tests/src/BWJavaTemplate.README deleted file mode 100755 index 17c1ab663ef..00000000000 --- a/mozilla/java/dom/tests/src/BWJavaTemplate.README +++ /dev/null @@ -1,102 +0,0 @@ - -JavaTest Template: - - Woking on similar lines as JavaSpec, this template generator parses an - input Class file and creates unique Test Template Files for - each public method complying with all combinations of its parameter list. - It is mainly used for doing a white box testing for all API's (methods). - - This will ensure that all Java Testcase Files follow a given template. - - It uses reflection to figure out all constructors and public methods - for a given class. - - The file-naming convention for output files is a straight forward one. - __.java - - - param combinations is based on all permutations depending on the values - of different data types (as listed below) - - Listed below is all possible values for types of parameter. - String = (null, "DUMMY_STRING") - int = (0, Integer.MIN_VALUE, Integer.MAX_VALUE) - float = (0, Float.MIN_VALUE, Float.MAX_VALUE) - double = (0, Double.MIN_VALUE, Double.MAX_VALUE) - long = (0, Long.MIN_VALUE, Long.MAX_VALUE) - short = (0, Short.MIN_VALUE, Short.MAX_VALUE) - char = (Character.MAX_VALUE) - boolean = (true, false) - byte = (Byte.MIN_VALUE, Byte.MAX_VALUE) - Integer = (null, 0, Integer.MIN_VALUE, Integer.MAX_VALUE) - Float = (null, 0, Float.MIN_VALUE, Float.MAX_VALUE) - Double = (null, 0, Double.MIN_VALUE, Double.MAX_VALUE) - Long = (null, 0, Long.MIN_VALUE, Long.MAX_VALUE) - Short = (null, 0, Short.MIN_VALUE, Short.MAX_VALUE) - Character = (null, Character.MAX_VALUE) - Byte = (null, Byte.MIN_VALUE, Byte.MAX_VALUE) - Object = (null, "NOTNULL") - - So for a method 'm' for class 'c' with two String parameters - the output files generated will be - - c_m_String_String_0.java --> (null, null) - c_m_String_String_1.java --> ("DUMMY_STRING", null) - c_m_String_String_2.java --> (null, "DUMMY_STRING") - C_m_String_String_3.java --> ("DUMMY_STRING", "DUMMY_STRING") - - - -------------------------------------------------------------------------- - How to run - ========== - java BWJavaTestTemplate [ -d ] classname - - is the location where u want to generate these - TestCase files - - -------------------------------------------------------------------------- - - For Example - =========== - Class: x.java - - public class x - { - - public x(String arg) - { - } - - private void modifyVal(String instr) - { - } - - public void setVal (String ival) - { - } - - public void setIndexVal (String ival, int index) - { - } - } - - - - Generated Files are - - x_setVal_String_0.java - x_setVal_String_1.java - x_setIndexVal_String_int_0.java - x_setIndexVal_String_int_1.java - x_setIndexVal_String_int_2.java - x_setIndexVal_String_int_3.java - x_setIndexVal_String_int_4.java - x_setIndexVal_String_int_5.java - x_x_String_0.java - x_x_String_1.java - x.txt - - - -------------------------------------------------------------------------- - NOTE: Right now the author name in each of those generated files is left - empty. Future version will reflect the same from configuration files diff --git a/mozilla/java/dom/tests/src/BWJavaTemplate.html b/mozilla/java/dom/tests/src/BWJavaTemplate.html deleted file mode 100755 index d89f7afc4ba..00000000000 --- a/mozilla/java/dom/tests/src/BWJavaTemplate.html +++ /dev/null @@ -1,192 +0,0 @@ - - - - - - - -JavaTest Template -
  -

Woking on similar lines as JavaSpec, this template generator parses -an -
input Class file and creates unique Test Template Files for -
each public method complying with all combinations of its parameter -list. -
It is mainly used for doing a white box testing for all API's (methods). -

This will ensure that all Java Testcase Files follow a given template. -

It uses reflection to figure out all constructors and public methods -
for a given class. -
The file-naming convention for output files is a straight forward one. -
[class Name]_[method name]_[param combinations].java -

param combinations is based on all permutations depending on the values -
of different data types (as listed below) -
  -

Listed below is all possible values for types of parameter. -
  - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
String(null, "DUMMY_STRING")
int(0, Integer.MIN_VALUE, Integer.MAX_VALUE)
float(0, Float.MIN_VALUE, Float.MAX_VALUE)
double(0, Double.MIN_VALUE, Double.MAX_VALUE)
long(0, Long.MIN_VALUE, Long.MAX_VALUE)
short(0, Short.MIN_VALUE, Short.MAX_VALUE)
char(Character.MAX_VALUE)
boolean(true, false)
byte(Byte.MIN_VALUE, Byte.MAX_VALUE)
Integer(null, 0, Integer.MIN_VALUE, Integer.MAX_VALUE)
Float (null, 0, Float.MIN_VALUE, Float.MAX_VALUE)
Double(null, 0, Double.MIN_VALUE, Double.MAX_VALUE)
Long(null, 0, Long.MIN_VALUE, Long.MAX_VALUE)
Short(null, 0, Short.MIN_VALUE, Short.MAX_VALUE)
Character(null, Character.MAX_VALUE)
Byte(null, Byte.MIN_VALUE, Byte.MAX_VALUE)
Object(null, "NOTNULL")
- -

So for a method 'm' for class 'c' with two String parameters the output -files generated will be -
c_m_String_String_0.java --> (null, null) -
c_m_String_String_1.java --> ("DUMMY_STRING", null) -
c_m_String_String_2.java --> (null, "DUMMY_STRING") -
C_m_String_String_3.java --> ("DUMMY_STRING", "DUMMY_STRING") -

-


-

-How to run

- -


java BWJavaTestTemplate [ -d ] classname -
is the location where u want to generate these -
TestCase files -
-


-

-Example

-Class: x.java -

   public class x -
   { -
      public x(String -arg) -
      { -
      } -

     private void modifyVal(String -instr) -
     { -
     } -

     public void setVal (String -ival) -
     { -
     } -

     public void setIndexVal -(String ival, int index) -
     { -
     } -
  } -
  -

Generated Files are -
    x_setVal_String_0.java -
    x_setIndexVal_String_int_0.java -
    x_setIndexVal_String_int_1.java -
    x_setIndexVal_String_int_2.java -
    x_setIndexVal_String_int_3.java -
    x_setIndexVal_String_int_4.java -
    x_setIndexVal_String_int_5.java -
    x_x_String_0.java -
    x_x_String_1.java -
    x.txt -

-


-

NOTE -

Right now the author name in each of those generated files is left  -empty. Future version will reflect the same from configuration files. - - diff --git a/mozilla/java/dom/tests/src/BWJavaTemplate.java b/mozilla/java/dom/tests/src/BWJavaTemplate.java deleted file mode 100755 index ccc3d4df037..00000000000 --- a/mozilla/java/dom/tests/src/BWJavaTemplate.java +++ /dev/null @@ -1,895 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.lang.*; -import java.util.*; -import java.io.*; -import java.lang.reflect.*; -import org.mozilla.dom.*; - - -class BWJavaTemplate -{ - ReflectionTest rt=null; - String fullclass=null; - String jclass=null; - String packageName=null; - String outputDir=null; - Vector outputFiles=null; - private Method[] methods = null; - private String currMethod=new String(); - private String currParamList=new String(); - private Hashtable rules = null; - - public BWJavaTemplate(String ajclass, String aoutDir, String rulesFile) - { - outputDir = aoutDir+System.getProperty("file.separator"); - fullclass = ajclass; - if (fullclass == null) { - System.out.println("Class Name cannot be NULL... "); - return; - } - - if (rulesFile != null) { - loadRules(rulesFile); - } - - int idx = fullclass.lastIndexOf("."); - if ( idx != -1) - { - packageName = fullclass.substring(0, idx); - jclass = fullclass.substring(idx+1); -System.out.println("packageName is " + packageName); - } else { - jclass = fullclass; - } -System.out.println("class Name is " + jclass); - - rt = new ReflectionTest(); - if (rt == null) { - System.out.println("Could not instantiate ReflectionTest...\n"); - return; - } - outputFiles = new Vector(); - -System.out.println("Parsing constructors and methods ..."); - if (!(parseClassConstructor()) && !(parseClassMethod())) { - System.out.println("Can't parse neither COnstructors nor Methods !!!\n"); - return; - } - - DataOutputStream dos = null; - String txtFile = jclass + ".txt"; - try { - dos = new DataOutputStream( new FileOutputStream(outputDir+txtFile)); - } catch (Exception e) { - System.out.println("ERROR: Could not create File " + txtFile); - return; - } - - try { - //dos.write("#Class|Method|Parameter|FileName\n".getBytes()); - for(int i=0; i "+str.substring(pos+1)); - rules.put((Object)str.substring(0, pos), (Object)str.substring(pos+1)); - } - } - } catch (Exception e) { - System.out.println("WARNING: Can't read rules file "+rulesFile+": "+e.fillInStackTrace()+"\n"); - rules = null; - } - } - - - /** - * Parses the class constructors and create class files - * - * @return Either true or false - */ - public boolean parseClassConstructor() - { - Class cl = null; - try { - cl = Class.forName(fullclass); - } catch (Exception e) { - System.out.println("Could not find class file " + fullclass); - return false; - } - if (Modifier.isAbstract(cl.getModifiers())) - return false; - - if (Modifier.isInterface(cl.getModifiers())) - return false; - - Constructor constructors[] = rt.getConstructors(cl); - String paramString = null; - int staticFlag=0; - for (int i = 0; i < constructors.length; i++) - { - staticFlag=0; - String returnType = "void"; - Constructor c = constructors[i]; - Class[] paramTypes = c.getParameterTypes(); - String conName = c.getName(); - currMethod = conName; - - int mod = c.getModifiers(); - if (Modifier.isStatic(mod)) - staticFlag = 1; - else if (!(Modifier.isPublic(mod))) - continue; - - paramString = new String(); - ParamCombination pcomb = null; - pcomb = new ParamCombination(paramTypes.length); - if (pcomb == null) - { - System.out.println("Could not instantiate ParamCombination...\n"); - return false; - } - - - for (int j = 0; j < paramTypes.length; j++) - { - // Construct parameter string (param1_param2_...) - String pstr = paramTypes[j].getName(); - String tstr = new String(""); - - - // check if param is an Array and accordingly get - // component type. - if (pstr.startsWith("[")) - { - int index = pstr.lastIndexOf("[") + 1; - tstr = "Arr" + (new Integer(index)).toString(); - pstr = (pstr.substring(index)).trim(); - if (pstr.length() == 1) { - if (pstr.compareTo("I") == 0) - tstr = tstr + "int"; - else if (pstr.compareTo("F") == 0) - tstr = tstr + "float"; - else if (pstr.compareTo("D") == 0) - tstr = tstr + "double"; - else if (pstr.compareTo("S") == 0) - tstr = tstr + "short"; - else if (pstr.compareTo("C") == 0) - tstr = tstr + "char"; - else if (pstr.compareTo("B") == 0) - tstr = tstr + "byte"; - - } else { - // Remove the leading 'L' from the string - pstr = pstr.substring(1); - } - - // Remove trailing semicolon - int slen = pstr.length(); - pstr = pstr.substring(0, slen-1); - } - - // Remove . from paramname (java.lang.String) - int idx = pstr.lastIndexOf("."); - if (idx != -1) - { - pstr = pstr.substring(idx + 1); - } - tstr = tstr + pstr; - paramString = paramString + "_" + tstr; - - /* get value list for parameter */ - pcomb.addElement(getParameterValueList(tstr)); - - } - - // remove leading underscore - if (paramString.length() > 1) - paramString = paramString.substring(1); - - currParamList = paramString; - - String combstr[] = pcomb.getValueList(); - if (combstr != null) - { - for (int k=0; k< combstr.length; k++) - { - String pstr = paramString + "_" + (new Integer(k)).toString(); - createTemplate(jclass, jclass, pstr, combstr[k], returnType, staticFlag); - } - } else { - createTemplate(jclass, jclass, null, null, returnType, staticFlag); - } - } - return true; - } - - /** - * Parses the class methods and create class files - * - * @return Either true or false - */ - public boolean parseClassMethod() - { - Class cl = null; - try { - cl = Class.forName(fullclass); - } catch (Exception e) { - System.out.println("Could not find class file " + fullclass); - return false; - } - methods = rt.getMethods(cl); - String paramString = null; - int staticFlag=0; - for (int i = 0; i < methods.length; i++) - { -System.out.println("Parsing method: "+jclass+" -> "+methods[i].getName()); - staticFlag=0; - Method m = methods[i]; - Class[] paramTypes = m.getParameterTypes(); - String conName = m.getName(); - String returnType = (m.getReturnType()).getName(); - currMethod = conName; - - int mod = m.getModifiers(); - if (Modifier.isStatic(mod)) - staticFlag = 1; - else if (!(Modifier.isPublic(mod))) - continue; - - paramString = new String(); - ParamCombination pcomb = null; -System.out.println("Number of parms: "+paramTypes.length); - pcomb = new ParamCombination(paramTypes.length); - if (pcomb == null) - { - System.out.println("Could not instantiate ParamCombination...\n"); - return false; - } - - if (Modifier.isStatic(m.getModifiers())) - staticFlag = 1; - - for (int j = 0; j < paramTypes.length; j++) - { - // Construct parameter string (param1_param2_...) - String pstr = paramTypes[j].getName(); - String tstr = new String(""); - - - // check if param is an Array and accordingly get - // component type. - if (pstr.startsWith("[")) - { - int index = pstr.lastIndexOf("[") + 1; - tstr = "Arr" + (new Integer(index)).toString(); - pstr = (pstr.substring(index)).trim(); - if (pstr.length() == 1) { - if (pstr.compareTo("I") == 0) - tstr = tstr + "int"; - else if (pstr.compareTo("F") == 0) - tstr = tstr + "float"; - else if (pstr.compareTo("D") == 0) - tstr = tstr + "double"; - else if (pstr.compareTo("S") == 0) - tstr = tstr + "short"; - else if (pstr.compareTo("C") == 0) - tstr = tstr + "char"; - else if (pstr.compareTo("B") == 0) - tstr = tstr + "byte"; - - } else { - // Remove the leading 'L' from the string - pstr = pstr.substring(1); - } - - // Remove trailing semicolon - int slen = pstr.length(); - pstr = pstr.substring(0, slen-1); - } - - // Remove . from paramname (java.lang.String) - int idx = pstr.lastIndexOf("."); - if (idx != -1) - { - pstr = pstr.substring(idx + 1); - } - tstr = tstr + pstr; - paramString = paramString + "_" + tstr; - - /* get value list for parameter */ - pcomb.addElement(getParameterValueList(tstr)); - - } - - // remove leading underscore - if (paramString.length() > 1) - paramString = paramString.substring(1); - - String combstr[] = pcomb.getValueList(); - if (combstr != null) - { - for (int k=0; k< combstr.length; k++) - { - String pstr = paramString + "_" + (new Integer(k)).toString(); - currParamList = paramString; - createTemplate(jclass, conName, pstr, combstr[k], returnType, staticFlag); - } - } else { - createTemplate(jclass, conName, null, null, returnType, staticFlag); - } - } - return true; - } - - - /** - * GetParses the class constructors and create class files - * - * @param Name of the paramter class - * @return Vector of all permissbile values for this class - * viz: for String class it will be null/"dummy" - */ - public Vector getParameterValueList(String param) - { - Vector result = null; - - if (param == null) return null; - result = new Vector(); - - if (param.compareTo("String") == 0) - { - result.addElement("null"); - result.addElement("\"DUMMY_STRING\""); - } else - if (param.compareTo("int") == 0) - { - result.addElement("0"); - result.addElement("Integer.MIN_VALUE"); - result.addElement("Integer.MAX_VALUE"); - } else - if (param.compareTo("float") == 0) - { - result.addElement("0"); - result.addElement("Float.MAX_VALUE"); - result.addElement("Float.NaN"); - } else - if (param.compareTo("double") == 0) - { - result.addElement("0"); - result.addElement("Double.MAX_VALUE"); - result.addElement("Double.NaN"); - } else - if (param.compareTo("long") == 0) - { - result.addElement("0"); - result.addElement("Long.MIN_VALUE"); - result.addElement("Long.MAX_VALUE"); - } else - if (param.compareTo("short") == 0) - { - result.addElement("0"); - result.addElement("Short.MIN_VALUE"); - result.addElement("Short.MAX_VALUE"); - } else - if (param.compareTo("char") == 0) - { - result.addElement("Character.MAX_VALUE"); - } else - if (param.compareTo("boolean") == 0) - { - result.addElement("true"); - result.addElement("false"); - } else - if (param.compareTo("byte") == 0) - { - result.addElement("Byte.MIN_VALUE"); - result.addElement("Byte.MAX_VALUE"); - } else - if (param.compareTo("Integer") == 0) - { - result.addElement("null"); - result.addElement("new Integer(0)"); - result.addElement("new Integer(Integer.MIN_VALUE)"); - result.addElement("new Integer(Integer.MAX_VALUE)"); - } else - if (param.compareTo("Float") == 0) - { - result.addElement("null"); - result.addElement("new Float(0)"); - result.addElement("new Float(Float.MAX_VALUE)"); - result.addElement("new Float(Float.NaN)"); - } else - if (param.compareTo("Double") == 0) - { - result.addElement("null"); - result.addElement("new Double(0)"); - result.addElement("new Double(Double.MAX_VALUE)"); - result.addElement("new Double(Double.NaN)"); - } else - if (param.compareTo("Long") == 0) - { - result.addElement("null"); - result.addElement("new Long(0)"); - result.addElement("new Long(Long.MIN_VALUE)"); - result.addElement("new Long(Long.MAX_VALUE)"); - } else - if (param.compareTo("Short") == 0) - { - result.addElement("null"); - result.addElement("new Short(0)"); - result.addElement("new Short(Short.MIN_VALUE)"); - result.addElement("new Short(Short.MAX_VALUE)"); - } else - if (param.compareTo("Character") == 0) - { - result.addElement("'" + (new Character(Character.MAX_VALUE)).toString() + "`"); - } else - if (param.compareTo("Byte") == 0) - { - result.addElement("null"); - result.addElement("new Byte(Byte.MIN_VALUE)"); - result.addElement("new Byte(Byte.MAX_VALUE)"); - } else - if (rules != null && rules.get(param) != null) { - result.addElement((String)rules.get(param)); - result.addElement("null"); - } else { - result.addElement("null"); - result.addElement("NOTNULL"); - } - - return result; - } - - - /** - * Create Template Java File - * - * @param className Name of the class file - * @param methodName Name of the method - * @param paramString Concated string of parameter types separated by - * underscores. - * @param valueList A concated String of values for the above - * parameters in the given order - * @param returnType Return Type for the given method. - * - * - * @return void - */ - public void createTemplate( String className, - String methodName, - String paramString, - String valueList, - String returnType, - int staticFlag - ) - { - if (className == null) return; - if (methodName == null) return; - if (returnType == null) return; - if (paramString != null) - if (valueList == null) return; - - - String cName = new String(); - String filename = new String(); - if (paramString != null){ - cName = className + "_" + methodName + "_" + paramString; - filename = cName + ".java"; - } else { - cName = className + "_" + methodName; - filename = cName + ".java"; - } - - - DataOutputStream raf = null; - try { - raf = new DataOutputStream( new FileOutputStream(outputDir+filename)); - } catch (Exception e) { - System.out.println("ERROR: Could not create File " + filename); - return; - } - - try { - String fstr = new String(); - fstr = fstr + "/**"; - fstr = fstr + "\n"; - fstr = fstr + " *"; - fstr = fstr + "\n"; - fstr = fstr + " * @version 1.00 "; - fstr = fstr + "\n"; - fstr = fstr + " * @author "; - fstr = fstr + "\n"; - fstr = fstr + " *"; - fstr = fstr + "\n"; - fstr = fstr + " * TESTID "; - fstr = fstr + "\n"; - fstr = fstr + " * "; - fstr = fstr + "\n"; - fstr = fstr + " *"; - fstr = fstr + "\n"; - fstr = fstr + " */"; - fstr = fstr + "\n"; - fstr = fstr + "package org.mozilla.dom.test;"; - fstr = fstr + "\n"; - fstr = fstr + "\n"; - fstr = fstr + "import java.util.*;"; - fstr = fstr + "\n"; - fstr = fstr + "import java.io.*;"; - fstr = fstr + "\n"; - fstr = fstr + "import org.mozilla.dom.test.*;"; - fstr = fstr + "\n"; - fstr = fstr + "import org.mozilla.dom.*;"; - fstr = fstr + "\n"; - fstr = fstr + "import org.w3c.dom.*;"; - fstr = fstr + "\n"; - fstr = fstr + "import org.w3c.dom.html.*;"; - fstr = fstr + "\n"; - fstr = fstr + "\n"; - fstr = fstr + "public class " + cName; - fstr = fstr + " extends BWBaseTest implements Execution"; - fstr = fstr + "\n"; - fstr = fstr + "{"; - fstr = fstr + "\n"; - fstr = fstr + "\n"; - fstr = fstr + " /**"; - fstr = fstr + "\n"; - fstr = fstr + " *"; - fstr = fstr + "\n"; - fstr = fstr + " ***********************************************************"; - fstr = fstr + "\n"; - fstr = fstr + " * Constructor"; - fstr = fstr + "\n"; - fstr = fstr + " ***********************************************************"; - fstr = fstr + "\n"; - fstr = fstr + " *"; - fstr = fstr + "\n"; - fstr = fstr + " */"; - fstr = fstr + "\n"; - fstr = fstr + " public " + cName + "()"; - fstr = fstr + "\n"; - fstr = fstr + " {"; - fstr = fstr + "\n"; - fstr = fstr + " }"; - fstr = fstr + "\n"; - fstr = fstr + "\n"; - fstr = fstr + "\n"; - fstr = fstr + " /**"; - fstr = fstr + "\n"; - fstr = fstr + " *"; - fstr = fstr + "\n"; - fstr = fstr + " ***********************************************************"; - fstr = fstr + "\n"; - fstr = fstr + " * Starting point of application"; - fstr = fstr + "\n"; - fstr = fstr + " *"; - fstr = fstr + "\n"; - fstr = fstr + " * @param args Array of command line arguments"; - fstr = fstr + "\n"; - fstr = fstr + " *"; - fstr = fstr + "\n"; - fstr = fstr + " ***********************************************************"; - fstr = fstr + "\n"; - fstr = fstr + " */"; - fstr = fstr + "\n"; - fstr = fstr + " public static void main(String[] args)"; - fstr = fstr + "\n"; - fstr = fstr + " {"; - fstr = fstr + "\n"; - fstr = fstr + " }"; - fstr = fstr + "\n"; - fstr = fstr + "\n"; - fstr = fstr + " /**"; - fstr = fstr + "\n"; - fstr = fstr + " ***********************************************************"; - fstr = fstr + "\n"; - fstr = fstr + " *"; - fstr = fstr + "\n"; - fstr = fstr + " * Execute Method "; - fstr = fstr + "\n"; - fstr = fstr + " *"; - fstr = fstr + "\n"; - fstr = fstr + " * @param tobj Object reference (Node/Document/...)"; - fstr = fstr + "\n"; - fstr = fstr + " * @return true or false depending on whether test passed or failed."; - fstr = fstr + "\n"; - fstr = fstr + " *"; - fstr = fstr + "\n"; - fstr = fstr + " ***********************************************************"; - fstr = fstr + "\n"; - fstr = fstr + " */"; - fstr = fstr + "\n"; - fstr = fstr + " public boolean execute(Object tobj)"; - fstr = fstr + "\n"; - fstr = fstr + " {"; - fstr = fstr + "\n"; - fstr = fstr + " if (tobj == null) {"; - fstr = fstr + "\n"; - fstr = fstr + " TestLoader.logPrint(\"Object is NULL...\");"; - fstr = fstr + "\n"; - fstr = fstr + " return BWBaseTest.FAILED;"; - fstr = fstr + "\n"; - fstr = fstr + " }"; - fstr = fstr + "\n"; - fstr = fstr + "\n"; - fstr = fstr + " String os = System.getProperty(\"OS\");"; - fstr = fstr + "\n"; - fstr = fstr + " osRoutine(os);"; - fstr = fstr + "\n"; - -/* String pString=valueList; - if (valueList == null) - pString= new String(""); -*/ - - if (rules != null && rules.get(className) != null) - fstr =fstr + makeTestRoutine(className, returnType, methodName, valueList); - - fstr = fstr + " return BWBaseTest.PASSED;"; - fstr = fstr + "\n"; - fstr = fstr + " }"; - fstr = fstr + "\n"; - fstr = fstr + "\n"; - fstr = fstr + " /**"; - fstr = fstr + "\n"; - fstr = fstr + " *"; - fstr = fstr + "\n"; - fstr = fstr + " ***********************************************************"; - fstr = fstr + "\n"; - fstr = fstr + " * Routine where OS specific checks are made. "; - fstr = fstr + "\n"; - fstr = fstr + " *"; - fstr = fstr + "\n"; - fstr = fstr + " * @param os OS Name (SunOS/Linus/MacOS/...)"; - fstr = fstr + "\n"; - fstr = fstr + " ***********************************************************"; - fstr = fstr + "\n"; - fstr = fstr + " *"; - fstr = fstr + "\n"; - fstr = fstr + " */"; - fstr = fstr + "\n"; - fstr = fstr + " private void osRoutine(String os)"; - fstr = fstr + "\n"; - fstr = fstr + " {"; - fstr = fstr + "\n"; - fstr = fstr + " if(os == null) return;"; - fstr = fstr + "\n"; - fstr = fstr + "\n"; - fstr = fstr + " os = os.trim();"; - fstr = fstr + "\n"; - fstr = fstr + " if(os.compareTo(\"SunOS\") == 0) {}"; - fstr = fstr + "\n"; - fstr = fstr + " else if(os.compareTo(\"Linux\") == 0) {}"; - fstr = fstr + "\n"; - fstr = fstr + " else if(os.compareTo(\"Windows\") == 0) {}"; - fstr = fstr + "\n"; - fstr = fstr + " else if(os.compareTo(\"MacOS\") == 0) {}"; - fstr = fstr + "\n"; - fstr = fstr + " else {}"; - fstr = fstr + "\n"; - fstr = fstr + " }"; - - fstr = fstr + "\n"; - fstr = fstr + "}"; - fstr = fstr + "\n"; - - raf.write(fstr.getBytes()); - } catch (IOException e) { - System.out.println("ERROR: Could not write to File " + filename); - return; - } - - try { - raf.close(); - } catch (Exception e) { - System.out.println("ERROR: Could not close File " + filename); - return; - } - - - DataOutputStream dos = null; - String txtFile = className + ".txt"; - try { - dos = new DataOutputStream( new FileOutputStream(outputDir+txtFile)); - } catch (Exception e) { - System.out.println("ERROR: Could not create File " + txtFile); - return; - } - - String str = className + ":" + currMethod + ":" + currParamList + ":" + filename; - outputFiles.addElement(str); - try { - dos.write(str.getBytes()); - } catch (IOException e) { - System.out.println("ERROR: Could not write to File " + txtFile); - return; - } - - try { - dos.close(); - } catch (Exception e) { - System.out.println("ERROR: Could not close File " + txtFile); - return; - } - } - - - - private Method findMethod(String mn) { - if (methods == null) - return null; - for (int i=0; i < methods.length; i++) { - //System.out.println("Comparing: "+mn+" <-> "+methods[i].getName()); - if (methods[i].getName().compareTo(mn) == 0) - return methods[i]; - } - return null; - } - - - private String makeTestRoutine(String className, String returnType, String methodName, String valueList) { - String result = new String(""); - String tab = " ", tab1=tab+tab, tab2=tab1+tab, tab3=tab2+tab1; - String robj = "", check = ""; - String valList = valueList; - - if (valueList == null) - valList = ""; - /*Weather method returns object ?*/ - if (returnType.compareTo("void") != 0) { - robj = returnType + " rc = "; - if (returnType.indexOf('.') > 0) - check = tab3 + "if (rc == null) return BWBaseTest.FAILED;\n"; - } - /*Let's try to find set<->get pair for methods with one argument ...*/ - if (methodName.startsWith("set") && valueList.indexOf(',') < 0 && valueList.compareTo("null") != 0) { - String getMethod = "get" + methodName.substring(3); - //System.out.println("GET_METHOD "+getMethod); - Method m; - if ((m = findMethod(getMethod)) != null && m.getParameterTypes().length == 0) { - String equals = ".equals"; - /* Weather return type is standard ?*/ - if (m.getReturnType().getName().indexOf('.') < 0) - equals = "=="; - check = tab3+"if (!(obj."+getMethod+"()"+equals+"("+valueList+"))) return BWBaseTest.FAILED;\n"; - } - } - result += tab1 + "Document d = (Document)tobj;\n"; - result += tab1 + "if (d != null) {\n"; - result += tab2 + "try {\n"; - result += tab3 + className+" obj = " + rules.get(className)+";\n"; - result += tab3 + robj + "obj." + methodName + "("+valList+");\n" + check; - result += tab2 + "} catch (Exception e) {\n"; - result += tab3 + "return BWBaseTest.FAILED;\n"; - result += tab2 + "}\n"; - result += tab1 + "} else {\n"; - result += tab2 + "return BWBaseTest.FAILED;\n"; - result += tab1 + "}\n"; - return result; - } - - public static void usage() - { - System.out.println("Usage: java JavaTestTemplate [-d ] [-r ] "); - } - - public static void main(String args[]) - { - if (args.length == 0) - { - BWJavaTemplate.usage(); - return; - } - - String className = null; - String outDirectory = null; - String rulesFile = null; - - switch(args.length) { - case(0): - BWJavaTemplate.usage(); - return; - case(1): - if(args[0].charAt(0) == '-') { - BWJavaTemplate.usage(); - return; - } - className = args[0]; - break; - default: - for(int i=0; i 0) { - for (int i=0; i 0) { - ps.println(); - for (int i=0; i= 0; i--) - { - tmpVect = getCombination((Vector)arrayOfVector[i], tmpVect); - } - - for (int i=0; i< tmpVect.size(); i++) - { - str[i] = (String)tmpVect.elementAt(i); - } - return str; - } - - /** - * - * Get all combinations of values in Vectors v1 and v2 - * - * @param v1 Vector class containing values in string format - * viz: 0/null/DUMMY_STRING - * @param v2 Vector class containing values in string format - * viz: 0/null/DUMMY_STRING - * @return vector containing combinations of above values. - * viz: null, null - * null, DUMMY_STRING - * 0, null... - * - */ - private Vector getCombination( Vector v1, Vector v2) - { - Vector store = new Vector(); - for (int i=0; i< v1.size(); i++) - { - String vstr1 = (String)v1.elementAt(i); - for (int j=0; j< v2.size(); j++) - { - String vstr2 = (String)v2.elementAt(j); - String newstr = vstr1 + ", " + vstr2; - store.addElement(newstr); - } - } - return store; - } -} diff --git a/mozilla/java/dom/tests/src/README b/mozilla/java/dom/tests/src/README deleted file mode 100755 index 9c586ca7764..00000000000 --- a/mozilla/java/dom/tests/src/README +++ /dev/null @@ -1,121 +0,0 @@ -This document describes steps required to run the Test Suite for JavaDOM API -throught a PLUGLET. -You have to build PLUGLETS before building this -( see http://www.mozilla.org/projects/blackwood/java-plugins ) - -For Solaris -=========== - 1) open mozilla.csh - - 2) make changes to variables - MOZILLA_FIVE_HOME - Absolute path where mozilla-bin - executable is located. - JAVA_HOME - Absolute Path to J2SE1.3 dir. - TEST_PATH - Absolute Directory Path where file - BWTestClass.lst is located. - PLUGLET - Absolute dir. where DOMPLUGLET.jar - is located - - 3) source mozilla.csh - this will set up the environment - - 4) Edit BWProperties file and change the locations for variables - BW_TESTDIR (Absolute Directory Path where file BWTestClass.lst is - located) - BW_LOGDIR (Absolute Directory Path where log files need to be - created) - BW_THREADMODE (Execute tests in single thread [S] or - multi-thread [M] mode. Takes values S/M.) - - 5) Set PLUGLET enviornment to point to classes dir. - setenv PLUGLET /opt/mozilla/java/dom/tests/classes - - 6) Set LD_PRELOAD to point to libXm.so - setenv LD_PRELOAD libXm.so - - 7) Invoke autorun.sh from command prompt. - sh autorun.sh - - 8) The results are recorded in HTML file BWTest.html - and in log file BWTest.log - Individual test Log files are also found in 'log' directory. - - ---------------------------------------------------------------------------- - -To Invoke a specific test case - sh autorun.sh -t org.mozilla.dom.test.AttrImpl_getName - -NOTE: All TestCase list is recorded in file BWTestClass.lst.ORIG - If your machine is slow and loading time of mozilla is high then - accordingly increase DELAY_FACTOR to a higher value in autorun.sh. - - - -============================================================================= - -For WIN32 -=========== -Assumes you have installed PERL and the following variables are set in your environment: - MOZILLA_HOME - top directory in mozilla's tree - JAVA_HOME - path to JDK - - 1) open mozilla.bat - - 2) make changes to variables - MOZILLA_BIN - Mozilla's executable file name - (e.g. mozilla.exe or viewer.exe) - TEST_PATH - path to the current directory - (where mozilla.bat is) - PLUGLET - Absolute dir. where DOMPLUGLET.jar - is located - - 3) execute mozilla.bat from command prompt - this will create new console and set up the environment for this - command prompt - - 4) Edit BWProperties file and change the locations for variables - BW_TESTDIR (Absolute Directory Path where file BWTestClass.lst is - located) - BW_LOGDIR (Absolute Directory Path where log files need to be - created) - BW_THREADMODE (Execute tests in single thread [S] or - multi-thread [M] mode. Takes values S/M.) - - - NOTE: Since on Windows file separator is a `\`, it should be escaped - by another '\'. So if a file is in c:\mozilla\tests then it - would be written as c:\\mozilla\\tests. - - - 5) Invoke autorun.pl from command prompt. - perl autorun.pl - - 6) The results are recorded in HTML file BWTest.html - and in log file BWTest.log - Individual test Log files are also found in 'log' directory. - - ---------------------------------------------------------------------------- - -To Invoke a specific test case - perl autorun.pl -t org.mozilla.dom.test.AttrImpl_getName - -NOTE: All Test Cases are recorded in file BWTestClass.lst.ORIG - ---------------------------------------------------------------------------- - - -BUGS: - - Currently a bug is filed against getDocumentType method of object Document. - for XML (see Bugzilla ID: 15118). - Hence all the tests which depend on the same will fail, namely - DocumentTypeImpl->getEntities - DocumentTypeImpl->getInternalSubset - DocumentTypeImpl->getName - DocumentTypeImpl->getNotations - DocumentTypeImpl->getPublicId - DocumentTypeImpl->getSystemId - DocumentImpl->getDoctype_xml - diff --git a/mozilla/java/dom/tests/src/README.html b/mozilla/java/dom/tests/src/README.html deleted file mode 100644 index b30349079b1..00000000000 --- a/mozilla/java/dom/tests/src/README.html +++ /dev/null @@ -1,341 +0,0 @@ - - - - - - - - - -

-

-README for DOM API Test Execution

-Solaris -  -  -WinNT -  -  -Linux -  -  -Macintosh -
- - - -
-
-Solaris -
    -
  • -open mozilla.csh
  • - -
  • -make changes to variables
  • -
- -
      -
    - - - - - - - - - - - - - - - - - - - - - - - -
    TEST_PATHAbsolute Directory Path where file BWTestClass.lst is located.
    MOZILLA_FIVE_HOMEAbsolute Path where mozilla-bin is located.
    JAVA_HOMEAbsolute Path to JDK dir.
    USE_APPLET_FOR_REGISTRATIONSet this variable if you wish to use applet for running tests (now -available under Win32 only). Otherwise hacked DOMAccessor class is -used.
    - -
  • -source mozilla.csh this will set up the environment
  • - -
  • -Edit BWProperties file and change the locations for variables
  • -
- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
BW_TESTDIRAbsolute Directory Path where file BWTestClass.lst is located.
BW_LOGDIRAbsolute Directory  Path where log files need to be created.
BW_THREADMODEIndicates whether to execute tests in single-thread mode[S]     -or multi-thread mode[M].  Takes values S/M .
BW_HTMLTESTURL where redirect.html, test.html files are located. Used if you run tests through -TestLoader applet.
BW_XMTESTURL where redirectxml.html, test.xml files are located. Used if you -
run tests through TestLoader applet
- -
     
- -
    -
  • -Copy redirect.html, test.html and redirectxml.html, test.xml -files to your web-servers DOCUMENT_ROOT ( By default it is assumed that -they can be  accessed as http://[server name]/text.html  -or http://[servername]/~[username]/text.html).
  • -
- -
    -
  • -Invoke autorun.sh from command prompt.
  • - -
      -
    • -sh autorun.sh
    • -
    -
- -
    -
  • -The results are recorded in HTML file BWTest.html -and in log file BWTest.log Individual test -Log files are also found in 'log' directory.
  • -
- -


To Invoke a specific test case -

sh autorun.sh -t org.mozilla.dom.test.AttrImpl_getName
-NOTE:All Test Cases -are recorded in file BWTestClass.lst.ORIG -

ASSUMPTION: I assume -that u have copied the files test.xml, redirectxml.html, redirect.html, test.html to your DOCUMENT_ROOT -of your WebServer. -
The URL it tries to load is http://[servername]/redirect.html. -
If it is set in users public_html then open file autorun.sh -and change DOCROOT accordingly. -

- - - -


- -
Windows NT -
    -
  1. -Assumes you have installed PERL and the following variables are set -in your environment:
  2. - -
      -
    • -MOZILLA_HOME - top directory in mozilla's -tree
    • - -
    • -JAVA_HOME - path to JDK
    • -
    - -
  3. -open mozilla.bat
  4. - -
  5. -make changes to variables
  6. - -
      -
    • -MOZILLA_BIN - Mozilla's executable file name -(e.g. mozilla.exe or viewer.exe)
    • - -
    • -TEST_PATH - path to the current directory -(where mozilla.bat is)
    • - -
    • -TEST_URL - URL where redirect.html and test.html -are located (complte URL looks like that: $TEST_URL/redirect.html). Is used -if you run tests through hacked DOMAccessor only.
    • -
    - -
  7. -execute mozilla.bat from command prompt this will create new console -and set up the environment for this command prompt
  8. - -
  9. -Edit BWProperties file and change the locations for variables
  10. - -
      -
    • -BW_TESTDIR (Absolute Directory Path where -file BWTestClass.lst is located)
    • - -
    • -BW_LOGDIR (Absolute Directory Path where log -files need to be created)
    • - -
    • -BW_THREADMODE (Execute tests in single thread -[S] or multi-thread [M] mode. Takes values S/M.)
    • - -
    • -BW_HTMLTEST (URL where redirect.html file are -located. Used if you run tests through TestLoader applet)
    • - -
    • -BW_XMLTEST (URL where test.xml file are located. -Used if you run tests through TestLoader applet)
    • -
    - -
    - -NOTE: Since on Windows file separator is a `\`, it should be escaped by -
    -          another '\'. So if a file is in c:\mozilla\tests then it would be written as c:\\mozilla\\tests. -
    -
    - -
  11. -There are several ways to run tests:
  12. - -
      -
    • -Invoke autorun.pl from command prompt.
    • - -
      perl autorun.pl -
      For each test new Mozilla is executed. -
    • -For quick testing say
    • - -
      mozilla.exe file:/TestLoaderHTML.html -
      (mozilla.exe file:/TestLoaderXML.html) -
      if you use applet for registration -
    • -or say
    • - -
      mozilla.exe file:/redirect.html -
      if you use hacked DOMAcceessor.
    - -
  13. -The results are recorded in HTML file BWTest.html and in log file BWTest.log -Individual test Log files are also found in 'log' directory.
  14. -
- -
-
-
  - - diff --git a/mozilla/java/dom/tests/src/ReflectionTest.java b/mozilla/java/dom/tests/src/ReflectionTest.java deleted file mode 100755 index 9fc2a07c79c..00000000000 --- a/mozilla/java/dom/tests/src/ReflectionTest.java +++ /dev/null @@ -1,140 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.lang.reflect.*; - - -public class ReflectionTest -{ public static void main(String[] args) - { String name = readLine("Please enter a class name (e.g. java.util.Date): "); - try - { Class cl = Class.forName(name); - Class supercl = cl.getSuperclass(); - System.out.print("class " + name); - if (supercl != null && !supercl.equals(Object.class)) - System.out.print(" extends " + supercl.getName()); - System.out.print("\n{\n"); - printConstructors(cl); - System.out.println(); - printMethods(cl); - System.out.println(); - printFields(cl); - System.out.println("}"); - } - catch(ClassNotFoundException e) - { System.out.println("Class not found."); - } - } - - public static String readLine(String str) - { int ch; - String r = ""; - boolean done = false; - System.out.println(str); - while (!done) - { try - { ch = System.in.read(); - if (ch < 0 || (char)ch == '\n') - done = true; - else if ((char)ch != '\r') // weird--it used to do \r\n translation - r = r + (char) ch; - } - catch(java.io.IOException e) - { done = true; - } - } - return r; - } - - - - public static void printConstructors(Class cl) - { Constructor[] constructors = cl.getDeclaredConstructors(); - - for (int i = 0; i < constructors.length; i++) - { Constructor c = constructors[i]; - Class[] paramTypes = c.getParameterTypes(); - String name = c.getName(); - System.out.print(Modifier.toString(c.getModifiers())); - System.out.print(" " + name + "("); - for (int j = 0; j < paramTypes.length; j++) - { if (j > 0) System.out.print(", "); - System.out.print(paramTypes[j].getName()); - } - System.out.println(");"); - } - } - - public static void printMethods(Class cl) - { Method[] methods = cl.getDeclaredMethods(); - - for (int i = 0; i < methods.length; i++) - { Method m = methods[i]; - Class retType = m.getReturnType(); - Class[] paramTypes = m.getParameterTypes(); - String name = m.getName(); - System.out.print(Modifier.toString(m.getModifiers())); - System.out.print(" " + retType.getName() + " " + name - + "("); - for (int j = 0; j < paramTypes.length; j++) - { if (j > 0) System.out.print(", "); - System.out.print(paramTypes[j].getName()); - } - System.out.println(");"); - } - } - - public static void printFields(Class cl) - { Field[] fields = cl.getDeclaredFields(); - - for (int i = 0; i < fields.length; i++) - { Field f = fields[i]; - Class type = f.getType(); - String name = f.getName(); - System.out.print(Modifier.toString(f.getModifiers())); - System.out.println(" " + type.getName() + " " + name - + ";"); - } - } - - - public Method[] getMethods(Class cl) - { - Method[] methods = cl.getDeclaredMethods(); - return methods; - } - - public Class[] getParameters(Method m) - { - Class[] paramTypes = m.getParameterTypes(); - return paramTypes; - } - - public Constructor[] getConstructors(Class cl) - { - Constructor[] constructors = cl.getDeclaredConstructors(); - return constructors; - } - - -} diff --git a/mozilla/java/dom/tests/src/TestLoader.java b/mozilla/java/dom/tests/src/TestLoader.java deleted file mode 100755 index 1b00efb8286..00000000000 --- a/mozilla/java/dom/tests/src/TestLoader.java +++ /dev/null @@ -1,721 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.lang.*; -import java.util.*; -import java.io.*; -import java.net.URL; -import java.applet.Applet; -import org.w3c.dom.Document; -import org.mozilla.dom.DOMAccessor; -import org.mozilla.dom.DocumentLoadListener; -import org.mozilla.dom.test.*; - -public class TestLoader extends Applet implements DocumentLoadListener -{ - - private Object targetObj; - private int returnType = 0; - private static String TESTFILE = "BWTestClass.lst"; - private static String PROPERTYFILE = "BWProperties"; - private static String LOGFILE = "BWTest.log"; - private static String LOGHTML = "BWTest.html"; - private static String LOGTXT = "BWTest.txt"; - public static Properties propTable = new Properties(); - private final boolean debug = true; - private static String FILE_SEP = "/"; - - /** - ************************************************************************ - * Default constructor - * - ************************************************************************ - */ - public TestLoader() - { - System.out.println("########################## Createing default TestLoader ...\n"); - try { - throw new Exception(); - } catch (Exception e) { - e.printStackTrace(); - } - FILE_SEP = System.getProperty("file.separator"); - } - - /** - ************************************************************************ - * Constructor - * - * @param targetObj Object instance (Node/Document/....) - * @param areturnType if 1 then return Object expected - * if 0 then no return Object expected - * - ************************************************************************ - */ - public TestLoader(Object obj, int areturnType) - { - System.out.println("########################## Createing TestLoader ..."); - targetObj = obj; - returnType = areturnType; - FILE_SEP = System.getProperty("file.separator"); - } - - - /** - * - ************************************************************************ - * - * Sets the Testing Target - * - * @param target Target to be tested - * - * @return void - * - ************************************************************************ - * - */ - void setTarget(Object target) - { - targetObj = target; - } - - /** - * - ************************************************************************ - * - * Load all the Test cases specified in file $BLACWOOD_TESTFILE - * It reads each entry and creates a runtime instantiation of each class - * - ************************************************************************ - * - */ - public Object loadTest() - { - if (targetObj == null) { - System.out.println("Target Object " + targetObj.toString() + " is null...."); - return null; - } - - // Read Property File - TestLoader.readPropertyFile(); - - // Check Property Names, to see if provided with correct file - // separators. - // For Windows platform FILE_SEP is \ but it has to be escaped with - // another \ , so a property value would look like c:\\mozilla\\java - // instead of c:\mozilla\java - // - String CHECK_SEP = "/"; - - if ( FILE_SEP.compareTo("/") == 0) CHECK_SEP = "\\"; - Enumeration em = propTable.propertyNames(); - if (em == null) return null; - - while (em.hasMoreElements()) - { - String name = (String)(em.nextElement()); - String val = propTable.getProperty(name); - if (val == null) continue; - if (val.indexOf("BW_HTMLTEST") != -1) continue; - if (val.indexOf("BW_XMLTEST") != -1) continue; - - int idx = val.indexOf(CHECK_SEP); - if (idx != -1) { - System.out.println("********** ERROR: File Separator for Property " + name + " is incorrect in file " + PROPERTYFILE); - return null; - } - } - - - String testDir = "."; - String testFile = TESTFILE; - -System.out.println("Inside LoadTest"); - // Set Test directory - testDir = propTable.getProperty("BW_TESTDIR"); - if (testDir == null) testDir="."; - - // Set Test Filename - testFile = propTable.getProperty("BW_TESTFILE"); - if (testFile == null) testFile = TESTFILE; - - String fname = testDir + FILE_SEP + testFile; - FileInputStream in = null; - - try { - in = new FileInputStream(fname); - } catch (SecurityException e) { - System.out.println ("Security Exception:Could not create stream for file " + fname); - System.exit(-1); - return null; - } catch (FileNotFoundException e) { - System.out.println ("Could not create stream for file " + fname); - System.exit(-1); - return null; - } - - BufferedReader din; - try { - din = new BufferedReader(new InputStreamReader(in)); - } catch (Exception e) { - System.out.println ("Could not get Input Reader for file " + fname); - return null; - } - - String line= new String(""); - Vector fileVect = new Vector(); - try { - while (line != null) - { - line = din.readLine(); - if (line != null) - { - if (line.charAt(0) == '#') - continue; - fileVect.addElement(line); - } - } - } catch (Exception e) { - System.out.println("could not read Line from file " + fname); - line=null; - } - - try { - din.close(); - } catch (Exception e) { - System.out.println ("Could not close file " + fname); - return null; - } - - // check if test have to be run in single Thread mode(S) or - // multi Thread mode (M) - // - String threadMode = propTable.getProperty("BW_THREADMODE"); - if (threadMode == null) - threadMode = "S"; - - for (int i=0; i\n"; - msg = msg + "

\n"; - msg = msg + "DOM API Automated TestRun Results\n"; - msg = msg + dt.toString(); - msg = msg + "

\n"; - msg = msg + "
"; - msg = msg + "\n"; - msg = msg + "\n"; - msg = msg + "\n"; - msg = msg + "\n"; - msg = msg + "\n"; - raf.write(msg.getBytes()); - raf.write("\n".getBytes()); - } catch (IOException e) { - System.out.println("ERROR: Could not write to File " + fname); - return; - } - - try { - raf.close(); - } catch (Exception e) { - System.out.println("ERROR: Could not close File " + fname); - return; - } - } - - /** - * - ************************************************************************ - * Routine which prints Footer for HTML file - ************************************************************************ - * - */ - public static void htmlPrintFooter() - { - String logDir = propTable.getProperty("BW_LOGDIR"); - if (logDir == null) logDir = "."; - - String logFile = LOGHTML; - - - String fname = logDir + FILE_SEP + logFile; - - // Get Output Stream from Log file - RandomAccessFile raf=null; - try { - raf = new RandomAccessFile(fname, "rw"); - } catch (Exception e) { - System.out.println ("Could not open file " + fname); - return; - } - - - String msg=null; - try { - long len = raf.length(); - raf.seek(len); - msg = "
Test CaseResult
\n"; - raf.write(msg.getBytes()); - } catch (IOException e) { - System.out.println("ERROR: Could not write to File " + fname); - return; - } - - try { - raf.close(); - } catch (Exception e) { - System.out.println("ERROR: Could not close File " + fname); - return; - } - } - - - - /** - * - ************************************************************************ - * Routine which prints to HTML files - * - * @param testCase TestCase name (class name) - * @param msg Message to be logged - * - * @return void - ************************************************************************ - * - */ - public static void htmlPrint(String testCase, String msg) - { - - if (msg == null) return; - if (testCase == null) return; - - String logDir = propTable.getProperty("BW_LOGDIR"); - if (logDir == null) logDir = "."; - - String logFile = LOGHTML; - - - String fname = logDir + FILE_SEP + logFile; - - // Get Output Stream from Log file - RandomAccessFile raf=null; - try { - raf = new RandomAccessFile(fname, "rw"); - } catch (Exception e) { - System.out.println ("Could not open file " + fname); - return; - } - - try { - String msg1 = null; - long len = raf.length(); - raf.seek(len); - msg1 = "" + testCase + "\n"; - msg1 = msg1 + "" + msg + "\n"; - msg1 = msg1 + ""; - raf.write(msg1.getBytes()); - } catch (IOException e) { - System.out.println("ERROR: Could not write to File " + fname); - return; - } - - try { - raf.close(); - } catch (Exception e) { - System.out.println("ERROR: Could not close File " + fname); - return; - } - } - - - /** - * - ************************************************************************ - * Routine which prints to txt file - * - * @param testCase TestCase name (class name) - * @param msg Message to be logged - * - * @return void - ************************************************************************ - * - */ - public static void txtPrint(String testCase, String msg) - { - - if (msg == null) return; - if (testCase == null) return; - - String logDir = propTable.getProperty("BW_LOGDIR"); - if (logDir == null) logDir = "."; - - String logFile = TestLoader.LOGTXT; - - - String fname = logDir + FILE_SEP + logFile; - - // Get Output Stream from Log file - RandomAccessFile raf=null; - try { - raf = new RandomAccessFile(fname, "rw"); - } catch (Exception e) { - System.out.println ("Could not open file " + fname); - return; - } - - try { - String msg1 = null; - long len = raf.length(); - raf.seek(len); - msg1 = testCase + "=" + msg + "\n"; - raf.write(msg1.getBytes()); - } catch (IOException e) { - System.out.println("ERROR: Could not write to File " + fname); - return; - } - - try { - raf.close(); - } catch (Exception e) { - System.out.println("ERROR: Could not close File " + fname); - return; - } - } - - /*Implementing DocumentLoadListener interface*/ - public void endDocumentLoad(String url, int status, Document doc) - { - System.out.println("################### Got Document: "+url); - if ((!(url.endsWith(".html"))) && (!(url.endsWith(".xml")))) { - System.out.println("################### Document is not HTML/XML ... "+url); - return; - } - - if (url.endsWith(".html")) - { - if (url.indexOf("test.html") == -1) { - System.out.println("TestCases Tuned to run with test.html..."); - return; - } - } - - if (url.endsWith(".xml")) - { - if (url.indexOf("test.xml") == -1) { - System.out.println("TestCases Tuned to run with test.xml..."); - return; - } - } - - Object obj = (Object) doc; - - setTarget(obj); - System.out.println("################## Loading test ... "); - try { - Object retobj = loadTest(); - System.out.println("################## test exited normally ... "); - } catch (Exception e) { - System.out.println("################## test exited abnormally: \n" + e); - } - - doc = null; - - }; - public void startURLLoad(String url, String contentType, Document doc) {}; - public void endURLLoad(String url, int status, Document doc) {}; - public void progressURLLoad(String url, int progress, int progressMax, Document doc) {}; - public void statusURLLoad(String url, String message, Document doc) {}; - public void startDocumentLoad(String url) {}; - - /*Overiding some Applet's methods */ - public void init() - { - System.err.println("################## Regestring DocumentLoadListener !"); - DOMAccessor.addDocumentLoadListener((DocumentLoadListener)this); - - String testURL = propTable.getProperty("BW_HTMLTEST"); - if (testURL == null) { - System.err.println("################# WARNING: BW_HTMLTEST property is not set ! Using file: protocol by default !"); - testURL="file:"; - } - - if (getParameter("test_type").equals("XML")) { - testURL = propTable.getProperty("BW_XMLTEST"); - if (testURL == null) - testURL="file:"; - testURL+="/test.xml"; - } else if (getParameter("test_type").equals("HTML")) { - testURL+="/test.html"; - } else { - System.err.println("################ WARNING: Unrecognized test type (valid are HTML/XML):"+getParameter("test_type")+"\nLoading test.html by default."); - testURL+="/test.html"; - } - - System.err.println("################## Loading "+testURL); - try { - getAppletContext().showDocument(new URL(testURL)); - } catch (Exception e) { - System.err.println("############ Can't show test document: \nException: " + e.fillInStackTrace()); - } - } - -}//end of class diff --git a/mozilla/java/dom/tests/src/TestLoaderHTML.html b/mozilla/java/dom/tests/src/TestLoaderHTML.html deleted file mode 100644 index 429fc5ed6fd..00000000000 --- a/mozilla/java/dom/tests/src/TestLoaderHTML.html +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/mozilla/java/dom/tests/src/TestLoaderXML.html b/mozilla/java/dom/tests/src/TestLoaderXML.html deleted file mode 100644 index c6db9f257d0..00000000000 --- a/mozilla/java/dom/tests/src/TestLoaderXML.html +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/mozilla/java/dom/tests/src/api/AttrImpl_getName.java b/mozilla/java/dom/tests/src/api/AttrImpl_getName.java deleted file mode 100755 index 7acea5a533a..00000000000 --- a/mozilla/java/dom/tests/src/api/AttrImpl_getName.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class AttrImpl_getName extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public AttrImpl_getName() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - Attr a = d.createAttribute("dummyattr"); - if (a == null) { - TestLoader.logErrPrint("Could not Create Attribute .."); - return BWBaseTest.FAILED; - } else { - String str = a.getName(); - if (str == null) { - TestLoader.logErrPrint("Attr 'getName()' is NULL ..."); - return BWBaseTest.FAILED; - } - - if (str.compareTo("dummyattr") != 0) - { - TestLoader.logErrPrint("Attr 'getName()' FAILED ..."); - return BWBaseTest.FAILED; - } - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/AttrImpl_getOwnerElement.java b/mozilla/java/dom/tests/src/api/AttrImpl_getOwnerElement.java deleted file mode 100755 index 102fe1544c0..00000000000 --- a/mozilla/java/dom/tests/src/api/AttrImpl_getOwnerElement.java +++ /dev/null @@ -1,129 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class AttrImpl_getOwnerElement extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public AttrImpl_getOwnerElement() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - Document d = (Document)tobj; - if (d != null) - { - Attr a = d.createAttribute("dummyattr_2"); - Element e = d.getDocumentElement(); - if (a == null || e == null) { - TestLoader.logErrPrint("Could not Create Attribute dummyattr_2 or get document element .."); - return BWBaseTest.FAILED; - } else { - try { - e.setAttributeNode(a); - Attr da = e.getAttributeNode("dummyattr_2"); - Element oe = da.getOwnerElement(); - if (oe != null) { //here we also need to check that oe is the same ??? - return BWBaseTest.PASSED; - } - TestLoader.logErrPrint("Attr 'getOwnerElement()' returned incorrect element: "+oe+" "+oe.getNodeType()); - return BWBaseTest.FAILED; - } catch (Exception ex) { - TestLoader.logErrPrint("Exception was thrown: "+ex); - return BWBaseTest.FAILED; - } - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/AttrImpl_getSpecified.java b/mozilla/java/dom/tests/src/api/AttrImpl_getSpecified.java deleted file mode 100755 index 03d3ddedd93..00000000000 --- a/mozilla/java/dom/tests/src/api/AttrImpl_getSpecified.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class AttrImpl_getSpecified extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public AttrImpl_getSpecified() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - Attr a = d.createAttribute("dummyattr_1"); - if (a == null) { - TestLoader.logErrPrint("Could not Create Attribute .."); - return BWBaseTest.FAILED; - } else { - if (a.getSpecified()) { - TestLoader.logErrPrint("Attr 'getSpecified' returned true..."); - return BWBaseTest.FAILED; - } else { - } - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/AttrImpl_getValue.java b/mozilla/java/dom/tests/src/api/AttrImpl_getValue.java deleted file mode 100755 index 0bba5606f53..00000000000 --- a/mozilla/java/dom/tests/src/api/AttrImpl_getValue.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class AttrImpl_getValue extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public AttrImpl_getValue() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - Attr a = d.createAttribute("dummyattr_2"); - if (a == null) { - TestLoader.logErrPrint("Could not Create Attribute dummyattr_2.."); - return BWBaseTest.FAILED; - } else { - a.setValue("1"); - String str = a.getValue(); - if (str == null) { - TestLoader.logErrPrint("Attr 'getValue()' is NULL ..."); - return BWBaseTest.FAILED; - } - - if (str.compareTo("1") != 0) - { - TestLoader.logErrPrint("Attr 'getValue()' FAILED ..."); - return BWBaseTest.FAILED; - } - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/AttrImpl_setValue_String_0.java b/mozilla/java/dom/tests/src/api/AttrImpl_setValue_String_0.java deleted file mode 100755 index aa07afbba67..00000000000 --- a/mozilla/java/dom/tests/src/api/AttrImpl_setValue_String_0.java +++ /dev/null @@ -1,128 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class AttrImpl_setValue_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public AttrImpl_setValue_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - Attr a = d.createAttribute("dummyattr_3"); - if (a == null) { - TestLoader.logErrPrint("Could not Create Attribute dummyattr_3"); - return BWBaseTest.FAILED; - } else { - try { - a.setValue(null); - String str = a.getValue(); - if (str == null) { - TestLoader.logErrPrint("Attr 'setValue()' is NULL ..."); - return BWBaseTest.FAILED; - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/AttrImpl_setValue_String_1.java b/mozilla/java/dom/tests/src/api/AttrImpl_setValue_String_1.java deleted file mode 100755 index aae90334b85..00000000000 --- a/mozilla/java/dom/tests/src/api/AttrImpl_setValue_String_1.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class AttrImpl_setValue_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public AttrImpl_setValue_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - Attr a = d.createAttribute("dummyattr_4"); - if (a == null) { - TestLoader.logErrPrint("Could not Create Attribute dummyattr_4"); - return BWBaseTest.FAILED; - } else { - try { - a.setValue("1"); - String str = a.getValue(); - if (str == null) { - TestLoader.logErrPrint("Attr 'setValue(1)' is NULL ..."); - return BWBaseTest.FAILED; - } - - if (str.compareTo("1") != 0) - { - TestLoader.logErrPrint("Attr 'setValue(1)' FAILED ..."); - return BWBaseTest.FAILED; - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/BWTestClass.lst b/mozilla/java/dom/tests/src/api/BWTestClass.lst deleted file mode 100755 index 9f7f1ecc03c..00000000000 --- a/mozilla/java/dom/tests/src/api/BWTestClass.lst +++ /dev/null @@ -1 +0,0 @@ -org.mozilla.dom.test.NodeImpl_getPrefix diff --git a/mozilla/java/dom/tests/src/api/BWTestClass.lst.ORIG b/mozilla/java/dom/tests/src/api/BWTestClass.lst.ORIG deleted file mode 100755 index 91818022f30..00000000000 --- a/mozilla/java/dom/tests/src/api/BWTestClass.lst.ORIG +++ /dev/null @@ -1,231 +0,0 @@ -org.mozilla.dom.test.AttrImpl_getName -org.mozilla.dom.test.AttrImpl_getSpecified -org.mozilla.dom.test.AttrImpl_getValue -org.mozilla.dom.test.AttrImpl_getOwnerElement -org.mozilla.dom.test.AttrImpl_setValue_String_0 -org.mozilla.dom.test.AttrImpl_setValue_String_1 -org.mozilla.dom.test.CharacterDataImpl_appendData_String_0 -org.mozilla.dom.test.CharacterDataImpl_appendData_String_1 -org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_0 -org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_1 -org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_2 -org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_3 -org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_4 -org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_5 -org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_6 -org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_7 -org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_8 -org.mozilla.dom.test.CharacterDataImpl_getData -org.mozilla.dom.test.CharacterDataImpl_getLength -org.mozilla.dom.test.CharacterDataImpl_insertData_int_String_0 -org.mozilla.dom.test.CharacterDataImpl_insertData_int_String_1 -org.mozilla.dom.test.CharacterDataImpl_insertData_int_String_2 -org.mozilla.dom.test.CharacterDataImpl_insertData_int_String_3 -org.mozilla.dom.test.CharacterDataImpl_insertData_int_String_4 -org.mozilla.dom.test.CharacterDataImpl_insertData_int_String_5 -org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_0 -org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_1 -org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_10 -org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_11 -org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_12 -org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_13 -org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_14 -org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_15 -org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_16 -org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_17 -org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_2 -org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_3 -org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_4 -org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_5 -org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_6 -org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_7 -org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_8 -org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_9 -org.mozilla.dom.test.CharacterDataImpl_setData_String_0 -org.mozilla.dom.test.CharacterDataImpl_setData_String_1 -org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_0 -org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_1 -org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_2 -org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_3 -org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_4 -org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_5 -org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_6 -org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_7 -org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_8 -org.mozilla.dom.test.DOMImplementationImpl_hasFeature_String_String_0 -org.mozilla.dom.test.DOMImplementationImpl_hasFeature_String_String_1 -org.mozilla.dom.test.DOMImplementationImpl_hasFeature_String_String_2 -org.mozilla.dom.test.DOMImplementationImpl_hasFeature_String_String_3 -org.mozilla.dom.test.DOMImplementationImpl_hasFeature_String_String_4 -org.mozilla.dom.test.DOMImplementationImpl_createDocumentType_String_String_String_0 -org.mozilla.dom.test.DOMImplementationImpl_createDocumentType_String_String_String_String_0 -org.mozilla.dom.test.DOMImplementationImpl_createDocument_String_String_DocumentType_0 -org.mozilla.dom.test.DocumentImpl_createAttribute_String_0 -org.mozilla.dom.test.DocumentImpl_createAttribute_String_1 -org.mozilla.dom.test.DocumentImpl_createAttributeNS_String_String_0 -org.mozilla.dom.test.DocumentImpl_createAttributeNS_String_String_1 -org.mozilla.dom.test.DocumentImpl_createAttributeNS_String_String_2 -org.mozilla.dom.test.DocumentImpl_createAttributeNS_String_String_3 -org.mozilla.dom.test.DocumentImpl_createCDATASection_String_0 -org.mozilla.dom.test.DocumentImpl_createCDATASection_String_1 -org.mozilla.dom.test.DocumentImpl_createComment_String_0 -org.mozilla.dom.test.DocumentImpl_createComment_String_1 -org.mozilla.dom.test.DocumentImpl_createDocumentFragment -org.mozilla.dom.test.DocumentImpl_createElement_String_0 -org.mozilla.dom.test.DocumentImpl_createElement_String_1 -org.mozilla.dom.test.DocumentImpl_createElement_createElementNS_String_String_0 -org.mozilla.dom.test.DocumentImpl_createElement_createElementNS_String_String_1 -org.mozilla.dom.test.DocumentImpl_createElement_createElementNS_String_String_2 -org.mozilla.dom.test.DocumentImpl_createElement_createElementNS_String_String_3 -org.mozilla.dom.test.DocumentImpl_createEntityReference_String_0 -org.mozilla.dom.test.DocumentImpl_createEvent_String_0 -org.mozilla.dom.test.DocumentImpl_createEvent_String_1 -org.mozilla.dom.test.DocumentImpl_createProcessingInstruction_String_String_0 -org.mozilla.dom.test.DocumentImpl_createProcessingInstruction_String_String_1 -org.mozilla.dom.test.DocumentImpl_createProcessingInstruction_String_String_2 -org.mozilla.dom.test.DocumentImpl_createProcessingInstruction_String_String_3 -org.mozilla.dom.test.DocumentImpl_createTextNode_String_0 -org.mozilla.dom.test.DocumentImpl_createTextNode_String_1 -org.mozilla.dom.test.DocumentImpl_getDoctype -org.mozilla.dom.test.DocumentImpl_getDocumentElement -org.mozilla.dom.test.DocumentImpl_getElementsByTagName_String_0 -org.mozilla.dom.test.DocumentImpl_getElementsByTagName_String_1 -org.mozilla.dom.test.DocumentImpl_getElementsByTagNameNS_String_String_0 -org.mozilla.dom.test.DocumentImpl_getElementsByTagNameNS_String_String_1 -org.mozilla.dom.test.DocumentImpl_getElementsByTagNameNS_String_String_2 -org.mozilla.dom.test.DocumentImpl_getElementsByTagNameNS_String_String_3 -org.mozilla.dom.test.DocumentImpl_getElementById_String_0 -org.mozilla.dom.test.DocumentImpl_getElementById_String_1 -org.mozilla.dom.test.DocumentImpl_getImplementation -org.mozilla.dom.test.DocumentImpl_importNode_Node_boolean_0 -org.mozilla.dom.test.DocumentImpl_importNode_Node_boolean_1 -org.mozilla.dom.test.DocumentImpl_importNode_Node_boolean_2 -org.mozilla.dom.test.DocumentImpl_importNode_Node_boolean_3 -org.mozilla.dom.test.DocumentTypeImpl_getEntities -org.mozilla.dom.test.DocumentTypeImpl_getName -org.mozilla.dom.test.DocumentTypeImpl_getNotations -org.mozilla.dom.test.DocumentTypeImpl_getPublicId -org.mozilla.dom.test.DocumentTypeImpl_getSystemId -org.mozilla.dom.test.DocumentTypeImpl_getInternalSubset -org.mozilla.dom.test.ElementImpl_getAttributeNode_String_0 -org.mozilla.dom.test.ElementImpl_getAttributeNode_String_1 -org.mozilla.dom.test.ElementImpl_getAttribute_String_0 -org.mozilla.dom.test.ElementImpl_getAttribute_String_1 -org.mozilla.dom.test.ElementImpl_getAttributeNS_String_String_0 -org.mozilla.dom.test.ElementImpl_getAttributeNS_String_String_1 -org.mozilla.dom.test.ElementImpl_getAttributeNS_String_String_2 -org.mozilla.dom.test.ElementImpl_getAttributeNS_String_String_3 -org.mozilla.dom.test.ElementImpl_getAttributeNodeNS_String_String_0 -org.mozilla.dom.test.ElementImpl_getAttributeNodeNS_String_String_1 -org.mozilla.dom.test.ElementImpl_getAttributeNodeNS_String_String_2 -org.mozilla.dom.test.ElementImpl_getAttributeNodeNS_String_String_3 -org.mozilla.dom.test.ElementImpl_getElementsByTagName_String_0 -org.mozilla.dom.test.ElementImpl_getElementsByTagName_String_1 -org.mozilla.dom.test.ElementImpl_getElementsByTagNameNS_String_String_0 -org.mozilla.dom.test.ElementImpl_getElementsByTagNameNS_String_String_1 -org.mozilla.dom.test.ElementImpl_getElementsByTagNameNS_String_String_2 -org.mozilla.dom.test.ElementImpl_getElementsByTagNameNS_String_String_3 -org.mozilla.dom.test.ElementImpl_getTagName -org.mozilla.dom.test.ElementImpl_normalize -org.mozilla.dom.test.ElementImpl_removeAttributeNode_Attr_0 -org.mozilla.dom.test.ElementImpl_removeAttributeNode_Attr_1 -org.mozilla.dom.test.ElementImpl_removeAttribute_String_0 -org.mozilla.dom.test.ElementImpl_removeAttribute_String_1 -org.mozilla.dom.test.ElementImpl_removeAttributeNS_String_String_0 -org.mozilla.dom.test.ElementImpl_removeAttributeNS_String_String_1 -org.mozilla.dom.test.ElementImpl_removeAttributeNS_String_String_2 -org.mozilla.dom.test.ElementImpl_removeAttributeNS_String_String_3 -org.mozilla.dom.test.ElementImpl_setAttributeNode_Attr_0 -org.mozilla.dom.test.ElementImpl_setAttributeNode_Attr_1 -org.mozilla.dom.test.ElementImpl_setAttributeNode_Attr_2 -org.mozilla.dom.test.ElementImpl_setAttributeNodeNS_Attr_0 -org.mozilla.dom.test.ElementImpl_setAttributeNodeNS_Attr_1 -org.mozilla.dom.test.ElementImpl_setAttribute_String_String_0 -org.mozilla.dom.test.ElementImpl_setAttribute_String_String_1 -org.mozilla.dom.test.ElementImpl_setAttribute_String_String_2 -org.mozilla.dom.test.ElementImpl_setAttribute_String_String_3 -org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_0 -org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_1 -org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_2 -org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_3 -org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_4 -org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_5 -org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_6 -org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_7 -org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_8 -org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_9 -org.mozilla.dom.test.NamedNodeMapImpl_getLength -org.mozilla.dom.test.NamedNodeMapImpl_getNamedItem_String_0 -org.mozilla.dom.test.NamedNodeMapImpl_getNamedItem_String_1 -org.mozilla.dom.test.NamedNodeMapImpl_getNamedItemNS_String_String_0 -org.mozilla.dom.test.NamedNodeMapImpl_getNamedItemNS_String_String_1 -org.mozilla.dom.test.NamedNodeMapImpl_getNamedItemNS_String_String_2 -org.mozilla.dom.test.NamedNodeMapImpl_getNamedItemNS_String_String_3 -org.mozilla.dom.test.NamedNodeMapImpl_item_int_0 -org.mozilla.dom.test.NamedNodeMapImpl_item_int_1 -org.mozilla.dom.test.NamedNodeMapImpl_item_int_2 -org.mozilla.dom.test.NamedNodeMapImpl_removeNamedItem_String_0 -org.mozilla.dom.test.NamedNodeMapImpl_removeNamedItem_String_1 -org.mozilla.dom.test.NamedNodeMapImpl_removeNamedItemNS_String_String_0 -org.mozilla.dom.test.NamedNodeMapImpl_removeNamedItemNS_String_String_1 -org.mozilla.dom.test.NamedNodeMapImpl_removeNamedItemNS_String_String_2 -org.mozilla.dom.test.NamedNodeMapImpl_removeNamedItemNS_String_String_3 -org.mozilla.dom.test.NamedNodeMapImpl_setNamedItem_Node_0 -org.mozilla.dom.test.NamedNodeMapImpl_setNamedItem_Node_1 -org.mozilla.dom.test.NamedNodeMapImpl_setNamedItem_Node_2 -org.mozilla.dom.test.NamedNodeMapImpl_setNamedItemNS_Node_0 -org.mozilla.dom.test.NamedNodeMapImpl_setNamedItemNS_Node_1 -org.mozilla.dom.test.NodeImpl_appendChild_Node_0 -org.mozilla.dom.test.NodeImpl_appendChild_Node_1 -org.mozilla.dom.test.NodeImpl_cloneNode_boolean_0 -org.mozilla.dom.test.NodeImpl_cloneNode_boolean_1 -org.mozilla.dom.test.NodeImpl_equals_Object_0 -org.mozilla.dom.test.NodeImpl_equals_Object_1 -org.mozilla.dom.test.NodeImpl_equals_Object_2 -org.mozilla.dom.test.NodeImpl_getAttributes -org.mozilla.dom.test.NodeImpl_getChildNodes -org.mozilla.dom.test.NodeImpl_getFirstChild -org.mozilla.dom.test.NodeImpl_getLastChild -org.mozilla.dom.test.NodeImpl_getNextSibling -org.mozilla.dom.test.NodeImpl_getNodeName -org.mozilla.dom.test.NodeImpl_getNodeType -org.mozilla.dom.test.NodeImpl_getNodeValue -org.mozilla.dom.test.NodeImpl_getOwnerDocument -org.mozilla.dom.test.NodeImpl_getParentNode -org.mozilla.dom.test.NodeImpl_getPreviousSibling -org.mozilla.dom.test.NodeImpl_getNamespaceURI -org.mozilla.dom.test.NodeImpl_getPrefix -org.mozilla.dom.test.NodeImpl_getLocalName -org.mozilla.dom.test.NodeImpl_hasChildNodes -org.mozilla.dom.test.NodeImpl_hashCode -org.mozilla.dom.test.NodeImpl_insertBefore_Node_Node_0 -org.mozilla.dom.test.NodeImpl_insertBefore_Node_Node_1 -org.mozilla.dom.test.NodeImpl_insertBefore_Node_Node_2 -org.mozilla.dom.test.NodeImpl_insertBefore_Node_Node_3 -org.mozilla.dom.test.NodeImpl_removeChild_Node_0 -org.mozilla.dom.test.NodeImpl_removeChild_Node_1 -org.mozilla.dom.test.NodeImpl_replaceChild_Node_Node_0 -org.mozilla.dom.test.NodeImpl_replaceChild_Node_Node_1 -org.mozilla.dom.test.NodeImpl_replaceChild_Node_Node_2 -org.mozilla.dom.test.NodeImpl_replaceChild_Node_Node_3 -org.mozilla.dom.test.NodeImpl_setNodeValue_String_0 -org.mozilla.dom.test.NodeImpl_setNodeValue_String_1 -org.mozilla.dom.test.NodeImpl_toString -org.mozilla.dom.test.NodeImpl_normalize -org.mozilla.dom.test.NodeImpl_setPrefix_String_0 -org.mozilla.dom.test.NodeImpl_setPrefix_String_1 -org.mozilla.dom.test.NodeImpl_supports_String_String_0 -org.mozilla.dom.test.NodeImpl_supports_String_String_1 -org.mozilla.dom.test.NodeImpl_supports_String_String_2 -org.mozilla.dom.test.NodeImpl_supports_String_String_3 -org.mozilla.dom.test.NodeListImpl_getLength -org.mozilla.dom.test.NodeListImpl_item_int_0 -org.mozilla.dom.test.NodeListImpl_item_int_1 -org.mozilla.dom.test.NodeListImpl_item_int_2 -org.mozilla.dom.test.ProcessingInstructionImpl_getData -org.mozilla.dom.test.ProcessingInstructionImpl_getTarget -org.mozilla.dom.test.ProcessingInstructionImpl_setData_String_0 -org.mozilla.dom.test.ProcessingInstructionImpl_setData_String_1 -org.mozilla.dom.test.TextImpl_splitText_int_0 -org.mozilla.dom.test.TextImpl_splitText_int_1 -org.mozilla.dom.test.TextImpl_splitText_int_2 diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_appendData_String_0.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_appendData_String_0.java deleted file mode 100755 index 12746972e03..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_appendData_String_0.java +++ /dev/null @@ -1,146 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import java.lang.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_appendData_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_appendData_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - String newstr=null; - String prevstr = tn.getData(); - tn.appendData(newstr); - String getstr = tn.getData(); - if (getstr == null){ - TestLoader.logErrPrint("charcterData cannot be set to null...."); - return BWBaseTest.FAILED; - } - if (prevstr != null) - { - if (prevstr.compareTo(getstr) != 0) - { - TestLoader.logErrPrint("characterData has changed from original value"); - return BWBaseTest.FAILED; - } - } else { - TestLoader.logErrPrint("charcterData has changed to other than null..."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_appendData_String_1.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_appendData_String_1.java deleted file mode 100755 index 581717c3fff..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_appendData_String_1.java +++ /dev/null @@ -1,134 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_appendData_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_appendData_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - String newstr=" I have appended more text"; - tn.appendData(newstr); - String getstr = tn.getData(); - if (getstr == null) { - TestLoader.logErrPrint("CharacterData could not be appended..."); - return BWBaseTest.FAILED; - } - if (!(getstr.endsWith(newstr))) - { - TestLoader.logErrPrint("CharacterData could not appended ...."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_0.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_0.java deleted file mode 100755 index 6b5a7932db7..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_0.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_deleteData_int_int_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_deleteData_int_int_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MIN_VALUE; - int count = Integer.MIN_VALUE; - tn.deleteData(offset, count); - String getstr = tn.getData(); - - if (getstr == null) { - TestLoader.logErrPrint("CharacterData cannot be null..."); - return BWBaseTest.FAILED; - } - if (!(getstr.endsWith(str))) - { - TestLoader.logErrPrint("CharacterData should not have been deleted..."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_1.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_1.java deleted file mode 100755 index 823ab0baff7..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_1.java +++ /dev/null @@ -1,139 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_deleteData_int_int_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_deleteData_int_int_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MIN_VALUE; - int count = Integer.MAX_VALUE; - tn.deleteData(offset, count); - String getstr = tn.getData(); - - if (getstr == null) { - TestLoader.logErrPrint("CharacterData cannot be null"); - return BWBaseTest.FAILED; - } - if (!(getstr.endsWith(str))) - { - TestLoader.logErrPrint("CharacterData should not have been deleted..."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_2.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_2.java deleted file mode 100755 index 515e8c924f5..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_2.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_deleteData_int_int_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_deleteData_int_int_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MIN_VALUE; - int count = str.length(); - tn.deleteData(offset, count); - String getstr = tn.getData(); - - if (getstr == null) { - TestLoader.logErrPrint("CharacterData cannot be null"); - return BWBaseTest.FAILED; - } - - if (!(getstr.endsWith(str))) - { - TestLoader.logErrPrint("CharacterData should not have been deleted..."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_3.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_3.java deleted file mode 100755 index c63e8a186be..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_3.java +++ /dev/null @@ -1,139 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_deleteData_int_int_3 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_deleteData_int_int_3() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MAX_VALUE; - int count = Integer.MIN_VALUE; - tn.deleteData(offset, count); - String getstr = tn.getData(); - - if (getstr == null) { - TestLoader.logErrPrint("CharacterData cannot be null"); - return BWBaseTest.FAILED; - } - if (!(getstr.endsWith(str))) - { - TestLoader.logErrPrint("CharacterData should not have been deleted..."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_4.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_4.java deleted file mode 100755 index 45074d0ac5e..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_4.java +++ /dev/null @@ -1,141 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.lang.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_deleteData_int_int_4 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_deleteData_int_int_4() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MAX_VALUE; - int count = Integer.MAX_VALUE; - tn.deleteData(offset, count); - String getstr = tn.getData(); - - if (getstr == null) { - TestLoader.logErrPrint("CharacterData cannot be null"); - return BWBaseTest.FAILED; - } - if (!(getstr.endsWith(str))) - { - - TestLoader.logErrPrint("CharacterData should not have been deleted..."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - r.printStackTrace(); - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_5.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_5.java deleted file mode 100755 index 216b60cb1a4..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_5.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_deleteData_int_int_5 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_deleteData_int_int_5() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MAX_VALUE; - int count = str.length(); - tn.deleteData(offset, count); - String getstr = tn.getData(); - - if (getstr == null) { - TestLoader.logErrPrint("CharacterData cannot be null"); - return BWBaseTest.FAILED; - } - if (!(getstr.endsWith(str))) - { - - TestLoader.logErrPrint("CharacterData should not have been deleted..."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_6.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_6.java deleted file mode 100755 index a35daddd4eb..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_6.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_deleteData_int_int_6 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_deleteData_int_int_6() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = 1; - int count = Integer.MIN_VALUE; - tn.deleteData(offset, count); - String getstr = tn.getData(); - - if (getstr == null) { - TestLoader.logErrPrint("CharacterData cannot be null"); - return BWBaseTest.FAILED; - } - if (!(getstr.endsWith(str))) - { - TestLoader.logErrPrint("CharacterData should not have been deleted..."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_7.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_7.java deleted file mode 100755 index e42eb3f714e..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_7.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_deleteData_int_int_7 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_deleteData_int_int_7() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = 1; - int count = Integer.MAX_VALUE; - tn.deleteData(offset, count); - String getstr = tn.getData(); - - if (getstr == null) { - TestLoader.logErrPrint("CharacterData cannot be null"); - return BWBaseTest.FAILED; - } - if (getstr.endsWith(str)) - { - TestLoader.logErrPrint("CharacterData should have been deleted..."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_8.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_8.java deleted file mode 100755 index 4e1099de511..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_deleteData_int_int_8.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_deleteData_int_int_8 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_deleteData_int_int_8() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = 0; - int count = str.length(); - tn.deleteData(offset, count); - String getstr = tn.getData(); - - if (getstr == null) { - TestLoader.logErrPrint("CharacterData cannot be null"); - return BWBaseTest.FAILED; - } - if ((getstr.endsWith(str))) - { - TestLoader.logErrPrint("CharacterData should have been deleted..."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_getData.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_getData.java deleted file mode 100755 index 6ed01ee4bd1..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_getData.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_getData extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_getData() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - String getstr = tn.getData(); - - if (getstr == null) { - TestLoader.logErrPrint("Character getData cannot be null"); - return BWBaseTest.FAILED; - } - if (getstr.compareTo(str) != 0) - { - TestLoader.logErrPrint("Character getData failed..."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_getLength.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_getLength.java deleted file mode 100755 index 7649ba5fa01..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_getLength.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_getLength extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_getLength() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int origlen = str.length(); - String getstr = tn.getData(); - int newlen = getstr.length(); - - if (newlen != origlen) { - TestLoader.logErrPrint("Character getLength failed..."); - return BWBaseTest.FAILED; - } - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_insertData_int_String_0.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_insertData_int_String_0.java deleted file mode 100755 index 61b5ef6d3a2..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_insertData_int_String_0.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_insertData_int_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_insertData_int_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MIN_VALUE; - String newstr = null; - tn.insertData(offset, newstr); - - String getstr = tn.getData(); - if (getstr == null) { - TestLoader.logErrPrint("CharacterData cannot be null"); - return BWBaseTest.FAILED; - } - - if (getstr.compareTo(str) != 0) - { - TestLoader.logErrPrint("CharacterData should not have been inserted..."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_insertData_int_String_1.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_insertData_int_String_1.java deleted file mode 100755 index aaaf36847d9..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_insertData_int_String_1.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_insertData_int_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_insertData_int_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MAX_VALUE; - String newstr = null; - tn.insertData(offset, newstr); - - String getstr = tn.getData(); - if (getstr == null) { - TestLoader.logErrPrint("CharacterData cannot be null"); - return BWBaseTest.FAILED; - } - - if (getstr.compareTo(str) != 0) - { - TestLoader.logErrPrint("CharacterData should have been inserted..."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_insertData_int_String_2.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_insertData_int_String_2.java deleted file mode 100755 index f5d2a8be8e5..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_insertData_int_String_2.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_insertData_int_String_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_insertData_int_String_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = 0; - String newstr = null; - tn.insertData(offset, newstr); - - String getstr = tn.getData(); - if (getstr == null) { - TestLoader.logErrPrint("CharacterData cannot be null"); - return BWBaseTest.FAILED; - } - - if (getstr.compareTo(str) != 0) - { - TestLoader.logErrPrint("CharacterData should not have been inserted..."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_insertData_int_String_3.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_insertData_int_String_3.java deleted file mode 100755 index b959941bfd5..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_insertData_int_String_3.java +++ /dev/null @@ -1,140 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_insertData_int_String_3 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_insertData_int_String_3() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MIN_VALUE; - String newstr = "Inserted Text"; - tn.insertData(offset, newstr); - - String getstr = tn.getData(); - if (getstr == null) { - TestLoader.logErrPrint("CharacterData cannot be null"); - return BWBaseTest.FAILED; - } - - if (getstr.compareTo(str) != 0) - { - TestLoader.logErrPrint("CharacterData should not have been inserted..."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_insertData_int_String_4.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_insertData_int_String_4.java deleted file mode 100755 index b6ad1926a84..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_insertData_int_String_4.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_insertData_int_String_4 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_insertData_int_String_4() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MAX_VALUE; - String newstr = "Inserted Text"; - tn.insertData(offset, newstr); - - String getstr = tn.getData(); - if (getstr == null) { - TestLoader.logErrPrint("CharacterData cannot be null"); - return BWBaseTest.FAILED; - } - - if (getstr.compareTo(str) != 0) - { - TestLoader.logErrPrint("CharacterData should not have been inserted..."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_insertData_int_String_5.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_insertData_int_String_5.java deleted file mode 100755 index af80aa14b41..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_insertData_int_String_5.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_insertData_int_String_5 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_insertData_int_String_5() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = 0; - String newstr = "Inserted Text"; - tn.insertData(offset, newstr); - - String getstr = tn.getData(); - if (getstr == null) { - TestLoader.logErrPrint("CharacterData cannot be null"); - return BWBaseTest.FAILED; - } - - if (getstr.compareTo(str) == 0) - { - TestLoader.logErrPrint("CharacterData should have been inserted..."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_0.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_0.java deleted file mode 100755 index db0c6794c88..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_0.java +++ /dev/null @@ -1,142 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_replaceData_int_int_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_replaceData_int_int_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MIN_VALUE; - int count = Integer.MIN_VALUE; - String repstr=null; - tn.replaceData(offset, count, repstr); - - String getstr = tn.getData(); - if (getstr == null) - { - TestLoader.logErrPrint("CharacterData should not have been null...."); - return BWBaseTest.FAILED; - } - - if (getstr.compareTo(str) != 0) - { - TestLoader.logErrPrint("CharacterData should not have been replaced...."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_1.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_1.java deleted file mode 100755 index 9830980957a..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_1.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_replaceData_int_int_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_replaceData_int_int_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MIN_VALUE; - int count = Integer.MIN_VALUE; - String repstr="Replaced String"; - tn.replaceData(offset, count, repstr); - - String getstr = tn.getData(); - if (getstr == null) - { - TestLoader.logErrPrint("CharacterData should not have been null...."); - return BWBaseTest.FAILED; - } - - System.out.println("getstr is " + getstr); - System.out.println("str is " + str); - - if (getstr.compareTo(str) != 0) - { - TestLoader.logErrPrint("CharacterData should not have been replaced...."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_10.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_10.java deleted file mode 100755 index 2293bafe147..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_10.java +++ /dev/null @@ -1,142 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_replaceData_int_int_String_10 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_replaceData_int_int_String_10() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MIN_VALUE; - int count = Integer.MAX_VALUE; - String repstr=null; - tn.replaceData(offset, count, repstr); - - String getstr = tn.getData(); - if (getstr == null) - { - TestLoader.logErrPrint("CharacterData should not have been null...."); - return BWBaseTest.FAILED; - } - - if (getstr.compareTo(str) != 0) - { - TestLoader.logErrPrint("CharacterData should not have been replaced...."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_11.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_11.java deleted file mode 100755 index 54df11a0b19..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_11.java +++ /dev/null @@ -1,148 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_replaceData_int_int_String_11 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_replaceData_int_int_String_11() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MIN_VALUE; - int count = Integer.MAX_VALUE; - String repstr="Replaced Text"; - tn.replaceData(offset, count, repstr); - - String getstr = tn.getData(); - if (getstr == null) - { - TestLoader.logErrPrint("CharacterData should not have been null...."); - return BWBaseTest.FAILED; - } - -System.out.println("offset is " + offset + " count is " + count); -int x = offset + count; -System.out.println("x is " + x); -System.out.println("getstr is " + getstr); -System.out.println("str is " + str); - - if (getstr.compareTo(str) == 0) - { - TestLoader.logErrPrint("CharacterData should have been replaced...."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_12.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_12.java deleted file mode 100755 index cd03eb2e608..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_12.java +++ /dev/null @@ -1,142 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_replaceData_int_int_String_12 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_replaceData_int_int_String_12() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MIN_VALUE; - int count = str.length(); - String repstr=null; - tn.replaceData(offset, count, repstr); - - String getstr = tn.getData(); - if (getstr == null) - { - TestLoader.logErrPrint("CharacterData should not have been null...."); - return BWBaseTest.FAILED; - } - - if (getstr.compareTo(str) != 0) - { - TestLoader.logErrPrint("CharacterData should not have been replaced...."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_13.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_13.java deleted file mode 100755 index 0eb2b72b3c4..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_13.java +++ /dev/null @@ -1,148 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_replaceData_int_int_String_13 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_replaceData_int_int_String_13() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MIN_VALUE; - int count = str.length(); - String repstr="Replaced Text"; - tn.replaceData(offset, count, repstr); - - String getstr = tn.getData(); - if (getstr == null) - { - TestLoader.logErrPrint("CharacterData should not have been null...."); - return BWBaseTest.FAILED; - } - -System.out.println("offset is " + offset + " count is " + count); -int x = offset + count; -System.out.println("x is " + x); -System.out.println("getstr is " + getstr); -System.out.println("str is " + str); - - if (getstr.compareTo(str) != 0) - { - TestLoader.logErrPrint("CharacterData should not have been replaced...."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_14.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_14.java deleted file mode 100755 index 33db57718de..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_14.java +++ /dev/null @@ -1,142 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_replaceData_int_int_String_14 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_replaceData_int_int_String_14() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MAX_VALUE; - int count = Integer.MIN_VALUE; - String repstr=null; - tn.replaceData(offset, count, repstr); - - String getstr = tn.getData(); - if (getstr == null) - { - TestLoader.logErrPrint("CharacterData should not have been null...."); - return BWBaseTest.FAILED; - } - - if (getstr.compareTo(str) != 0) - { - TestLoader.logErrPrint("CharacterData should not have been replaced...."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_15.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_15.java deleted file mode 100755 index b0fbd76b299..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_15.java +++ /dev/null @@ -1,149 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_replaceData_int_int_String_15 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_replaceData_int_int_String_15() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MAX_VALUE; - int count = Integer.MIN_VALUE; - String repstr="Replaced Text"; - tn.replaceData(offset, count, repstr); - - String getstr = tn.getData(); - if (getstr == null) - { - TestLoader.logErrPrint("CharacterData should not have been null...."); - return BWBaseTest.FAILED; - } - - -System.out.println("offset is " + offset + " count is " + count); -int x = offset + count; -System.out.println("x is " + x); -System.out.println("getstr is " + getstr); -System.out.println("str is " + str); - - if (getstr.compareTo(str) != 0) - { - TestLoader.logErrPrint("CharacterData should not have been replaced...."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_16.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_16.java deleted file mode 100755 index 7c26844401a..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_16.java +++ /dev/null @@ -1,142 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_replaceData_int_int_String_16 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_replaceData_int_int_String_16() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MAX_VALUE; - int count = Integer.MAX_VALUE; - String repstr=null; - tn.replaceData(offset, count, repstr); - - String getstr = tn.getData(); - if (getstr == null) - { - TestLoader.logErrPrint("CharacterData should not have been null...."); - return BWBaseTest.FAILED; - } - - if (getstr.compareTo(str) != 0) - { - TestLoader.logErrPrint("CharacterData should not have been replaced...."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_17.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_17.java deleted file mode 100755 index a34bc6efaac..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_17.java +++ /dev/null @@ -1,147 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_replaceData_int_int_String_17 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_replaceData_int_int_String_17() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MAX_VALUE; - int count = Integer.MAX_VALUE; - String repstr="Replaced Text"; - tn.replaceData(offset, count, repstr); - - String getstr = tn.getData(); - if (getstr == null) - { - TestLoader.logErrPrint("CharacterData should not have been null...."); - return BWBaseTest.FAILED; - } - -System.out.println("offset is " + offset + " count is " + count); -int x = offset + count; -System.out.println("x is " + x); -System.out.println("getstr is " + getstr); -System.out.println("str is " + str); - if (getstr.compareTo(str) == 0) - { - TestLoader.logErrPrint("CharacterData should have been replaced...."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_2.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_2.java deleted file mode 100755 index 44000e18d9b..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_2.java +++ /dev/null @@ -1,142 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ -package org.mozilla.dom.test; - - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_replaceData_int_int_String_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_replaceData_int_int_String_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MAX_VALUE; - int count = str.length(); - String repstr=null; - tn.replaceData(offset, count, repstr); - - String getstr = tn.getData(); - if (getstr == null) - { - TestLoader.logErrPrint("CharacterData should not have been null...."); - return BWBaseTest.FAILED; - } - - if (getstr.compareTo(str) == 0) - { - TestLoader.logErrPrint("CharacterData should have been replaced...."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_3.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_3.java deleted file mode 100755 index 2b7135c4911..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_3.java +++ /dev/null @@ -1,142 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_replaceData_int_int_String_3 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_replaceData_int_int_String_3() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MAX_VALUE; - int count = str.length(); - String repstr="Replaced Text"; - tn.replaceData(offset, count, repstr); - - String getstr = tn.getData(); - if (getstr == null) - { - TestLoader.logErrPrint("CharacterData should not have been null...."); - return BWBaseTest.FAILED; - } - - if (getstr.compareTo(str) == 0) - { - TestLoader.logErrPrint("CharacterData should have been replaced...."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_4.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_4.java deleted file mode 100755 index ae9782fcc5c..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_4.java +++ /dev/null @@ -1,142 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_replaceData_int_int_String_4 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_replaceData_int_int_String_4() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = 0; - int count = Integer.MIN_VALUE; - String repstr=null; - tn.replaceData(offset, count, repstr); - - String getstr = tn.getData(); - if (getstr == null) - { - TestLoader.logErrPrint("CharacterData should not have been null...."); - return BWBaseTest.FAILED; - } - - if (getstr.compareTo(str) != 0) - { - TestLoader.logErrPrint("CharacterData should not have been replaced...."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_5.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_5.java deleted file mode 100755 index e3ee8eefdd0..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_5.java +++ /dev/null @@ -1,148 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_replaceData_int_int_String_5 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_replaceData_int_int_String_5() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = 0; - int count = Integer.MIN_VALUE; - String repstr="Replaced Text"; - tn.replaceData(offset, count, repstr); - - String getstr = tn.getData(); - if (getstr == null) - { - TestLoader.logErrPrint("CharacterData should not have been null...."); - return BWBaseTest.FAILED; - } - -System.out.println("offset is " + offset + " count is " + count); -int x = offset + count; -System.out.println("x is " + x); -System.out.println("getstr is " + getstr); -System.out.println("str is " + str); - - if (getstr.compareTo(str) != 0) - { - TestLoader.logErrPrint("CharacterData should not have been replaced...."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_6.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_6.java deleted file mode 100755 index 3a6cc29b39c..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_6.java +++ /dev/null @@ -1,142 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_replaceData_int_int_String_6 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_replaceData_int_int_String_6() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = 0; - int count = Integer.MAX_VALUE; - String repstr=null; - tn.replaceData(offset, count, repstr); - - String getstr = tn.getData(); - if (getstr == null) - { - TestLoader.logErrPrint("CharacterData should not have been null...."); - return BWBaseTest.FAILED; - } - - if (getstr.compareTo(str) != 0) - { - TestLoader.logErrPrint("CharacterData should not have been replaced...."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_7.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_7.java deleted file mode 100755 index 1482a0c8309..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_7.java +++ /dev/null @@ -1,143 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_replaceData_int_int_String_7 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_replaceData_int_int_String_7() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = 0; - int count = Integer.MAX_VALUE; - String repstr="Replaced Text"; - tn.replaceData(offset, count, repstr); - - String getstr = tn.getData(); - if (getstr == null) - { - TestLoader.logErrPrint("CharacterData should not have been null...."); - return BWBaseTest.FAILED; - } - - if (getstr.compareTo(str) == 0) - { - TestLoader.logErrPrint("CharacterData should have been replaced...."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_8.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_8.java deleted file mode 100755 index f0758c43273..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_8.java +++ /dev/null @@ -1,143 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_replaceData_int_int_String_8 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_replaceData_int_int_String_8() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = 0; - int count = str.length(); - String repstr=null; - tn.replaceData(offset, count, repstr); - - String getstr = tn.getData(); - if (getstr == null) - { - TestLoader.logErrPrint("CharacterData should not have been null...."); - return BWBaseTest.FAILED; - } - - if (getstr.compareTo(str) != 0) - { - TestLoader.logErrPrint("CharacterData should not have been replaced...."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_9.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_9.java deleted file mode 100755 index 4f8c2107e63..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_replaceData_int_int_String_9.java +++ /dev/null @@ -1,142 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_replaceData_int_int_String_9 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_replaceData_int_int_String_9() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = 0; - int count = str.length(); - String repstr="Replaced Text"; - tn.replaceData(offset, count, repstr); - - String getstr = tn.getData(); - if (getstr == null) - { - TestLoader.logErrPrint("CharacterData should not have been null...."); - return BWBaseTest.FAILED; - } - - if (!(getstr.startsWith(repstr))) - { - TestLoader.logErrPrint("CharacterData should have been replaced...."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_setData_String_0.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_setData_String_0.java deleted file mode 100755 index a71d7d55e65..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_setData_String_0.java +++ /dev/null @@ -1,139 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_setData_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_setData_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - String newstr=null; - String prevstr = tn.getData(); - tn.setData(newstr); - String getstr = tn.getData(); - if (getstr == null) { - TestLoader.logErrPrint("charcterData cannot be set to null...."); - return BWBaseTest.FAILED; - } - if (prevstr.compareTo(getstr) != 0) { - TestLoader.logErrPrint("charcterData cannot be set to null...."); - return BWBaseTest.FAILED; - } - - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_setData_String_1.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_setData_String_1.java deleted file mode 100755 index 1ccb139313b..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_setData_String_1.java +++ /dev/null @@ -1,138 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_setData_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_setData_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - String newstr="Original Text is replaced with this text"; - tn.setData(newstr); - String getstr = tn.getData(); - if (getstr == null) { - TestLoader.logErrPrint("charcterData not set ...."); - return BWBaseTest.FAILED; - } - if (getstr.compareTo(newstr) != 0) - { - TestLoader.logErrPrint("CharacterData not set ...."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_0.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_0.java deleted file mode 100755 index 1d88093ead2..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_0.java +++ /dev/null @@ -1,140 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_substringData_int_int_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_substringData_int_int_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MIN_VALUE; - int count = Integer.MIN_VALUE; - - String getstr = tn.substringData(offset, count); - if (getstr != null) { - TestLoader.logErrPrint("CharacterData should have been null...."); - return BWBaseTest.FAILED; - } - - -System.out.println("offset is " + offset + " count is " + count); -int x = offset + count; -System.out.println("x is " + x); -System.out.println("getstr is " + getstr); - - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_1.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_1.java deleted file mode 100755 index 1b2d72d7248..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_1.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_substringData_int_int_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_substringData_int_int_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MIN_VALUE; - int count = Integer.MAX_VALUE; - - String getstr = tn.substringData(offset, count); - if (getstr != null) { - TestLoader.logErrPrint("CharacterData should have been null...."); - return BWBaseTest.FAILED; - } - -System.out.println("offset is " + offset + " count is " + count); -int x = offset + count; -System.out.println("x is " + x); -System.out.println("getstr is " + getstr); - - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_2.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_2.java deleted file mode 100755 index 7bf02484a0e..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_2.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_substringData_int_int_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_substringData_int_int_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MIN_VALUE; - int count = str.length(); - - String getstr = tn.substringData(offset, count); - if (getstr != null) { - TestLoader.logErrPrint("CharacterData should have been null...."); - return BWBaseTest.FAILED; - } - -System.out.println("offset is " + offset + " count is " + count); -int x = offset + count; -System.out.println("x is " + x); -System.out.println("getstr is " + getstr); - - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_3.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_3.java deleted file mode 100755 index 73f7f048a4c..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_3.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_substringData_int_int_3 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_substringData_int_int_3() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MAX_VALUE; - int count = Integer.MIN_VALUE; - - String getstr = tn.substringData(offset, count); - if (getstr != null) { - TestLoader.logErrPrint("CharacterData should have been null...."); - return BWBaseTest.FAILED; - } - -System.out.println("offset is " + offset + " count is " + count); -int x = offset + count; -System.out.println("x is " + x); -System.out.println("getstr is " + getstr); - - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_4.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_4.java deleted file mode 100755 index ce6e59d0241..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_4.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_substringData_int_int_4 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_substringData_int_int_4() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MAX_VALUE; - int count = Integer.MAX_VALUE; - - String getstr = tn.substringData(offset, count); - if (getstr != null) { - TestLoader.logErrPrint("CharacterData should have been null...."); - return BWBaseTest.FAILED; - } - -System.out.println("offset is " + offset + " count is " + count); -int x = offset + count; -System.out.println("x is " + x); -System.out.println("getstr is " + getstr); - - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_5.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_5.java deleted file mode 100755 index 0ad0764d8f6..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_5.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_substringData_int_int_5 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_substringData_int_int_5() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MAX_VALUE; - int count = str.length(); - - String getstr = tn.substringData(offset, count); - if (getstr != null) { - TestLoader.logErrPrint("CharacterData should have been null...."); - return BWBaseTest.FAILED; - } - -System.out.println("offset is " + offset + " count is " + count); -int x = offset + count; -System.out.println("x is " + x); -System.out.println("getstr is " + getstr); - - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_6.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_6.java deleted file mode 100755 index 085befb1205..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_6.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_substringData_int_int_6 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_substringData_int_int_6() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = 0; - int count = Integer.MIN_VALUE; - - String getstr = tn.substringData(offset, count); -System.out.println("offset is " + offset + " count is " + count); -int x = offset + count; -System.out.println("x is " + x); - if (getstr != null) { - TestLoader.logErrPrint("CharacterData should have been null...."); - return BWBaseTest.FAILED; - } -System.out.println("getstr is " + getstr); - - - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_7.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_7.java deleted file mode 100755 index a8f1e0442d5..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_7.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_substringData_int_int_7 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_substringData_int_int_7() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = 0; - int count = Integer.MAX_VALUE; - - String getstr = tn.substringData(offset, count); - if (getstr == null) { - TestLoader.logErrPrint("CharacterData should not be null...."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_8.java b/mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_8.java deleted file mode 100755 index 208c0838206..00000000000 --- a/mozilla/java/dom/tests/src/api/CharacterDataImpl_substringData_int_int_8.java +++ /dev/null @@ -1,139 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class CharacterDataImpl_substringData_int_int_8 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public CharacterDataImpl_substringData_int_int_8() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = 0; - int count = str.length(); - - String getstr = tn.substringData(offset, count); - if (getstr == null) { - TestLoader.logErrPrint("CharacterData should have been null...."); - return BWBaseTest.FAILED; - } - - if (getstr.compareTo(str) != 0) - { - TestLoader.logErrPrint("CharacterData substring not extracted correctly..."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException " ); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocumentType_String_String_String_0.java b/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocumentType_String_String_String_0.java deleted file mode 100644 index 03de253d436..00000000000 --- a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocumentType_String_String_String_0.java +++ /dev/null @@ -1,133 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DOMImplementationImpl_createDocumentType_String_String_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DOMImplementationImpl_createDocumentType_String_String_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logErrPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - Document d = (Document)tobj; - if (d != null) - { - DOMImplementationImpl di = (DOMImplementationImpl)d.getImplementation(); - if (di == null) { - TestLoader.logErrPrint("Document DomImplementation is NULL.."); - return BWBaseTest.FAILED; - } else { - try { - String qualifiedName = "edi:price"; - String publicId = "pID"; - String systemId = "sID"; - DocumentType dt = di.createDocumentType(qualifiedName, publicId, systemId); - if (dt == null) { - System.out.println("DomImplementation 'createDocumentType(...) returned null ..."); - return BWBaseTest.FAILED; - } - } catch (DOMException de) { - TestLoader.logErrPrint("DOMException was thrown: "+de); - return BWBaseTest.FAILED; - } catch (Exception e) { - TestLoader.logErrPrint("Exception was thrown: "+e); - return BWBaseTest.FAILED; - } - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocumentType_String_String_String_1.java b/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocumentType_String_String_String_1.java deleted file mode 100644 index ce513f81a21..00000000000 --- a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocumentType_String_String_String_1.java +++ /dev/null @@ -1,134 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DOMImplementationImpl_createDocumentType_String_String_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DOMImplementationImpl_createDocumentType_String_String_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logErrPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - Document d = (Document)tobj; - if (d != null) - { - DOMImplementationImpl di = (DOMImplementationImpl)d.getImplementation(); - if (di == null) { - TestLoader.logErrPrint("Document DomImplementation is NULL.."); - return BWBaseTest.FAILED; - } else { - try { - String qualifiedName = null; - String publicId = "pID"; - String systemId = "sID"; - DocumentType dt = di.createDocumentType(qualifiedName, publicId, systemId); - if (dt == null) { - System.out.println("DomImplementation 'createDocumentType(...) returned null ..."); - return BWBaseTest.FAILED; - } else { - System.out.println("DomImplementation 'createDocumentType(...)' didn't throw exception "); - return BWBaseTest.FAILED; - } - } catch (DOMException de) { - TestLoader.logErrPrint("DOMException was thrown: "+de); - return BWBaseTest.PASSED; - } catch (Exception e) { - TestLoader.logErrPrint("Exception was thrown: "+e); - return BWBaseTest.PASSED; - } - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocumentType_String_String_String_2.java b/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocumentType_String_String_String_2.java deleted file mode 100644 index 3d8fa543958..00000000000 --- a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocumentType_String_String_String_2.java +++ /dev/null @@ -1,134 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DOMImplementationImpl_createDocumentType_String_String_String_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DOMImplementationImpl_createDocumentType_String_String_String_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logErrPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - Document d = (Document)tobj; - if (d != null) - { - DOMImplementationImpl di = (DOMImplementationImpl)d.getImplementation(); - if (di == null) { - TestLoader.logErrPrint("Document DomImplementation is NULL.."); - return BWBaseTest.FAILED; - } else { - try { - String qualifiedName = "edi:price"; - String publicId = null; - String systemId = "sID"; - DocumentType dt = di.createDocumentType(qualifiedName, publicId, systemId); - if (dt == null) { - System.out.println("DomImplementation 'createDocumentType(...) returned null ..."); - return BWBaseTest.FAILED; - } else { - System.out.println("DomImplementation 'createDocumentType(...)' didn't throw exception "); - return BWBaseTest.FAILED; - } - } catch (DOMException de) { - TestLoader.logErrPrint("DOMException was thrown: "+de); - return BWBaseTest.PASSED; - } catch (Exception e) { - TestLoader.logErrPrint("Exception was thrown: "+e); - return BWBaseTest.PASSED; - } - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocumentType_String_String_String_3.java b/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocumentType_String_String_String_3.java deleted file mode 100644 index 7854bf85710..00000000000 --- a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocumentType_String_String_String_3.java +++ /dev/null @@ -1,134 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DOMImplementationImpl_createDocumentType_String_String_String_3 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DOMImplementationImpl_createDocumentType_String_String_String_3() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logErrPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - Document d = (Document)tobj; - if (d != null) - { - DOMImplementationImpl di = (DOMImplementationImpl)d.getImplementation(); - if (di == null) { - TestLoader.logErrPrint("Document DomImplementation is NULL.."); - return BWBaseTest.FAILED; - } else { - try { - String qualifiedName = "edi:price"; - String publicId = "pID"; - String systemId = null; - DocumentType dt = di.createDocumentType(qualifiedName, publicId, systemId); - if (dt == null) { - System.out.println("DomImplementation 'createDocumentType(...) returned null ..."); - return BWBaseTest.FAILED; - } else { - System.out.println("DomImplementation 'createDocumentType(...)' didn't throw exception "); - return BWBaseTest.FAILED; - } - } catch (DOMException de) { - TestLoader.logErrPrint("DOMException was thrown: "+de); - return BWBaseTest.PASSED; - } catch (Exception e) { - TestLoader.logErrPrint("Exception was thrown: "+e); - return BWBaseTest.PASSED; - } - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocumentType_String_String_String_4.java b/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocumentType_String_String_String_4.java deleted file mode 100644 index e928d8f018e..00000000000 --- a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocumentType_String_String_String_4.java +++ /dev/null @@ -1,134 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DOMImplementationImpl_createDocumentType_String_String_String_4 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DOMImplementationImpl_createDocumentType_String_String_String_4() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logErrPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - Document d = (Document)tobj; - if (d != null) - { - DOMImplementationImpl di = (DOMImplementationImpl)d.getImplementation(); - if (di == null) { - TestLoader.logErrPrint("Document DomImplementation is NULL.."); - return BWBaseTest.FAILED; - } else { - try { - String qualifiedName = null; - String publicId = null; - String systemId = null; - DocumentType dt = di.createDocumentType(qualifiedName, publicId, systemId); - if (dt == null) { - System.out.println("DomImplementation 'createDocumentType(...) returned null ..."); - return BWBaseTest.FAILED; - } else { - System.out.println("DomImplementation 'createDocumentType(...)' didn't throw exception "); - return BWBaseTest.FAILED; - } - } catch (DOMException de) { - TestLoader.logErrPrint("DOMException was thrown: "+de); - return BWBaseTest.PASSED; - } catch (Exception e) { - TestLoader.logErrPrint("Exception was thrown: "+e); - return BWBaseTest.PASSED; - } - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocumentType_String_String_String_String_0.java b/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocumentType_String_String_String_String_0.java deleted file mode 100644 index 144bc3db7ca..00000000000 --- a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocumentType_String_String_String_String_0.java +++ /dev/null @@ -1,131 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DOMImplementationImpl_createDocumentType_String_String_String_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DOMImplementationImpl_createDocumentType_String_String_String_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logErrPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - setUnsupported(); - - Document d = (Document)tobj; - if (d != null) - { - DOMImplementationImpl di = (DOMImplementationImpl)d.getImplementation(); - if (di == null) { - TestLoader.logErrPrint("Document DomImplementation is NULL.."); - return BWBaseTest.FAILED; - } else { - try { - if (di.createDocumentType(null, null, null) == null) { - System.out.println("DomImplementation 'createDocumentType(null, null, null, null) according to specs. is not supported..."); - return BWBaseTest.FAILED; - - } else { - System.out.println("DomImplementation 'createDocumentType(null, null, null, null)' according to specs is not supported..."); - } - } catch (UnsupportedOperationException ue) { - String msg = "UNSUPPORTED METHOD "; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - - } - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocument_String_String_DocumentType_0.java b/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocument_String_String_DocumentType_0.java deleted file mode 100644 index 3ae90e21a49..00000000000 --- a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocument_String_String_DocumentType_0.java +++ /dev/null @@ -1,136 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DOMImplementationImpl_createDocument_String_String_DocumentType_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DOMImplementationImpl_createDocument_String_String_DocumentType_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logErrPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - Document d = (Document)tobj; - if (d != null) - { - DOMImplementationImpl di = (DOMImplementationImpl)d.getImplementation(); - if (di == null) { - TestLoader.logErrPrint("Document DomImplementation is NULL.."); - return BWBaseTest.FAILED; - } else { - try { - DocumentType dt = di.createDocumentType("edi:price", "pID", "sID"); - if (dt == null) { - TestLoader.logErrPrint("DocumentType is NULL.."); - return BWBaseTest.FAILED; - } - String namespaceURI = "edi='http://ecommerce.org/schema'"; - String qualifiedName = "edi:price"; - if (di.createDocument(namespaceURI, qualifiedName, dt) == null) { - System.out.println("DomImplementation 'createDocument' returns null ..."); - TestLoader.logErrPrint("DomImplementation 'createDocument' returns null ..."); - return BWBaseTest.FAILED; - } - } catch (DOMException de) { - TestLoader.logErrPrint("DOMException : " + de); - return BWBaseTest.FAILED; - } catch (Exception e) { - TestLoader.logErrPrint("Exception: "+e); - return BWBaseTest.FAILED; - } - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocument_String_String_DocumentType_1.java b/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocument_String_String_DocumentType_1.java deleted file mode 100644 index f5dee50b0eb..00000000000 --- a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocument_String_String_DocumentType_1.java +++ /dev/null @@ -1,131 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DOMImplementationImpl_createDocument_String_String_DocumentType_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DOMImplementationImpl_createDocument_String_String_DocumentType_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logErrPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - Document d = (Document)tobj; - if (d != null) - { - DOMImplementationImpl di = (DOMImplementationImpl)d.getImplementation(); - if (di == null) { - TestLoader.logErrPrint("Document DomImplementation is NULL.."); - return BWBaseTest.FAILED; - } else { - try { - String namespaceURI = "edi='http://ecommerce.org/schema'"; - String qualifiedName = "edi:price"; - if (di.createDocument(namespaceURI, qualifiedName, null) == null) { - System.out.println("DomImplementation 'createDocument' returns null ..."); - TestLoader.logErrPrint("DomImplementation 'createDocument' returns null ..."); - return BWBaseTest.FAILED; - } - } catch (DOMException de) { - TestLoader.logErrPrint("DOMException : " + de); - return BWBaseTest.FAILED; - } catch (Exception e) { - TestLoader.logErrPrint("Exception: "+e); - return BWBaseTest.FAILED; - } - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocument_String_String_DocumentType_2.java b/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocument_String_String_DocumentType_2.java deleted file mode 100644 index 09bd0b7495d..00000000000 --- a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocument_String_String_DocumentType_2.java +++ /dev/null @@ -1,138 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DOMImplementationImpl_createDocument_String_String_DocumentType_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DOMImplementationImpl_createDocument_String_String_DocumentType_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logErrPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - Document d = (Document)tobj; - if (d != null) - { - DOMImplementationImpl di = (DOMImplementationImpl)d.getImplementation(); - if (di == null) { - TestLoader.logErrPrint("Document DomImplementation is NULL.."); - return BWBaseTest.FAILED; - } else { - try { - DocumentType dt = di.createDocumentType("edi:price", "publicID", "systemID"); - if (dt == null) { - TestLoader.logErrPrint("DocumentType is NULL.."); - return BWBaseTest.FAILED; - } - String namespaceURI = "edi='http://ecommerce.org/schema'"; - String qualifiedName = "edi:price"; - if (di.createDocument(namespaceURI, null, dt) == null) { - System.out.println("DomImplementation 'createDocument' returns null ..."); - TestLoader.logErrPrint("DomImplementation 'createDocument' returns null ..."); - return BWBaseTest.FAILED; - } else { - TestLoader.logErrPrint("createDocumetn didn't throw exception ..."); - return BWBaseTest.FAILED; - } - } catch (DOMException de) { - TestLoader.logErrPrint("DOMException : " + de); - return BWBaseTest.PASSED; - } catch (Exception e) { - TestLoader.logErrPrint("Exception: "+e); - return BWBaseTest.PASSED; - } - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocument_String_String_DocumentType_3.java b/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocument_String_String_DocumentType_3.java deleted file mode 100644 index 80d3c161c19..00000000000 --- a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocument_String_String_DocumentType_3.java +++ /dev/null @@ -1,137 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DOMImplementationImpl_createDocument_String_String_DocumentType_3 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DOMImplementationImpl_createDocument_String_String_DocumentType_3() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logErrPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - DOMImplementationImpl di = (DOMImplementationImpl)d.getImplementation(); - if (di == null) { - TestLoader.logErrPrint("Document DomImplementation is NULL.."); - return BWBaseTest.FAILED; - } else { - try { - DocumentType dt = di.createDocumentType("edi:price", "publicID", "systemID"); - if (dt == null) { - TestLoader.logErrPrint("DocumentType is NULL.."); - return BWBaseTest.FAILED; - } - String namespaceURI = "edi='http://ecommerce.org/schema'"; - String qualifiedName = "edi:price"; - if (di.createDocument(null, qualifiedName, dt) == null) { - System.out.println("DomImplementation 'createDocument' returns null ..."); - TestLoader.logErrPrint("DomImplementation 'createDocument' returns null ..."); - return BWBaseTest.FAILED; - } else { - TestLoader.logErrPrint("createDocumetn didn't throw exception ..."); - return BWBaseTest.FAILED; - } - } catch (DOMException de) { - TestLoader.logErrPrint("DOMException : " + de); - return BWBaseTest.PASSED; - } catch (Exception e) { - TestLoader.logErrPrint("Exception: "+e); - return BWBaseTest.PASSED; - } - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocument_String_String_DocumentType_4.java b/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocument_String_String_DocumentType_4.java deleted file mode 100644 index 1385de6a6ee..00000000000 --- a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_createDocument_String_String_DocumentType_4.java +++ /dev/null @@ -1,139 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DOMImplementationImpl_createDocument_String_String_DocumentType_4 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DOMImplementationImpl_createDocument_String_String_DocumentType_4() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logErrPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - Document d = (Document)tobj; - if (d != null) - { - DOMImplementationImpl di = (DOMImplementationImpl)d.getImplementation(); - if (di == null) { - TestLoader.logErrPrint("Document DomImplementation is NULL.."); - return BWBaseTest.FAILED; - } else { - try { - DocumentType dt = di.createDocumentType("edi:price", "publicID", "systemID"); - if (dt == null) { - TestLoader.logErrPrint("DocumentType is NULL.."); - return BWBaseTest.FAILED; - } - String namespaceURI = "edi='http://ecommerce.org/schema'"; - String qualifiedName = "edi:price"; - if (di.createDocument(null, null, null) == null) { - System.out.println("DomImplementation 'createDocument' returns null ..."); - TestLoader.logErrPrint("DomImplementation 'createDocument' returns null ..."); - return BWBaseTest.FAILED; - } else { - System.out.println("DomImplementation 'createDocument' doesn't throw exception ..."); - return BWBaseTest.FAILED; - } - } catch (DOMException de) { - TestLoader.logErrPrint("DOMException : " + de); - return BWBaseTest.PASSED; - } catch (Exception e) { - TestLoader.logErrPrint("Exception: "+e); - return BWBaseTest.PASSED; - } - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_hasFeature_String_String_0.java b/mozilla/java/dom/tests/src/api/DOMImplementationImpl_hasFeature_String_String_0.java deleted file mode 100755 index 5d8e14faf96..00000000000 --- a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_hasFeature_String_String_0.java +++ /dev/null @@ -1,122 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DOMImplementationImpl_hasFeature_String_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DOMImplementationImpl_hasFeature_String_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logErrPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - DOMImplementationImpl di = (DOMImplementationImpl)d.getImplementation(); - if (di == null) { - TestLoader.logErrPrint("Document DomImplementation is NULL.."); - return BWBaseTest.FAILED; - } else { - if (di.hasFeature(null, null)) { - System.out.println("DomImplementation 'hasFeature(null, null) Failed.."); - return BWBaseTest.FAILED; - } else { - System.out.println("DomImplementation 'hasFeature(null, null)' Passed.."); - } - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_hasFeature_String_String_1.java b/mozilla/java/dom/tests/src/api/DOMImplementationImpl_hasFeature_String_String_1.java deleted file mode 100755 index a46ed54d176..00000000000 --- a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_hasFeature_String_String_1.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DOMImplementationImpl_hasFeature_String_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DOMImplementationImpl_hasFeature_String_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logErrPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - DOMImplementation di = d.getImplementation(); - if (di == null) { - TestLoader.logErrPrint("Document DomImplementation is NULL.."); - return BWBaseTest.FAILED; - } else { - if (!di.hasFeature("HTML", null)) - { - System.out.println("DomImplementation 'hasFeature(HTML, null)' Failed.."); - return BWBaseTest.FAILED; - } - } - } else { - System.out.println("Doument is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_hasFeature_String_String_2.java b/mozilla/java/dom/tests/src/api/DOMImplementationImpl_hasFeature_String_String_2.java deleted file mode 100755 index b2617e4589f..00000000000 --- a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_hasFeature_String_String_2.java +++ /dev/null @@ -1,120 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DOMImplementationImpl_hasFeature_String_String_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DOMImplementationImpl_hasFeature_String_String_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logErrPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - DOMImplementation di = d.getImplementation(); - if (di == null) { - TestLoader.logErrPrint("Document DomImplementation is NULL.."); - return BWBaseTest.FAILED; - } else { - if (di.hasFeature(null, "1.0")) - { - System.out.println("DomImplementation 'hasFeature(null, 1.0)' Failed.."); - return BWBaseTest.FAILED; - } - } - } else { - System.out.println("Doument is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_hasFeature_String_String_3.java b/mozilla/java/dom/tests/src/api/DOMImplementationImpl_hasFeature_String_String_3.java deleted file mode 100755 index 046ec523927..00000000000 --- a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_hasFeature_String_String_3.java +++ /dev/null @@ -1,121 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DOMImplementationImpl_hasFeature_String_String_3 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DOMImplementationImpl_hasFeature_String_String_3() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logErrPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - DOMImplementation di = d.getImplementation(); - if (di == null) { - TestLoader.logErrPrint("Document DomImplementation is NULL.."); - return BWBaseTest.FAILED; - } else { - if (di.hasFeature("HTML", "1.0")) - System.out.println("DomImplementation 'hasFeature(HTMl,1.0) Passed .."); - else { - System.out.println("DomImplementation 'hasFeature(HTMl,1.0) Failed .."); - return BWBaseTest.FAILED; - } - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_hasFeature_String_String_4.java b/mozilla/java/dom/tests/src/api/DOMImplementationImpl_hasFeature_String_String_4.java deleted file mode 100755 index 785bc82d572..00000000000 --- a/mozilla/java/dom/tests/src/api/DOMImplementationImpl_hasFeature_String_String_4.java +++ /dev/null @@ -1,121 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DOMImplementationImpl_hasFeature_String_String_4 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DOMImplementationImpl_hasFeature_String_String_4() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logErrPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - DOMImplementation di = d.getImplementation(); - if (di == null) { - TestLoader.logErrPrint("Document DomImplementation is NULL.."); - return BWBaseTest.FAILED; - } else { - if (di.hasFeature("XML", "1.0")) - System.out.println("DomImplementation 'hasFeature(XML,1.0) Passed .."); - else { - System.out.println("DomImplementation 'hasFeature(XML,1.0) Failed .."); - return BWBaseTest.FAILED; - } - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_createAttributeNS_String_String_0.java b/mozilla/java/dom/tests/src/api/DocumentImpl_createAttributeNS_String_String_0.java deleted file mode 100755 index fd879ac570e..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_createAttributeNS_String_String_0.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_createAttributeNS_String_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_createAttributeNS_String_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - setUnsupported(); - - Document d = (Document)tobj; - if (d != null) - { - try { - String nuri = null; - String qname = null; - Attr a = d.createAttributeNS(nuri, qname); - TestLoader.logErrPrint("createAttributeNS is a unsupported method..."); - return BWBaseTest.FAILED; - } catch (UnsupportedOperationException ue) { - TestLoader.logErrPrint("UNSUPPORTED METHOD"); - return BWBaseTest.PASSED; - } catch (DOMException de) { - String msg = "DOMException : " + de; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_createAttributeNS_String_String_1.java b/mozilla/java/dom/tests/src/api/DocumentImpl_createAttributeNS_String_String_1.java deleted file mode 100755 index 84ff0e0a9cf..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_createAttributeNS_String_String_1.java +++ /dev/null @@ -1,125 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_createAttributeNS_String_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_createAttributeNS_String_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - setUnsupported(); - - - Document d = (Document)tobj; - if (d != null) - { - try { - String nuri = ""; - String qname = null; - Attr a = d.createAttributeNS(nuri, qname); - TestLoader.logErrPrint("createAttributeNS is a unsupported method..."); - return BWBaseTest.FAILED; - } catch (UnsupportedOperationException ue) { - TestLoader.logErrPrint("UNSUPPORTED METHOD"); - return BWBaseTest.PASSED; - } catch (DOMException de) { - String msg = "DOMException : " + de; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_createAttributeNS_String_String_2.java b/mozilla/java/dom/tests/src/api/DocumentImpl_createAttributeNS_String_String_2.java deleted file mode 100755 index 466a446ae24..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_createAttributeNS_String_String_2.java +++ /dev/null @@ -1,125 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_createAttributeNS_String_String_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_createAttributeNS_String_String_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - setUnsupported(); - - - Document d = (Document)tobj; - if (d != null) - { - try { - String nuri = null; - String qname = "xml"; - Attr a = d.createAttributeNS(nuri, qname); - TestLoader.logErrPrint("createAttributeNS is a unsupported method..."); - return BWBaseTest.FAILED; - } catch (UnsupportedOperationException ue) { - TestLoader.logErrPrint("UNSUPPORTED METHOD"); - return BWBaseTest.PASSED; - } catch (DOMException de) { - String msg = "DOMException : " + de; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_createAttributeNS_String_String_3.java b/mozilla/java/dom/tests/src/api/DocumentImpl_createAttributeNS_String_String_3.java deleted file mode 100755 index 9fab1b14685..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_createAttributeNS_String_String_3.java +++ /dev/null @@ -1,125 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_createAttributeNS_String_String_3 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_createAttributeNS_String_String_3() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - setUnsupported(); - - - Document d = (Document)tobj; - if (d != null) - { - try { - String nuri = "xmlns:edi='http://ecommerce.org/schema'"; - String qname = "xml"; - Attr a = d.createAttributeNS(nuri, qname); - TestLoader.logErrPrint("createAttributeNS is a unsupported method..."); - return BWBaseTest.FAILED; - } catch (UnsupportedOperationException ue) { - TestLoader.logErrPrint("UNSUPPORTED METHOD"); - return BWBaseTest.PASSED; - } catch (DOMException de) { - String msg = "DOMException : " + de; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_createAttribute_String_0.java b/mozilla/java/dom/tests/src/api/DocumentImpl_createAttribute_String_0.java deleted file mode 100755 index f6162af1653..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_createAttribute_String_0.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_createAttribute_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_createAttribute_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - Attr dca = d.createAttribute(null); - if (dca != null) { - TestLoader.logErrPrint("Document 'createAttribute(null)' is not NULL.."); - return BWBaseTest.FAILED; - } else { - TestLoader.logErrPrint("Document 'createAttribute(null)' is NULL.."); - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_createAttribute_String_1.java b/mozilla/java/dom/tests/src/api/DocumentImpl_createAttribute_String_1.java deleted file mode 100755 index 47f19425466..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_createAttribute_String_1.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_createAttribute_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_createAttribute_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - Attr da = d.createAttribute("dummyattr"); - if (da == null) { - TestLoader.logErrPrint("Document 'createAttribute(dummyattr)' is NULL.."); - return BWBaseTest.FAILED; - } else { - TestLoader.logErrPrint("Document 'createAttribute(dummyattr)' is NOT NULL.."); - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_createCDATASection_String_0.java b/mozilla/java/dom/tests/src/api/DocumentImpl_createCDATASection_String_0.java deleted file mode 100755 index 3ae1e612cdb..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_createCDATASection_String_0.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_createCDATASection_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_createCDATASection_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = null; - CDATASection c = d.createCDATASection(str); - if (c != null) { - TestLoader.logErrPrint("Could Create CDATA Section with null String..." ); - return BWBaseTest.FAILED; - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_createCDATASection_String_1.java b/mozilla/java/dom/tests/src/api/DocumentImpl_createCDATASection_String_1.java deleted file mode 100755 index fd50bb2d13f..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_createCDATASection_String_1.java +++ /dev/null @@ -1,121 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_createCDATASection_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_createCDATASection_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "This is totally a character "; - CDATASection c = d.createCDATASection(str); - if (c == null) { - TestLoader.logErrPrint("Could not Create CDATA Section with String " + str); - return BWBaseTest.FAILED; - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_createComment_String_0.java b/mozilla/java/dom/tests/src/api/DocumentImpl_createComment_String_0.java deleted file mode 100755 index 496421774c4..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_createComment_String_0.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_createComment_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_createComment_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - Comment dc = d.createComment(null); - if (dc != null) { - TestLoader.logErrPrint("Document 'createCommnet(null) is not NULL.."); - return BWBaseTest.FAILED; - } else { - TestLoader.logErrPrint("Document 'createComment(null) is NULL.."); - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_createComment_String_1.java b/mozilla/java/dom/tests/src/api/DocumentImpl_createComment_String_1.java deleted file mode 100755 index ed8b33285fa..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_createComment_String_1.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_createComment_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_createComment_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - Comment dc = d.createComment("dummy comment string"); - if (dc == null) { - TestLoader.logErrPrint("Document 'createCommnet(dummy)' is not NULL.."); - return BWBaseTest.FAILED; - } else { - TestLoader.logErrPrint("Document 'createComment(dummy)' is NULL.."); - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_createDocumentFragment.java b/mozilla/java/dom/tests/src/api/DocumentImpl_createDocumentFragment.java deleted file mode 100755 index 81f2614165c..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_createDocumentFragment.java +++ /dev/null @@ -1,122 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_createDocumentFragment extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_createDocumentFragment() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - DocumentFragment df = d.createDocumentFragment(); - if (df == null) { - TestLoader.logErrPrint("Document 'createDocumentFragment()' is NULL.."); - return BWBaseTest.FAILED; - } else { - TestLoader.logErrPrint("Document 'createComment(dummy)' is not NULL.."); - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_createElementNS_String_String_0.java b/mozilla/java/dom/tests/src/api/DocumentImpl_createElementNS_String_String_0.java deleted file mode 100755 index c4f486b0ec2..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_createElementNS_String_String_0.java +++ /dev/null @@ -1,125 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_createElementNS_String_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_createElementNS_String_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - setUnsupported(); - - - Document d = (Document)tobj; - if (d != null) - { - try { - String nuri = null; - String qname = null; - Element e = d.createElementNS(nuri, qname); - TestLoader.logErrPrint("createElementNS is a unsupported method..."); - return BWBaseTest.FAILED; - } catch (UnsupportedOperationException ue) { - TestLoader.logErrPrint("UNSUPPORTEd METHOD"); - return BWBaseTest.PASSED; - } catch (DOMException de) { - String msg = "DOMException : " + de; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_createElementNS_String_String_1.java b/mozilla/java/dom/tests/src/api/DocumentImpl_createElementNS_String_String_1.java deleted file mode 100755 index c4cd39d46ce..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_createElementNS_String_String_1.java +++ /dev/null @@ -1,125 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_createElementNS_String_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_createElementNS_String_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - setUnsupported(); - - - Document d = (Document)tobj; - if (d != null) - { - try { - String nuri = ""; - String qname = null; - Element e = d.createElementNS(nuri, qname); - TestLoader.logErrPrint("createElementNS is a unsupported method..."); - return BWBaseTest.FAILED; - } catch (UnsupportedOperationException ue) { - TestLoader.logErrPrint("UNSUPPORTEd METHOD"); - return BWBaseTest.PASSED; - } catch (DOMException de) { - String msg = "DOMException : " + de; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_createElementNS_String_String_2.java b/mozilla/java/dom/tests/src/api/DocumentImpl_createElementNS_String_String_2.java deleted file mode 100755 index 282a9e516bd..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_createElementNS_String_String_2.java +++ /dev/null @@ -1,125 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_createElementNS_String_String_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_createElementNS_String_String_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - setUnsupported(); - - - Document d = (Document)tobj; - if (d != null) - { - try { - String nuri = null; - String qname = "xml"; - Element e = d.createElementNS(nuri, qname); - TestLoader.logErrPrint("createElementNS is a unsupported method..."); - return BWBaseTest.FAILED; - } catch (UnsupportedOperationException ue) { - TestLoader.logErrPrint("UNSUPPORTEd METHOD"); - return BWBaseTest.PASSED; - } catch (DOMException de) { - String msg = "DOMException : " + de; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_createElementNS_String_String_3.java b/mozilla/java/dom/tests/src/api/DocumentImpl_createElementNS_String_String_3.java deleted file mode 100755 index 0bd6f7b2791..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_createElementNS_String_String_3.java +++ /dev/null @@ -1,125 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_createElementNS_String_String_3 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_createElementNS_String_String_3() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - setUnsupported(); - - - Document d = (Document)tobj; - if (d != null) - { - try { - String nuri = "xmlns:edi='http://ecommerce.org/schema'"; - String qname = "xml"; - Element e = d.createElementNS(nuri, qname); - TestLoader.logErrPrint("createElementNS is a unsupported method..."); - return BWBaseTest.FAILED; - } catch (UnsupportedOperationException ue) { - TestLoader.logErrPrint("UNSUPPORTEd METHOD"); - return BWBaseTest.PASSED; - } catch (DOMException de) { - String msg = "DOMException : " + de; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_createElement_String_0.java b/mozilla/java/dom/tests/src/api/DocumentImpl_createElement_String_0.java deleted file mode 100755 index 2a37ab3c394..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_createElement_String_0.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_createElement_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_createElement_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.createElement(null); - if (e != null) { - TestLoader.logErrPrint("Document 'createElement(null) is not NULL.."); - return BWBaseTest.FAILED; - } else { - TestLoader.logErrPrint("Document 'createComment(null)' is NULL.."); - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_createElement_String_1.java b/mozilla/java/dom/tests/src/api/DocumentImpl_createElement_String_1.java deleted file mode 100755 index 8fcdedb508f..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_createElement_String_1.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_createElement_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_createElement_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.createElement("HR"); - if (e == null) { - TestLoader.logErrPrint("Document 'createElement(HR) is NULL.."); - return BWBaseTest.FAILED; - } else { - TestLoader.logErrPrint("Document 'createElement(HR)' is not NULL.."); - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_createEntityReference_String_0.java b/mozilla/java/dom/tests/src/api/DocumentImpl_createEntityReference_String_0.java deleted file mode 100755 index bfd05b192b5..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_createEntityReference_String_0.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_createEntityReference_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_createEntityReference_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = null; - EntityReference er = d.createEntityReference(str); - if (er != null) { - TestLoader.logErrPrint("Could not Create EntityReference with NULL name"); - return BWBaseTest.FAILED; - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_createEntityReference_String_1.java b/mozilla/java/dom/tests/src/api/DocumentImpl_createEntityReference_String_1.java deleted file mode 100755 index 9427d17c813..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_createEntityReference_String_1.java +++ /dev/null @@ -1,125 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_createEntityReference_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_createEntityReference_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "newEntity"; - EntityReference er = d.createEntityReference(str); - if (er == null) { - TestLoader.logErrPrint("Could not Create EntityReference with name " + str); - return BWBaseTest.FAILED; - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_createEvent_String_0.java b/mozilla/java/dom/tests/src/api/DocumentImpl_createEvent_String_0.java deleted file mode 100755 index 2fef389fbad..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_createEvent_String_0.java +++ /dev/null @@ -1,118 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; -import org.w3c.dom.events.*; - -public class DocumentImpl_createEvent_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_createEvent_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - DocumentImpl d = (DocumentImpl)tobj; - if (d != null) - { - try { - String s = null; - Event e = d.createEvent(s); - } catch (Exception e) { - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_createEvent_String_1.java b/mozilla/java/dom/tests/src/api/DocumentImpl_createEvent_String_1.java deleted file mode 100755 index 2e4eeaccfa5..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_createEvent_String_1.java +++ /dev/null @@ -1,124 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; -import org.w3c.dom.events.*; - -public class DocumentImpl_createEvent_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_createEvent_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - DocumentImpl d = (DocumentImpl)tobj; - if (d != null) - { - try { - Event me = d.createEvent("UIEvents"); - if (me == null) { - TestLoader.logErrPrint("DocumentEvent returned null ..."); - //System.out.println("DocumentEvent returned null: me="+me+" ke="+ke+" he="+he); - return BWBaseTest.FAILED; - } - } catch (Exception e) { - System.out.println("Excpetion was thrown: "+e); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_createEvent_String_2.java b/mozilla/java/dom/tests/src/api/DocumentImpl_createEvent_String_2.java deleted file mode 100644 index 49c88e5a23b..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_createEvent_String_2.java +++ /dev/null @@ -1,118 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; -import org.w3c.dom.events.*; - -public class DocumentImpl_createEvent_String_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_createEvent_String_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - DocumentImpl d = (DocumentImpl)tobj; - if (d != null) - { - try { - String s = "SomeIncorrectEventType"; - Event e = d.createEvent(s); - return BWBaseTest.FAILED; - } catch (Exception e) { - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_createProcessingInstruction_String_String_0.java b/mozilla/java/dom/tests/src/api/DocumentImpl_createProcessingInstruction_String_String_0.java deleted file mode 100755 index 094f784d4d5..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_createProcessingInstruction_String_String_0.java +++ /dev/null @@ -1,126 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_createProcessingInstruction_String_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_createProcessingInstruction_String_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String target = null; - String data = null; - ProcessingInstruction pi = d.createProcessingInstruction(target, data); - if (pi != null) { - TestLoader.logErrPrint("Could Create ProcessingInstruction with target and data set to NULL..."); - return BWBaseTest.FAILED; - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_createProcessingInstruction_String_String_1.java b/mozilla/java/dom/tests/src/api/DocumentImpl_createProcessingInstruction_String_String_1.java deleted file mode 100755 index 4c77168d5c6..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_createProcessingInstruction_String_String_1.java +++ /dev/null @@ -1,126 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_createProcessingInstruction_String_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_createProcessingInstruction_String_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String target = "xml"; - String data = null; - ProcessingInstruction pi = d.createProcessingInstruction(target, data); - if (pi != null) { - TestLoader.logErrPrint("Could Create ProcessingInstruction with target " + target + " and data set to NULL..."); - return BWBaseTest.FAILED; - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_createProcessingInstruction_String_String_2.java b/mozilla/java/dom/tests/src/api/DocumentImpl_createProcessingInstruction_String_String_2.java deleted file mode 100755 index 865f576b745..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_createProcessingInstruction_String_String_2.java +++ /dev/null @@ -1,126 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_createProcessingInstruction_String_String_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_createProcessingInstruction_String_String_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String target = null; - String data = "version=\"1.0\""; - ProcessingInstruction pi = d.createProcessingInstruction(target, data); - if (pi != null) { - TestLoader.logErrPrint("Could Create ProcessingInstruction with target set to NULL and data set to " + data); - return BWBaseTest.FAILED; - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_createProcessingInstruction_String_String_3.java b/mozilla/java/dom/tests/src/api/DocumentImpl_createProcessingInstruction_String_String_3.java deleted file mode 100755 index 23f45caa2be..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_createProcessingInstruction_String_String_3.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_createProcessingInstruction_String_String_3 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_createProcessingInstruction_String_String_3() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String target = "xml"; - String data = "version=\"1.0\""; - ProcessingInstruction pi = d.createProcessingInstruction(target, data); - if (pi == null) { - TestLoader.logErrPrint("Could Not Create ProcessingInstruction with target " + target + " and data set to " + data); - return BWBaseTest.FAILED; - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_createTextNode_String_0.java b/mozilla/java/dom/tests/src/api/DocumentImpl_createTextNode_String_0.java deleted file mode 100755 index eb839002f50..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_createTextNode_String_0.java +++ /dev/null @@ -1,123 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_createTextNode_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_createTextNode_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - Text t = d.createTextNode(null); - if (t != null) { - TestLoader.logErrPrint("Document 'createTextNode(null) is not NULL.."); - return BWBaseTest.FAILED; - } else { - TestLoader.logErrPrint("Document 'createTextNode(null)' is NULL.."); - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_createTextNode_String_1.java b/mozilla/java/dom/tests/src/api/DocumentImpl_createTextNode_String_1.java deleted file mode 100755 index 5254dcda00a..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_createTextNode_String_1.java +++ /dev/null @@ -1,123 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_createTextNode_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_createTextNode_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - Text t = d.createTextNode("mytxt"); - if (t == null) { - TestLoader.logErrPrint("Document 'createTextNode(mytxt) is NULL.."); - return BWBaseTest.FAILED; - } else { - TestLoader.logErrPrint("Document 'createTextNode(mytxt)' is not NULL.."); - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_getDoctype.java b/mozilla/java/dom/tests/src/api/DocumentImpl_getDoctype.java deleted file mode 100755 index fa2b87aa7b1..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_getDoctype.java +++ /dev/null @@ -1,123 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_getDoctype extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_getDoctype() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - DocumentType dt = d.getDoctype(); - if (dt != null) { - TestLoader.logErrPrint("Document Type for HTML is NULL.."); - return BWBaseTest.FAILED; - } else { - TestLoader.logErrPrint("Document Type is for HTML is NULL"); - return BWBaseTest.PASSED; - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_getDoctype_xml.java b/mozilla/java/dom/tests/src/api/DocumentImpl_getDoctype_xml.java deleted file mode 100755 index a4b73dedd7a..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_getDoctype_xml.java +++ /dev/null @@ -1,123 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_getDoctype_xml extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_getDoctype_xml() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - DocumentType dt = d.getDoctype(); - if (dt == null) { - TestLoader.logErrPrint("Document Type is NULL.."); - return BWBaseTest.FAILED; - } else { - TestLoader.logErrPrint("Document Type is " + dt.getName()); - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_getDocumentElement.java b/mozilla/java/dom/tests/src/api/DocumentImpl_getDocumentElement.java deleted file mode 100755 index 177c32a20de..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_getDocumentElement.java +++ /dev/null @@ -1,124 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_getDocumentElement extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_getDocumentElement() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try - { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - TestLoader.logErrPrint("Document Element is " + e.getTagName()); - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_getElementById_String_0.java b/mozilla/java/dom/tests/src/api/DocumentImpl_getElementById_String_0.java deleted file mode 100755 index dcc8df43b7f..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_getElementById_String_0.java +++ /dev/null @@ -1,122 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_getElementById_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_getElementById_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - DocumentImpl d = (DocumentImpl)tobj; - if (d != null) - { - try { - String id = "body_tag_id"; - Element e = d.getElementById(id); - if (e == null) { - TestLoader.logErrPrint("Document 'getElementById'is retuned null "); - return BWBaseTest.FAILED; - } - - } catch (Exception e) { - TestLoader.logErrPrint("Exception: "+e); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_getElementById_String_1.java b/mozilla/java/dom/tests/src/api/DocumentImpl_getElementById_String_1.java deleted file mode 100755 index e96a585a591..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_getElementById_String_1.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_getElementById_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_getElementById_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - DocumentImpl d = (DocumentImpl)tobj; - if (d != null) - { - try { - Element e = d.getElementById("nonexistent_id"); - TestLoader.logErrPrint("Document 'getElementsById(nonexistent_id)' didn't throw exception"); - return BWBaseTest.FAILED; - - } catch (Exception e) { - TestLoader.logErrPrint("Exception: "+e); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_getElementById_String_2.java b/mozilla/java/dom/tests/src/api/DocumentImpl_getElementById_String_2.java deleted file mode 100644 index 3ecdf56420c..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_getElementById_String_2.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_getElementById_String_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_getElementById_String_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - DocumentImpl d = (DocumentImpl)tobj; - if (d != null) - { - try { - Element e = d.getElementById(null); - TestLoader.logErrPrint("Document 'getElementsById(null)' didn't throw exception"); - return BWBaseTest.FAILED; - - } catch (Exception e) { - TestLoader.logErrPrint("Exception: "+e); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_getElementsByTagNameNS_String_String_0.java b/mozilla/java/dom/tests/src/api/DocumentImpl_getElementsByTagNameNS_String_String_0.java deleted file mode 100755 index 29b07ddf514..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_getElementsByTagNameNS_String_String_0.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_getElementsByTagNameNS_String_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_getElementsByTagNameNS_String_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - String nuri = "xmlns:edi='http://ecommerce/schema'"; - String qname = "body"; - NodeList dt = d.getElementsByTagNameNS(nuri, qname); - if (dt == null) { - TestLoader.logErrPrint("Document 'getElementsByTagNameNS' returned null "); - return BWBaseTest.FAILED; - } - - } catch (Exception e) { - TestLoader.logErrPrint("Exception: " + e); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_getElementsByTagNameNS_String_String_1.java b/mozilla/java/dom/tests/src/api/DocumentImpl_getElementsByTagNameNS_String_String_1.java deleted file mode 100755 index ff501796dcb..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_getElementsByTagNameNS_String_String_1.java +++ /dev/null @@ -1,118 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_getElementsByTagNameNS_String_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_getElementsByTagNameNS_String_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - String nuri = null; - String qname = "body"; - NodeList dt = d.getElementsByTagNameNS(nuri, qname); - return BWBaseTest.FAILED; - - } catch (Exception e) { - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_getElementsByTagNameNS_String_String_2.java b/mozilla/java/dom/tests/src/api/DocumentImpl_getElementsByTagNameNS_String_String_2.java deleted file mode 100755 index 96887f42c10..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_getElementsByTagNameNS_String_String_2.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_getElementsByTagNameNS_String_String_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_getElementsByTagNameNS_String_String_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - String nuri = "xmlns:edi='http://ec/schema'"; - String qname = null; - NodeList dt = d.getElementsByTagNameNS(nuri, qname); - TestLoader.logErrPrint("Document 'getElementsByTagNameNS' didn't throw exception ... "); - return BWBaseTest.FAILED; - - } catch (Exception ue) { - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_getElementsByTagNameNS_String_String_3.java b/mozilla/java/dom/tests/src/api/DocumentImpl_getElementsByTagNameNS_String_String_3.java deleted file mode 100755 index 3c3c06b12c0..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_getElementsByTagNameNS_String_String_3.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_getElementsByTagNameNS_String_String_3 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_getElementsByTagNameNS_String_String_3() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - String nuri = null; - String qname = null; - NodeList dt = d.getElementsByTagNameNS(nuri, qname); - TestLoader.logErrPrint("Document 'getElementsByTagNameNS' didn't thrpw exception "); - return BWBaseTest.FAILED; - - } catch (Exception e) { - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_getElementsByTagName_String_0.java b/mozilla/java/dom/tests/src/api/DocumentImpl_getElementsByTagName_String_0.java deleted file mode 100755 index e0a5a115553..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_getElementsByTagName_String_0.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_getElementsByTagName_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_getElementsByTagName_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - NodeList dt = d.getElementsByTagName(null); - if (dt != null) { - TestLoader.logErrPrint("Document 'getElementsByTagName(null)' is NOT NULL.."); - return BWBaseTest.FAILED; - } else { - TestLoader.logErrPrint("Document 'getElementsByTagName(null)' is NULL.."); - } - - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_getElementsByTagName_String_1.java b/mozilla/java/dom/tests/src/api/DocumentImpl_getElementsByTagName_String_1.java deleted file mode 100755 index 5dc0042ddca..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_getElementsByTagName_String_1.java +++ /dev/null @@ -1,123 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_getElementsByTagName_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_getElementsByTagName_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - NodeList dt = d.getElementsByTagName("*"); - if (dt == null) { - TestLoader.logErrPrint("Document 'getElementsByTagName(*)' is NULL.."); - return BWBaseTest.FAILED; - } else { - TestLoader.logErrPrint("Document 'getElementsByTagName(*)' is NOT NULL.."); - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_getImplementation.java b/mozilla/java/dom/tests/src/api/DocumentImpl_getImplementation.java deleted file mode 100755 index 49d07572161..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_getImplementation.java +++ /dev/null @@ -1,122 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_getImplementation extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_getImplementation() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - DOMImplementation dt = d.getImplementation(); - if (dt == null) { - TestLoader.logErrPrint("Document Implementation is NULL.."); - return BWBaseTest.FAILED; - } else { - TestLoader.logErrPrint("Document Implementation is NOT NULL..."); - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_importNode_Node_boolean_0.java b/mozilla/java/dom/tests/src/api/DocumentImpl_importNode_Node_boolean_0.java deleted file mode 100755 index 5d33940c700..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_importNode_Node_boolean_0.java +++ /dev/null @@ -1,125 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_importNode_Node_boolean_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_importNode_Node_boolean_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - setUnsupported(); - - - DocumentImpl d = (DocumentImpl)tobj; - if (d != null) - { - try { - - Node n= d.importNode(null, false); - TestLoader.logErrPrint("Document 'importNode(null,false) is not supported method..."); - return BWBaseTest.FAILED; - } catch (UnsupportedOperationException ue) { - String msg = "UNSUPPORTED METHOD " ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } catch (DOMException de) { - String msg = "Caught DOMException " + de; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_importNode_Node_boolean_1.java b/mozilla/java/dom/tests/src/api/DocumentImpl_importNode_Node_boolean_1.java deleted file mode 100755 index 8bab13bb4e7..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_importNode_Node_boolean_1.java +++ /dev/null @@ -1,125 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_importNode_Node_boolean_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_importNode_Node_boolean_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - setUnsupported(); - - - DocumentImpl d = (DocumentImpl)tobj; - if (d != null) - { - try { - - Node n= d.importNode(null, true); - TestLoader.logErrPrint("Document 'importNode(null,true) is not supported method..."); - return BWBaseTest.FAILED; - } catch (UnsupportedOperationException ue) { - String msg = "UNSUPPORTED METHOD " ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } catch (DOMException de) { - String msg = "Caught DOMException " + de; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_importNode_Node_boolean_2.java b/mozilla/java/dom/tests/src/api/DocumentImpl_importNode_Node_boolean_2.java deleted file mode 100755 index d500d3e913b..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_importNode_Node_boolean_2.java +++ /dev/null @@ -1,137 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_importNode_Node_boolean_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_importNode_Node_boolean_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - setUnsupported(); - - - DocumentImpl d = (DocumentImpl)tobj; - if (d != null) - { - Element e = null; - try { - e = d.createElement("HR"); - if (e == null) { - TestLoader.logErrPrint("Document 'createElement(HR) is NULL.."); - return BWBaseTest.FAILED; - } - } catch (Exception ex) { - String msg = "createElement Exception:" + ex ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - - try { - Node n= d.importNode(e, false); - TestLoader.logErrPrint("Document 'importNode(null,false) is not supported method..."); - return BWBaseTest.FAILED; - } catch (UnsupportedOperationException ue) { - String msg = "UNSUPPORTED METHOD " ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } catch (DOMException de) { - String msg = "Caught DOMException " + de; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentImpl_importNode_Node_boolean_3.java b/mozilla/java/dom/tests/src/api/DocumentImpl_importNode_Node_boolean_3.java deleted file mode 100755 index b66028c264f..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentImpl_importNode_Node_boolean_3.java +++ /dev/null @@ -1,137 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentImpl_importNode_Node_boolean_3 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentImpl_importNode_Node_boolean_3() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - setUnsupported(); - - - DocumentImpl d = (DocumentImpl)tobj; - if (d != null) - { - Element e = null; - try { - e = d.createElement("HR"); - if (e == null) { - TestLoader.logErrPrint("Document 'createElement(HR) is NULL.."); - return BWBaseTest.FAILED; - } - } catch (Exception ex) { - String msg = "createElement Exception:" + ex ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - - try { - Node n= d.importNode(e, true); - TestLoader.logErrPrint("Document 'importNode(null,false) is not supported method..."); - return BWBaseTest.FAILED; - } catch (UnsupportedOperationException ue) { - String msg = "UNSUPPORTED METHOD " ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } catch (DOMException de) { - String msg = "Caught DOMException " + de; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentTypeImpl_getEntities.java b/mozilla/java/dom/tests/src/api/DocumentTypeImpl_getEntities.java deleted file mode 100755 index e3bc262ae21..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentTypeImpl_getEntities.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentTypeImpl_getEntities extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentTypeImpl_getEntities() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - DocumentType dt = d.getDoctype(); - if (dt == null) { - TestLoader.logErrPrint("Document Type is NULL.."); - return BWBaseTest.FAILED; - } else { - NamedNodeMap nmap = dt.getEntities(); - if (nmap == null) - TestLoader.logErrPrint("DocumentType 'getEntities' is NULL..."); - else - TestLoader.logErrPrint("DocumentType 'getEntities' is Not NULL..."); - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentTypeImpl_getInternalSubset.java b/mozilla/java/dom/tests/src/api/DocumentTypeImpl_getInternalSubset.java deleted file mode 100755 index 7137960e78b..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentTypeImpl_getInternalSubset.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentTypeImpl_getInternalSubset extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentTypeImpl_getInternalSubset() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - DocumentType dt = d.getDoctype(); - if (dt == null) { - TestLoader.logErrPrint("Document Type is NULL.."); - return BWBaseTest.FAILED; - } - String s = dt.getInternalSubset(); - if (s == null) { - TestLoader.logErrPrint("DocumentType 'getInternalSubset' return null..."); - return BWBaseTest.FAILED; - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentTypeImpl_getName.java b/mozilla/java/dom/tests/src/api/DocumentTypeImpl_getName.java deleted file mode 100755 index d93e1e2d172..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentTypeImpl_getName.java +++ /dev/null @@ -1,127 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ -package org.mozilla.dom.test; - - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentTypeImpl_getName extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentTypeImpl_getName() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - DocumentType dt = d.getDoctype(); - if (dt == null) { - TestLoader.logErrPrint("Document Type is NULL.."); - return BWBaseTest.FAILED; - } else { - String name = dt.getName(); - if (name == null) { - TestLoader.logErrPrint("DocumentType 'getName' is NULL..."); - return BWBaseTest.FAILED; - } else - TestLoader.logErrPrint("DocumentType 'getName' is " + name); - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentTypeImpl_getNotations.java b/mozilla/java/dom/tests/src/api/DocumentTypeImpl_getNotations.java deleted file mode 100755 index f2a61a866ba..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentTypeImpl_getNotations.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentTypeImpl_getNotations extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentTypeImpl_getNotations() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - DocumentType dt = d.getDoctype(); - if (dt == null) { - TestLoader.logErrPrint("Document Type is NULL.."); - return BWBaseTest.FAILED; - } else { - NamedNodeMap nmap = dt.getNotations(); - if (nmap == null) - TestLoader.logErrPrint("DocumentType 'getNotations' is NULL..."); - else - TestLoader.logErrPrint("DocumentType 'getNotations' is Not NULL..."); - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentTypeImpl_getPublicId.java b/mozilla/java/dom/tests/src/api/DocumentTypeImpl_getPublicId.java deleted file mode 100755 index 33aef823921..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentTypeImpl_getPublicId.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentTypeImpl_getPublicId extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentTypeImpl_getPublicId() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - DocumentType dt = d.getDoctype(); - if (dt == null) { - TestLoader.logErrPrint("Document Type is NULL.."); - return BWBaseTest.FAILED; - } - String s = dt.getPublicId(); - if (s == null) { - TestLoader.logErrPrint("DocumentType 'getPublicId' return null..."); - return BWBaseTest.FAILED; - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/DocumentTypeImpl_getSystemId.java b/mozilla/java/dom/tests/src/api/DocumentTypeImpl_getSystemId.java deleted file mode 100755 index ddb6b025048..00000000000 --- a/mozilla/java/dom/tests/src/api/DocumentTypeImpl_getSystemId.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class DocumentTypeImpl_getSystemId extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public DocumentTypeImpl_getSystemId() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - DocumentType dt = d.getDoctype(); - if (dt == null) { - TestLoader.logErrPrint("Document Type is NULL.."); - return BWBaseTest.FAILED; - } - String s = dt.getSystemId(); - if (s == null) { - TestLoader.logErrPrint("DocumentType 'getSystemId' return null..."); - return BWBaseTest.FAILED; - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNS_String_String_0.java b/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNS_String_String_0.java deleted file mode 100755 index 6dc629ed4ab..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNS_String_String_0.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_getAttributeNS_String_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_getAttributeNS_String_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - String nuri = "http://www.foo.org/"; - String lname = "myattr"; - String retval = "ATTRVAL"; - String s = e.getAttributeNS(nuri, lname); - if (s == null) { - TestLoader.logErrPrint("Element 'getAttributeNS' returned null instad of " + retval); - return BWBaseTest.FAILED; - } - - if (!s.equals(retval)) { - TestLoader.logErrPrint("Element 'getAttributeNS' returned incorrect value: "+s+" != "+ retval); - return BWBaseTest.FAILED; - } - } - } catch (Exception e) { - String msg = "Exception: " + e; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNS_String_String_1.java b/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNS_String_String_1.java deleted file mode 100755 index 682f7b15197..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNS_String_String_1.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_getAttributeNS_String_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_getAttributeNS_String_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - String nuri = null; - String lname = "myattr"; - String s = e.getAttributeNS(nuri, lname); - TestLoader.logErrPrint("Element 'getAttributeNS' didn't throw exception for null URI"); - return BWBaseTest.FAILED; - } - } catch (Exception e) { - String msg = "Exception " + e; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNS_String_String_2.java b/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNS_String_String_2.java deleted file mode 100755 index e6f5e369b71..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNS_String_String_2.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_getAttributeNS_String_String_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_getAttributeNS_String_String_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - String nuri = "http://www.foo.org/"; - String lname = null; - String s = e.getAttributeNS(nuri, lname); - TestLoader.logErrPrint("Element 'getAttributeNS' did not throw Exception for localname set to null"); - return BWBaseTest.FAILED; - } - } catch (Exception r) { - String msg = "Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNS_String_String_3.java b/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNS_String_String_3.java deleted file mode 100755 index 5712763a53a..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNS_String_String_3.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_getAttributeNS_String_String_3 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_getAttributeNS_String_String_3() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - String nuri = null; - String lname = null; - String s = e.getAttributeNS(nuri, lname); - TestLoader.logErrPrint("Element 'getAttributeNS' didn't throw exception"); - return BWBaseTest.FAILED; - } - } catch (Exception r) { - String msg = "Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNodeNS_String_String_0.java b/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNodeNS_String_String_0.java deleted file mode 100755 index d2225e6d23e..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNodeNS_String_String_0.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_getAttributeNodeNS_String_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_getAttributeNodeNS_String_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - String nuri = null; - String lname = null; - Node n = e.getAttributeNodeNS(nuri, lname); - TestLoader.logErrPrint("Element 'getAttributeNodeNS' didn't throw exception for URI set to null and local name set to null... "); - return BWBaseTest.FAILED; - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNodeNS_String_String_1.java b/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNodeNS_String_String_1.java deleted file mode 100755 index 41002991f1b..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNodeNS_String_String_1.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_getAttributeNodeNS_String_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_getAttributeNodeNS_String_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - String nuri = null; - String lname = "myattr"; - Node n = e.getAttributeNodeNS(nuri, lname); - TestLoader.logErrPrint("Element 'getAttributeNodeNS' didn't throw exception for URI set to null... "); - return BWBaseTest.FAILED; - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNodeNS_String_String_2.java b/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNodeNS_String_String_2.java deleted file mode 100755 index 1831c821e1e..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNodeNS_String_String_2.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_getAttributeNodeNS_String_String_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_getAttributeNodeNS_String_String_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - String nuri = "http://www.foo.org/"; - String lname = null; - Node n = e.getAttributeNodeNS(nuri, lname); - TestLoader.logErrPrint("Element 'getAttributeNodeNS' didn't throw exception for local name set to null... "); - return BWBaseTest.FAILED; - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNodeNS_String_String_3.java b/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNodeNS_String_String_3.java deleted file mode 100755 index 8406447f1b6..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNodeNS_String_String_3.java +++ /dev/null @@ -1,145 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_getAttributeNodeNS_String_String_3 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_getAttributeNodeNS_String_String_3() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - String nuri = "http://www.foo.org/"; - String lname = "myattr"; - String val = "ATTRVAL"; - Node n = e.getAttributeNodeNS(nuri, lname); - if (n == null) - { - TestLoader.logErrPrint("Element 'getAttributeNS' returned null value instead of " + val); - return BWBaseTest.FAILED; - } - if (n.getNodeType() != Node.ATTRIBUTE_NODE || !((Attr)n).getValue().equals(val)) { - TestLoader.logErrPrint("Element 'getAttributeNS' returned value " + ((Attr)n).getValue() + " instead of " + val); - return BWBaseTest.FAILED; - } - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNode_String_0.java b/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNode_String_0.java deleted file mode 100755 index 0f1b64ba9e0..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNode_String_0.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_getAttributeNode_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_getAttributeNode_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - Attr a = e.getAttributeNode(null); - if (a != null) { - TestLoader.logErrPrint("Element 'getAttributeNode(null) FAILED... "); - return BWBaseTest.FAILED; - } - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNode_String_1.java b/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNode_String_1.java deleted file mode 100755 index a8073ede25b..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_getAttributeNode_String_1.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_getAttributeNode_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_getAttributeNode_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - e.setAttribute("dummyattr", "1"); - Attr a = e.getAttributeNode("dummyattr"); - if (a == null) { - TestLoader.logErrPrint("Element 'getAttributeNode(dummyattr) FAILED... "); - return BWBaseTest.FAILED; - } - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_getAttribute_String_0.java b/mozilla/java/dom/tests/src/api/ElementImpl_getAttribute_String_0.java deleted file mode 100755 index 677a2b429d0..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_getAttribute_String_0.java +++ /dev/null @@ -1,127 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_getAttribute_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_getAttribute_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - String str = e.getAttribute(null); - if (str != null) { - TestLoader.logErrPrint("Element 'getAttribute(null) FAILED... "); - return BWBaseTest.FAILED; - } - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_getAttribute_String_1.java b/mozilla/java/dom/tests/src/api/ElementImpl_getAttribute_String_1.java deleted file mode 100755 index 539acc4b6b2..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_getAttribute_String_1.java +++ /dev/null @@ -1,134 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_getAttribute_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_getAttribute_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - e.setAttribute("dummyattr", "1"); - String str = e.getAttribute("dummyattr"); - if (str == null) { - TestLoader.logErrPrint("Element 'getAttribute(dummyattr) FAILED... "); - return BWBaseTest.FAILED; - } else { - if (str.compareTo("1") != 0) - { - TestLoader.logErrPrint("Element 'getAttribute(dummyattr) FAILED... "); - return BWBaseTest.FAILED; - } - } - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_getElementsByTagNameNS_String_String_0.java b/mozilla/java/dom/tests/src/api/ElementImpl_getElementsByTagNameNS_String_String_0.java deleted file mode 100755 index 1d02aada1f7..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_getElementsByTagNameNS_String_String_0.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_getElementsByTagNameNS_String_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_getElementsByTagNameNS_String_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - String nuri = null; - String lname = null; - nl = e.getElementsByTagNameNS(nuri, lname); - TestLoader.logErrPrint("Element 'getElementsByTagNameNS' didn't throw exception for URI set to null and localname set to null... "); - return BWBaseTest.FAILED; - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_getElementsByTagNameNS_String_String_1.java b/mozilla/java/dom/tests/src/api/ElementImpl_getElementsByTagNameNS_String_String_1.java deleted file mode 100755 index 2a580949938..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_getElementsByTagNameNS_String_String_1.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_getElementsByTagNameNS_String_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_getElementsByTagNameNS_String_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - String nuri = null; - String lname = "myattr"; - nl = e.getElementsByTagNameNS(nuri, lname); - TestLoader.logErrPrint("Element 'getElementsByTagNameNS' didn't throw exception for URI set to null and localname set to myattr... "); - return BWBaseTest.FAILED; - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_getElementsByTagNameNS_String_String_2.java b/mozilla/java/dom/tests/src/api/ElementImpl_getElementsByTagNameNS_String_String_2.java deleted file mode 100755 index bd092f6b56d..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_getElementsByTagNameNS_String_String_2.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_getElementsByTagNameNS_String_String_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_getElementsByTagNameNS_String_String_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - String nuri = "http://www.foo.org/"; - String lname = null; - nl = e.getElementsByTagNameNS(nuri, lname); - TestLoader.logErrPrint("Element 'getElementsByTagNameNS' didn't throw exception for localname set to null... "); - return BWBaseTest.FAILED; - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_getElementsByTagNameNS_String_String_3.java b/mozilla/java/dom/tests/src/api/ElementImpl_getElementsByTagNameNS_String_String_3.java deleted file mode 100755 index b2b19f2aad6..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_getElementsByTagNameNS_String_String_3.java +++ /dev/null @@ -1,140 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_getElementsByTagNameNS_String_String_3 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_getElementsByTagNameNS_String_String_3() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - String nuri = "http://www.foo.org/"; - String lname = "myattr"; - nl = e.getElementsByTagNameNS(nuri, lname); - if (nl == null) { - TestLoader.logErrPrint("Element 'getElementsByTagNameNS' returned incorrect value "); - return BWBaseTest.FAILED; - } - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} - diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_getElementsByTagName_String_0.java b/mozilla/java/dom/tests/src/api/ElementImpl_getElementsByTagName_String_0.java deleted file mode 100755 index 9ac3a04b03a..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_getElementsByTagName_String_0.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_getElementsByTagName_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_getElementsByTagName_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - NodeList n = e.getElementsByTagName(null); - if (n != null) { - TestLoader.logErrPrint("Element 'getElementsByTagName(null)' FAILED... "); - return BWBaseTest.FAILED; - } - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_getElementsByTagName_String_1.java b/mozilla/java/dom/tests/src/api/ElementImpl_getElementsByTagName_String_1.java deleted file mode 100755 index 6d659b3a24f..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_getElementsByTagName_String_1.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_getElementsByTagName_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_getElementsByTagName_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - NodeList n = e.getElementsByTagName("*"); - if (n == null) { - TestLoader.logErrPrint("Element 'getElementsByTagName(*)' FAILED... "); - return BWBaseTest.FAILED; - } - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_getTagName.java b/mozilla/java/dom/tests/src/api/ElementImpl_getTagName.java deleted file mode 100755 index 99a753f6f33..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_getTagName.java +++ /dev/null @@ -1,128 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_getTagName extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_getTagName() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - String str = e.getTagName(); - if (str == null) { - TestLoader.logErrPrint("Element 'getTagName() FAILED... "); - return BWBaseTest.FAILED; - } else - TestLoader.logErrPrint("Element 'getTagName() is " + str); - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_hasAttributeNS_String_String_0.java b/mozilla/java/dom/tests/src/api/ElementImpl_hasAttributeNS_String_String_0.java deleted file mode 100755 index 84c29a77ee9..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_hasAttributeNS_String_String_0.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_hasAttributeNS_String_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_hasAttributeNS_String_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - if (e.hasAttributeNS(null, null)) ; - TestLoader.logErrPrint("Element 'hasAttributeNS didn't throw exception for URI set to null and localname set to null... "); - return BWBaseTest.FAILED; - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_hasAttributeNS_String_String_1.java b/mozilla/java/dom/tests/src/api/ElementImpl_hasAttributeNS_String_String_1.java deleted file mode 100755 index e4cbb9e6ed7..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_hasAttributeNS_String_String_1.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_hasAttributeNS_String_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_hasAttributeNS_String_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - if (e.hasAttributeNS("http://www.foo.org/", null)); - TestLoader.logErrPrint("Element 'hasAttributeNS didn't throw exception for localname set to null... "); - return BWBaseTest.FAILED; - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_hasAttributeNS_String_String_2.java b/mozilla/java/dom/tests/src/api/ElementImpl_hasAttributeNS_String_String_2.java deleted file mode 100755 index e0e193b34ff..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_hasAttributeNS_String_String_2.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_hasAttributeNS_String_String_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_hasAttributeNS_String_String_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - if (e.hasAttributeNS(null, "myattr")); - TestLoader.logErrPrint("Element 'hasAttributeNS didn't throw exception for URI set to null... "); - return BWBaseTest.FAILED; - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_hasAttributeNS_String_String_3.java b/mozilla/java/dom/tests/src/api/ElementImpl_hasAttributeNS_String_String_3.java deleted file mode 100755 index 206147234c0..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_hasAttributeNS_String_String_3.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_hasAttributeNS_String_String_3 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_hasAttributeNS_String_String_3() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - String nsuri = "http://www.foo.org/"; - String lname = "myattr"; - if (!(e.hasAttributeNS(nsuri, lname))) { - TestLoader.logErrPrint("Element 'hasAttributeNS returned false instead of true... "); - return BWBaseTest.FAILED; - } - } catch (Exception r) { - String msg = "hasAttributeNS: Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("hasAttributeNS: Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - - } - - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_hasAttribute_String_0.java b/mozilla/java/dom/tests/src/api/ElementImpl_hasAttribute_String_0.java deleted file mode 100755 index e843471d99c..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_hasAttribute_String_0.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_hasAttribute_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_hasAttribute_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - e.hasAttribute(null); - TestLoader.logErrPrint("Element 'hasAttribute(null) didn't throw exception... "); - return BWBaseTest.FAILED; - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_hasAttribute_String_1.java b/mozilla/java/dom/tests/src/api/ElementImpl_hasAttribute_String_1.java deleted file mode 100755 index 8993aec2663..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_hasAttribute_String_1.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_hasAttribute_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_hasAttribute_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } - if (e.hasAttribute("nonexistent_attribute") == true) { - TestLoader.logErrPrint("Element 'hasAttribute returned incorrect value ... "); - return BWBaseTest.FAILED; - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - - } - - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_hasAttribute_String_2.java b/mozilla/java/dom/tests/src/api/ElementImpl_hasAttribute_String_2.java deleted file mode 100644 index 7fd06bc14fd..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_hasAttribute_String_2.java +++ /dev/null @@ -1,129 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_hasAttribute_String_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_hasAttribute_String_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } - String attrname = "dummyattr"; - String val = "1"; - e.setAttribute(attrname, val); - if (e.hasAttribute(attrname) == false) { - TestLoader.logErrPrint("Element 'hasAttribute returned incorrect value ... "); - return BWBaseTest.FAILED; - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - - } - - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_normalize.java b/mozilla/java/dom/tests/src/api/ElementImpl_normalize.java deleted file mode 100755 index 75c47146139..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_normalize.java +++ /dev/null @@ -1,123 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_normalize extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_normalize() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - e.normalize(); - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_removeAttributeNS_String_String_0.java b/mozilla/java/dom/tests/src/api/ElementImpl_removeAttributeNS_String_String_0.java deleted file mode 100755 index 919273050d3..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_removeAttributeNS_String_String_0.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_removeAttributeNS_String_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_removeAttributeNS_String_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - String nuri = null; - String lname = null; - e.removeAttributeNS(nuri, lname); - TestLoader.logErrPrint("Element 'removeAttributeNS' didn't throw exception for URI set to null and lname set to null... "); - return BWBaseTest.FAILED; - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_removeAttributeNS_String_String_1.java b/mozilla/java/dom/tests/src/api/ElementImpl_removeAttributeNS_String_String_1.java deleted file mode 100755 index d1e9860f30c..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_removeAttributeNS_String_String_1.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_removeAttributeNS_String_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_removeAttributeNS_String_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - String nuri = null; - String lname = "myattr"; - e.removeAttributeNS(nuri, lname); - TestLoader.logErrPrint("Element 'removeAttributeNS' didn't throw exception for URI set to null... "); - return BWBaseTest.FAILED; - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_removeAttributeNS_String_String_2.java b/mozilla/java/dom/tests/src/api/ElementImpl_removeAttributeNS_String_String_2.java deleted file mode 100755 index cb33c9a6ed9..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_removeAttributeNS_String_String_2.java +++ /dev/null @@ -1,136 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_removeAttributeNS_String_String_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_removeAttributeNS_String_String_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - String nuri = "http://www.foo.org/"; - String lname = null; - e.removeAttributeNS(nuri, lname); - TestLoader.logErrPrint("Element 'removeAttributeNS' didn't throw exception for localname set to null... "); - return BWBaseTest.FAILED; - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_removeAttributeNS_String_String_3.java b/mozilla/java/dom/tests/src/api/ElementImpl_removeAttributeNS_String_String_3.java deleted file mode 100755 index e765530d65d..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_removeAttributeNS_String_String_3.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_removeAttributeNS_String_String_3 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_removeAttributeNS_String_String_3() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - String nuri = "http://www.foo.org/"; - String lname = "myattr"; - String retval= "ATTRVAL"; - e.removeAttributeNS(nuri, lname); - String s = e.getAttributeNS(nuri, lname); - if ((s == null) || !(s.equals(""))) - { - TestLoader.logErrPrint("Element 'removeAttributeNS' failedto remove attribute myattr "); - return BWBaseTest.FAILED; - - } - - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_removeAttributeNode_Attr_0.java b/mozilla/java/dom/tests/src/api/ElementImpl_removeAttributeNode_Attr_0.java deleted file mode 100755 index b5f0b58d54a..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_removeAttributeNode_Attr_0.java +++ /dev/null @@ -1,137 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_removeAttributeNode_Attr_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_removeAttributeNode_Attr_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - Attr a = d.createAttribute("dummyattr"); - if (a == null) { - TestLoader.logErrPrint("Document createAttribute FAILED... "); - return BWBaseTest.FAILED; - } - - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - Attr tattr = e.setAttributeNode(a); - Attr rattr = e.removeAttributeNode(null); - if (rattr != null) { - TestLoader.logErrPrint("Element 'removeAttributeNode(null) FAILED... "); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_removeAttributeNode_Attr_1.java b/mozilla/java/dom/tests/src/api/ElementImpl_removeAttributeNode_Attr_1.java deleted file mode 100755 index c5674b6327b..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_removeAttributeNode_Attr_1.java +++ /dev/null @@ -1,143 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_removeAttributeNode_Attr_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_removeAttributeNode_Attr_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - Attr a = d.createAttribute("dummyattr_1"); - if (a == null) { - TestLoader.logErrPrint("Document createAttribute FAILED... "); - return BWBaseTest.FAILED; - } - - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - Attr tattr = e.setAttributeNode(a); - tattr = e.getAttributeNode("dummyattr_1"); - if (tattr == null) { - TestLoader.logErrPrint("Element 'getAttributeNode(dummy_attr_1) FAILED... "); - return BWBaseTest.FAILED; - } - - Attr rattr = e.removeAttributeNode(tattr); - if (rattr == null) { - TestLoader.logErrPrint("Element 'removeAttributeNode(dummy_attr_1) FAILED... "); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_removeAttribute_String_0.java b/mozilla/java/dom/tests/src/api/ElementImpl_removeAttribute_String_0.java deleted file mode 100755 index 5eea27b9031..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_removeAttribute_String_0.java +++ /dev/null @@ -1,134 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_removeAttribute_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_removeAttribute_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - Document d = (Document)tobj; - if (d != null) - { - try { - Attr a = d.createAttribute("dummyattr_3"); - if (a == null) { - TestLoader.logErrPrint("Document createAttribute FAILED... "); - return BWBaseTest.FAILED; - } - - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - e.setAttributeNode(a); - e.removeAttribute(null); - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_removeAttribute_String_1.java b/mozilla/java/dom/tests/src/api/ElementImpl_removeAttribute_String_1.java deleted file mode 100755 index 2ca791f1d07..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_removeAttribute_String_1.java +++ /dev/null @@ -1,137 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_removeAttribute_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_removeAttribute_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - Attr a = d.createAttribute("dummyattr_4"); - if (a == null) { - TestLoader.logErrPrint("Document createAttribute FAILED... "); - return BWBaseTest.FAILED; - } - - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - e.setAttributeNode(a); - e.removeAttribute("dummyattr_4"); - if (e.getAttribute("dummyattr_4").compareTo("") != 0) { - TestLoader.logErrPrint("Element 'removeAttribute(dummyattr_4) FAILED... "); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_0.java b/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_0.java deleted file mode 100755 index 541da5084d9..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_0.java +++ /dev/null @@ -1,137 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_setAttributeNS_String_String_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_setAttributeNS_String_String_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - String nuri = null; - String qname = null; - String val = null; - e.setAttributeNS(nuri, qname, val); - TestLoader.logErrPrint("setAttributeNS didn't throw exception for URI set to NULL and qualified name set to null ..."); - return BWBaseTest.FAILED; - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_1.java b/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_1.java deleted file mode 100755 index eac576c7974..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_1.java +++ /dev/null @@ -1,138 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_setAttributeNS_String_String_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_setAttributeNS_String_String_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - String nuri = null; - String qname = null; - String val = "MYVAL"; - e.setAttributeNS(nuri, qname, val); - TestLoader.logErrPrint("setAttributeNS didn't throw exception for URI set to null and qualifiedname set to null ..."); - return BWBaseTest.FAILED; - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_2.java b/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_2.java deleted file mode 100755 index 9bd67a98aba..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_2.java +++ /dev/null @@ -1,138 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_setAttributeNS_String_String_String_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_setAttributeNS_String_String_String_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - String nuri = null; - String qname = "foo:myattr"; - String val = null; - e.setAttributeNS(nuri, qname, val); - TestLoader.logErrPrint("setAttributeNS didn't throw exception for URI set to null and qualifiedname set to foo:myattr..."); - return BWBaseTest.FAILED; - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_3.java b/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_3.java deleted file mode 100755 index fb7600631d4..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_3.java +++ /dev/null @@ -1,138 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_setAttributeNS_String_String_String_3 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_setAttributeNS_String_String_String_3() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - String nuri = null; - String qname = "foo:myattr"; - String val = "ATTRVAL"; - e.setAttributeNS(nuri, qname, val); - TestLoader.logErrPrint("setAttributeNS didn't throw exception for URI set to NULL and qualifiedname set to foo:myattr..."); - return BWBaseTest.FAILED; - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_4.java b/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_4.java deleted file mode 100755 index 1a140eab773..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_4.java +++ /dev/null @@ -1,138 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_setAttributeNS_String_String_String_4 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_setAttributeNS_String_String_String_4() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - String nuri = null; - String qname = "foo:myattr"; - String val = null; - e.setAttributeNS(nuri, qname, val); - TestLoader.logErrPrint("setAttributeNS didn't throw exception for URI set to null and qualifiedname set to foo:myattr..."); - return BWBaseTest.FAILED; - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_5.java b/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_5.java deleted file mode 100755 index 9114b9c73d2..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_5.java +++ /dev/null @@ -1,138 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_setAttributeNS_String_String_String_5 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_setAttributeNS_String_String_String_5() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - String nuri = null; - String qname = "foo:myattr"; - String val = "ATTRVAL"; - e.setAttributeNS(nuri, qname, val); - TestLoader.logErrPrint("setAttributeNS didn't throw exception for URI=null Qualifiedname=foo:myattr Value=ATTRVAL..."); - return BWBaseTest.FAILED; - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_6.java b/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_6.java deleted file mode 100755 index e6a4d77e505..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_6.java +++ /dev/null @@ -1,138 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_setAttributeNS_String_String_String_6 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_setAttributeNS_String_String_String_6() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - String nuri = "http://www.foo.org/"; - String qname = null; - String val = null; - e.setAttributeNS(nuri, qname, val); - TestLoader.logErrPrint("setAttributeNS didn't throw exception for qualifiedname=null and Value=null ..."); - return BWBaseTest.FAILED; - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_7.java b/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_7.java deleted file mode 100755 index 21a14c2fc0c..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_7.java +++ /dev/null @@ -1,138 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_setAttributeNS_String_String_String_7 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_setAttributeNS_String_String_String_7() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - String nuri = "http://www.foo.org/"; - String qname = null; - String val = "MYVAL"; - e.setAttributeNS(nuri, qname, val); - TestLoader.logErrPrint("setAttributeNS didn't throw exception for QualifiedName=null and val=MYVAL..."); - return BWBaseTest.FAILED; - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_8.java b/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_8.java deleted file mode 100755 index a648be2d7aa..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_8.java +++ /dev/null @@ -1,138 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_setAttributeNS_String_String_String_8 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_setAttributeNS_String_String_String_8() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - String nuri = "http://www.foo.org/"; - String qname = "foo:myattr"; - String val = null; - e.setAttributeNS(nuri, qname, val); - TestLoader.logErrPrint("setAttributeNS didn't throw exception for value=Null..."); - return BWBaseTest.FAILED; - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_9.java b/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_9.java deleted file mode 100755 index f884d68fe83..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNS_String_String_String_9.java +++ /dev/null @@ -1,147 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_setAttributeNS_String_String_String_9 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_setAttributeNS_String_String_String_9() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - String nuri = "http://www.foo.org/"; - String qname = "foo:myattr"; - String lname = "myattr"; - String val = "MYVAL"; - e.setAttributeNS(nuri, qname, val); - String s = e.getAttributeNS(nuri, lname); - if (s == null) { - TestLoader.logErrPrint("'setAttributeNS' returned null attirbute value"); - return BWBaseTest.FAILED; - } - - if (!s.equals(val)) { - TestLoader.logErrPrint("'setAttributeNS' set attribute to " + s + " instead of " + val); - return BWBaseTest.FAILED; - } - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNodeNS_Attr_0.java b/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNodeNS_Attr_0.java deleted file mode 100755 index 6562b9305dc..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNodeNS_Attr_0.java +++ /dev/null @@ -1,135 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_setAttributeNodeNS_Attr_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_setAttributeNodeNS_Attr_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - Attr anode = e.setAttributeNodeNS(null); - TestLoader.logErrPrint("Document setAttributeNodeNS didn't throw exception for null attribute..."); - return BWBaseTest.FAILED; - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNodeNS_Attr_1.java b/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNodeNS_Attr_1.java deleted file mode 100755 index 4b890ff2474..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNodeNS_Attr_1.java +++ /dev/null @@ -1,138 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_setAttributeNodeNS_Attr_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_setAttributeNodeNS_Attr_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - - String uri = "http://www.foo.org/"; - String name = "*"; - NodeList nl = e.getElementsByTagNameNS(uri, name); - if (nl != null) { - Node n = (Node)nl.item(0); - e = (Element)n; - } - - String nuri = "http://www.foo.org/"; - String lname = "myattr"; - String val = "ATTRVAL"; - Attr getattr = e.getAttributeNodeNS(nuri, lname); - Attr retattr = (Attr)e.setAttributeNodeNS(getattr); - if (retattr != null) - { - TestLoader.logErrPrint("Element 'getAttributeNS' did not return null for an already existing Attribute myattr "); - return BWBaseTest.FAILED; - } - } catch (Exception r) { - String msg = "Caught Exception " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNode_Attr_0.java b/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNode_Attr_0.java deleted file mode 100755 index afd29d4af17..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNode_Attr_0.java +++ /dev/null @@ -1,131 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_setAttributeNode_Attr_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_setAttributeNode_Attr_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - Attr anode = e.setAttributeNode(null); - if (anode != null) - { - TestLoader.logErrPrint("Document setAttribute Node is not NULL.."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNode_Attr_1.java b/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNode_Attr_1.java deleted file mode 100755 index 08fd587520b..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNode_Attr_1.java +++ /dev/null @@ -1,143 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_setAttributeNode_Attr_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_setAttributeNode_Attr_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - Attr a = d.createAttribute("dummyattr_5"); - if (a == null) { - TestLoader.logErrPrint("Document createAttribute FAILED... "); - return BWBaseTest.FAILED; - } - - //Element e = d.getDocumentElement(); - Element e = d.createElement("BODY"); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - Attr anode = e.setAttributeNode(a); - if (anode != null) - { - TestLoader.logErrPrint("Element 'setAttribute(dummyattr_5) FAILED... "); - return BWBaseTest.FAILED; - } - - if (e.getAttributeNode("dummyattr_5") == null) { - TestLoader.logErrPrint("Element 'setAttribute(dummyattr_5) FAILED... "); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNode_Attr_2.java b/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNode_Attr_2.java deleted file mode 100755 index 8854327b6a2..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_setAttributeNode_Attr_2.java +++ /dev/null @@ -1,157 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_setAttributeNode_Attr_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_setAttributeNode_Attr_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - Attr oldattr = d.createAttribute("dummyattr_5"); - if (oldattr == null) { - TestLoader.logErrPrint("Document createAttribute FAILED... "); - return BWBaseTest.FAILED; - } - - Attr newattr = d.createAttribute("dummyattr_5"); - if (newattr == null) { - TestLoader.logErrPrint("Document createAttribute FAILED... "); - return BWBaseTest.FAILED; - } - - //Element e = d.getDocumentElement(); - Element e = d.createElement("BODY"); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - Attr anode = e.setAttributeNode(oldattr); - if (anode != null) - { - TestLoader.logErrPrint("Element 'setAttributeNode(dummyattr_5) FAILED... "); - return BWBaseTest.FAILED; - } - - Attr nnode = e.setAttributeNode(newattr); - if (!(nnode.equals(oldattr))) - { - TestLoader.logErrPrint("Element 'setAttributeNode(dummyattr_5) FAILED... "); - return BWBaseTest.FAILED; - } - - - if (e.getAttributeNode("dummyattr_5") == null) { - TestLoader.logErrPrint("Element 'setAttributeNode(dummyattr_5) FAILED... "); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_setAttribute_String_String_0.java b/mozilla/java/dom/tests/src/api/ElementImpl_setAttribute_String_String_0.java deleted file mode 100755 index 529696524e8..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_setAttribute_String_String_0.java +++ /dev/null @@ -1,126 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_setAttribute_String_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_setAttribute_String_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - e.setAttribute(null, null); - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_setAttribute_String_String_1.java b/mozilla/java/dom/tests/src/api/ElementImpl_setAttribute_String_String_1.java deleted file mode 100755 index 1a064dbe61f..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_setAttribute_String_String_1.java +++ /dev/null @@ -1,136 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_setAttribute_String_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_setAttribute_String_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - Attr a = d.createAttribute("dummyattr_6"); - if (a == null) { - TestLoader.logErrPrint("Document createAttribute FAILED... "); - return BWBaseTest.FAILED; - } - - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - e.setAttribute("dummyattr_6", null); - if (e.getAttribute("dummyattr_6") != null) { - TestLoader.logErrPrint("Element 'setAttribute(dummyattr_6,null) FAILED... "); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_setAttribute_String_String_2.java b/mozilla/java/dom/tests/src/api/ElementImpl_setAttribute_String_String_2.java deleted file mode 100755 index 8e8320a98c1..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_setAttribute_String_String_2.java +++ /dev/null @@ -1,130 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_setAttribute_String_String_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_setAttribute_String_String_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - e.setAttribute(null, "1"); - if (e.getAttribute(null) != null) { - TestLoader.logErrPrint("Element 'setAttribute(null, 1) FAILED... "); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.PASSED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ElementImpl_setAttribute_String_String_3.java b/mozilla/java/dom/tests/src/api/ElementImpl_setAttribute_String_String_3.java deleted file mode 100755 index f9a30d729fb..00000000000 --- a/mozilla/java/dom/tests/src/api/ElementImpl_setAttribute_String_String_3.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ElementImpl_setAttribute_String_String_3 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ElementImpl_setAttribute_String_String_3() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - Attr a = d.createAttribute("dummyattr_7"); - if (a == null) { - TestLoader.logErrPrint("Document createAttribute FAILED... "); - return BWBaseTest.FAILED; - } - - Element e = d.getDocumentElement(); - if (e == null) { - TestLoader.logErrPrint("Document Element is NULL.."); - return BWBaseTest.FAILED; - } else { - e.setAttribute("dummyattr_7", "1"); - String str = e.getAttribute("dummyattr_7"); - if (str == null || (str.compareTo("1") != 0)) { - TestLoader.logErrPrint("Element 'setAttribute(dummyattr_7,1) FAILED... "); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/Makefile b/mozilla/java/dom/tests/src/api/Makefile deleted file mode 100755 index cc5ef6f3ebc..00000000000 --- a/mozilla/java/dom/tests/src/api/Makefile +++ /dev/null @@ -1,276 +0,0 @@ -# The contents of this file are subject to the Mozilla Public -# License Version 1.1 (the "License"); you may not use this file -# except in compliance with the License. You may obtain a copy of -# the License at http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS -# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -# implied. See the License for the specific language governing -# rights and limitations under the License. -# -# The Original Code is mozilla.org code. -# -# The Initial Developer of the Original Code is Sun Microsystems, -# Inc. Portions created by Sun are -# Copyright (C) 1999 Sun Microsystems, Inc. All -# Rights Reserved. -# -# Contributor(s): - - -HOMEDIR=../../ -SRCDIR=$(HOMEDIR)/src/api -CLASSDIR=$(HOMEDIR)/classes - -JAVAC=javac -TESTPACKAGE=org/mozilla/dom/test - -all: - $(JAVAC) -d $(CLASSDIR) $(JAVAFILES) - -JAVAFILES= AttrImpl_getName.java \ - AttrImpl_getOwnerElement.java \ - AttrImpl_getSpecified.java \ - AttrImpl_getValue.java \ - AttrImpl_setValue_String_0.java \ - AttrImpl_setValue_String_1.java \ - CharacterDataImpl_appendData_String_0.java \ - CharacterDataImpl_appendData_String_1.java \ - CharacterDataImpl_deleteData_int_int_0.java \ - CharacterDataImpl_deleteData_int_int_1.java \ - CharacterDataImpl_deleteData_int_int_2.java \ - CharacterDataImpl_deleteData_int_int_3.java \ - CharacterDataImpl_deleteData_int_int_4.java \ - CharacterDataImpl_deleteData_int_int_5.java \ - CharacterDataImpl_deleteData_int_int_6.java \ - CharacterDataImpl_deleteData_int_int_7.java \ - CharacterDataImpl_deleteData_int_int_8.java \ - CharacterDataImpl_getData.java \ - CharacterDataImpl_getLength.java \ - CharacterDataImpl_insertData_int_String_0.java \ - CharacterDataImpl_insertData_int_String_1.java \ - CharacterDataImpl_insertData_int_String_2.java \ - CharacterDataImpl_insertData_int_String_3.java \ - CharacterDataImpl_insertData_int_String_4.java \ - CharacterDataImpl_insertData_int_String_5.java \ - CharacterDataImpl_replaceData_int_int_String_0.java \ - CharacterDataImpl_replaceData_int_int_String_1.java \ - CharacterDataImpl_replaceData_int_int_String_10.java \ - CharacterDataImpl_replaceData_int_int_String_11.java \ - CharacterDataImpl_replaceData_int_int_String_12.java \ - CharacterDataImpl_replaceData_int_int_String_13.java \ - CharacterDataImpl_replaceData_int_int_String_14.java \ - CharacterDataImpl_replaceData_int_int_String_15.java \ - CharacterDataImpl_replaceData_int_int_String_16.java \ - CharacterDataImpl_replaceData_int_int_String_17.java \ - CharacterDataImpl_replaceData_int_int_String_2.java \ - CharacterDataImpl_replaceData_int_int_String_3.java \ - CharacterDataImpl_replaceData_int_int_String_4.java \ - CharacterDataImpl_replaceData_int_int_String_5.java \ - CharacterDataImpl_replaceData_int_int_String_6.java \ - CharacterDataImpl_replaceData_int_int_String_7.java \ - CharacterDataImpl_replaceData_int_int_String_8.java \ - CharacterDataImpl_replaceData_int_int_String_9.java \ - CharacterDataImpl_setData_String_0.java \ - CharacterDataImpl_setData_String_1.java \ - CharacterDataImpl_substringData_int_int_0.java \ - CharacterDataImpl_substringData_int_int_1.java \ - CharacterDataImpl_substringData_int_int_2.java \ - CharacterDataImpl_substringData_int_int_3.java \ - CharacterDataImpl_substringData_int_int_4.java \ - CharacterDataImpl_substringData_int_int_5.java \ - CharacterDataImpl_substringData_int_int_6.java \ - CharacterDataImpl_substringData_int_int_7.java \ - CharacterDataImpl_substringData_int_int_8.java \ - DOMImplementationImpl_createDocumentType_String_String_String_0.java \ - DOMImplementationImpl_createDocumentType_String_String_String_String_0.java \ - DOMImplementationImpl_createDocument_String_String_DocumentType_0.java \ - DOMImplementationImpl_hasFeature_String_String_0.java \ - DOMImplementationImpl_hasFeature_String_String_1.java \ - DOMImplementationImpl_hasFeature_String_String_2.java \ - DOMImplementationImpl_hasFeature_String_String_3.java \ - DOMImplementationImpl_hasFeature_String_String_4.java \ - DocumentImpl_createAttributeNS_String_String_0.java \ - DocumentImpl_createAttributeNS_String_String_1.java \ - DocumentImpl_createAttributeNS_String_String_2.java \ - DocumentImpl_createAttributeNS_String_String_3.java \ - DocumentImpl_createAttribute_String_0.java \ - DocumentImpl_createAttribute_String_1.java \ - DocumentImpl_createCDATASection_String_0.java \ - DocumentImpl_createCDATASection_String_1.java \ - DocumentImpl_createComment_String_0.java \ - DocumentImpl_createComment_String_1.java \ - DocumentImpl_createDocumentFragment.java \ - DocumentImpl_createElementNS_String_String_0.java \ - DocumentImpl_createElementNS_String_String_1.java \ - DocumentImpl_createElementNS_String_String_2.java \ - DocumentImpl_createElementNS_String_String_3.java \ - DocumentImpl_createElement_String_0.java \ - DocumentImpl_createElement_String_1.java \ - DocumentImpl_createEntityReference_String_0.java \ - DocumentImpl_createEntityReference_String_1.java \ - DocumentImpl_createEvent_String_0.java \ - DocumentImpl_createEvent_String_1.java \ - DocumentImpl_createProcessingInstruction_String_String_0.java \ - DocumentImpl_createProcessingInstruction_String_String_1.java \ - DocumentImpl_createProcessingInstruction_String_String_2.java \ - DocumentImpl_createProcessingInstruction_String_String_3.java \ - DocumentImpl_createTextNode_String_0.java \ - DocumentImpl_createTextNode_String_1.java \ - DocumentImpl_getDoctype.java \ - DocumentImpl_getDoctype_xml.java \ - DocumentImpl_getDocumentElement.java \ - DocumentImpl_getElementById_String_0.java \ - DocumentImpl_getElementById_String_1.java \ - DocumentImpl_getElementsByTagNameNS_String_String_0.java \ - DocumentImpl_getElementsByTagNameNS_String_String_1.java \ - DocumentImpl_getElementsByTagNameNS_String_String_2.java \ - DocumentImpl_getElementsByTagNameNS_String_String_3.java \ - DocumentImpl_getElementsByTagName_String_0.java \ - DocumentImpl_getElementsByTagName_String_1.java \ - DocumentImpl_getImplementation.java \ - DocumentImpl_importNode_Node_boolean_0.java \ - DocumentImpl_importNode_Node_boolean_1.java \ - DocumentImpl_importNode_Node_boolean_2.java \ - DocumentImpl_importNode_Node_boolean_3.java \ - DocumentTypeImpl_getEntities.java \ - DocumentTypeImpl_getInternalSubset.java \ - DocumentTypeImpl_getName.java \ - DocumentTypeImpl_getNotations.java \ - DocumentTypeImpl_getPublicId.java \ - DocumentTypeImpl_getSystemId.java \ - ElementImpl_getAttributeNS_String_String_0.java \ - ElementImpl_getAttributeNS_String_String_1.java \ - ElementImpl_getAttributeNS_String_String_2.java \ - ElementImpl_getAttributeNS_String_String_3.java \ - ElementImpl_getAttributeNodeNS_String_String_0.java \ - ElementImpl_getAttributeNodeNS_String_String_1.java \ - ElementImpl_getAttributeNodeNS_String_String_2.java \ - ElementImpl_getAttributeNodeNS_String_String_3.java \ - ElementImpl_getAttributeNode_String_0.java \ - ElementImpl_getAttributeNode_String_1.java \ - ElementImpl_getAttribute_String_0.java \ - ElementImpl_getAttribute_String_1.java \ - ElementImpl_getElementsByTagNameNS_String_String_0.java \ - ElementImpl_getElementsByTagNameNS_String_String_1.java \ - ElementImpl_getElementsByTagNameNS_String_String_2.java \ - ElementImpl_getElementsByTagNameNS_String_String_3.java \ - ElementImpl_getElementsByTagName_String_0.java \ - ElementImpl_getElementsByTagName_String_1.java \ - ElementImpl_getTagName.java \ - ElementImpl_hasAttribute_String_0.java \ - ElementImpl_hasAttribute_String_1.java \ - ElementImpl_hasAttributeNS_String_String_0.java \ - ElementImpl_hasAttributeNS_String_String_1.java \ - ElementImpl_hasAttributeNS_String_String_2.java \ - ElementImpl_hasAttributeNS_String_String_3.java \ - ElementImpl_normalize.java \ - ElementImpl_removeAttributeNS_String_String_0.java \ - ElementImpl_removeAttributeNS_String_String_1.java \ - ElementImpl_removeAttributeNS_String_String_2.java \ - ElementImpl_removeAttributeNS_String_String_3.java \ - ElementImpl_removeAttributeNode_Attr_0.java \ - ElementImpl_removeAttributeNode_Attr_1.java \ - ElementImpl_removeAttribute_String_0.java \ - ElementImpl_removeAttribute_String_1.java \ - ElementImpl_setAttributeNS_String_String_String_0.java \ - ElementImpl_setAttributeNS_String_String_String_1.java \ - ElementImpl_setAttributeNS_String_String_String_2.java \ - ElementImpl_setAttributeNS_String_String_String_3.java \ - ElementImpl_setAttributeNS_String_String_String_4.java \ - ElementImpl_setAttributeNS_String_String_String_5.java \ - ElementImpl_setAttributeNS_String_String_String_6.java \ - ElementImpl_setAttributeNS_String_String_String_7.java \ - ElementImpl_setAttributeNS_String_String_String_8.java \ - ElementImpl_setAttributeNS_String_String_String_9.java \ - ElementImpl_setAttributeNodeNS_Attr_0.java \ - ElementImpl_setAttributeNodeNS_Attr_1.java \ - ElementImpl_setAttributeNode_Attr_0.java \ - ElementImpl_setAttributeNode_Attr_1.java \ - ElementImpl_setAttributeNode_Attr_2.java \ - ElementImpl_setAttribute_String_String_0.java \ - ElementImpl_setAttribute_String_String_1.java \ - ElementImpl_setAttribute_String_String_2.java \ - ElementImpl_setAttribute_String_String_3.java \ - NamedNodeMapImpl_getLength.java \ - NamedNodeMapImpl_getNamedItemNS_String_String_0.java \ - NamedNodeMapImpl_getNamedItemNS_String_String_1.java \ - NamedNodeMapImpl_getNamedItemNS_String_String_2.java \ - NamedNodeMapImpl_getNamedItemNS_String_String_3.java \ - NamedNodeMapImpl_getNamedItem_String_0.java \ - NamedNodeMapImpl_getNamedItem_String_1.java \ - NamedNodeMapImpl_item_int_0.java \ - NamedNodeMapImpl_item_int_1.java \ - NamedNodeMapImpl_item_int_2.java \ - NamedNodeMapImpl_removeNamedItemNS_String_String_0.java \ - NamedNodeMapImpl_removeNamedItemNS_String_String_1.java \ - NamedNodeMapImpl_removeNamedItemNS_String_String_2.java \ - NamedNodeMapImpl_removeNamedItemNS_String_String_3.java \ - NamedNodeMapImpl_removeNamedItem_String_0.java \ - NamedNodeMapImpl_removeNamedItem_String_1.java \ - NamedNodeMapImpl_setNamedItemNS_Node_0.java \ - NamedNodeMapImpl_setNamedItemNS_Node_1.java \ - NamedNodeMapImpl_setNamedItem_Node_0.java \ - NamedNodeMapImpl_setNamedItem_Node_1.java \ - NamedNodeMapImpl_setNamedItem_Node_2.java \ - NodeImpl_appendChild_Node_0.java \ - NodeImpl_appendChild_Node_1.java \ - NodeImpl_cloneNode_boolean_0.java \ - NodeImpl_cloneNode_boolean_1.java \ - NodeImpl_equals_Object_0.java \ - NodeImpl_equals_Object_1.java \ - NodeImpl_equals_Object_2.java \ - NodeImpl_equals_Object_3.java \ - NodeImpl_getAttributes.java \ - NodeImpl_getChildNodes.java \ - NodeImpl_getFirstChild.java \ - NodeImpl_getLastChild.java \ - NodeImpl_getLocalName.java \ - NodeImpl_getNamespaceURI.java \ - NodeImpl_getNextSibling.java \ - NodeImpl_getNodeName.java \ - NodeImpl_getNodeType.java \ - NodeImpl_getNodeValue.java \ - NodeImpl_getOwnerDocument.java \ - NodeImpl_getParentNode.java \ - NodeImpl_getPrefix.java \ - NodeImpl_getPreviousSibling.java \ - NodeImpl_hasChildNodes.java \ - NodeImpl_hashCode.java \ - NodeImpl_insertBefore_Node_Node_0.java \ - NodeImpl_insertBefore_Node_Node_1.java \ - NodeImpl_insertBefore_Node_Node_2.java \ - NodeImpl_insertBefore_Node_Node_3.java \ - NodeImpl_normalize.java \ - NodeImpl_removeChild_Node_0.java \ - NodeImpl_removeChild_Node_1.java \ - NodeImpl_replaceChild_Node_Node_0.java \ - NodeImpl_replaceChild_Node_Node_1.java \ - NodeImpl_replaceChild_Node_Node_2.java \ - NodeImpl_replaceChild_Node_Node_3.java \ - NodeImpl_setNodeValue_String_0.java \ - NodeImpl_setNodeValue_String_1.java \ - NodeImpl_setPrefix_String_0.java \ - NodeImpl_setPrefix_String_1.java \ - NodeImpl_supports_String_String_0.java \ - NodeImpl_supports_String_String_1.java \ - NodeImpl_supports_String_String_2.java \ - NodeImpl_supports_String_String_3.java \ - NodeImpl_toString.java \ - NodeListImpl_getLength.java \ - NodeListImpl_item_int_0.java \ - NodeListImpl_item_int_1.java \ - NodeListImpl_item_int_2.java \ - ProcessingInstructionImpl_getData.java \ - ProcessingInstructionImpl_getTarget.java \ - ProcessingInstructionImpl_setData_String_0.java \ - ProcessingInstructionImpl_setData_String_1.java \ - TextImpl_splitText_int_0.java \ - TextImpl_splitText_int_1.java \ - TextImpl_splitText_int_2.java - -clean: - for i in ${JAVAFILES} ; do \ - file=$$i; \ - classfile=`echo $$file | sed 's/java/class/g'` ; \ - /bin/rm $(CLASSDIR)/$(TESTPACKAGE)/$$classfile ; done diff --git a/mozilla/java/dom/tests/src/api/Makefile.solaris b/mozilla/java/dom/tests/src/api/Makefile.solaris deleted file mode 100644 index cc5ef6f3ebc..00000000000 --- a/mozilla/java/dom/tests/src/api/Makefile.solaris +++ /dev/null @@ -1,276 +0,0 @@ -# The contents of this file are subject to the Mozilla Public -# License Version 1.1 (the "License"); you may not use this file -# except in compliance with the License. You may obtain a copy of -# the License at http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS -# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -# implied. See the License for the specific language governing -# rights and limitations under the License. -# -# The Original Code is mozilla.org code. -# -# The Initial Developer of the Original Code is Sun Microsystems, -# Inc. Portions created by Sun are -# Copyright (C) 1999 Sun Microsystems, Inc. All -# Rights Reserved. -# -# Contributor(s): - - -HOMEDIR=../../ -SRCDIR=$(HOMEDIR)/src/api -CLASSDIR=$(HOMEDIR)/classes - -JAVAC=javac -TESTPACKAGE=org/mozilla/dom/test - -all: - $(JAVAC) -d $(CLASSDIR) $(JAVAFILES) - -JAVAFILES= AttrImpl_getName.java \ - AttrImpl_getOwnerElement.java \ - AttrImpl_getSpecified.java \ - AttrImpl_getValue.java \ - AttrImpl_setValue_String_0.java \ - AttrImpl_setValue_String_1.java \ - CharacterDataImpl_appendData_String_0.java \ - CharacterDataImpl_appendData_String_1.java \ - CharacterDataImpl_deleteData_int_int_0.java \ - CharacterDataImpl_deleteData_int_int_1.java \ - CharacterDataImpl_deleteData_int_int_2.java \ - CharacterDataImpl_deleteData_int_int_3.java \ - CharacterDataImpl_deleteData_int_int_4.java \ - CharacterDataImpl_deleteData_int_int_5.java \ - CharacterDataImpl_deleteData_int_int_6.java \ - CharacterDataImpl_deleteData_int_int_7.java \ - CharacterDataImpl_deleteData_int_int_8.java \ - CharacterDataImpl_getData.java \ - CharacterDataImpl_getLength.java \ - CharacterDataImpl_insertData_int_String_0.java \ - CharacterDataImpl_insertData_int_String_1.java \ - CharacterDataImpl_insertData_int_String_2.java \ - CharacterDataImpl_insertData_int_String_3.java \ - CharacterDataImpl_insertData_int_String_4.java \ - CharacterDataImpl_insertData_int_String_5.java \ - CharacterDataImpl_replaceData_int_int_String_0.java \ - CharacterDataImpl_replaceData_int_int_String_1.java \ - CharacterDataImpl_replaceData_int_int_String_10.java \ - CharacterDataImpl_replaceData_int_int_String_11.java \ - CharacterDataImpl_replaceData_int_int_String_12.java \ - CharacterDataImpl_replaceData_int_int_String_13.java \ - CharacterDataImpl_replaceData_int_int_String_14.java \ - CharacterDataImpl_replaceData_int_int_String_15.java \ - CharacterDataImpl_replaceData_int_int_String_16.java \ - CharacterDataImpl_replaceData_int_int_String_17.java \ - CharacterDataImpl_replaceData_int_int_String_2.java \ - CharacterDataImpl_replaceData_int_int_String_3.java \ - CharacterDataImpl_replaceData_int_int_String_4.java \ - CharacterDataImpl_replaceData_int_int_String_5.java \ - CharacterDataImpl_replaceData_int_int_String_6.java \ - CharacterDataImpl_replaceData_int_int_String_7.java \ - CharacterDataImpl_replaceData_int_int_String_8.java \ - CharacterDataImpl_replaceData_int_int_String_9.java \ - CharacterDataImpl_setData_String_0.java \ - CharacterDataImpl_setData_String_1.java \ - CharacterDataImpl_substringData_int_int_0.java \ - CharacterDataImpl_substringData_int_int_1.java \ - CharacterDataImpl_substringData_int_int_2.java \ - CharacterDataImpl_substringData_int_int_3.java \ - CharacterDataImpl_substringData_int_int_4.java \ - CharacterDataImpl_substringData_int_int_5.java \ - CharacterDataImpl_substringData_int_int_6.java \ - CharacterDataImpl_substringData_int_int_7.java \ - CharacterDataImpl_substringData_int_int_8.java \ - DOMImplementationImpl_createDocumentType_String_String_String_0.java \ - DOMImplementationImpl_createDocumentType_String_String_String_String_0.java \ - DOMImplementationImpl_createDocument_String_String_DocumentType_0.java \ - DOMImplementationImpl_hasFeature_String_String_0.java \ - DOMImplementationImpl_hasFeature_String_String_1.java \ - DOMImplementationImpl_hasFeature_String_String_2.java \ - DOMImplementationImpl_hasFeature_String_String_3.java \ - DOMImplementationImpl_hasFeature_String_String_4.java \ - DocumentImpl_createAttributeNS_String_String_0.java \ - DocumentImpl_createAttributeNS_String_String_1.java \ - DocumentImpl_createAttributeNS_String_String_2.java \ - DocumentImpl_createAttributeNS_String_String_3.java \ - DocumentImpl_createAttribute_String_0.java \ - DocumentImpl_createAttribute_String_1.java \ - DocumentImpl_createCDATASection_String_0.java \ - DocumentImpl_createCDATASection_String_1.java \ - DocumentImpl_createComment_String_0.java \ - DocumentImpl_createComment_String_1.java \ - DocumentImpl_createDocumentFragment.java \ - DocumentImpl_createElementNS_String_String_0.java \ - DocumentImpl_createElementNS_String_String_1.java \ - DocumentImpl_createElementNS_String_String_2.java \ - DocumentImpl_createElementNS_String_String_3.java \ - DocumentImpl_createElement_String_0.java \ - DocumentImpl_createElement_String_1.java \ - DocumentImpl_createEntityReference_String_0.java \ - DocumentImpl_createEntityReference_String_1.java \ - DocumentImpl_createEvent_String_0.java \ - DocumentImpl_createEvent_String_1.java \ - DocumentImpl_createProcessingInstruction_String_String_0.java \ - DocumentImpl_createProcessingInstruction_String_String_1.java \ - DocumentImpl_createProcessingInstruction_String_String_2.java \ - DocumentImpl_createProcessingInstruction_String_String_3.java \ - DocumentImpl_createTextNode_String_0.java \ - DocumentImpl_createTextNode_String_1.java \ - DocumentImpl_getDoctype.java \ - DocumentImpl_getDoctype_xml.java \ - DocumentImpl_getDocumentElement.java \ - DocumentImpl_getElementById_String_0.java \ - DocumentImpl_getElementById_String_1.java \ - DocumentImpl_getElementsByTagNameNS_String_String_0.java \ - DocumentImpl_getElementsByTagNameNS_String_String_1.java \ - DocumentImpl_getElementsByTagNameNS_String_String_2.java \ - DocumentImpl_getElementsByTagNameNS_String_String_3.java \ - DocumentImpl_getElementsByTagName_String_0.java \ - DocumentImpl_getElementsByTagName_String_1.java \ - DocumentImpl_getImplementation.java \ - DocumentImpl_importNode_Node_boolean_0.java \ - DocumentImpl_importNode_Node_boolean_1.java \ - DocumentImpl_importNode_Node_boolean_2.java \ - DocumentImpl_importNode_Node_boolean_3.java \ - DocumentTypeImpl_getEntities.java \ - DocumentTypeImpl_getInternalSubset.java \ - DocumentTypeImpl_getName.java \ - DocumentTypeImpl_getNotations.java \ - DocumentTypeImpl_getPublicId.java \ - DocumentTypeImpl_getSystemId.java \ - ElementImpl_getAttributeNS_String_String_0.java \ - ElementImpl_getAttributeNS_String_String_1.java \ - ElementImpl_getAttributeNS_String_String_2.java \ - ElementImpl_getAttributeNS_String_String_3.java \ - ElementImpl_getAttributeNodeNS_String_String_0.java \ - ElementImpl_getAttributeNodeNS_String_String_1.java \ - ElementImpl_getAttributeNodeNS_String_String_2.java \ - ElementImpl_getAttributeNodeNS_String_String_3.java \ - ElementImpl_getAttributeNode_String_0.java \ - ElementImpl_getAttributeNode_String_1.java \ - ElementImpl_getAttribute_String_0.java \ - ElementImpl_getAttribute_String_1.java \ - ElementImpl_getElementsByTagNameNS_String_String_0.java \ - ElementImpl_getElementsByTagNameNS_String_String_1.java \ - ElementImpl_getElementsByTagNameNS_String_String_2.java \ - ElementImpl_getElementsByTagNameNS_String_String_3.java \ - ElementImpl_getElementsByTagName_String_0.java \ - ElementImpl_getElementsByTagName_String_1.java \ - ElementImpl_getTagName.java \ - ElementImpl_hasAttribute_String_0.java \ - ElementImpl_hasAttribute_String_1.java \ - ElementImpl_hasAttributeNS_String_String_0.java \ - ElementImpl_hasAttributeNS_String_String_1.java \ - ElementImpl_hasAttributeNS_String_String_2.java \ - ElementImpl_hasAttributeNS_String_String_3.java \ - ElementImpl_normalize.java \ - ElementImpl_removeAttributeNS_String_String_0.java \ - ElementImpl_removeAttributeNS_String_String_1.java \ - ElementImpl_removeAttributeNS_String_String_2.java \ - ElementImpl_removeAttributeNS_String_String_3.java \ - ElementImpl_removeAttributeNode_Attr_0.java \ - ElementImpl_removeAttributeNode_Attr_1.java \ - ElementImpl_removeAttribute_String_0.java \ - ElementImpl_removeAttribute_String_1.java \ - ElementImpl_setAttributeNS_String_String_String_0.java \ - ElementImpl_setAttributeNS_String_String_String_1.java \ - ElementImpl_setAttributeNS_String_String_String_2.java \ - ElementImpl_setAttributeNS_String_String_String_3.java \ - ElementImpl_setAttributeNS_String_String_String_4.java \ - ElementImpl_setAttributeNS_String_String_String_5.java \ - ElementImpl_setAttributeNS_String_String_String_6.java \ - ElementImpl_setAttributeNS_String_String_String_7.java \ - ElementImpl_setAttributeNS_String_String_String_8.java \ - ElementImpl_setAttributeNS_String_String_String_9.java \ - ElementImpl_setAttributeNodeNS_Attr_0.java \ - ElementImpl_setAttributeNodeNS_Attr_1.java \ - ElementImpl_setAttributeNode_Attr_0.java \ - ElementImpl_setAttributeNode_Attr_1.java \ - ElementImpl_setAttributeNode_Attr_2.java \ - ElementImpl_setAttribute_String_String_0.java \ - ElementImpl_setAttribute_String_String_1.java \ - ElementImpl_setAttribute_String_String_2.java \ - ElementImpl_setAttribute_String_String_3.java \ - NamedNodeMapImpl_getLength.java \ - NamedNodeMapImpl_getNamedItemNS_String_String_0.java \ - NamedNodeMapImpl_getNamedItemNS_String_String_1.java \ - NamedNodeMapImpl_getNamedItemNS_String_String_2.java \ - NamedNodeMapImpl_getNamedItemNS_String_String_3.java \ - NamedNodeMapImpl_getNamedItem_String_0.java \ - NamedNodeMapImpl_getNamedItem_String_1.java \ - NamedNodeMapImpl_item_int_0.java \ - NamedNodeMapImpl_item_int_1.java \ - NamedNodeMapImpl_item_int_2.java \ - NamedNodeMapImpl_removeNamedItemNS_String_String_0.java \ - NamedNodeMapImpl_removeNamedItemNS_String_String_1.java \ - NamedNodeMapImpl_removeNamedItemNS_String_String_2.java \ - NamedNodeMapImpl_removeNamedItemNS_String_String_3.java \ - NamedNodeMapImpl_removeNamedItem_String_0.java \ - NamedNodeMapImpl_removeNamedItem_String_1.java \ - NamedNodeMapImpl_setNamedItemNS_Node_0.java \ - NamedNodeMapImpl_setNamedItemNS_Node_1.java \ - NamedNodeMapImpl_setNamedItem_Node_0.java \ - NamedNodeMapImpl_setNamedItem_Node_1.java \ - NamedNodeMapImpl_setNamedItem_Node_2.java \ - NodeImpl_appendChild_Node_0.java \ - NodeImpl_appendChild_Node_1.java \ - NodeImpl_cloneNode_boolean_0.java \ - NodeImpl_cloneNode_boolean_1.java \ - NodeImpl_equals_Object_0.java \ - NodeImpl_equals_Object_1.java \ - NodeImpl_equals_Object_2.java \ - NodeImpl_equals_Object_3.java \ - NodeImpl_getAttributes.java \ - NodeImpl_getChildNodes.java \ - NodeImpl_getFirstChild.java \ - NodeImpl_getLastChild.java \ - NodeImpl_getLocalName.java \ - NodeImpl_getNamespaceURI.java \ - NodeImpl_getNextSibling.java \ - NodeImpl_getNodeName.java \ - NodeImpl_getNodeType.java \ - NodeImpl_getNodeValue.java \ - NodeImpl_getOwnerDocument.java \ - NodeImpl_getParentNode.java \ - NodeImpl_getPrefix.java \ - NodeImpl_getPreviousSibling.java \ - NodeImpl_hasChildNodes.java \ - NodeImpl_hashCode.java \ - NodeImpl_insertBefore_Node_Node_0.java \ - NodeImpl_insertBefore_Node_Node_1.java \ - NodeImpl_insertBefore_Node_Node_2.java \ - NodeImpl_insertBefore_Node_Node_3.java \ - NodeImpl_normalize.java \ - NodeImpl_removeChild_Node_0.java \ - NodeImpl_removeChild_Node_1.java \ - NodeImpl_replaceChild_Node_Node_0.java \ - NodeImpl_replaceChild_Node_Node_1.java \ - NodeImpl_replaceChild_Node_Node_2.java \ - NodeImpl_replaceChild_Node_Node_3.java \ - NodeImpl_setNodeValue_String_0.java \ - NodeImpl_setNodeValue_String_1.java \ - NodeImpl_setPrefix_String_0.java \ - NodeImpl_setPrefix_String_1.java \ - NodeImpl_supports_String_String_0.java \ - NodeImpl_supports_String_String_1.java \ - NodeImpl_supports_String_String_2.java \ - NodeImpl_supports_String_String_3.java \ - NodeImpl_toString.java \ - NodeListImpl_getLength.java \ - NodeListImpl_item_int_0.java \ - NodeListImpl_item_int_1.java \ - NodeListImpl_item_int_2.java \ - ProcessingInstructionImpl_getData.java \ - ProcessingInstructionImpl_getTarget.java \ - ProcessingInstructionImpl_setData_String_0.java \ - ProcessingInstructionImpl_setData_String_1.java \ - TextImpl_splitText_int_0.java \ - TextImpl_splitText_int_1.java \ - TextImpl_splitText_int_2.java - -clean: - for i in ${JAVAFILES} ; do \ - file=$$i; \ - classfile=`echo $$file | sed 's/java/class/g'` ; \ - /bin/rm $(CLASSDIR)/$(TESTPACKAGE)/$$classfile ; done diff --git a/mozilla/java/dom/tests/src/api/Makefile.win b/mozilla/java/dom/tests/src/api/Makefile.win deleted file mode 100644 index d32f25fe565..00000000000 --- a/mozilla/java/dom/tests/src/api/Makefile.win +++ /dev/null @@ -1,278 +0,0 @@ -#!nmake -# -# The contents of this file are subject to the Mozilla Public -# License Version 1.1 (the "License"); you may not use this file -# except in compliance with the License. You may obtain a copy of -# the License at http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS -# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -# implied. See the License for the specific language governing -# rights and limitations under the License. -# -# The Original Code is mozilla.org code. -# -# The Initial Developer of the Original Code is Sun Microsystems, -# Inc. Portions created by Sun are -# Copyright (C) 1999 Sun Microsystems, Inc. All -# Rights Reserved. -# -# Contributor(s): - - -HOMEDIR=..\.. -SRCDIR=$(HOMEDIR)\src\api -CLASSDIR=$(HOMEDIR)\classes - -JAVAC=javac -TESTPACKAGE=org\mozilla\dom\test - -JAVAFILES= AttrImpl_getName.java \ - AttrImpl_getOwnerElement.java \ - AttrImpl_getSpecified.java \ - AttrImpl_getValue.java \ - AttrImpl_setValue_String_0.java \ - AttrImpl_setValue_String_1.java \ - CharacterDataImpl_appendData_String_0.java \ - CharacterDataImpl_appendData_String_1.java \ - CharacterDataImpl_deleteData_int_int_0.java \ - CharacterDataImpl_deleteData_int_int_1.java \ - CharacterDataImpl_deleteData_int_int_2.java \ - CharacterDataImpl_deleteData_int_int_3.java \ - CharacterDataImpl_deleteData_int_int_4.java \ - CharacterDataImpl_deleteData_int_int_5.java \ - CharacterDataImpl_deleteData_int_int_6.java \ - CharacterDataImpl_deleteData_int_int_7.java \ - CharacterDataImpl_deleteData_int_int_8.java \ - CharacterDataImpl_getData.java \ - CharacterDataImpl_getLength.java \ - CharacterDataImpl_insertData_int_String_0.java \ - CharacterDataImpl_insertData_int_String_1.java \ - CharacterDataImpl_insertData_int_String_2.java \ - CharacterDataImpl_insertData_int_String_3.java \ - CharacterDataImpl_insertData_int_String_4.java \ - CharacterDataImpl_insertData_int_String_5.java \ - CharacterDataImpl_replaceData_int_int_String_0.java \ - CharacterDataImpl_replaceData_int_int_String_1.java \ - CharacterDataImpl_replaceData_int_int_String_10.java \ - CharacterDataImpl_replaceData_int_int_String_11.java \ - CharacterDataImpl_replaceData_int_int_String_12.java \ - CharacterDataImpl_replaceData_int_int_String_13.java \ - CharacterDataImpl_replaceData_int_int_String_14.java \ - CharacterDataImpl_replaceData_int_int_String_15.java \ - CharacterDataImpl_replaceData_int_int_String_16.java \ - CharacterDataImpl_replaceData_int_int_String_17.java \ - CharacterDataImpl_replaceData_int_int_String_2.java \ - CharacterDataImpl_replaceData_int_int_String_3.java \ - CharacterDataImpl_replaceData_int_int_String_4.java \ - CharacterDataImpl_replaceData_int_int_String_5.java \ - CharacterDataImpl_replaceData_int_int_String_6.java \ - CharacterDataImpl_replaceData_int_int_String_7.java \ - CharacterDataImpl_replaceData_int_int_String_8.java \ - CharacterDataImpl_replaceData_int_int_String_9.java \ - CharacterDataImpl_setData_String_0.java \ - CharacterDataImpl_setData_String_1.java \ - CharacterDataImpl_substringData_int_int_0.java \ - CharacterDataImpl_substringData_int_int_1.java \ - CharacterDataImpl_substringData_int_int_2.java \ - CharacterDataImpl_substringData_int_int_3.java \ - CharacterDataImpl_substringData_int_int_4.java \ - CharacterDataImpl_substringData_int_int_5.java \ - CharacterDataImpl_substringData_int_int_6.java \ - CharacterDataImpl_substringData_int_int_7.java \ - CharacterDataImpl_substringData_int_int_8.java \ - DOMImplementationImpl_createDocumentType_String_String_String_0.java \ - DOMImplementationImpl_createDocumentType_String_String_String_String_0.java \ - DOMImplementationImpl_createDocument_String_String_DocumentType_0.java \ - DOMImplementationImpl_hasFeature_String_String_0.java \ - DOMImplementationImpl_hasFeature_String_String_1.java \ - DOMImplementationImpl_hasFeature_String_String_2.java \ - DOMImplementationImpl_hasFeature_String_String_3.java \ - DOMImplementationImpl_hasFeature_String_String_4.java \ - DocumentImpl_createAttributeNS_String_String_0.java \ - DocumentImpl_createAttributeNS_String_String_1.java \ - DocumentImpl_createAttributeNS_String_String_2.java \ - DocumentImpl_createAttributeNS_String_String_3.java \ - DocumentImpl_createAttribute_String_0.java \ - DocumentImpl_createAttribute_String_1.java \ - DocumentImpl_createCDATASection_String_0.java \ - DocumentImpl_createCDATASection_String_1.java \ - DocumentImpl_createComment_String_0.java \ - DocumentImpl_createComment_String_1.java \ - DocumentImpl_createDocumentFragment.java \ - DocumentImpl_createElementNS_String_String_0.java \ - DocumentImpl_createElementNS_String_String_1.java \ - DocumentImpl_createElementNS_String_String_2.java \ - DocumentImpl_createElementNS_String_String_3.java \ - DocumentImpl_createElement_String_0.java \ - DocumentImpl_createElement_String_1.java \ - DocumentImpl_createEntityReference_String_0.java \ - DocumentImpl_createEntityReference_String_1.java \ - DocumentImpl_createEvent_String_0.java \ - DocumentImpl_createEvent_String_1.java \ - DocumentImpl_createProcessingInstruction_String_String_0.java \ - DocumentImpl_createProcessingInstruction_String_String_1.java \ - DocumentImpl_createProcessingInstruction_String_String_2.java \ - DocumentImpl_createProcessingInstruction_String_String_3.java \ - DocumentImpl_createTextNode_String_0.java \ - DocumentImpl_createTextNode_String_1.java \ - DocumentImpl_getDoctype.java \ - DocumentImpl_getDoctype_xml.java \ - DocumentImpl_getDocumentElement.java \ - DocumentImpl_getElementById_String_0.java \ - DocumentImpl_getElementById_String_1.java \ - DocumentImpl_getElementsByTagNameNS_String_String_0.java \ - DocumentImpl_getElementsByTagNameNS_String_String_1.java \ - DocumentImpl_getElementsByTagNameNS_String_String_2.java \ - DocumentImpl_getElementsByTagNameNS_String_String_3.java \ - DocumentImpl_getElementsByTagName_String_0.java \ - DocumentImpl_getElementsByTagName_String_1.java \ - DocumentImpl_getImplementation.java \ - DocumentImpl_importNode_Node_boolean_0.java \ - DocumentImpl_importNode_Node_boolean_1.java \ - DocumentImpl_importNode_Node_boolean_2.java \ - DocumentImpl_importNode_Node_boolean_3.java \ - DocumentTypeImpl_getEntities.java \ - DocumentTypeImpl_getInternalSubset.java \ - DocumentTypeImpl_getName.java \ - DocumentTypeImpl_getNotations.java \ - DocumentTypeImpl_getPublicId.java \ - DocumentTypeImpl_getSystemId.java \ - ElementImpl_getAttributeNS_String_String_0.java \ - ElementImpl_getAttributeNS_String_String_1.java \ - ElementImpl_getAttributeNS_String_String_2.java \ - ElementImpl_getAttributeNS_String_String_3.java \ - ElementImpl_getAttributeNodeNS_String_String_0.java \ - ElementImpl_getAttributeNodeNS_String_String_1.java \ - ElementImpl_getAttributeNodeNS_String_String_2.java \ - ElementImpl_getAttributeNodeNS_String_String_3.java \ - ElementImpl_getAttributeNode_String_0.java \ - ElementImpl_getAttributeNode_String_1.java \ - ElementImpl_getAttribute_String_0.java \ - ElementImpl_getAttribute_String_1.java \ - ElementImpl_getElementsByTagNameNS_String_String_0.java \ - ElementImpl_getElementsByTagNameNS_String_String_1.java \ - ElementImpl_getElementsByTagNameNS_String_String_2.java \ - ElementImpl_getElementsByTagNameNS_String_String_3.java \ - ElementImpl_getElementsByTagName_String_0.java \ - ElementImpl_getElementsByTagName_String_1.java \ - ElementImpl_getTagName.java \ - ElementImpl_hasAttribute_String_0.java \ - ElementImpl_hasAttribute_String_1.java \ - ElementImpl_hasAttributeNS_String_String_0.java \ - ElementImpl_hasAttributeNS_String_String_1.java \ - ElementImpl_hasAttributeNS_String_String_2.java \ - ElementImpl_hasAttributeNS_String_String_3.java \ - ElementImpl_normalize.java \ - ElementImpl_removeAttributeNS_String_String_0.java \ - ElementImpl_removeAttributeNS_String_String_1.java \ - ElementImpl_removeAttributeNS_String_String_2.java \ - ElementImpl_removeAttributeNS_String_String_3.java \ - ElementImpl_removeAttributeNode_Attr_0.java \ - ElementImpl_removeAttributeNode_Attr_1.java \ - ElementImpl_removeAttribute_String_0.java \ - ElementImpl_removeAttribute_String_1.java \ - ElementImpl_setAttributeNS_String_String_String_0.java \ - ElementImpl_setAttributeNS_String_String_String_1.java \ - ElementImpl_setAttributeNS_String_String_String_2.java \ - ElementImpl_setAttributeNS_String_String_String_3.java \ - ElementImpl_setAttributeNS_String_String_String_4.java \ - ElementImpl_setAttributeNS_String_String_String_5.java \ - ElementImpl_setAttributeNS_String_String_String_6.java \ - ElementImpl_setAttributeNS_String_String_String_7.java \ - ElementImpl_setAttributeNS_String_String_String_8.java \ - ElementImpl_setAttributeNS_String_String_String_9.java \ - ElementImpl_setAttributeNodeNS_Attr_0.java \ - ElementImpl_setAttributeNodeNS_Attr_1.java \ - ElementImpl_setAttributeNode_Attr_0.java \ - ElementImpl_setAttributeNode_Attr_1.java \ - ElementImpl_setAttributeNode_Attr_2.java \ - ElementImpl_setAttribute_String_String_0.java \ - ElementImpl_setAttribute_String_String_1.java \ - ElementImpl_setAttribute_String_String_2.java \ - ElementImpl_setAttribute_String_String_3.java \ - NamedNodeMapImpl_getLength.java \ - NamedNodeMapImpl_getNamedItemNS_String_String_0.java \ - NamedNodeMapImpl_getNamedItemNS_String_String_1.java \ - NamedNodeMapImpl_getNamedItemNS_String_String_2.java \ - NamedNodeMapImpl_getNamedItemNS_String_String_3.java \ - NamedNodeMapImpl_getNamedItem_String_0.java \ - NamedNodeMapImpl_getNamedItem_String_1.java \ - NamedNodeMapImpl_item_int_0.java \ - NamedNodeMapImpl_item_int_1.java \ - NamedNodeMapImpl_item_int_2.java \ - NamedNodeMapImpl_removeNamedItemNS_String_String_0.java \ - NamedNodeMapImpl_removeNamedItemNS_String_String_1.java \ - NamedNodeMapImpl_removeNamedItemNS_String_String_2.java \ - NamedNodeMapImpl_removeNamedItemNS_String_String_3.java \ - NamedNodeMapImpl_removeNamedItem_String_0.java \ - NamedNodeMapImpl_removeNamedItem_String_1.java \ - NamedNodeMapImpl_setNamedItemNS_Node_0.java \ - NamedNodeMapImpl_setNamedItemNS_Node_1.java \ - NamedNodeMapImpl_setNamedItem_Node_0.java \ - NamedNodeMapImpl_setNamedItem_Node_1.java \ - NamedNodeMapImpl_setNamedItem_Node_2.java \ - NodeImpl_appendChild_Node_0.java \ - NodeImpl_appendChild_Node_1.java \ - NodeImpl_cloneNode_boolean_0.java \ - NodeImpl_cloneNode_boolean_1.java \ - NodeImpl_equals_Object_0.java \ - NodeImpl_equals_Object_1.java \ - NodeImpl_equals_Object_2.java \ - NodeImpl_equals_Object_3.java \ - NodeImpl_getAttributes.java \ - NodeImpl_getChildNodes.java \ - NodeImpl_getFirstChild.java \ - NodeImpl_getLastChild.java \ - NodeImpl_getLocalName.java \ - NodeImpl_getNamespaceURI.java \ - NodeImpl_getNextSibling.java \ - NodeImpl_getNodeName.java \ - NodeImpl_getNodeType.java \ - NodeImpl_getNodeValue.java \ - NodeImpl_getOwnerDocument.java \ - NodeImpl_getParentNode.java \ - NodeImpl_getPrefix.java \ - NodeImpl_getPreviousSibling.java \ - NodeImpl_hasChildNodes.java \ - NodeImpl_hashCode.java \ - NodeImpl_insertBefore_Node_Node_0.java \ - NodeImpl_insertBefore_Node_Node_1.java \ - NodeImpl_insertBefore_Node_Node_2.java \ - NodeImpl_insertBefore_Node_Node_3.java \ - NodeImpl_normalize.java \ - NodeImpl_removeChild_Node_0.java \ - NodeImpl_removeChild_Node_1.java \ - NodeImpl_replaceChild_Node_Node_0.java \ - NodeImpl_replaceChild_Node_Node_1.java \ - NodeImpl_replaceChild_Node_Node_2.java \ - NodeImpl_replaceChild_Node_Node_3.java \ - NodeImpl_setNodeValue_String_0.java \ - NodeImpl_setNodeValue_String_1.java \ - NodeImpl_setPrefix_String_0.java \ - NodeImpl_setPrefix_String_1.java \ - NodeImpl_supports_String_String_0.java \ - NodeImpl_supports_String_String_1.java \ - NodeImpl_supports_String_String_2.java \ - NodeImpl_supports_String_String_3.java \ - NodeImpl_toString.java \ - NodeListImpl_getLength.java \ - NodeListImpl_item_int_0.java \ - NodeListImpl_item_int_1.java \ - NodeListImpl_item_int_2.java \ - ProcessingInstructionImpl_getData.java \ - ProcessingInstructionImpl_getTarget.java \ - ProcessingInstructionImpl_setData_String_0.java \ - ProcessingInstructionImpl_setData_String_1.java \ - TextImpl_splitText_int_0.java \ - TextImpl_splitText_int_1.java \ - TextImpl_splitText_int_2.java - -all: - @echo Building Java DOM API Tests ... - @$(JAVAC) -d $(CLASSDIR) $(JAVAFILES) - @echo done - - -clean: - del /f/q $(CLASSDIR)\$(TESTPACKAGE)\*.class diff --git a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_getLength.java b/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_getLength.java deleted file mode 100755 index 9cf08ae5db2..00000000000 --- a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_getLength.java +++ /dev/null @@ -1,143 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NamedNodeMapImpl_getLength extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NamedNodeMapImpl_getLength() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String attrName = "TARGET"; - Attr a = d.createAttribute(attrName); - if (a == null) { - TestLoader.logErrPrint("Could not reate Attribute " + attrName); - return BWBaseTest.FAILED; - } - - String aelement = "BASE"; - String attrValue = ""; - Element e = d.createElement(aelement); - if (e != null) - { - a.setValue(attrValue); - e.setAttributeNode(a); - } else { - TestLoader.logErrPrint("Element " + aelement + " could not be created..."); - return BWBaseTest.FAILED; - } - - NamedNodeMap map = e.getAttributes(); - if (map != null) - { - int len = map.getLength(); - System.out.println(" Map Length is " + len); - } else { - TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement); - return BWBaseTest.FAILED; - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - TestLoader.logErrPrint("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_getNamedItemNS_String_String_0.java b/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_getNamedItemNS_String_String_0.java deleted file mode 100755 index 3e3d8a05a57..00000000000 --- a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_getNamedItemNS_String_String_0.java +++ /dev/null @@ -1,152 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NamedNodeMapImpl_getNamedItemNS_String_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NamedNodeMapImpl_getNamedItemNS_String_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - setUnsupported(); - - - Document d = (Document)tobj; - if (d != null) - { - try { - String attrName = "TARGET"; - Attr a = d.createAttribute(attrName); - if (a == null) { - TestLoader.logErrPrint("Could not reate Attribute " + attrName); - return BWBaseTest.FAILED; - } - - String aelement = "BASE"; - String attrValue = ""; - Element e = d.createElement(aelement); - if (e != null) - { - a.setValue(attrValue); - e.setAttributeNode(a); - } else { - TestLoader.logErrPrint("Element " + aelement + " could not be created..."); - return BWBaseTest.FAILED; - } - - NamedNodeMap map = e.getAttributes(); - if (map != null) - { - try { - String nuri = null; - String name = null; - Node n = map.getNamedItemNS(nuri, name); - TestLoader.logErrPrint(" getNamedItemNS is an unsupported method..."); - return BWBaseTest.FAILED; - } catch (UnsupportedOperationException ue) { - TestLoader.logErrPrint("UNSUPPORTED METHOD"); - return BWBaseTest.PASSED; - } - } else { - TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement); - return BWBaseTest.FAILED; - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - TestLoader.logErrPrint("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_getNamedItemNS_String_String_1.java b/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_getNamedItemNS_String_String_1.java deleted file mode 100755 index 993e4ee9707..00000000000 --- a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_getNamedItemNS_String_String_1.java +++ /dev/null @@ -1,152 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NamedNodeMapImpl_getNamedItemNS_String_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NamedNodeMapImpl_getNamedItemNS_String_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - setUnsupported(); - - - Document d = (Document)tobj; - if (d != null) - { - try { - String attrName = "TARGET"; - Attr a = d.createAttribute(attrName); - if (a == null) { - TestLoader.logErrPrint("Could not reate Attribute " + attrName); - return BWBaseTest.FAILED; - } - - String aelement = "BASE"; - String attrValue = ""; - Element e = d.createElement(aelement); - if (e != null) - { - a.setValue(attrValue); - e.setAttributeNode(a); - } else { - TestLoader.logErrPrint("Element " + aelement + " could not be created..."); - return BWBaseTest.FAILED; - } - - NamedNodeMap map = e.getAttributes(); - if (map != null) - { - try { - String nuri = null; - String name = "TARGET"; - Node n = map.getNamedItemNS(nuri, name); - TestLoader.logErrPrint(" getNamedItemNS is an unsupported method..."); - return BWBaseTest.FAILED; - } catch (UnsupportedOperationException ue) { - TestLoader.logErrPrint("UNSUPPORTED METHOD"); - return BWBaseTest.PASSED; - } - } else { - TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement); - return BWBaseTest.FAILED; - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - TestLoader.logErrPrint("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_getNamedItemNS_String_String_2.java b/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_getNamedItemNS_String_String_2.java deleted file mode 100755 index e5e8e37be8a..00000000000 --- a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_getNamedItemNS_String_String_2.java +++ /dev/null @@ -1,152 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NamedNodeMapImpl_getNamedItemNS_String_String_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NamedNodeMapImpl_getNamedItemNS_String_String_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - setUnsupported(); - - - Document d = (Document)tobj; - if (d != null) - { - try { - String attrName = "TARGET"; - Attr a = d.createAttribute(attrName); - if (a == null) { - TestLoader.logErrPrint("Could not reate Attribute " + attrName); - return BWBaseTest.FAILED; - } - - String aelement = "BASE"; - String attrValue = ""; - Element e = d.createElement(aelement); - if (e != null) - { - a.setValue(attrValue); - e.setAttributeNode(a); - } else { - TestLoader.logErrPrint("Element " + aelement + " could not be created..."); - return BWBaseTest.FAILED; - } - - NamedNodeMap map = e.getAttributes(); - if (map != null) - { - try { - String nuri = "xmlns:edi='http://ecommerce.org/schema'"; - String name = null; - Node n = map.getNamedItemNS(nuri, name); - TestLoader.logErrPrint(" getNamedItemNS is an unsupported method..."); - return BWBaseTest.FAILED; - } catch (UnsupportedOperationException ue) { - TestLoader.logErrPrint("UNSUPPORTED METHOD"); - return BWBaseTest.PASSED; - } - } else { - TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement); - return BWBaseTest.FAILED; - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - TestLoader.logErrPrint("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_getNamedItemNS_String_String_3.java b/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_getNamedItemNS_String_String_3.java deleted file mode 100755 index 07542c608dc..00000000000 --- a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_getNamedItemNS_String_String_3.java +++ /dev/null @@ -1,152 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NamedNodeMapImpl_getNamedItemNS_String_String_3 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NamedNodeMapImpl_getNamedItemNS_String_String_3() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - setUnsupported(); - - - Document d = (Document)tobj; - if (d != null) - { - try { - String attrName = "TARGET"; - Attr a = d.createAttribute(attrName); - if (a == null) { - TestLoader.logErrPrint("Could not reate Attribute " + attrName); - return BWBaseTest.FAILED; - } - - String aelement = "BASE"; - String attrValue = ""; - Element e = d.createElement(aelement); - if (e != null) - { - a.setValue(attrValue); - e.setAttributeNode(a); - } else { - TestLoader.logErrPrint("Element " + aelement + " could not be created..."); - return BWBaseTest.FAILED; - } - - NamedNodeMap map = e.getAttributes(); - if (map != null) - { - try { - String nuri = "xmlns:edi='http://ecommerce.org/schema'" ; - String name = "TARGET"; - Node n = map.getNamedItemNS(nuri, name); - TestLoader.logErrPrint(" getNamedItemNS is an unsupported method..."); - return BWBaseTest.FAILED; - } catch (UnsupportedOperationException ue) { - TestLoader.logErrPrint("UNSUPPORTED METHOD"); - return BWBaseTest.PASSED; - } - } else { - TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement); - return BWBaseTest.FAILED; - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - TestLoader.logErrPrint("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_getNamedItem_String_0.java b/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_getNamedItem_String_0.java deleted file mode 100755 index d9dd966c676..00000000000 --- a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_getNamedItem_String_0.java +++ /dev/null @@ -1,147 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NamedNodeMapImpl_getNamedItem_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NamedNodeMapImpl_getNamedItem_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String attrName = "TARGET"; - Attr a = d.createAttribute(attrName); - if (a == null) { - TestLoader.logErrPrint("Could not reate Attribute " + attrName); - return BWBaseTest.FAILED; - } - - String aelement = "BASE"; - String attrValue = ""; - Element e = d.createElement(aelement); - if (e != null) - { - a.setValue(attrValue); - e.setAttributeNode(a); - } else { - TestLoader.logErrPrint("Element " + aelement + " could not be created..."); - return BWBaseTest.FAILED; - } - - NamedNodeMap map = e.getAttributes(); - if (map != null) - { - Node n = map.getNamedItem(null); - if (n != null) - { - TestLoader.logErrPrint(" Could not find namedItem for NULL attribute "); - return BWBaseTest.FAILED; - } - } else { - TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement); - return BWBaseTest.FAILED; - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - TestLoader.logErrPrint("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_getNamedItem_String_1.java b/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_getNamedItem_String_1.java deleted file mode 100755 index c59e5c0bfcd..00000000000 --- a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_getNamedItem_String_1.java +++ /dev/null @@ -1,148 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NamedNodeMapImpl_getNamedItem_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NamedNodeMapImpl_getNamedItem_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String attrName = "TARGET"; - Attr a = d.createAttribute(attrName); - if (a == null) { - TestLoader.logErrPrint("Could not reate Attribute " + attrName); - return BWBaseTest.FAILED; - } - - String aelement = "BASE"; - String attrValue = ""; - Element e = d.createElement(aelement); - if (e != null) - { - a.setValue(attrValue); - e.setAttributeNode(a); - } else { - TestLoader.logErrPrint("Element " + aelement + " could not be created..."); - return BWBaseTest.FAILED; - } - - NamedNodeMap map = e.getAttributes(); - if (map != null) - { - Node n = map.getNamedItem(attrName); - if (n == null) - { - TestLoader.logErrPrint(" Could not find namedItem for attribute " + attrName); - return BWBaseTest.FAILED; - } - } else { - TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement); - return BWBaseTest.FAILED; - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - TestLoader.logErrPrint("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_item_int_0.java b/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_item_int_0.java deleted file mode 100755 index 177e416e5e1..00000000000 --- a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_item_int_0.java +++ /dev/null @@ -1,148 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NamedNodeMapImpl_item_int_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NamedNodeMapImpl_item_int_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String attrName = "TARGET"; - Attr a = d.createAttribute(attrName); - if (a == null) { - TestLoader.logErrPrint("Could not reate Attribute " + attrName); - return BWBaseTest.FAILED; - } - - String aelement = "BASE"; - String attrValue = ""; - Element e = d.createElement(aelement); - if (e != null) - { - a.setValue(attrValue); - e.setAttributeNode(a); - } else { - TestLoader.logErrPrint("Element " + aelement + " could not be created..."); - return BWBaseTest.FAILED; - } - - NamedNodeMap map = e.getAttributes(); - if (map != null) - { - Node n = map.item(Integer.MIN_VALUE); - if (n != null) - { - TestLoader.logErrPrint(" Could find node for item " + Integer.MIN_VALUE); - return BWBaseTest.FAILED; - } - } else { - TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement); - return BWBaseTest.FAILED; - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - TestLoader.logErrPrint("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_item_int_1.java b/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_item_int_1.java deleted file mode 100755 index 1a5ebad81ca..00000000000 --- a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_item_int_1.java +++ /dev/null @@ -1,147 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NamedNodeMapImpl_item_int_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NamedNodeMapImpl_item_int_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String attrName = "TARGET"; - Attr a = d.createAttribute(attrName); - if (a == null) { - TestLoader.logErrPrint("Could not reate Attribute " + attrName); - return BWBaseTest.FAILED; - } - - String aelement = "BASE"; - String attrValue = ""; - Element e = d.createElement(aelement); - if (e != null) - { - a.setValue(attrValue); - e.setAttributeNode(a); - } else { - TestLoader.logErrPrint("Element " + aelement + " could not be created..."); - return BWBaseTest.FAILED; - } - - NamedNodeMap map = e.getAttributes(); - if (map != null) - { - Node n = map.item(Integer.MAX_VALUE); - if (n != null) - { - TestLoader.logErrPrint(" Could find node for item " + Integer.MAX_VALUE); - return BWBaseTest.FAILED; - } - } else { - TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement); - return BWBaseTest.FAILED; - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - TestLoader.logErrPrint("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_item_int_2.java b/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_item_int_2.java deleted file mode 100755 index 94e8a318d77..00000000000 --- a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_item_int_2.java +++ /dev/null @@ -1,148 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NamedNodeMapImpl_item_int_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NamedNodeMapImpl_item_int_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String attrName = "TARGET"; - Attr a = d.createAttribute(attrName); - if (a == null) { - TestLoader.logErrPrint("Could not reate Attribute " + attrName); - return BWBaseTest.FAILED; - } - - String aelement = "BASE"; - String attrValue = ""; - Element e = d.createElement(aelement); - if (e != null) - { - a.setValue(attrValue); - e.setAttributeNode(a); - } else { - TestLoader.logErrPrint("Element " + aelement + " could not be created..."); - return BWBaseTest.FAILED; - } - - NamedNodeMap map = e.getAttributes(); - if (map != null) - { - Node n = map.item(0); - if (n == null) - { - TestLoader.logErrPrint(" Could find node for item 0..."); - return BWBaseTest.FAILED; - } - } else { - TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement); - return BWBaseTest.FAILED; - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - TestLoader.logErrPrint("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_removeNamedItemNS_String_String_0.java b/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_removeNamedItemNS_String_String_0.java deleted file mode 100755 index b7842530d16..00000000000 --- a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_removeNamedItemNS_String_String_0.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NamedNodeMapImpl_removeNamedItemNS_String_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NamedNodeMapImpl_removeNamedItemNS_String_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - setUnsupported(); - - - Document d = (Document)tobj; - if (d != null) - { - try { - String attrName = "TARGET"; - Attr a = d.createAttribute(attrName); - if (a == null) { - TestLoader.logErrPrint("Could not reate Attribute " + attrName); - return BWBaseTest.FAILED; - } - - String aelement = "BASE"; - String attrValue = ""; - Element e = d.createElement(aelement); - if (e != null) - { - a.setValue(attrValue); - e.setAttributeNode(a); - } else { - TestLoader.logErrPrint("Element " + aelement + " could not be created..."); - return BWBaseTest.FAILED; - } - - NamedNodeMap map = e.getAttributes(); - if (map != null) - { - try { - String nuri = null; - String name = null; - Node n = map.removeNamedItemNS(nuri, name); - TestLoader.logErrPrint(" removeNamedItemNS is an unsupported method..."); - return BWBaseTest.FAILED; - } catch (UnsupportedOperationException ue) { - TestLoader.logErrPrint("UNSUPPORTED METHOD"); - return BWBaseTest.PASSED; - } catch (DOMException de) { - String msg = "DOMException : " + de; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement); - return BWBaseTest.FAILED; - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - TestLoader.logErrPrint("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_removeNamedItemNS_String_String_1.java b/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_removeNamedItemNS_String_String_1.java deleted file mode 100755 index b6fc0740a64..00000000000 --- a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_removeNamedItemNS_String_String_1.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NamedNodeMapImpl_removeNamedItemNS_String_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NamedNodeMapImpl_removeNamedItemNS_String_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - setUnsupported(); - - - Document d = (Document)tobj; - if (d != null) - { - try { - String attrName = "TARGET"; - Attr a = d.createAttribute(attrName); - if (a == null) { - TestLoader.logErrPrint("Could not reate Attribute " + attrName); - return BWBaseTest.FAILED; - } - - String aelement = "BASE"; - String attrValue = ""; - Element e = d.createElement(aelement); - if (e != null) - { - a.setValue(attrValue); - e.setAttributeNode(a); - } else { - TestLoader.logErrPrint("Element " + aelement + " could not be created..."); - return BWBaseTest.FAILED; - } - - NamedNodeMap map = e.getAttributes(); - if (map != null) - { - try { - String nuri = null; - String name = "TARGET"; - Node n = map.removeNamedItemNS(nuri, name); - TestLoader.logErrPrint(" removeNamedItemNS is an unsupported method..."); - return BWBaseTest.FAILED; - } catch (UnsupportedOperationException ue) { - TestLoader.logErrPrint("UNSUPPORTED METHOD"); - return BWBaseTest.PASSED; - } catch (DOMException de) { - String msg = "DOMException : " + de; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement); - return BWBaseTest.FAILED; - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - TestLoader.logErrPrint("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_removeNamedItemNS_String_String_2.java b/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_removeNamedItemNS_String_String_2.java deleted file mode 100755 index 3cd2acfcad8..00000000000 --- a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_removeNamedItemNS_String_String_2.java +++ /dev/null @@ -1,156 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NamedNodeMapImpl_removeNamedItemNS_String_String_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NamedNodeMapImpl_removeNamedItemNS_String_String_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - setUnsupported(); - - - Document d = (Document)tobj; - if (d != null) - { - try { - String attrName = "TARGET"; - Attr a = d.createAttribute(attrName); - if (a == null) { - TestLoader.logErrPrint("Could not reate Attribute " + attrName); - return BWBaseTest.FAILED; - } - - String aelement = "BASE"; - String attrValue = ""; - Element e = d.createElement(aelement); - if (e != null) - { - a.setValue(attrValue); - e.setAttributeNode(a); - } else { - TestLoader.logErrPrint("Element " + aelement + " could not be created..."); - return BWBaseTest.FAILED; - } - - NamedNodeMap map = e.getAttributes(); - if (map != null) - { - try { - String nuri = "xmlns:edi='http://ecommerce.org/schema'" ; - String name = "TARGET"; - Node n = map.removeNamedItemNS(nuri, name); - TestLoader.logErrPrint(" removeNamedItemNS is an unsupported method..."); - return BWBaseTest.FAILED; - } catch (UnsupportedOperationException ue) { - TestLoader.logErrPrint("UNSUPPORTED METHOD"); - return BWBaseTest.PASSED; - } catch (DOMException de) { - String msg = "DOMException : " + de; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement); - return BWBaseTest.FAILED; - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - TestLoader.logErrPrint("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_removeNamedItemNS_String_String_3.java b/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_removeNamedItemNS_String_String_3.java deleted file mode 100755 index 6cd467c2c09..00000000000 --- a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_removeNamedItemNS_String_String_3.java +++ /dev/null @@ -1,152 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NamedNodeMapImpl_removeNamedItemNS_String_String_3 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NamedNodeMapImpl_removeNamedItemNS_String_String_3() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - setUnsupported(); - - - Document d = (Document)tobj; - if (d != null) - { - try { - String attrName = "TARGET"; - Attr a = d.createAttribute(attrName); - if (a == null) { - TestLoader.logErrPrint("Could not reate Attribute " + attrName); - return BWBaseTest.FAILED; - } - - String aelement = "BASE"; - String attrValue = ""; - Element e = d.createElement(aelement); - if (e != null) - { - a.setValue(attrValue); - e.setAttributeNode(a); - } else { - TestLoader.logErrPrint("Element " + aelement + " could not be created..."); - return BWBaseTest.FAILED; - } - - NamedNodeMap map = e.getAttributes(); - if (map != null) - { - try { - String nuri = "xmlns:edi='http://ecommerce.org/schema'" ; - String name = "TARGET"; - Node n = map.removeNamedItemNS(nuri, name); - TestLoader.logErrPrint(" removeNamedItemNS is an unsupported method..."); - return BWBaseTest.FAILED; - } catch (UnsupportedOperationException ue) { - TestLoader.logErrPrint("UNSUPPORTED METHOD"); - return BWBaseTest.PASSED; - } - } else { - TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement); - return BWBaseTest.FAILED; - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - TestLoader.logErrPrint("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_removeNamedItem_String_0.java b/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_removeNamedItem_String_0.java deleted file mode 100755 index 7f696e798a3..00000000000 --- a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_removeNamedItem_String_0.java +++ /dev/null @@ -1,151 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NamedNodeMapImpl_removeNamedItem_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NamedNodeMapImpl_removeNamedItem_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String attrName = "TARGET"; - Attr a = d.createAttribute(attrName); - if (a == null) { - TestLoader.logErrPrint("Could not reate Attribute " + attrName); - return BWBaseTest.FAILED; - } - - String aelement = "BASE"; - String attrValue = ""; - Element e = d.createElement(aelement); - if (e != null) - { - a.setValue(attrValue); - e.setAttributeNode(a); - } else { - TestLoader.logErrPrint("Element " + aelement + " could not be created..."); - return BWBaseTest.FAILED; - } - - NamedNodeMap map = e.getAttributes(); - if (map != null) - { - Node n = map.removeNamedItem(null); - if (n != null) - { - TestLoader.logErrPrint(" Found an NULL entry item...."); - return BWBaseTest.FAILED; - } - } else { - TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement); - return BWBaseTest.FAILED; - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - TestLoader.logErrPrint("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_removeNamedItem_String_1.java b/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_removeNamedItem_String_1.java deleted file mode 100755 index 17eed7640bf..00000000000 --- a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_removeNamedItem_String_1.java +++ /dev/null @@ -1,151 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NamedNodeMapImpl_removeNamedItem_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NamedNodeMapImpl_removeNamedItem_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String attrName = "TARGET"; - Attr a = d.createAttribute(attrName); - if (a == null) { - TestLoader.logErrPrint("Could not reate Attribute " + attrName); - return BWBaseTest.FAILED; - } - - String aelement = "BASE"; - String attrValue = ""; - Element e = d.createElement(aelement); - if (e != null) - { - a.setValue(attrValue); - e.setAttributeNode(a); - } else { - TestLoader.logErrPrint("Element " + aelement + " could not be created..."); - return BWBaseTest.FAILED; - } - - NamedNodeMap map = e.getAttributes(); - if (map != null) - { - Node n = map.removeNamedItem(attrName); - if (n == null) - { - TestLoader.logErrPrint(" Could not remove Item " + attrName); - return BWBaseTest.FAILED; - } - } else { - TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement); - return BWBaseTest.FAILED; - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - TestLoader.logErrPrint("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_setNamedItemNS_Node_0.java b/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_setNamedItemNS_Node_0.java deleted file mode 100755 index dfc33b907b1..00000000000 --- a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_setNamedItemNS_Node_0.java +++ /dev/null @@ -1,157 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NamedNodeMapImpl_setNamedItemNS_Node_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NamedNodeMapImpl_setNamedItemNS_Node_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - setUnsupported(); - - - Document d = (Document)tobj; - if (d != null) - { - try { - String attrName = "TARGET"; - Attr a = d.createAttribute(attrName); - if (a == null) { - TestLoader.logErrPrint("Could not reate Attribute " + attrName); - return BWBaseTest.FAILED; - } - - String aelement = "BASE"; - String attrValue = ""; - Element e = d.createElement(aelement); - if (e != null) - { - a.setValue(attrValue); - e.setAttributeNode(a); - } else { - TestLoader.logErrPrint("Element " + aelement + " could not be created..."); - return BWBaseTest.FAILED; - } - - NamedNodeMap map = e.getAttributes(); - if (map != null) - { - try { - Node n = map.setNamedItemNS(null); - TestLoader.logErrPrint(" setNamedItemNS is an unsupported method..."); - return BWBaseTest.FAILED; - } catch (UnsupportedOperationException ue) { - TestLoader.logErrPrint("UNSUPPORTEd METHOD"); - return BWBaseTest.PASSED; - } catch (DOMException de) { - String msg = "DOMException: " + de; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement); - return BWBaseTest.FAILED; - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - TestLoader.logErrPrint("Document is NULL.."); - return BWBaseTest.FAILED; - } - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_setNamedItemNS_Node_1.java b/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_setNamedItemNS_Node_1.java deleted file mode 100755 index a750ceedde1..00000000000 --- a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_setNamedItemNS_Node_1.java +++ /dev/null @@ -1,166 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NamedNodeMapImpl_setNamedItemNS_Node_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NamedNodeMapImpl_setNamedItemNS_Node_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - setUnsupported(); - - - Document d = (Document)tobj; - if (d != null) - { - try { - String attrName = "TARGET"; - Attr a = d.createAttribute(attrName); - if (a == null) { - TestLoader.logErrPrint("Could not create Attribute " + attrName); - return BWBaseTest.FAILED; - } - - attrName = "HREF"; - Attr ha = d.createAttribute(attrName); - if (ha == null) { - TestLoader.logErrPrint("Could not create Attribute " + attrName); - return BWBaseTest.FAILED; - } - - - String aelement = "BASE"; - String attrValue = ""; - Element e = d.createElement(aelement); - if (e != null) - { - a.setValue(attrValue); - e.setAttributeNode(a); - } else { - TestLoader.logErrPrint("Element " + aelement + " could not be created..."); - return BWBaseTest.FAILED; - } - - NamedNodeMap map = e.getAttributes(); - if (map != null) - { - try { - Node newnode = ha; - Node n = map.setNamedItemNS(newnode); - TestLoader.logErrPrint(" setNamedItemNS is an unsupported method..."); - return BWBaseTest.FAILED; - } catch (UnsupportedOperationException ue) { - TestLoader.logErrPrint("UNSUPPORTED METHOD"); - return BWBaseTest.PASSED; - } catch (DOMException de) { - String msg = "DOMException: " + de; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement); - return BWBaseTest.FAILED; - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - TestLoader.logErrPrint("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_setNamedItem_Node_0.java b/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_setNamedItem_Node_0.java deleted file mode 100755 index f308cec3600..00000000000 --- a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_setNamedItem_Node_0.java +++ /dev/null @@ -1,151 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NamedNodeMapImpl_setNamedItem_Node_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NamedNodeMapImpl_setNamedItem_Node_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String attrName = "TARGET"; - Attr a = d.createAttribute(attrName); - if (a == null) { - TestLoader.logErrPrint("Could not reate Attribute " + attrName); - return BWBaseTest.FAILED; - } - - String aelement = "BASE"; - String attrValue = ""; - Element e = d.createElement(aelement); - if (e != null) - { - a.setValue(attrValue); - e.setAttributeNode(a); - } else { - TestLoader.logErrPrint("Element " + aelement + " could not be created..."); - return BWBaseTest.FAILED; - } - - NamedNodeMap map = e.getAttributes(); - if (map != null) - { - Node n = map.setNamedItem(null); - if (n != null) - { - TestLoader.logErrPrint(" Could set namedItem with NULL Node "); - return BWBaseTest.FAILED; - } - } else { - TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement); - return BWBaseTest.FAILED; - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - TestLoader.logErrPrint("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_setNamedItem_Node_1.java b/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_setNamedItem_Node_1.java deleted file mode 100755 index eb73029bcdf..00000000000 --- a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_setNamedItem_Node_1.java +++ /dev/null @@ -1,159 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NamedNodeMapImpl_setNamedItem_Node_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NamedNodeMapImpl_setNamedItem_Node_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String attrName = "TARGET"; - Attr a = d.createAttribute(attrName); - if (a == null) { - TestLoader.logErrPrint("Could not create Attribute " + attrName); - return BWBaseTest.FAILED; - } - - attrName = "HREF"; - Attr ha = d.createAttribute(attrName); - if (ha == null) { - TestLoader.logErrPrint("Could not create Attribute " + attrName); - return BWBaseTest.FAILED; - } - - - String aelement = "BASE"; - String attrValue = ""; - Element e = d.createElement(aelement); - if (e != null) - { - a.setValue(attrValue); - e.setAttributeNode(a); - } else { - TestLoader.logErrPrint("Element " + aelement + " could not be created..."); - return BWBaseTest.FAILED; - } - - NamedNodeMap map = e.getAttributes(); - if (map != null) - { - Node newnode = ha; - Node n = map.setNamedItem(newnode); - if (n != null) - { - TestLoader.logErrPrint(" Could not set namedItem for Node " + attrName); - return BWBaseTest.FAILED; - } - } else { - TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement); - return BWBaseTest.FAILED; - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - TestLoader.logErrPrint("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_setNamedItem_Node_2.java b/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_setNamedItem_Node_2.java deleted file mode 100755 index 7851417061d..00000000000 --- a/mozilla/java/dom/tests/src/api/NamedNodeMapImpl_setNamedItem_Node_2.java +++ /dev/null @@ -1,180 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NamedNodeMapImpl_setNamedItem_Node_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NamedNodeMapImpl_setNamedItem_Node_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String attrName = "TARGET"; - Attr a = d.createAttribute(attrName); - if (a == null) { - TestLoader.logErrPrint("Could not create Attribute " + attrName); - return BWBaseTest.FAILED; - } - - attrName = "HREF"; - Attr ha = d.createAttribute(attrName); - if (ha == null) { - TestLoader.logErrPrint("Could not create Attribute " + attrName); - return BWBaseTest.FAILED; - } - - attrName = "HREF"; - Attr newattr = d.createAttribute(attrName); - if (newattr == null) { - TestLoader.logErrPrint("Could not create Attribute " + attrName); - return BWBaseTest.FAILED; - } - - String aelement = "BASE"; - String attrValue = ""; - Element e = d.createElement(aelement); - if (e != null) - { - a.setValue(attrValue); - e.setAttributeNode(a); - } else { - TestLoader.logErrPrint("Element " + aelement + " could not be created..."); - return BWBaseTest.FAILED; - } - - NamedNodeMap map = e.getAttributes(); - if (map != null) - { - Node newnode = ha; - Node n = map.setNamedItem(newnode); - if (n != null) - { - TestLoader.logErrPrint(" Return value should null on setting namedItem for Node " + attrName); - return BWBaseTest.FAILED; - } - - Node samenode = newattr; - Node nn = map.setNamedItem(newnode); - if (nn == null) - { - TestLoader.logErrPrint(" Return value cannot be null on setting namedItem for Node " + attrName); - return BWBaseTest.FAILED; - } - - if (newnode.getNodeName().compareTo(nn.getNodeName()) != 0) - { - TestLoader.logErrPrint(" setNamedItem return node " + newnode.getNodeName() + " is different from original node " + attrName); - return BWBaseTest.FAILED; - } - - } else { - TestLoader.logErrPrint(" Could not find Attriblist for node " + aelement); - return BWBaseTest.FAILED; - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - TestLoader.logErrPrint("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_appendChild_Node_0.java b/mozilla/java/dom/tests/src/api/NodeImpl_appendChild_Node_0.java deleted file mode 100755 index 4ecc7dd1357..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_appendChild_Node_0.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_appendChild_Node_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_appendChild_Node_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String elname = "SCRIPT"; - Element e = d.createElement(elname); - if (e == null) - { - TestLoader.logErrPrint("Could not create Element " + elname); - return BWBaseTest.FAILED; - } - - String nodename = "HEAD"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - if (n.getNodeName().compareTo(nodename) == 0) - { - Node scriptNode = n.appendChild(null); - if (scriptNode != null) - { - TestLoader.logErrPrint("Could append NULL Child Node under node " + nodename); - return BWBaseTest.FAILED; - } - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_appendChild_Node_1.java b/mozilla/java/dom/tests/src/api/NodeImpl_appendChild_Node_1.java deleted file mode 100755 index 2d301be9eb0..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_appendChild_Node_1.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_appendChild_Node_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_appendChild_Node_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String elname = "SCRIPT"; - Element e = d.createElement(elname); - if (e == null) - { - TestLoader.logErrPrint("Could not create Element " + elname); - return BWBaseTest.FAILED; - } - - String nodename = "HEAD"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - if (n.getNodeName().compareTo(nodename) == 0) - { - Node scriptNode = n.appendChild(e); - if (scriptNode == null) - { - TestLoader.logErrPrint("Could not appendChild Node " + elname +" under node " + nodename); - return BWBaseTest.FAILED; - } - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_cloneNode_boolean_0.java b/mozilla/java/dom/tests/src/api/NodeImpl_cloneNode_boolean_0.java deleted file mode 100755 index 45f76c49a02..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_cloneNode_boolean_0.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_cloneNode_boolean_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_cloneNode_boolean_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String elname = "SCRIPT"; - Element e = d.createElement(elname); - if (e == null) - { - TestLoader.logErrPrint("Could not create Element " + elname); - return BWBaseTest.FAILED; - } - - String nodename = "HEAD"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - if (n.getNodeName().compareTo(nodename) == 0) - { - Node nNode = n.cloneNode(true); - if (nNode == null) - { - TestLoader.logErrPrint("Could not cloneNode " + nodename); - return BWBaseTest.FAILED; - } - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_cloneNode_boolean_1.java b/mozilla/java/dom/tests/src/api/NodeImpl_cloneNode_boolean_1.java deleted file mode 100755 index f03c995d7d5..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_cloneNode_boolean_1.java +++ /dev/null @@ -1,144 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_cloneNode_boolean_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_cloneNode_boolean_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String elname = "SCRIPT"; - Element e = d.createElement(elname); - if (e == null) - { - TestLoader.logErrPrint("Could not create Element " + elname); - return BWBaseTest.FAILED; - } - - String nodename = "HEAD"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - if (n.getNodeName().compareTo(nodename) == 0) - { - Node nNode = n.cloneNode(false); - if (nNode == null) - { - TestLoader.logErrPrint("Could not clone Node " +nodename); - return BWBaseTest.FAILED; - } - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_equals_Object_0.java b/mozilla/java/dom/tests/src/api/NodeImpl_equals_Object_0.java deleted file mode 100755 index 7a1ef209b09..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_equals_Object_0.java +++ /dev/null @@ -1,164 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_equals_Object_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_equals_Object_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String elname = "SCRIPT"; - Element e = d.createElement(elname); - if (e == null) - { - TestLoader.logErrPrint("Could not create Element " + elname); - return BWBaseTest.FAILED; - } - - String nodename = "HEAD"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - if (n.getNodeName().compareTo(nodename) == 0) - { - Node nNode = n.appendChild(e); - if (nNode == null) - { - TestLoader.logErrPrint("Could not append Child " +elname); - return BWBaseTest.FAILED; - } - - nodename = "SCRIPT"; - nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int newlen = nl.getLength(); - - Node scriptnode = nl.item(0); - if (scriptnode == null) - { - TestLoader.logErrPrint("Could not find SCRIPT node "); - return BWBaseTest.FAILED; - } - if (scriptnode.equals(null)) - { - TestLoader.logErrPrint("Nodes should not have been equal...."); - return BWBaseTest.FAILED; - } else { - TestLoader.logErrPrint("Nodes are not equal...."); - } - } - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_equals_Object_1.java b/mozilla/java/dom/tests/src/api/NodeImpl_equals_Object_1.java deleted file mode 100755 index 37cc4221c07..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_equals_Object_1.java +++ /dev/null @@ -1,165 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_equals_Object_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_equals_Object_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String elname = "SCRIPT"; - Element e = d.createElement(elname); - if (e == null) - { - TestLoader.logErrPrint("Could not create Element " + elname); - return BWBaseTest.FAILED; - } - - String nodename = "HEAD"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - if (n.getNodeName().compareTo(nodename) == 0) - { - Node nNode = n.appendChild(e); - if (nNode == null) - { - TestLoader.logErrPrint("Could not append Child " +elname); - return BWBaseTest.FAILED; - } - - nodename = "SCRIPT"; - nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int newlen = nl.getLength(); - - Node scriptnode = nl.item(0); - if (scriptnode == null) - { - TestLoader.logErrPrint("Could not find SCRIPT node "); - return BWBaseTest.FAILED; - } - if (scriptnode.equals(nNode)) - { - TestLoader.logErrPrint("Nodes are equal...."); - } else { - TestLoader.logErrPrint("Nodes are not equal...."); - return BWBaseTest.FAILED; - } - } - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_equals_Object_2.java b/mozilla/java/dom/tests/src/api/NodeImpl_equals_Object_2.java deleted file mode 100755 index f992607fe5c..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_equals_Object_2.java +++ /dev/null @@ -1,153 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_equals_Object_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_equals_Object_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String elname = "SCRIPT"; - Element e = d.createElement(elname); - if (e == null) - { - TestLoader.logErrPrint("Could not create Element " + elname); - return BWBaseTest.FAILED; - } - - String nodename = "HEAD"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - if (n.getNodeName().compareTo(nodename) == 0) - { - Node nNode = n.cloneNode(false); - if (nNode == null) - { - TestLoader.logErrPrint("Could not clone Child " +elname); - return BWBaseTest.FAILED; - } - - if (nNode.equals(n)) - { - TestLoader.logErrPrint("Nodes are not equal " ); - return BWBaseTest.FAILED; - } else { - TestLoader.logErrPrint("Nodes are equal " ); - } - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_equals_Object_3.java b/mozilla/java/dom/tests/src/api/NodeImpl_equals_Object_3.java deleted file mode 100755 index 6460649ac76..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_equals_Object_3.java +++ /dev/null @@ -1,139 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_equals_Object_3 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_equals_Object_3() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String elname = "SCRIPT"; - Element e = d.createElement(elname); - if (e == null) - { - TestLoader.logErrPrint("Could not create Element " + elname); - return BWBaseTest.FAILED; - } - - Element newe = d.createElement(elname); - if (newe == null) - { - TestLoader.logErrPrint("Could not create Element " + elname); - return BWBaseTest.FAILED; - } - - if (e.equals(newe)) - { - TestLoader.logErrPrint("Nodes are equal..."); - } else { - TestLoader.logErrPrint("Nodes are not equal..."); - return BWBaseTest.FAILED; - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_getAttributes.java b/mozilla/java/dom/tests/src/api/NodeImpl_getAttributes.java deleted file mode 100755 index 56645cfdbbe..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_getAttributes.java +++ /dev/null @@ -1,140 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_getAttributes extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_getAttributes() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - String elname = "SCRIPT"; - Element e = d.createElement(elname); - if (e == null) - { - TestLoader.logErrPrint("Could not create Element " + elname); - return BWBaseTest.FAILED; - } - - String nodename = "HEAD"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - if (n.getNodeName().compareTo(nodename) == 0) - { - Node addedNode = n.appendChild(e); - NamedNodeMap map = n.getAttributes(); - if (map == null) - { - TestLoader.logErrPrint("Could not getAttributes for node " + nodename); - return BWBaseTest.FAILED; - } - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_getChildNodes.java b/mozilla/java/dom/tests/src/api/NodeImpl_getChildNodes.java deleted file mode 100755 index bdd7f428672..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_getChildNodes.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_getChildNodes extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_getChildNodes() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - String elname = "SCRIPT"; - Element e = d.createElement(elname); - if (e == null) - { - TestLoader.logErrPrint("Could not create Element " + elname); - return BWBaseTest.FAILED; - } - - String nodename = "HTML"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - if (n.getNodeName().compareTo(nodename) == 0) - { - NodeList childList = n.getChildNodes(); - if (childList == null) - { - TestLoader.logErrPrint("Could not get childNodes for node " + nodename); - return BWBaseTest.FAILED; - } - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_getFirstChild.java b/mozilla/java/dom/tests/src/api/NodeImpl_getFirstChild.java deleted file mode 100755 index f7e642cf1cd..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_getFirstChild.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_getFirstChild extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_getFirstChild() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - String elname = "SCRIPT"; - Element e = d.createElement(elname); - if (e == null) - { - TestLoader.logErrPrint("Could not create Element " + elname); - return BWBaseTest.FAILED; - } - - String nodename = "HTML"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - if (n.getNodeName().compareTo(nodename) == 0) - { - Node cNode = n.getFirstChild(); - if (cNode == null) - { - TestLoader.logErrPrint("Could not getFirstChild for node " + nodename); - return BWBaseTest.FAILED; - } - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_getLastChild.java b/mozilla/java/dom/tests/src/api/NodeImpl_getLastChild.java deleted file mode 100755 index cdc0ae23da6..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_getLastChild.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_getLastChild extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_getLastChild() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - String elname = "SCRIPT"; - Element e = d.createElement(elname); - if (e == null) - { - TestLoader.logErrPrint("Could not create Element " + elname); - return BWBaseTest.FAILED; - } - - String nodename = "HTML"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - if (n.getNodeName().compareTo(nodename) == 0) - { - Node cNode = n.getLastChild(); - if (cNode == null) - { - TestLoader.logErrPrint("Could not getLastChild for node " + nodename); - return BWBaseTest.FAILED; - } - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_getLocalName.java b/mozilla/java/dom/tests/src/api/NodeImpl_getLocalName.java deleted file mode 100755 index 16eafe07c00..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_getLocalName.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_getLocalName extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_getLocalName() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - String nsuri = "xmlns:edi='http://ec.com/schema'"; - String qname = "body"; - try { - Node e = d.createElement(qname); - String lname = ((Node)e).getLocalName(); - if (lname == null) { // || !lname.equals("body")) { - TestLoader.logPrint("getLocalName() returned incorrect value: "+lname); - return BWBaseTest.FAILED; - } - } catch (Exception e) { - TestLoader.logPrint("getLocalName(): Exception: "+e); - return BWBaseTest.FAILED; - } - } else { - System.out.println("getLocalName(): Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_getNamespaceURI.java b/mozilla/java/dom/tests/src/api/NodeImpl_getNamespaceURI.java deleted file mode 100755 index 0c7d5a70af5..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_getNamespaceURI.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_getNamespaceURI extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_getNamespaceURI() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - String nsuri = "xmlns:edi='http://ec.com/schema'"; - String qname = "body"; - try { - Element e = d.createElement(qname); - String uri = ((Node)e).getNamespaceURI(); - if (uri == null) { // || !uri.equals(nsuri)) { - TestLoader.logPrint("getNamespaceURI() returned incorrect value: "+uri); - return BWBaseTest.FAILED; - } - } catch (Exception e) { - TestLoader.logPrint("Exception: "+e); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_getNextSibling.java b/mozilla/java/dom/tests/src/api/NodeImpl_getNextSibling.java deleted file mode 100755 index ede3718b879..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_getNextSibling.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_getNextSibling extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_getNextSibling() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - String elname = "SCRIPT"; - Element e = d.createElement(elname); - if (e == null) - { - TestLoader.logErrPrint("Could not create Element " + elname); - return BWBaseTest.FAILED; - } - - String nodename = "HEAD"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - if (n.getNodeName().compareTo(nodename) == 0) - { - Node sNode = n.getNextSibling(); - if (sNode == null) - { - TestLoader.logErrPrint("Could inot getNextSibling for node " + nodename); - return BWBaseTest.FAILED; - } - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_getNodeName.java b/mozilla/java/dom/tests/src/api/NodeImpl_getNodeName.java deleted file mode 100755 index e79f5828e56..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_getNodeName.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_getNodeName extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_getNodeName() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - String elname = "SCRIPT"; - Element e = d.createElement(elname); - if (e == null) - { - TestLoader.logErrPrint("Could not create Element " + elname); - return BWBaseTest.FAILED; - } - - String nodename = "HEAD"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - String str = n.getNodeName(); - if (str == null || (str.compareTo(nodename) != 0)) - { - TestLoader.logErrPrint("Could not getNodeName for Node " + nodename); - return BWBaseTest.FAILED; - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_getNodeType.java b/mozilla/java/dom/tests/src/api/NodeImpl_getNodeType.java deleted file mode 100755 index 9866326d4f2..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_getNodeType.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_getNodeType extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_getNodeType() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - String elname = "SCRIPT"; - Element e = d.createElement(elname); - if (e == null) - { - TestLoader.logErrPrint("Could not create Element " + elname); - return BWBaseTest.FAILED; - } - - String nodename = "HEAD"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - if (n.getNodeName().compareTo(nodename) == 0) - { - int type = (int)n.getNodeType(); - if ( type != Node.ELEMENT_NODE) - { - TestLoader.logErrPrint("Unknown NodeType found for node " + nodename); - return BWBaseTest.FAILED; - } - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_getNodeValue.java b/mozilla/java/dom/tests/src/api/NodeImpl_getNodeValue.java deleted file mode 100755 index 9e46acb6120..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_getNodeValue.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_getNodeValue extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_getNodeValue() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - String elname = "SCRIPT"; - Element e = d.createElement(elname); - if (e == null) - { - TestLoader.logErrPrint("Could not create Element " + elname); - return BWBaseTest.FAILED; - } - - String nodename = "HEAD"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - if (n.getNodeName().compareTo(nodename) == 0) - { - String retstr = n.getNodeValue(); - if (retstr == null) - { - TestLoader.logErrPrint("Could not getNodeValue for Node " + nodename); - return BWBaseTest.FAILED; - } - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_getOwnerDocument.java b/mozilla/java/dom/tests/src/api/NodeImpl_getOwnerDocument.java deleted file mode 100755 index f5fa49e8245..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_getOwnerDocument.java +++ /dev/null @@ -1,130 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_getOwnerDocument extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_getOwnerDocument() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - String nodename = "HTML"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - if (n.getNodeName().compareTo(nodename) == 0) - { - Document doc = n.getOwnerDocument(); - if (doc == null) - { - TestLoader.logErrPrint("Could not getOwnerDocument for node " + nodename); - return BWBaseTest.FAILED; - } - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_getParentNode.java b/mozilla/java/dom/tests/src/api/NodeImpl_getParentNode.java deleted file mode 100755 index 06c94760970..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_getParentNode.java +++ /dev/null @@ -1,131 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_getParentNode extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_getParentNode() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - - String nodename = "HTML"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - if (n.getNodeName().compareTo(nodename) == 0) - { - Node pNode = n.getParentNode(); - if (pNode == null) - { - TestLoader.logErrPrint("Could not getParentNode for node " + nodename); - return BWBaseTest.FAILED; - } - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_getPrefix.java b/mozilla/java/dom/tests/src/api/NodeImpl_getPrefix.java deleted file mode 100755 index 191f110af02..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_getPrefix.java +++ /dev/null @@ -1,138 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_getPrefix extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_getPrefix() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - setUnsupported(); - - - Document d = (Document)tobj; - if (d != null) - { - String elname = "SCRIPT"; - Element e = d.createElement(elname); - if (e == null) - { - TestLoader.logErrPrint("Could not create Element " + elname); - return BWBaseTest.FAILED; - } - - String nodename = "HEAD"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - try { - String str = n.getPrefix(); - TestLoader.logErrPrint("getPrefix is an unsupported method..."); - return BWBaseTest.FAILED; - } catch (UnsupportedOperationException ue) { - TestLoader.logErrPrint("UNSUPPORTED METHOD"); - return BWBaseTest.PASSED; - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_getPrefix_0.java b/mozilla/java/dom/tests/src/api/NodeImpl_getPrefix_0.java deleted file mode 100644 index 9c3c2606cc2..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_getPrefix_0.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_getPrefix_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_getPrefix_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - String nsuri = "xmlns:edi='http://ec.com/schema'"; - String qname = "body"; - try { - Node e = d.createElement(qname); - String prefix = ((Node)e).getPrefix(); - if (prefix != null && !prefix.equals("")) { - TestLoader.logPrint("getPrefix() returned incorrect value: "+prefix); - return BWBaseTest.FAILED; - } - } catch (Exception e) { - TestLoader.logPrint("getPrefix(): Exception: "+e); - return BWBaseTest.FAILED; - } - } else { - System.out.println("getPrefix(): Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_getPrefix_1.java b/mozilla/java/dom/tests/src/api/NodeImpl_getPrefix_1.java deleted file mode 100644 index 53563c85a50..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_getPrefix_1.java +++ /dev/null @@ -1,126 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_getPrefix_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_getPrefix_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - String nsuri = "xmlns:edi='http://ec.com/schema'"; - String qname = "body"; - try { - Element e = d.createElement(qname); - e.setPrefix("edi"); - String prefix = ((Node)e).getPrefix(); - if (prefix == null || !prefix.equals("edi")) { - TestLoader.logPrint("getPrefix() returned incorrect value: "+prefix); - return BWBaseTest.FAILED; - } - } catch (Exception e) { - TestLoader.logPrint("getPrefix(): Exception: "+e); - return BWBaseTest.FAILED; - } - } else { - System.out.println("getPrefix(): Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_getPreviousSibling.java b/mozilla/java/dom/tests/src/api/NodeImpl_getPreviousSibling.java deleted file mode 100755 index e5ba006a9c3..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_getPreviousSibling.java +++ /dev/null @@ -1,130 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_getPreviousSibling extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_getPreviousSibling() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - String nodename = "BODY"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - if (n.getNodeName().compareTo(nodename) == 0) - { - Node pNode = n.getPreviousSibling(); - if (pNode == null) - { - TestLoader.logErrPrint("Could not getPreviousSibling for node " + nodename); - return BWBaseTest.FAILED; - } - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_hasChildNodes.java b/mozilla/java/dom/tests/src/api/NodeImpl_hasChildNodes.java deleted file mode 100755 index bf2d32bf12e..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_hasChildNodes.java +++ /dev/null @@ -1,129 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_hasChildNodes extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_hasChildNodes() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - String nodename = "HTML"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - if (n.getNodeName().compareTo(nodename) == 0) - { - if (!(n.hasChildNodes())) - { - TestLoader.logErrPrint("Node " + nodename + " has Child Nodes..."); - return BWBaseTest.FAILED; - } - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_hashCode.java b/mozilla/java/dom/tests/src/api/NodeImpl_hashCode.java deleted file mode 100755 index eebb68399d2..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_hashCode.java +++ /dev/null @@ -1,121 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_hashCode extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_hashCode() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - String nodename = "HTML"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - int hcode = n.hashCode(); - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_insertBefore_Node_Node_0.java b/mozilla/java/dom/tests/src/api/NodeImpl_insertBefore_Node_Node_0.java deleted file mode 100755 index 673258ecfaf..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_insertBefore_Node_Node_0.java +++ /dev/null @@ -1,147 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_insertBefore_Node_Node_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_insertBefore_Node_Node_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String elname = "SCRIPT"; - Element e = d.createElement(elname); - if (e == null) - { - TestLoader.logErrPrint("Could not create Element " + elname); - return BWBaseTest.FAILED; - } - - String nodename = "HEAD"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - if (n.getNodeName().compareTo(nodename) == 0) - { - Node iNode = n.insertBefore(null, null); - if (iNode != null) - { - TestLoader.logErrPrint("A Null Node cannot be inserted"); - return BWBaseTest.FAILED; - } - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_insertBefore_Node_Node_1.java b/mozilla/java/dom/tests/src/api/NodeImpl_insertBefore_Node_Node_1.java deleted file mode 100755 index affb683ad7a..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_insertBefore_Node_Node_1.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_insertBefore_Node_Node_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_insertBefore_Node_Node_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String elname = "SCRIPT"; - Element e = d.createElement(elname); - if (e == null) - { - TestLoader.logErrPrint("Could not create Element " + elname); - return BWBaseTest.FAILED; - } - - String nodename = "HEAD"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - if (n.getNodeName().compareTo(nodename) == 0) - { - Node refChild = n.appendChild(e); - if (refChild == null) - { - TestLoader.logErrPrint("Could not appendChild " + elname); - return BWBaseTest.FAILED; - } - - Node iNode = n.insertBefore(null, refChild); - if (iNode != null) - { - TestLoader.logErrPrint("A Null Node cannot be inserted..."); - return BWBaseTest.FAILED; - } - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_insertBefore_Node_Node_2.java b/mozilla/java/dom/tests/src/api/NodeImpl_insertBefore_Node_Node_2.java deleted file mode 100755 index e69a4fde757..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_insertBefore_Node_Node_2.java +++ /dev/null @@ -1,155 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_insertBefore_Node_Node_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_insertBefore_Node_Node_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String elname = "SCRIPT"; - Element e = d.createElement(elname); - if (e == null) - { - TestLoader.logErrPrint("Could not create Element " + elname); - return BWBaseTest.FAILED; - } - - String newelname = "BASE"; - Element newChild = d.createElement(newelname); - if (newChild == null) - { - TestLoader.logErrPrint("Could not create Element " + newelname); - return BWBaseTest.FAILED; - } - - String nodename = "HEAD"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - if (n.getNodeName().compareTo(nodename) == 0) - { - Node iNode = n.insertBefore(newChild, null); - if (iNode == null) - { - TestLoader.logErrPrint("Node should be inserted at end of all chidren..."); - return BWBaseTest.FAILED; - } - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_insertBefore_Node_Node_3.java b/mozilla/java/dom/tests/src/api/NodeImpl_insertBefore_Node_Node_3.java deleted file mode 100755 index f4a8b4ec6ec..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_insertBefore_Node_Node_3.java +++ /dev/null @@ -1,162 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_insertBefore_Node_Node_3 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_insertBefore_Node_Node_3() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String elname = "SCRIPT"; - Element e = d.createElement(elname); - if (e == null) - { - TestLoader.logErrPrint("Could not create Element " + elname); - return BWBaseTest.FAILED; - } - - String newelname = "BASE"; - Element newChild = d.createElement(newelname); - if (newChild == null) - { - TestLoader.logErrPrint("Could not create Element " + newelname); - return BWBaseTest.FAILED; - } - - String nodename = "HEAD"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - if (n.getNodeName().compareTo(nodename) == 0) - { - Node refChild = n.appendChild(e); - if (refChild == null) - { - TestLoader.logErrPrint("Could not appendChild " + elname); - return BWBaseTest.FAILED; - } - - Node iNode = n.insertBefore(newChild, refChild); - if (iNode == null) - { - TestLoader.logErrPrint("Could not insert Node " + newelname + " before node " + elname); - return BWBaseTest.FAILED; - } - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_normalize.java b/mozilla/java/dom/tests/src/api/NodeImpl_normalize.java deleted file mode 100755 index 08ccf9e26be..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_normalize.java +++ /dev/null @@ -1,137 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_normalize extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_normalize() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - setUnsupported(); - - - Document d = (Document)tobj; - if (d != null) - { - String elname = "SCRIPT"; - Element e = d.createElement(elname); - if (e == null) - { - TestLoader.logErrPrint("Could not create Element " + elname); - return BWBaseTest.FAILED; - } - - String nodename = "HEAD"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - try { - n.normalize(); - TestLoader.logErrPrint("normalize is an unsupported method..."); - return BWBaseTest.FAILED; - } catch (UnsupportedOperationException ue) { - TestLoader.logErrPrint("UNSUPPORTED METHOD"); - return BWBaseTest.PASSED; - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_removeChild_Node_0.java b/mozilla/java/dom/tests/src/api/NodeImpl_removeChild_Node_0.java deleted file mode 100755 index 3501d7320ad..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_removeChild_Node_0.java +++ /dev/null @@ -1,154 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_removeChild_Node_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_removeChild_Node_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String elname = "SCRIPT"; - Element e = d.createElement(elname); - if (e == null) - { - TestLoader.logErrPrint("Could not create Element " + elname); - return BWBaseTest.FAILED; - } - - String newelname = "BASE"; - Element newel = d.createElement(newelname); - if (newel == null) - { - TestLoader.logErrPrint("Could not create Element " + newelname); - return BWBaseTest.FAILED; - } - - String nodename = "HEAD"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - if (n.getNodeName().compareTo(nodename) == 0) - { - Node rNode = n.removeChild(null); - if (rNode != null) - { - TestLoader.logErrPrint("NULL node cannot be removed..."); - return BWBaseTest.FAILED; - } - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_removeChild_Node_1.java b/mozilla/java/dom/tests/src/api/NodeImpl_removeChild_Node_1.java deleted file mode 100755 index 8d94bba0c25..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_removeChild_Node_1.java +++ /dev/null @@ -1,153 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_removeChild_Node_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_removeChild_Node_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String elname = "SCRIPT"; - Element e = d.createElement(elname); - if (e == null) - { - TestLoader.logErrPrint("Could not create Element " + elname); - return BWBaseTest.FAILED; - } - - String nodename = "HEAD"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - if (n.getNodeName().compareTo(nodename) == 0) - { - Node iNode = n.appendChild(e); - if (iNode == null) - { - TestLoader.logErrPrint("Could not Append Child " + elname + " to Node " + nodename); - return BWBaseTest.FAILED; - } - - Node rNode = n.removeChild(iNode); - if (rNode == null) - { - TestLoader.logErrPrint("Node " + elname + " could not be removed from node " + nodename); - return BWBaseTest.FAILED; - } - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_replaceChild_Node_Node_0.java b/mozilla/java/dom/tests/src/api/NodeImpl_replaceChild_Node_Node_0.java deleted file mode 100755 index ea0ab648733..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_replaceChild_Node_Node_0.java +++ /dev/null @@ -1,139 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_replaceChild_Node_Node_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_replaceChild_Node_Node_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String nodename = "HEAD"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - if (n.getNodeName().compareTo(nodename) == 0) - { - Node rNode = n.replaceChild(null, null); - if (rNode != null) - { - TestLoader.logErrPrint("NULL node cannot be replaced..."); - return BWBaseTest.FAILED; - } - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_replaceChild_Node_Node_1.java b/mozilla/java/dom/tests/src/api/NodeImpl_replaceChild_Node_Node_1.java deleted file mode 100755 index 028d3a30d83..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_replaceChild_Node_Node_1.java +++ /dev/null @@ -1,155 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_replaceChild_Node_Node_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_replaceChild_Node_Node_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - - try { - String elname = "SCRIPT"; - Element e = d.createElement(elname); - if (e == null) - { - TestLoader.logErrPrint("Could not create Element " + elname); - return BWBaseTest.FAILED; - } - - String nodename = "HEAD"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - if (n.getNodeName().compareTo(nodename) == 0) - { - Node oldChild = n.appendChild(e); - if (oldChild == null) - { - TestLoader.logErrPrint("Could Not appendChild " + elname); - return BWBaseTest.FAILED; - } - - Node iNode = n.replaceChild(null, oldChild); - if (iNode != null) - { - TestLoader.logErrPrint("Cannot Replace NULL node"); - return BWBaseTest.FAILED; - } - - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_replaceChild_Node_Node_2.java b/mozilla/java/dom/tests/src/api/NodeImpl_replaceChild_Node_Node_2.java deleted file mode 100755 index 4dd46abee7d..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_replaceChild_Node_Node_2.java +++ /dev/null @@ -1,149 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_replaceChild_Node_Node_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_replaceChild_Node_Node_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - - try { - String newelname = "BASE"; - Element newChild = d.createElement(newelname); - if (newChild == null) - { - TestLoader.logErrPrint("Could not create Element " + newelname); - return BWBaseTest.FAILED; - } - - String nodename = "HEAD"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - if (n.getNodeName().compareTo(nodename) == 0) - { - Node iNode = n.replaceChild(newChild, null); - if (iNode != null) - { - TestLoader.logErrPrint("Cannot Replace NULL node"); - return BWBaseTest.FAILED; - } - - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_replaceChild_Node_Node_3.java b/mozilla/java/dom/tests/src/api/NodeImpl_replaceChild_Node_Node_3.java deleted file mode 100755 index 6821c827bce..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_replaceChild_Node_Node_3.java +++ /dev/null @@ -1,162 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_replaceChild_Node_Node_3 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_replaceChild_Node_Node_3() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String elname = "SCRIPT"; - Element e = d.createElement(elname); - if (e == null) - { - TestLoader.logErrPrint("Could not create Element " + elname); - return BWBaseTest.FAILED; - } - - String newelname = "BASE"; - Element newChild = d.createElement(elname); - if (newChild == null) - { - TestLoader.logErrPrint("Could not create Element " + newelname); - return BWBaseTest.FAILED; - } - - String nodename = "HEAD"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - if (n.getNodeName().compareTo(nodename) == 0) - { - Node oldChild = n.appendChild(e); - if (oldChild == null) - { - TestLoader.logErrPrint("Could Not appendChild " + elname); - return BWBaseTest.FAILED; - } - - Node rNode = n.replaceChild(newChild, oldChild); - if (rNode == null) - { - TestLoader.logErrPrint("Could not Replce Node " + elname + " with node " + newelname); - return BWBaseTest.FAILED; - } - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_setNodeValue_String_0.java b/mozilla/java/dom/tests/src/api/NodeImpl_setNodeValue_String_0.java deleted file mode 100755 index 43e95e40c31..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_setNodeValue_String_0.java +++ /dev/null @@ -1,135 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_setNodeValue_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_setNodeValue_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - Document d = (Document)tobj; - if (d != null) - { - try { - String name = "nom"; - Attr a = d.createAttribute(name); - if (a == null) - { - TestLoader.logErrPrint("Could Not create Attribute " + name); - return BWBaseTest.FAILED; - } - - String newval = null; - a.setNodeValue(newval); - if (a.getNodeValue() == null) - { - TestLoader.logErrPrint("Node Value cannot be set to null..."); - return BWBaseTest.FAILED; - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_setNodeValue_String_1.java b/mozilla/java/dom/tests/src/api/NodeImpl_setNodeValue_String_1.java deleted file mode 100755 index 7db4e4adef2..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_setNodeValue_String_1.java +++ /dev/null @@ -1,134 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_setNodeValue_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_setNodeValue_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String name = "nom"; - Attr a = d.createAttribute(name); - if (a == null) - { - TestLoader.logErrPrint("Could Not create Attribute " + name); - return BWBaseTest.FAILED; - } - - String newval = "mybody"; - a.setNodeValue(newval); - if ((a.getNodeValue()).compareTo(newval) != 0) - { - TestLoader.logErrPrint("Could Not setNodeValue for node " + name + " to " + newval); - return BWBaseTest.FAILED; - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_setPrefix_String_0.java b/mozilla/java/dom/tests/src/api/NodeImpl_setPrefix_String_0.java deleted file mode 100755 index d1de9b4168e..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_setPrefix_String_0.java +++ /dev/null @@ -1,124 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_setPrefix_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_setPrefix_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - - Document d = (Document)tobj; - if (d != null) - { - String nsuri = "xmlns:edi='http://ec.com/schema'"; - String qname = "body"; - try { - Node e = d.createElement(qname); - ((Node)e).setPrefix(null); - TestLoader.logPrint("getPrefix() didn't throw exception"); - return BWBaseTest.FAILED; - - } catch (Exception e) { - TestLoader.logPrint("Exception: "+e); - return BWBaseTest.PASSED; - } - - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_setPrefix_String_1.java b/mozilla/java/dom/tests/src/api/NodeImpl_setPrefix_String_1.java deleted file mode 100755 index a771eb3f376..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_setPrefix_String_1.java +++ /dev/null @@ -1,126 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_setPrefix_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_setPrefix_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - - Document d = (Document)tobj; - if (d != null) - { - String nsuri = "xmlns:edi='http://ec.com/schema'"; - String qname = "body"; - String prefix = "edi"; - try { - Node e = d.createElement(qname); - ((Node)e).setPrefix(prefix); - if (!((Node)e).getPrefix().equals(prefix)) { - TestLoader.logPrint("getPrefix returned incorrect value"); - return BWBaseTest.FAILED; - } - } catch (Exception e) { - TestLoader.logPrint("Exception: "+e); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_supports_String_String_0.java b/mozilla/java/dom/tests/src/api/NodeImpl_supports_String_String_0.java deleted file mode 100755 index 46fefc179be..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_supports_String_String_0.java +++ /dev/null @@ -1,121 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_supports_String_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_supports_String_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - String feature = null; - String ver = null; - if (((Node)d).supports(feature, ver)) {}; - TestLoader.logErrPrint("Node.supports didn't throw exception..."); - return BWBaseTest.FAILED; - } catch (Exception e) { - TestLoader.logErrPrint("Exception: "+e); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_supports_String_String_1.java b/mozilla/java/dom/tests/src/api/NodeImpl_supports_String_String_1.java deleted file mode 100755 index 8f5be3bb4c6..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_supports_String_String_1.java +++ /dev/null @@ -1,122 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_supports_String_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_supports_String_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - String feature = null; - String ver = "2.0"; - if (((Node)d).supports(feature, ver)) {}; - TestLoader.logErrPrint("Node.supports didn't throw exception..."); - return BWBaseTest.FAILED; - } catch (Exception e) { - TestLoader.logErrPrint("Exception: "+e); - return BWBaseTest.PASSED; - } - - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_supports_String_String_2.java b/mozilla/java/dom/tests/src/api/NodeImpl_supports_String_String_2.java deleted file mode 100755 index c7ce57eef0e..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_supports_String_String_2.java +++ /dev/null @@ -1,123 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_supports_String_String_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_supports_String_String_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - String feature = "xml"; - String ver = null; - if (((Node)d).supports(feature, ver) == false) { - TestLoader.logErrPrint("Node.supports returned incorrect value"); - return BWBaseTest.FAILED; - } - } catch (Exception e) { - TestLoader.logErrPrint("Exception: "+e); - return BWBaseTest.FAILED; - } - - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_supports_String_String_3.java b/mozilla/java/dom/tests/src/api/NodeImpl_supports_String_String_3.java deleted file mode 100755 index fa71792a3f2..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_supports_String_String_3.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_supports_String_String_3 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_supports_String_String_3() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - - - Document d = (Document)tobj; - if (d != null) - { - try { - String feature = "xml"; - String ver = "1.0"; - if (((Node)d).supports(feature, ver) == false) { - TestLoader.logErrPrint("Node.supports returned incorrect value..."); - return BWBaseTest.FAILED; - } - } catch (Exception e) { - TestLoader.logErrPrint("Exception: "+e); - return BWBaseTest.FAILED; - } - - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeImpl_toString.java b/mozilla/java/dom/tests/src/api/NodeImpl_toString.java deleted file mode 100755 index 9b22d7215df..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeImpl_toString.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeImpl_toString extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeImpl_toString() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String nodename = "HTML"; - NodeList nl = d.getElementsByTagName(nodename); - if (nl != null) - { - int len = nl.getLength(); - - Node n = nl.item(0); - if (n != null) - { - String s = n.toString(); - if (s == null) - { - TestLoader.logErrPrint("toString returned null for " + nodename); - return BWBaseTest.FAILED; - } - } - } else { - TestLoader.logErrPrint("Could not find Node " + nodename); - return BWBaseTest.FAILED; - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeListImpl_getLength.java b/mozilla/java/dom/tests/src/api/NodeListImpl_getLength.java deleted file mode 100755 index 79273c9312a..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeListImpl_getLength.java +++ /dev/null @@ -1,122 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeListImpl_getLength extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeListImpl_getLength() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - NodeList nl = d.getElementsByTagName("*"); - if (nl == null) - { - TestLoader.logErrPrint("Could not Get NodeList ..."); - return BWBaseTest.FAILED; - } else { - int len = nl.getLength(); - if (len < 0) - { - TestLoader.logErrPrint("NodeList Length is less than 0"); - return BWBaseTest.FAILED; - } - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeListImpl_item_int_0.java b/mozilla/java/dom/tests/src/api/NodeListImpl_item_int_0.java deleted file mode 100755 index 0a23e38fb3f..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeListImpl_item_int_0.java +++ /dev/null @@ -1,128 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeListImpl_item_int_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeListImpl_item_int_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - NodeList nl = d.getElementsByTagName("*"); - if (nl == null) - { - TestLoader.logErrPrint("Could not Get Document NodeList ..."); - return BWBaseTest.FAILED; - } else { - Node n = nl.item(Integer.MIN_VALUE); - if (n != null) - { - TestLoader.logErrPrint("NodeList Item is not null for item " + Integer.MIN_VALUE); - return BWBaseTest.FAILED; - } - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeListImpl_item_int_1.java b/mozilla/java/dom/tests/src/api/NodeListImpl_item_int_1.java deleted file mode 100755 index db761e484c5..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeListImpl_item_int_1.java +++ /dev/null @@ -1,128 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeListImpl_item_int_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeListImpl_item_int_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - NodeList nl = d.getElementsByTagName("*"); - if (nl == null) - { - TestLoader.logErrPrint("Could not Get Document NodeList ..."); - return BWBaseTest.FAILED; - } else { - Node n = nl.item(Integer.MAX_VALUE); - if (n != null) - { - TestLoader.logErrPrint("NodeList Item is not null for item " + Integer.MAX_VALUE); - return BWBaseTest.FAILED; - } - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/NodeListImpl_item_int_2.java b/mozilla/java/dom/tests/src/api/NodeListImpl_item_int_2.java deleted file mode 100755 index 3e1b004bc67..00000000000 --- a/mozilla/java/dom/tests/src/api/NodeListImpl_item_int_2.java +++ /dev/null @@ -1,129 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class NodeListImpl_item_int_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public NodeListImpl_item_int_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - NodeList nl = d.getElementsByTagName("*"); - if (nl == null) - { - TestLoader.logErrPrint("Could not Get Document NodeList ..."); - return BWBaseTest.FAILED; - } else { - Node n = nl.item(0); - if (n == null) - { - TestLoader.logErrPrint("NodeList Item is null for item 0..."); - return BWBaseTest.FAILED; - } - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ProcessingInstructionImpl_getData.java b/mozilla/java/dom/tests/src/api/ProcessingInstructionImpl_getData.java deleted file mode 100755 index 4e732e68b8b..00000000000 --- a/mozilla/java/dom/tests/src/api/ProcessingInstructionImpl_getData.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ProcessingInstructionImpl_getData extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ProcessingInstructionImpl_getData() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String target="xml"; - String data="version=\"1.0\""; - ProcessingInstruction pi = d.createProcessingInstruction(target, data); - if (pi == null) { - TestLoader.logErrPrint("Could not Create Processing Instruction with target " + target + " and data " + data); - return BWBaseTest.FAILED; - } else { - String str = pi.getData(); - if (str == null) { - TestLoader.logErrPrint("Processing instruction 'getData()' is NULL ..."); - return BWBaseTest.FAILED; - } -System.out.println("getData is " + str); - if (str.compareTo(data) != 0) - { - TestLoader.logErrPrint("Processing instruction 'getData()' value is incorrect ..."); - return BWBaseTest.FAILED; - } - - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ProcessingInstructionImpl_getTarget.java b/mozilla/java/dom/tests/src/api/ProcessingInstructionImpl_getTarget.java deleted file mode 100755 index 2fa64c4adcc..00000000000 --- a/mozilla/java/dom/tests/src/api/ProcessingInstructionImpl_getTarget.java +++ /dev/null @@ -1,135 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ProcessingInstructionImpl_getTarget extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ProcessingInstructionImpl_getTarget() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String target="xml"; - String data="version=\"1.0\""; - ProcessingInstruction pi = d.createProcessingInstruction(target, data); - if (pi == null) { - TestLoader.logErrPrint("Could not Create Processing Instruction with target " + target + " and data " + data); - return BWBaseTest.FAILED; - } else { - String str = pi.getTarget(); - if (str == null) { - TestLoader.logErrPrint("Processing instruction 'getTarget()' is NULL ..."); - return BWBaseTest.FAILED; - } - System.out.println("getTarget is " + str); - if (str.compareTo(target) != 0) - { - TestLoader.logErrPrint("Processing instruction 'getTarget()' va;ue is incorrect ..."); - return BWBaseTest.FAILED; - } - - } - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ProcessingInstructionImpl_setData_String_0.java b/mozilla/java/dom/tests/src/api/ProcessingInstructionImpl_setData_String_0.java deleted file mode 100755 index 7b7303da751..00000000000 --- a/mozilla/java/dom/tests/src/api/ProcessingInstructionImpl_setData_String_0.java +++ /dev/null @@ -1,132 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ProcessingInstructionImpl_setData_String_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ProcessingInstructionImpl_setData_String_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String target="xml"; - String data="version=\"1.0\""; - ProcessingInstruction pi = d.createProcessingInstruction(target, data); - if (pi == null) { - TestLoader.logErrPrint("Could not Create Processing Instruction with target " + target + " and data " + data); - return BWBaseTest.FAILED; - } else { - pi.setData(null); - if ((pi.getData()).compareTo(data) != 0) - { - TestLoader.logErrPrint("Processing Instruction setData with null value failed for target " + target); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.PASSED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/ProcessingInstructionImpl_setData_String_1.java b/mozilla/java/dom/tests/src/api/ProcessingInstructionImpl_setData_String_1.java deleted file mode 100755 index 5d007e3b639..00000000000 --- a/mozilla/java/dom/tests/src/api/ProcessingInstructionImpl_setData_String_1.java +++ /dev/null @@ -1,133 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class ProcessingInstructionImpl_setData_String_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public ProcessingInstructionImpl_setData_String_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String target="xml"; - String data="version=\"1.0\""; - ProcessingInstruction pi = d.createProcessingInstruction(target, data); - if (pi == null) { - TestLoader.logErrPrint("Could not Create Processing Instruction with target " + target + " and data " + data); - return BWBaseTest.FAILED; - } else { - String newData = "version=\"1.0\" standalone=\"yes\""; - pi.setData(newData); - if ((pi.getData()).compareTo(newData) != 0) - { - TestLoader.logErrPrint("Processing Instruction setData with value " + newData + " failed for target " + target); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.FAILED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/TextImpl_splitText_int_0.java b/mozilla/java/dom/tests/src/api/TextImpl_splitText_int_0.java deleted file mode 100755 index d3b06ca6fe2..00000000000 --- a/mozilla/java/dom/tests/src/api/TextImpl_splitText_int_0.java +++ /dev/null @@ -1,132 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class TextImpl_splitText_int_0 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public TextImpl_splitText_int_0() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MIN_VALUE; - TextImpl t = (TextImpl)tn.splitText(offset); - if (t == null) { - TestLoader.logErrPrint("Text 'spliteText(minval)' is NULL ..."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/TextImpl_splitText_int_1.java b/mozilla/java/dom/tests/src/api/TextImpl_splitText_int_1.java deleted file mode 100755 index 4e1e152af41..00000000000 --- a/mozilla/java/dom/tests/src/api/TextImpl_splitText_int_1.java +++ /dev/null @@ -1,132 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class TextImpl_splitText_int_1 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public TextImpl_splitText_int_1() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = Integer.MAX_VALUE; - Text t = tn.splitText(offset); - if (t == null) { - TestLoader.logErrPrint("Text 'spliteText(maxval)' is NULL ..."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - - return BWBaseTest.PASSED; - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/api/TextImpl_splitText_int_2.java b/mozilla/java/dom/tests/src/api/TextImpl_splitText_int_2.java deleted file mode 100755 index ee0ae609667..00000000000 --- a/mozilla/java/dom/tests/src/api/TextImpl_splitText_int_2.java +++ /dev/null @@ -1,132 +0,0 @@ - -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.test; - -import java.util.*; -import java.io.*; -import org.mozilla.dom.test.*; -import org.mozilla.dom.*; -import org.w3c.dom.*; - -public class TextImpl_splitText_int_2 extends BWBaseTest implements Execution -{ - - /** - * - *********************************************************** - * Constructor - *********************************************************** - * - */ - public TextImpl_splitText_int_2() - { - } - - - /** - * - *********************************************************** - * Starting point of application - * - * @param args Array of command line arguments - * - *********************************************************** - */ - public static void main(String[] args) - { - } - - /** - *********************************************************** - * - * Execute Method - * - * @param tobj Object reference (Node/Document/...) - * @return true or false depending on whether test passed or failed. - * - *********************************************************** - */ - public boolean execute(Object tobj) - { - if (tobj == null) { - TestLoader.logPrint("Object is NULL..."); - return BWBaseTest.FAILED; - } - - String os = System.getProperty("OS"); - osRoutine(os); - - Document d = (Document)tobj; - if (d != null) - { - try { - String str = "Creating a new Text Node"; - Text tn = d.createTextNode(str); - if (tn == null) { - TestLoader.logErrPrint("Could not Create TextNode " + str); - return BWBaseTest.FAILED; - } else { - int offset = 9; - Text t = tn.splitText(offset); - if (t == null) { - TestLoader.logErrPrint("Text 'spliteText(9)' is NULL ..."); - return BWBaseTest.FAILED; - } - } - } catch (DOMException e) { - TestLoader.logErrPrint("Caught DOMException"); - return BWBaseTest.PASSED; - } catch (RuntimeException r) { - String msg = "Caught RuntimeException " + r ; - TestLoader.logErrPrint(msg); - return BWBaseTest.FAILED; - } - } else { - System.out.println("Document is NULL.."); - return BWBaseTest.FAILED; - } - return BWBaseTest.PASSED; - - } - - /** - * - *********************************************************** - * Routine where OS specific checks are made. - * - * @param os OS Name (SunOS/Linus/MacOS/...) - *********************************************************** - * - */ - private void osRoutine(String os) - { - if(os == null) return; - - os = os.trim(); - if(os.compareTo("SunOS") == 0) {} - else if(os.compareTo("Linux") == 0) {} - else if(os.compareTo("Windows") == 0) {} - else if(os.compareTo("MacOS") == 0) {} - else {} - } -} diff --git a/mozilla/java/dom/tests/src/applets/DOMTreeDumperApplet.java b/mozilla/java/dom/tests/src/applets/DOMTreeDumperApplet.java deleted file mode 100644 index 66d4ed4a277..00000000000 --- a/mozilla/java/dom/tests/src/applets/DOMTreeDumperApplet.java +++ /dev/null @@ -1,50 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.tests; - -import java.applet.Applet; -import org.w3c.dom.Document; -import org.mozilla.dom.DOMAccessor; -import org.mozilla.dom.util.DOMTreeDumper; -import org.mozilla.dom.util.GenericDocLoadListener; - -public class DOMTreeDumperApplet extends Applet -{ - private DOMAccessor accessor; - private final String name = "DOMTreeDumperApplet"; - - public void init() - { - DOMAccessor.addDocumentLoadListener(new DOMTreeDumperListener(name)); - System.out.println(name + " init..."); - } - - class DOMTreeDumperListener extends GenericDocLoadListener { - public DOMTreeDumperListener(String name) { - super(name); - } - public void endDocumentLoad(String url, int status, Document doc) { - new DOMTreeDumper(name).dumpToStream(System.out, doc); - } - } -} - diff --git a/mozilla/java/dom/tests/src/applets/TestDOMAccessorApplet.java b/mozilla/java/dom/tests/src/applets/TestDOMAccessorApplet.java deleted file mode 100644 index 82f216676ae..00000000000 --- a/mozilla/java/dom/tests/src/applets/TestDOMAccessorApplet.java +++ /dev/null @@ -1,38 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.tests; - -import java.applet.Applet; -import org.mozilla.dom.DOMAccessor; -import org.mozilla.dom.util.GenericDocLoadListener; - -public class TestDOMAccessorApplet extends java.applet.Applet -{ - private final String name = "TestDOMAccessorApplet"; - - public void init() - { - DOMAccessor.addDocumentLoadListener(new GenericDocLoadListener(name)); - System.out.println(name + " init..."); - } -} - diff --git a/mozilla/java/dom/tests/src/applets/TestDOMEventsApplet.java b/mozilla/java/dom/tests/src/applets/TestDOMEventsApplet.java deleted file mode 100644 index df18fc71688..00000000000 --- a/mozilla/java/dom/tests/src/applets/TestDOMEventsApplet.java +++ /dev/null @@ -1,92 +0,0 @@ -/* - The contents of this file are subject to the Mozilla Public - License Version 1.1 (the "License"); you may not use this file - except in compliance with the License. You may obtain a copy of - the License at http://www.mozilla.org/MPL/ - - Software distributed under the License is distributed on an "AS - IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - implied. See the License for the specific language governing - rights and limitations under the License. - - The Original Code is mozilla.org code. - - The Initial Developer of the Original Code is Sun Microsystems, - Inc. Portions created by Sun are - Copyright (C) 1999 Sun Microsystems, Inc. All - Rights Reserved. - - Contributor(s): -*/ - -package org.mozilla.dom.tests; - -import java.util.Vector; -import java.applet.Applet; -import org.w3c.dom.Node; -import org.w3c.dom.NodeList; -import org.w3c.dom.Document; -import org.w3c.dom.events.EventListener; -import org.w3c.dom.events.EventTarget; -import org.mozilla.dom.DOMAccessor; -import org.mozilla.dom.NodeImpl; -import org.mozilla.dom.util.GenericEventListener; -import org.mozilla.dom.util.GenericDocLoadListener; - -public class TestDOMEventsApplet extends Applet { - - private final String name = "TestDOMEventsApplet"; - - public void init() - { - DOMAccessor.addDocumentLoadListener(new TestDOMEventsListener(name)); - System.out.println(name + " init..."); - } - - class TestDOMEventsListener extends GenericDocLoadListener { - public TestDOMEventsListener(String name) { - super(name); - } - - public void endDocumentLoad(String url, int status, Document doc) { - if (url.endsWith(".html")){ - Vector v; - Object o; - Node n; - NodeList l; - int i; - EventListener listener; - NodeImpl target; - String [] types = {"mouseover", "dblclick", "mouseout", "keydown", "keyup", - "mousedown", "mouseup", "click", "keypress", - "mousemove", "focus", "blur", "submit", "reset", - "change", "select", "input", "load", "unload", - "abort", "error", "paint", "create", "destroy", - "command", "broadcast", "commandupdate", - "dragenter", "dragover", "dragexit", "dragdrop", - "draggesture"}; - - listener = new GenericEventListener("name"); - v = new Vector (20, 10); - v.add(doc); - - while(!v.isEmpty()) { - o = v.elementAt(0); - if (o instanceof Node) { - n = (Node) o; - if (n instanceof NodeImpl) - for(i=0; i < types.length; i++) { - target = (NodeImpl) n; - target.addEventListener(types[i], listener, false); - } - - l = n.getChildNodes(); - for(i=0; i - - Java DOM Tests - - -
-In order to run tests you need to have a working java plugin for
-Mozilla browser and compliled Java DOM classes in your classpath.
-
-
-
- - - - - diff --git a/mozilla/java/dom/tests/src/applets/testa.html b/mozilla/java/dom/tests/src/applets/testa.html deleted file mode 100644 index 0c5a8b742e8..00000000000 --- a/mozilla/java/dom/tests/src/applets/testa.html +++ /dev/null @@ -1,21 +0,0 @@ - - - -DOMAccessor test - - - -
-This should run DOMAccessor test.
-Look into the java plugin console for
-document load notifications while surfing 
-around
-
-
-	Your browser is completely ignoring the <APPLET> tag!
-
-
-
diff --git a/mozilla/java/dom/tests/src/applets/testb.html b/mozilla/java/dom/tests/src/applets/testb.html
deleted file mode 100644
index f9299121cc3..00000000000
--- a/mozilla/java/dom/tests/src/applets/testb.html
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-DOM API test runner
-
-
-
-This should run java dom api tests.
-TestRunnerApplet registers itself
-as a DocumentLoadListener via DOMAccessor
-and runs tests on endURLLoad notification and dumps
-test results into the java plugin console.
-
-
-	Your browser is completely ignoring the <APPLET> tag!
-
-
-
diff --git a/mozilla/java/dom/tests/src/applets/testc.html b/mozilla/java/dom/tests/src/applets/testc.html
deleted file mode 100644
index 2b088a77610..00000000000
--- a/mozilla/java/dom/tests/src/applets/testc.html
+++ /dev/null
@@ -1,22 +0,0 @@
-
-
-
-
-DOM tree dumper
-
-
-
-This should run DOMTreeDumper test.
-DOMTreeDumperApplet registers itself
-as a DocumentLoadListener via DOMAccessor
-and dumps document source into the 
-java plugin console.
-
-
-	Your browser is completely ignoring the <APPLET> tag!
-
-
-
diff --git a/mozilla/java/dom/tests/src/applets/testd.html b/mozilla/java/dom/tests/src/applets/testd.html
deleted file mode 100644
index 5b79268175e..00000000000
--- a/mozilla/java/dom/tests/src/applets/testd.html
+++ /dev/null
@@ -1,23 +0,0 @@
-
-
-
-
-DOM events test
-
-
-
-This should run DOM events test.
-TestDOMEvents registers itself
-as a DocumentLoadListener via DOMAccessor
-and adds DOM events listeners do loading 
-documents. DOM events info is dumped
-into the java plugin console.
-
-
-	Your browser is completely ignoring the <APPLET> tag!
-
-
-
diff --git a/mozilla/java/dom/tests/src/autorun.pl b/mozilla/java/dom/tests/src/autorun.pl
deleted file mode 100644
index 95467e61f48..00000000000
--- a/mozilla/java/dom/tests/src/autorun.pl
+++ /dev/null
@@ -1,529 +0,0 @@
-#!/usr/bin/perl
-#
-# The contents of this file are subject to the Mozilla Public
-# License Version 1.1 (the "License"); you may not use this file
-# except in compliance with the License. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS
-# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
-# implied. See the License for the specific language governing
-# rights and limitations under the License.
-#
-# The Original Code is mozilla.org code.
-#
-# The Initial Developer of the Original Code is Sun Microsystems,
-# Inc. Portions created by Sun are
-# Copyright (C) 1999 Sun Microsystems, Inc. All
-# Rights Reserved.
-#
-# Contributor(s):
-
-###################################################################
-# This script is used to  invoke all test case for DOM API
-# through mozilla_bin and to recored their results
-#
-#
-
-# Attach Perl Libraries
-use Cwd;
-use File::Copy;
-use Win32::Process;
-
-###################################################################
-
-#sometimes we need to specify additional parameters for mozilla
-$ADDITIONAL_PARAMETERS="-P default";
-
-# time in seconds after which the mozilla has to be killed.
-# by default the mozilla will be up for so much time regardless of
-# whether over or not. User can either decrease it or increase it.
-#
-$DELAY_FACTOR = 15;
-# time period in seconds of periodically checking: is the mozilla still alive
-$DELAY_OF_CYCLE = 5;
-
-$TESTROOT = $ENV{"TEST_PATH"};
-$DOCROOT = $ENV{"TEST_URL"};
-
-# delimiter for logfile
-$delimiter="###################################################\n";
-
-# win32 specific values 
-# STILL_ALIVE is a constant defined in winbase.h and indicates what
-# process still alive
-$STILL_ALIVE = 0x103;
-
-$path_separator = ";";
-
-
-
-##################################################################
-# Usage
-##################################################################
-sub usage() {
-
-    print "\n";
-    print "##################################################################\n";
-    print "   perl autorun.pl [ -t  ]\n";
-    print "\n";
-    print " where  is one of the test cases prefixed with package\n";
-    print " name ex: org.mozilla.dom.AttrImpl_getSpecified\n";
-    print "\n";
-    print "##################################################################\n";
-    print "\n";
-   
-}
-
-##################################################################
-# Title display
-##################################################################
-sub title() {
-	
-    print "\n";
-    print "################################################\n";
-    print "   Automated Execution of DOM API TestSuite\n";
-    print "################################################\n";
-    print "\n";
-    print "NOTE: You need to copy files test.html and test.xml,\n";
-    print "      into some document directory of HTTP server\n";
-    print "      TEST_URL environment variable should contain the URL of \n";
-    print "      this directory.\n";
-    print "\n";
-    print "\n";
-
-}
-
-##################################################################
-#
-# check which tests to run. XML/HTML or both
-#
-##################################################################
-sub checkRun() {
-    $runtype = "0";
-    while( true ) {
-	print "Run 1) HTML Test suite.\n";
-	print "    2) XML Test suite.\n";
-	print "    3) BOTH HTML and XML.\n";
-	print "Enter choice (1-3) :\n";
-	$runtype = getc;
-	  
-	if(( $runtype ne "1" ) &&
-	   ( $runtype ne "2" ) &&
-	   ( $runtype ne "3" ) ) 
-	{
-	    print "Invaid choice. Range is from 1-3...\n";
-	    print "\n";
-	    next;
-	} else {
-	    last;
-	}
-    }
-}
-
-
-#########################################################################
-#
-# Append table entries to Output HTML File 
-#
-#########################################################################
-sub appendEntries() {
-   print LOGHTML "\n";
-   print LOGHTML "\n";
-   print LOGHTML "Test Status (XML)Result\n";
-
-}
-
-#########################################################################
-#
-# Construct Output HTML file Header
-#
-#########################################################################
-sub constructHTMLHeader() {
-   print LOGHTML "\n";
-   print LOGHTML "DOMAPI Core Level 1 Test Status\n";
-   print LOGHTML "\n";
-   print LOGHTML "

\n"; - print LOGHTML "DOM API Automated TestRun Results\n"; - $date = localtime; - print LOGHTML "

", $date; - print LOGHTML "

\n"; - print LOGHTML "
"; - print LOGHTML "\n"; - print LOGHTML "\n"; - print LOGHTML "\n"; - print LOGHTML "\n"; - print LOGHTML "\n"; -} - -######################################################################### -# -# Construct Output HTML file indicating status of each run -# -######################################################################### -sub constructHTMLBody() { - - $x=`sort -u $LOGTXT > $LOGTXT.tmp`; - $y=`rename $LOGTXT.tmp $LOGTXT`; - - open( MYLOG, $LOGTXT ); - @all_lines = ; - close( MYLOG ); - - my $line; - foreach $line ( sort @all_lines ) { - # avoid linebreaks - chop $line; - # assuming that all lines are kind'of 'aaa=bbb' - ($class, $status) = split /=/, $line; - - print LOGHTML "\n"; - } -} - -######################################################################### -# -# Construct Output HTML file Footer -# -######################################################################### -sub constructHTMLFooter() { - print LOGHTML "
Test CaseResult
",$class,"",$status,"
\n"; -} - -######################################################################### -# -# Construct Output HTML file indicating status of each run -# -######################################################################### -sub constructHTML() { - constructHTMLHeader; - constructHTMLBody; -} - -######################################################################### -# -# Construct LogFile Header. The Log file is always appended with entries -# -######################################################################### -sub constructLogHeader() { - print LOGFILE "\n"; - print LOGFILE "\n"; - print LOGFILE $delimiter; - $date = localtime; - print LOGFILE "Logging Test Run on $date ...\n"; - print LOGFILE $delimiter; - print LOGFILE "\n"; - - print "All Log Entries are maintained in LogFile $LOGFILE\n"; - print "\n"; -} - -######################################################################### -# -# Construct LogFile Footer. -# -######################################################################### -sub constructLogFooter() { - print "\n"; - print LOGFILE $delimiter; - $date = localtime; - print LOGFILE "End of Logging Test $date ...\n"; - print LOGFILE $delimiter; - print "\n"; -} - -######################################################################## -# -# Construct Log String -# -######################################################################## -sub constructLogString { - my $logstring = shift(@_); - print LOGFILE "$logstring\n"; - -} - -######################################################################## -# -# Safely append to file : open, append, close. -# -######################################################################## -sub safeAppend { - my $file = shift(@_); - my $line = shift(@_); - open (FILE, ">>$file") or die ("Cann't open $file"); - print FILE $line; - close FILE; -} - - - -################################################################## -# main -################################################################## -title; - -$curdir = cwd(); - -# Prepare file names -$LOGFILE = "$curdir/log/BWTestRun.log"; -$LOGTXT = "$curdir/log/BWTest.txt"; -$LOGHTML = "$curdir/log/BWTest.html"; - -$x=`mkdir -p $curdir/log`; -# process command-line parameters -# and check for valid usage - -$testparam = ""; - -if ( $#ARGV > 1 ) { - usage; - die; -} - -if ( $#ARGV > 0 ) { - if ( $ARGV[0] != "-t" ) { - usage; - die; - } else { - $testparam = $ARGV[1]; - } -} - -if ( $testparam eq "" ) { - print "WARNING: Your are going to execute the whole test suite....\n"; - checkRun; -} - -$mozhome = @ENV{"MOZILLA_FIVE_HOME"}; -if ( $mozhome eq "" ) { - print "MOZILLA_FIVE_HOME is not set. Please set it and rerun this script....\n"; - die; -} - -$mozilla_bin=@ENV{"MOZILLA_BIN"}; - -if ( ! -f "$mozhome/$mozilla_bin" ) { - print "Could not find $mozilla_bin in MOZILLA_FIVE_HOME ($mozhome).\n"; - print "Please check your setting...\n"; - die; -} - - -if ( ! -d $TESTROOT) { - print "TEST_PATH directory doesn't exist ($TESTROOT)\n"; - print "Please check your setting...\n"; - die; -} -# Here must come a piece of code, that determinates -# mozilla instance, removes core, but there's no -# core under win32 - -# Backup existing .lst file -if ( -f "$curdir/BWTestClass.lst" ) { - rename "$curdir/BWTestClass.lst", "$curdir/BWTestClass.lst.bak"; -} - -# Check if ORIG list file is present -# this file contains all test cases -if ( ! -f "$curdir/BWTestClass.lst.ORIG" ) { - print "\n"; - print "File BWTestClass.lst.ORIG not found ...\n"; - print "Check Mozilla Source base and bringover this file....\n"; - print "\n"; -} - -$id=$$; -# Check if BWProperties file exists -# -if ( -f "$mozhome/BWProperties" ) { - $newfile="$mozhome/BWProperties.$id"; - rename "$mozhome/BWProperties", $newfile; -} -copy "$curdir/BWProperties", "$mozhome/BWProperties"; - -# check if output text file of previous run exists. -# if so, then save it as .bak -# -if ( -f "$LOGTXT" ) { - $newfile="$LOGTXT.bak"; - rename $LOGTXT, $newfile; -} - -# check if output html file of previous run exists. -# if so, then save it as .bak -# -if ( -f "$LOGHTML" ) { - $newfile="$LOGHTML.bak"; - rename $LOGHTML, $newfile; -} - -# construct DOCFILE -if (@ENV{"USE_APPLET_FOR_REGISTRATION"}) { - $DOCFILE = "$DOCROOT/TestLoaderHTML.html"; -} else { - $DOCFILE = "$DOCROOT/test.html"; -} -$runcnt = 1; -$filename = "$curdir/BWTestClass.lst.ORIG"; - -if ($runtype == 1) { - if (@ENV{"USE_APPLET_FOR_REGISTRATION"}) { - $DOCFILE = "$DOCROOT/TestLoaderHTML.html"; - } else { - $DOCFILE = "$DOCROOT/test.html"; - } - $filename = "$curdir/BWTestClass.lst.html.ORIG"; - $runcnt = 1; -} - -if ($runtype == 2) { - if (@ENV{"USE_APPLET_FOR_REGISTRATION"}) { - $DOCFILE = "$DOCROOT/TestLoaderXML.html"; - } else { - $DOCFILE = "$DOCROOT/testxml.html"; - } - $filename = "$curdir/BWTestClass.lst.xml.ORIG"; - $runcnt = 1; -} - -if ($runtype == 3) { - if (@ENV{"USE_APPLET_FOR_REGISTRATION"}) { - $DOCFILE = "$DOCROOT/TestLoaderHTML.html"; - } else { - $DOCFILE = "$DOCROOT/test.html"; - } - $filename = "$curdir/BWTestClass.lst.html.ORIG"; - $runcnt = 2; -} - -# Prepare log streams -open( LOGFILE, ">>$LOGFILE" ) or die("Can't open LOG file ($LOGFILE)...\n"); -select LOGFILE; $| = 1; select STDOUT; -open( LOGHTML, ">$LOGHTML" ) or die("Can't open HTML file...\n"); - -print "Runtype is $runtype \n"; -constructLogHeader(); - -$ENV{"CLASSPATH"} = "$curdir/../classes".$path_separator.$ENV{"CLASSPATH"}; - -$LST_OUT = "$curdir/BWTestClass.lst"; - - -$currcnt = 0; -while (true) { - open( file, $filename ) or die("Can't open $filename...\n"); - while( $line = ) { - chop $line; - if ( $testparam ne "" ) { - $testcase = $testparam; - } else { - $testcase = $line; - } - - if ( $testcase =~ /^\s*#/ ) { - next; - } - - open(LST_OUT, ">$LST_OUT") or die ("Can't open LST_OUT file...\n"); - print LST_OUT $testcase; - close(LST_OUT); - - chdir( $mozhome ); - print "========================================\n"; - $logstr="Running TestCase $testcase...."; - print "$logstr\n"; - constructLogString "$logstr"; - - ($nom) = ($testcase =~ /([^\.]*)$/); - $testlog = "$curdir/log/$nom.$id.log"; - - print("Loading $DOCFILE ...\n"); - open( SAVEOUT, ">&STDOUT" ); - open( SAVEERR, ">&STDERR" ); - open( STDOUT, ">$testlog" ) or die "Can't redirect stdout"; - open( STDERR, ">&STDOUT" ); - Win32::Process::Create($ProcessObj, - "$mozhome/$mozilla_bin", - "$mozhome/$mozilla_bin $ADDITIONAL_PARAMETERS $DOCFILE", - 1, - NORMAL_PRIORITY_CLASS, - "$TESTROOT" ) || die "cann't start $moilla_bin"; - close( STDOUT ); - close( STDERR ); - open( STDOUT, ">&SAVEOUT" ); - open( STDERR, ">&SAVEERR" ); - - $flag = 0; - $cnt = 0; - while (true) { - sleep($DELAY_OF_CYCLE); - - $ProcessObj->GetExitCode($exit_code); - if ( $exit_code != $STILL_ALIVE ) { - - $logstr = "Test terminated with exit code $exit_code."; - constructLogString "$logstr"; - if ( $exit_code != 0 ) { - safeAppend $LOGTXT, "$testcase=FAILED\n"; - $logstr = "Test FAILED..."; - constructLogString "$logstr"; - } - $logstr = "Check ErrorLog File $testlog "; - constructLogString "$logstr"; - constructLogString ""; - constructLogString ""; - - $flag = 1; - last; - } - - $cnt += $DELAY_OF_CYCLE; - if ( $cnt >= $DELAY_FACTOR ) { - $flag = 0; - $ProcessObj->Kill(0); - last; - } - } # while with sleep - - ( $testparam eq "" ) || last; - - } # while ( $line - - ( ++$currcnt < $runcnt ) || last; - - if ( $runtype == 3 ) { - $DOCFILE="$DOCROOT/testxml.html"; - $filename="$curdir/BWTestClass.lst.xml.ORIG"; - constructHTML; - appendEntries; - if ( -f "$LOGTXT" ) { - $newfile = "$LOGTXT.bak"; - rename ($LOGTXT, $newfile) or die( "Cann't clear LOGTXT..." ) ; - } - } - -} # while(true) - -constructLogFooter; -if ( $runtype == 3 ) { - constructHTMLBody; -} else { - constructHTML; -} -constructHTMLFooter; - -$newfile="$mozhome/BWProperties.$id"; -rename "$newfile", "$mozhome/BWProperties"; -chdir($curdir); - - - - - - - - - - - diff --git a/mozilla/java/dom/tests/src/autorun.sh b/mozilla/java/dom/tests/src/autorun.sh deleted file mode 100755 index bf698cf9468..00000000000 --- a/mozilla/java/dom/tests/src/autorun.sh +++ /dev/null @@ -1,669 +0,0 @@ -#!/bin/sh -x -# -# The contents of this file are subject to the Mozilla Public -# License Version 1.1 (the "License"); you may not use this file -# except in compliance with the License. You may obtain a copy of -# the License at http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS -# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -# implied. See the License for the specific language governing -# rights and limitations under the License. -# -# The Original Code is mozilla.org code. -# -# The Initial Developer of the Original Code is Sun Microsystems, -# Inc. Portions created by Sun are -# Copyright (C) 1999 Sun Microsystems, Inc. All -# Rights Reserved. -# -# Contributor(s): - -################################################################## -# This script is used to invoke all test case for DOM API -# thru' mozilla-bin and to record their results -# -################################################################## -# -# time in seconds after which the mozilla-bin has to be killed. -# by default the mozilla-bin will be up for so much time regardless of -# whether over or not. User can either decrease it or increase it. -# -DELAY_FACTOR=50 -SERVER=`hostname` -USER=`logname` -#DOCROOT="http://$SERVER/~$USER" -curdir=`pwd` -DOCROOT="file://$curdir" -ADDITIONAL_PARAMETERS="-P default" - - - -################################################################## -# Usage -################################################################## -usage() -{ - - echo - echo "##################################################################" - echo " sh autorun.sh [ -t ]" - echo - echo " where is one of the test cases prefixed with package" - echo " name ex: org.mozilla.dom.AttrImpl_getSpecified" - echo - echo "##################################################################" - echo -} - -################################################################## -# Title display -################################################################## -title() -{ - - echo - echo "################################################" - echo " Automated Execution of DOM API TestSuite" - echo "################################################" - echo - echo "NOTE: You need to copy files test.html and" - echo " test.xml to DOCUMENT_ROOT dir. of" - echo " your Web-Server on this machine." - echo - echo -} - -################################################################## -# -# check whether to run tests in single threaded or multi threaded -# mode -# -################################################################## -checkExecutionMode() -{ - executionMode="" - propnom="$curdir/BWProperties" - executionMode=`grep THREADMODE $propnom | cut -d"=" -f2` - - if [ "$executionMode" != "S" ] && - [ "$executionMode" != "s" ] && - [ "$executionMode" != "M" ] && - [ "$executionMode" != "m" ] - then - echo "Entry for BW_THREADMODE in BWProperties file is incorrect." - echo "It should be set to 'S' or 'M'" - echo - echo " Make changes to BWProperties file and re-run this script" - echo - exit 1 - fi - -} - - -################################################################## -# -# check which tests to run. XML/HTML or both -# -################################################################## -checkRun() -{ - runtype="0" - while true - do - echo - echo "Run 1) HTML Test suite." - echo " 2) XML Test suite." - echo " 3) BOTH HTML and XML." - echo - echo "Enter choice (1-3) :"; read runtype - - if [ ! -z "$runtype" ] - then - if [ "$runtype" != "1" ] && - [ "$runtype" != "2" ] && - [ "$runtype" != "3" ] - then - echo "Invaid choice. Range is from 1-3..." - echo - continue - fi - break - fi - done - - -} - -################################################################## -# -# check Document Root and check if files test.html and test.xml -# exists in thos directories -# -################################################################## -#checkDocRoot() -#{ -# echo -#echo "You need to copy files test.html and test.xml to your DOCUMENT_ROOT" -#echo "of your Web-Server" -#echo -#echo "This test assumes that you have set up you WebServer and copied the" -#echo "files to htdocs directory on your WebServer." -#echo -#docroot=""; -#while true -#do -# echo "Enter your DOCUMENT_ROOT directory of your Web-Server -# read docroot -# -# if [ ! -z "$docroot" ] -# then -# if [ ! -d "$docroot" ] -# then -# echo "$docroot directory does not exist..." -# echo -# continue -# fi -# break -# fi -#done -# -# -# -#echo -#echo "Checking if the files test.html and test.xml exists in DOCUMENT_ROOT..." -#if [ ! -f "$docroot/test.html" -#then -# echo "Could not find 'test.html' in DOCUMENT_ROOT directory" -# echo "Please copy test.html to DOCUMENT_ROOT and rerun this script" -# echo -# exit 1 -#fi -# -#if [ ! -f "$docroot/test.xml" ] -#then -# echo "Could not find 'test.xml' in DOCUMENT_ROOT directory" -# echo "Please copy test.xml to DOCUMENT_ROOT and rerun this script" -# echo -# exit 1 -#fi -#} - - -######################################################################### -# -# Append table entries to Output HTML File -# -######################################################################### -appendEntries() -{ - echo "\n" >> $LOGHTML - echo "\n" >> $LOGHTML - echo "Test Status (XML)Result\n" >> $LOGHTML -} -######################################################################### -# -# Construct Output HTML file Header -# -######################################################################### -constructHTMLHeader() -{ - echo "\n" >> $LOGHTML - echo "DOMAPI Core Level 1 Test Status\n" >> $LOGHTML - echo "\n" >> $LOGHTML - echo "

\n" >> $LOGHTML - echo "DOM API Automated TestRun Results\n" >> $LOGHTML - dt=`date` - echo "

$dt" >> $LOGHTML - echo "

\n" >> $LOGHTML - echo "
" >> $LOGHTML - echo "\n" >> $LOGHTML - echo "\n" >> $LOGHTML - echo "\n" >> $LOGHTML - echo "\n" >> $LOGHTML - echo "\n" >> $LOGHTML -} - - -######################################################################### -# -# Construct Output HTML file indicating status of each run -# -######################################################################### -constructHTMLBody() -{ - sort -u $LOGTXT > $LOGTXT.tmp - /bin/mv $LOGTXT.tmp $LOGTXT - - while read i - do - - class=`echo $i | cut -d"=" -f1` - status=`echo $i | cut -d"=" -f2` - echo "\n" >> $LOGHTML - done < $LOGTXT - -} - -######################################################################### -# -# Construct Output HTML file Footer -# -######################################################################### -constructHTMLFooter() -{ - echo "
Test CaseResult
$class$status
\n" >> $LOGHTML -} - -######################################################################### -# -# Construct Output HTML file indicating status of each run -# -######################################################################### -constructHTML() -{ - constructHTMLHeader - constructHTMLBody -} - -######################################################################### -# -# Construct LogFile Header. The Log file is always appended with entries -# -######################################################################### -constructLogHeader() -{ - echo >> $LOGFILE - echo >> $LOGFILE - str="###################################################" - echo $str >> $LOGFILE - dt=`date` - str="Logging Test Run on $dt ..." - echo $str >> $LOGFILE - str="###################################################" - echo $str >> $LOGFILE - echo >> $LOGFILE - - echo "All Log Entries are maintained in LogFile $LOGFILE" - echo -} - -######################################################################### -# -# Construct LogFile Footer. -# -######################################################################### -constructLogFooter() -{ - echo >> $LOGFILE - echo $str >> $LOGFILE - dt=`date` - str="End of Logging Test $dt ..." - echo $str >> $LOGFILE - str="###################################################" - echo $str >> $LOGFILE - echo >> $LOGFILE - - -} - - -################################################################## -# -# check Document Root and check if files test.html and test.xml -# exists in thos directories -# -################################################################## -constructLogString() -{ - if [ $# -eq 0 ] - then - echo "constructLogString " - echo - return - fi - logstring="$*" - - echo "$logstring" >> $LOGFILE - -} - - -################################################################## -# main -################################################################## -clear -title - -curdir=`pwd` -LOGDIRECTORY="$curdir/log"; -LOGFILE="$curdir/log/BWTestRun.log" -LOGTXT="$curdir/log/BWTest.txt" -LOGHTML="$curdir/log/BWTest.html" - -/bin/mkdir -p "$LOGDIRECTORY"; - -testparam=""; -if [ $# -gt 2 ] -then - usage - exit 1 -fi - -if [ $# -gt 1 ] -then - if [ "$1" != "-t" ] - then - usage - exit 1 - else - testparam=$2 - fi -fi - -if [ -z "$testparam" ] -then - echo "WARNING: Your are going to execute the whole test suite...." -fi - -checkRun - -mozhome=${MOZILLA_FIVE_HOME} -if [ -z "$mozhome" ] -then - echo "MOZILLA_FIVE_HOME is not set. Please set it and rerun this script...." - echo - exit 1; -fi - -if [ ! -x "$mozhome/mozilla-bin" ] -then - echo "Could not find executable 'mozilla-bin' in MOZILLA_FIVE_HOME." - echo "Please check your setting..." - echo - exit 1; -fi - - -chkpid=`ps -aef | grep mozilla-bin | grep -v grep | awk '{ print $2 }'` -if [ ! -z "$chkpid" ] -then - echo "Detected an instance of mozilla-bin..."; - echo "Exit out from mozilla-bin and restart this script..." - exit 1 -fi - - -# Remove core file -if [ -f "$curdir/core" ] -then - /bin/rm "$curdir/core" -fi - -# Backup existing .lst file -if [ -f "$curdir/BWTestClass.lst" ] -then - /bin/mv "$curdir/BWTestClass.lst" "$curdir/BWTestClass.lst.bak" -fi - -# Check if ORIG list file is present -# this file contains all test cases -if [ ! -f "$curdir/BWTestClass.lst.ORIG" ] -then - echo - echo "File BWTestClass.lst.ORIG not found ..."; - echo "Check Mozilla Source base and bringover this file...."; - echo -fi - -id=$$ -# Check if BWProperties file exists -# -if [ -f "$MOZILLA_FIVE_HOME/BWProperties" ] -then - newfile="$MOZILLA_FIVE_HOME/BWProperties.$id" - /bin/mv "$MOZILLA_FIVE_HOME/BWProperties" $newfile -fi -/bin/cp "$curdir/BWProperties" "$MOZILLA_FIVE_HOME/BWProperties" - -# Read the LOGDIR setting from BWProperties and -# accordingly set BWTest.txt location -# -logdir=`grep BW_LOGDIR $curdir/BWProperties | cut -d"=" -f2` -if [ ! -d "$logdir" ] -then - echo - echo "Log Directory $logdir does not exist..."; - echo "Create Directory and re-run this script..."; - echo - exit 1 -fi -LOGTXT="$logdir/BWTest.txt" - - -# check BW_THREADMODE setting from BWPropeties file -# -checkExecutionMode - -# check if output text file of previous run exists. -# if so, then save it as .bak -# -if [ -f "$LOGTXT" ] -then - newfile=$LOGTXT".bak" - /bin/mv $LOGTXT $newfile -fi -/bin/touch $LOGTXT - -# check if output html file of previous run exists. -# if so, then save it as .bak -# -if [ -f "$LOGHTML" ] -then - newfile=$LOGHTML".bak" - /bin/mv $LOGHTML $newfile -fi -/bin/touch $LOGHTML - -# construct DOCFILE -appreg=${USE_APPLET_FOR_REGISTRATION} -if [ -z "$appreg" ] -then - DOCFILE="$DOCROOT/test.html"; -else - DOCFILE="$DOCROOT/TestLoaderHTML.html"; -fi - -runcnt=1 -filename="$curdir/BWTestClass.lst.ORIG" - -if [ "$runtype" = "1" ] -then - if [ -z "$appreg" ] - then - DOCFILE="$DOCROOT/test.html"; - else - DOCFILE="$DOCROOT/TestLoaderHTML.html"; - fi - runcnt=1 - filename="$curdir/BWTestClass.lst.html.ORIG" -fi - -if [ "$runtype" = "2" ] -then - DOCFILE="$DOCROOT/test.xml" - if [ -z "$appreg" ] - then - DOCFILE="$DOCROOT/test.xml"; - else - DOCFILE="$DOCROOT/TestLoaderXML.html"; - fi - filename="$curdir/BWTestClass.lst.xml.ORIG" - runcnt=1 -fi - -if [ "$runtype" = "3" ] -then - if [ -z "$appreg" ] - then - DOCFILE="$DOCROOT/test.html"; - else - DOCFILE="$DOCROOT/TestLoaderHTML.html"; - fi - filename="$curdir/BWTestClass.lst.html.ORIG" - runcnt=2 -fi - - -constructLogHeader - -CLASSPATH="$curdir/../classes:${CLASSPATH}" - - -currcnt=0 -while true -do - - - for i in `cat $filename` - do - if [ ! -z "$testparam" ] - then - testcase=$testparam - else - testcase=$i; - fi - - x=`echo $testcase | grep "#"` - if [ $? -eq 0 ] - then - continue - fi - - # if single threaded execution - if [ "$executionMode" = "S" ] - then - echo $testcase > $curdir/BWTestClass.lst - else - # if multi-threaded but user has specified particular testcase - if [ ! -z "$testparam" ] - then - echo $testcase > $curdir/BWTestClass.lst - else - /bin/cp $filename $curdir/BWTestClass.lst - fi - fi - - cd $MOZILLA_FIVE_HOME - - echo "========================================" - logstr="Running TestCase $testcase...." - echo $logstr - constructLogString $logstr - - format=`echo $testcase | sed 's/\./\//g'` - nom=`basename $format` - testlog="$curdir/log/$nom.$id.log" - ./mozilla-bin $ADDITIONAL_PARAMETERS $DOCFILE 2>$testlog 1>&2 & - - # dummy sleep to allow mozilla-bin to show up on process table - sleep 3 - curpid=`ps -aef | grep mozilla-bin | grep -v grep | awk '{ print $2 }'` - - flag=0 - cnt=0 - while true - do - sleep 10 - - if [ -f "$MOZILLA_FIVE_HOME/core" ] - then - /bin/rm "$MOZILLA_FIVE_HOME/core" - logstr="Test dumped core..." - constructLogString "$logstr" - logstr="Test FAILED..." - constructLogString "$logstr" - logstr="Check ErrorLog File $testlog" - constructLogString "$logstr" - constructLogString "" - constructLogString "" - - echo "$testcase=FAILED" >> $LOGTXT - flag=1 - break - fi - - chkpid=`ps -aef | grep mozilla-bin | grep -v grep | awk '{ print $2 }'` - if [ -z "$chkpid" ] - then - flag=1 - break - fi - - if [ "$curpid" != "$chkpid" ] - then - flag=1 - break; - fi - - cnt=`expr $cnt + 10` - if [ $cnt -eq $DELAY_FACTOR ] - then - flag=0 - #logstr="TestCase Execution PASSED..." - #constructLogString $logstr - kill -9 $chkpid 2>/dev/null - break - fi - - done - kill -9 $curpid 2>/dev/null - - if [ ! -z "$testparam" ] - then - break - fi - - # if single threaded execution - if [ "$executionMode" = "M" ] - then - break - fi - done - - currcnt=`expr $currcnt + 1` - - if [ $currcnt -eq $runcnt ] - then - break - fi - - if [ "$runtype" = "3" ] - then - DOCFILE="$DOCROOT/test.xml" - filename="$curdir/BWTestClass.lst.xml.ORIG" - constructHTML - appendEntries - if [ -f "$LOGTXT" ] - then - newfile=$LOGTXT".bak" - /bin/mv $LOGTXT $newfile - fi - /bin/touch $LOGTXT - fi -done - -constructLogFooter - -if [ "$runtype" = "3" ] -then - constructHTMLBody -else - constructHTML -fi -constructHTMLFooter - -newfile="$MOZILLA_FIVE_HOME/BWProperties.$id" -/bin/mv "$newfile" "$MOZILLA_FIVE_HOME/BWProperties" -cd $curdir diff --git a/mozilla/java/dom/tests/src/build_test.bat b/mozilla/java/dom/tests/src/build_test.bat deleted file mode 100644 index 688f4725b6b..00000000000 --- a/mozilla/java/dom/tests/src/build_test.bat +++ /dev/null @@ -1 +0,0 @@ -java org.mozilla.dom.test.BWJavaTemplate %1 %2 %3 %4 %5 %6 %7 %8 %9 \ No newline at end of file diff --git a/mozilla/java/dom/tests/src/gen_rules.pl b/mozilla/java/dom/tests/src/gen_rules.pl deleted file mode 100644 index 2bf89e42729..00000000000 --- a/mozilla/java/dom/tests/src/gen_rules.pl +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/perl -# -# The contents of this file are subject to the Mozilla Public -# License Version 1.1 (the "License"); you may not use this file -# except in compliance with the License. You may obtain a copy of -# the License at http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS -# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -# implied. See the License for the specific language governing -# rights and limitations under the License. -# -# The Original Code is mozilla.org code. -# -# The Initial Developer of the Original Code is Sun Microsystems, -# Inc. Portions created by Sun are -# Copyright (C) 1999 Sun Microsystems, Inc. All -# Rights Reserved. -# -# Contributor(s): - -($#ARGV > 0) || die "Usage: gen_rules.pl \n"; - -open (IN, "<$ARGV[0]") || die "Can't open in file $ARGV[0]: $!\n"; -open (OUT, ">$ARGV[1]") || die "Can't open out file $ARGV[1]: $!\n"; - -while() { - if (/.*\d (.*?)\.java/) { - $elem = $1; - $name = "UNKNOWN_ELEMENT"; - if ($elem =~ /HTML(.*)Element/) { - $name = uc $1; - } - print OUT "$elem (($elem)(d.createElement(\"$name\")))\n"; - } -} diff --git a/mozilla/java/dom/tests/src/gen_tests.pl b/mozilla/java/dom/tests/src/gen_tests.pl deleted file mode 100644 index 5726931aedd..00000000000 --- a/mozilla/java/dom/tests/src/gen_tests.pl +++ /dev/null @@ -1,36 +0,0 @@ -#!/usr/bin/perl -# -# The contents of this file are subject to the Mozilla Public -# License Version 1.1 (the "License"); you may not use this file -# except in compliance with the License. You may obtain a copy of -# the License at http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS -# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -# implied. See the License for the specific language governing -# rights and limitations under the License. -# -# The Original Code is mozilla.org code. -# -# The Initial Developer of the Original Code is Sun Microsystems, -# Inc. Portions created by Sun are -# Copyright (C) 1999 Sun Microsystems, Inc. All -# Rights Reserved. -# -# Contributor(s): - -($#ARGV > 0) || die "Usage: gen_rules.pl \n"; - -open (IN, "<$ARGV[0]") || die "Can't open in file $ARGV[0]: $!\n"; - -while() { - if (/.*\d (.*?)\.java/) { - $elem = $1; - $name = "UNKNOWN_ELEMENT"; - if ($elem =~ /HTML(.*)Element/) { - $name = $1; - } - system "build_test.bat -d $ARGV[1] -r $ARGV[2] org.w3c.dom.html.$elem"; - } - -} diff --git a/mozilla/java/dom/tests/src/html_rules b/mozilla/java/dom/tests/src/html_rules deleted file mode 100644 index 2a629b4aaed..00000000000 --- a/mozilla/java/dom/tests/src/html_rules +++ /dev/null @@ -1,58 +0,0 @@ - HTMLDOMImplementation ((HTMLDOMImplementation)(d.createElement("UNKNOWN_ELEMENT"))) -HTMLElement ((HTMLElement)(d.createElement(""))) -HTMLHeadingElement ((HTMLHeadingElement)(d.createElement("HEADING"))) -HTMLFieldSetElement ((HTMLFieldSetElement)(d.createElement("FIELDSET"))) -HTMLTableCaptionElement ((HTMLTableCaptionElement)(d.createElement("TABLECAPTION"))) -HTMLTableSectionElement ((HTMLTableSectionElement)(d.createElement("TABLESECTION"))) -HTMLTableColElement ((HTMLTableColElement)(d.createElement("TABLECOL"))) -HTMLCollection ((HTMLCollection)(((HTMLDocument)d).getAnchors())) -HTMLDocument ((HTMLDocument)(d.getDocumentElement())) -HTMLAnchorElement ((HTMLAnchorElement)(d.createElement("A"))) -HTMLAppletElement ((HTMLAppletElement)(d.createElement("APPLET"))) -HTMLAreaElement ((HTMLAreaElement)(d.createElement("AREA"))) -HTMLBaseElement ((HTMLBaseElement)(d.createElement("BASE"))) -HTMLBaseFontElement ((HTMLBaseFontElement)(d.createElement("BASEFONT"))) -HTMLBodyElement ((HTMLBodyElement)(d.createElement("BODY"))) -HTMLBRElement ((HTMLBRElement)(d.createElement("BR"))) -HTMLButtonElement ((HTMLButtonElement)(d.createElement("BUTTON"))) -HTMLDirectoryElement ((HTMLDirectoryElement)(d.createElement("DIRECTORY"))) -HTMLDivElement ((HTMLDivElement)(d.createElement("DIV"))) -HTMLDListElement ((HTMLDListElement)(d.createElement("DL"))) -HTMLFontElement ((HTMLFontElement)(d.createElement("FONT"))) -HTMLFormElement ((HTMLFormElement)(d.createElement("FORM"))) -HTMLFrameElement ((HTMLFrameElement)(d.createElement("FRAME"))) -HTMLFrameSetElement ((HTMLFrameSetElement)(d.createElement("FRAMESET"))) -HTMLHeadElement ((HTMLHeadElement)(d.createElement("HEAD"))) -HTMLHRElement ((HTMLHRElement)(d.createElement("HR"))) -HTMLHtmlElement ((HTMLHtmlElement)(d.createElement("HTML"))) -HTMLIFrameElement ((HTMLIFrameElement)(d.createElement("IFRAME"))) -HTMLImageElement ((HTMLImageElement)(d.createElement("IMAGE"))) -HTMLInputElement ((HTMLInputElement)(d.createElement("INPUT"))) -HTMLIsIndexElement ((HTMLIsIndexElement)(d.createElement("ISINDEX"))) -HTMLLabelElement ((HTMLLabelElement)(d.createElement("LABEL"))) -HTMLLegendElement ((HTMLLegendElement)(d.createElement("LEGEND"))) -HTMLLIElement ((HTMLLIElement)(d.createElement("LI"))) -HTMLLinkElement ((HTMLLinkElement)(d.createElement("LINK"))) -HTMLMapElement ((HTMLMapElement)(d.createElement("MAP"))) -HTMLMenuElement ((HTMLMenuElement)(d.createElement("MENU"))) -HTMLMetaElement ((HTMLMetaElement)(d.createElement("META"))) -HTMLModElement ((HTMLModElement)(d.createElement("MOD"))) -HTMLObjectElement ((HTMLObjectElement)(d.createElement("OBJECT"))) -HTMLOListElement ((HTMLOListElement)(d.createElement("OL"))) -HTMLOptGroupElement ((HTMLOptGroupElement)(d.createElement("OPTGROUP"))) -HTMLOptionElement ((HTMLOptionElement)(d.createElement("OPTION"))) -HTMLParagraphElement ((HTMLParagraphElement)(d.createElement("PARAGRAPH"))) -HTMLParamElement ((HTMLParamElement)(d.createElement("PARAM"))) -HTMLPreElement ((HTMLPreElement)(d.createElement("PRE"))) -HTMLQuoteElement ((HTMLQuoteElement)(d.createElement("QUOTE"))) -HTMLScriptElement ((HTMLScriptElement)(d.createElement("SCRIPT"))) -HTMLSelectElement ((HTMLSelectElement)(d.createElement("SELECT"))) -HTMLStyleElement ((HTMLStyleElement)(d.createElement("STYLE"))) -HTMLTableCellElement ((HTMLTableCellElement)(d.createElement("TD"))) -HTMLTableElement ((HTMLTableElement)(d.createElement("TABLE"))) -HTMLTableRowElement ((HTMLTableRowElement)(d.createElement("TR"))) -HTMLTextAreaElement ((HTMLTextAreaElement)(d.createElement("TEXTAREA"))) -HTMLTitleElement ((HTMLTitleElement)(d.createElement("TITLE"))) -HTMLUListElement ((HTMLUListElement)(d.createElement("UL"))) - - diff --git a/mozilla/java/dom/tests/src/mozilla.bat b/mozilla/java/dom/tests/src/mozilla.bat deleted file mode 100644 index 9205f507921..00000000000 --- a/mozilla/java/dom/tests/src/mozilla.bat +++ /dev/null @@ -1,38 +0,0 @@ -rem @ECHO off -set BLACKWOOD_HOME=%MOZILLA_HOME% -set MOZILLA_FIVE_HOME=%MOZILLA_HOME%\dist\WIN32_D.OBJ\bin -set JAVADOM_HOME=%MOZILLA_HOME%\java\dom -rem Mozilla binary file name -set MOZILLA_BIN=mozilla.exe -set JAVA_HOME=%JAVAHOME% - -rem path to the SRC directory of the JavaDOM tests -set TEST_PATH=E:\Mozilla\BW_SQE\Tests_accessor\src\JavaDOM\CoreLevel1\src - - -rem if this variable is set then we register DOMDocumentListener through TestLoader applet -rem (currently avilable on Win32 only) -rem otherwise hacked DOMAccessorImpl class is used for running tests -set USE_APPLET_FOR_REGISTRATION=1 - -if %USE_APPLET_FOR_REGISTRATION%x==1x del %TEST_PATH%\..\classes\org\mozilla\dom\DOMAccessorImpl.class 2> nul; -if %USE_APPLET_FOR_REGISTRATION%x==1x del %TEST_PATH%\..\classes\org\mozilla\dom\DocumentImpl.class 2> nul; - -rem url of the directory where you placed test.html and test.xml -rem complete URL looks like that: $TEST_PATH/test.html(xml) -rem if you register DOMDocumentListener through TestLoader applet (by default under Win32) then -rem url below is unused - it should be set in the BWProperties file -rem (BW_HTMLTEST and BW_XMLTEST properties) -rem (file:/test.html and file:/test.xml URLs are used by default) -set TEST_URL=file: - -set PATH=%JAVA_HOME%\bin;%PATH% -set PATH=%MOZILLA_FIVE_HOME%;%PATH% - -set CLASSPATH=%TEST_PATH%\..\classes;%JAVADOM_HOME%\tests\classes;%MOZILLA_FIVE_HOME%\..\classes;%CLASSPATH% - -set PLUGLET=%JAVADOM_HOME%\..\tests\classes - -rem creating new console window with these variables being set -start - diff --git a/mozilla/java/dom/tests/src/mozilla.csh b/mozilla/java/dom/tests/src/mozilla.csh deleted file mode 100755 index 6aa1c238382..00000000000 --- a/mozilla/java/dom/tests/src/mozilla.csh +++ /dev/null @@ -1,22 +0,0 @@ -setenv TEST_PATH `pwd`/../.. -setenv MOZILLA_FIVE_HOME `pwd`/../../../../../dist/bin -setenv JAVADOM_HOME `pwd`/../../../ -setenv JAVA_HOME /opt/j2sdk1_3_0_01/jre -setenv PREFIX /opt - -setenv LD_LIBRARY_PATH ${JAVA_HOME}/jre/lib/sparc -setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${JAVA_HOME}/jre/lib/sparc/classic -setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${JAVA_HOME}/jre/lib/sparc/native_threads -setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${PREFIX}/lib:${PREFIX}/mozilla/dist/lib -setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${MOZILLA_FIVE_HOME} - -setenv PATH ${JAVA_HOME}/bin:${PATH} -setenv PATH ${PATH}:${MOZILLA_FIVE_HOME}:${PREFIX}/bin - -setenv CLASSPATH ${JAVADOM_HOME}/classes:${MOZILLA_FIVE_HOME}/../classes:${PREFIX}/xml/xml.jar:. -setenv CLASSPATH ${TEST_PATH}/classes:${CLASSPATH} - - -setenv LD_PRELOAD libXm.so - -setenv PLUGLET /opt/mozilla.PR3/java/dom/tests/classes diff --git a/mozilla/java/dom/tests/src/newsrc/DOMViewerFactory.java b/mozilla/java/dom/tests/src/newsrc/DOMViewerFactory.java deleted file mode 100755 index 9af24baaee4..00000000000 --- a/mozilla/java/dom/tests/src/newsrc/DOMViewerFactory.java +++ /dev/null @@ -1,107 +0,0 @@ -/* - * The contents of this file are subject to the Mozilla Public License - * Version 1.0 (the "License"); you may not use this file except in - * compliance with the License. You may obtain a copy of the License at - * http://www.mozilla.org/MPL/ - * - * Software distributed under the License is distributed on an "AS IS" - * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See - * the License for the specific language governing rights and limitations - * under the License. - * - * The Initial Developer of the Original Code is Sun Microsystems, - * Inc. Portions created by Sun are Copyright (C) 1999 Sun Microsystems, - * Inc. All Rights Reserved. - * - * Contributor(s): Igor Kushnirskiy - */ - -package org.mozilla.dom.test; - -import org.mozilla.pluglet.*; -import org.mozilla.pluglet.mozilla.*; - -import org.mozilla.dom.*; - -import java.awt.print.*; -import java.awt.*; - -import javax.swing.tree.*; -import javax.swing.event.*; -import javax.swing.*; -import java.util.*; - -import org.w3c.dom.*; -import org.mozilla.dom.test.TestLoader; -import org.mozilla.dom.test.*; - -public class DOMViewerFactory implements PlugletFactory { - public DOMViewerFactory() { - } - - public Pluglet createPluglet(String mimeType) { - return new DOMViewer(); - } - - public void initialize(PlugletManager manager) { - } - - public void shutdown() { - } - -} - - -class DOMViewer implements Pluglet { - private PlugletPeer peer; - private Node rootNode; - - public DOMViewer() { - } - - public void initialize(PlugletPeer peer) { - try { - this.peer = peer; - PlugletTagInfo info = peer.getTagInfo(); - if (info instanceof PlugletTagInfo2) { - PlugletTagInfo2 info2 = (PlugletTagInfo2)info; - Element e = (Element) info2.getDOMElement(); - Document doc = e.getOwnerDocument(); - e = doc.getDocumentElement(); - //e.normalize(); - //rootNode = e; - - // TestLoader hooks in here - Object obj = (Object) doc; - - TestLoader tl = new TestLoader(obj, 0); - if (tl != null) { - Object retobj = tl.loadTest(); - } - } - - } catch (Exception e) { - e.printStackTrace(); - } - - } - - public void start() { - } - - public void stop() { - } - - public void destroy() { - } - - public PlugletStreamListener newStream() { - return null; - } - - public void setWindow(Frame fr) { - } - - public void print(PrinterJob printerJob) { - } -} diff --git a/mozilla/java/dom/tests/src/newsrc/Makefile b/mozilla/java/dom/tests/src/newsrc/Makefile deleted file mode 100755 index d4a9d58dd24..00000000000 --- a/mozilla/java/dom/tests/src/newsrc/Makefile +++ /dev/null @@ -1,50 +0,0 @@ -# The contents of this file are subject to the Mozilla Public -# License Version 1.1 (the "License"); you may not use this file -# except in compliance with the License. You may obtain a copy of -# the License at http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS -# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -# implied. See the License for the specific language governing -# rights and limitations under the License. -# -# The Original Code is mozilla.org code. -# -# The Initial Developer of the Original Code is Sun Microsystems, -# Inc. Portions created by Sun are -# Copyright (C) 1999 Sun Microsystems, Inc. All -# Rights Reserved. -# -# Contributor(s): - - -HOMEDIR=../.. -SRCDIR=$(HOMEDIR)/src/newsrc -CLASSDIR=$(HOMEDIR)/classes - -JAVAC=javac -TESTPACKAGE=org/mozilla/dom/test -DOMPACKAGE=org/mozilla/dom -DOMPLUGLET_JAR=DOMPLUGLET.jar - - - - -all: - @echo "******************************************************" - @echo "Make changes to $(SRCDIR)/mozilla.csh" - @echo "and source it else it may not compile..." - @echo "******************************************************" - @echo "" - $(JAVAC) -d $(CLASSDIR) $(JAVAFILES) - /bin/cp manifest $(CLASSDIR) - cd $(CLASSDIR); jar cvfm $(DOMPLUGLET_JAR) manifest org - cd $(CLASSDIR); /bin/cp $(DOMPLUGLET_JAR) $(MOZILLA_FIVE_HOME)/../classes; rm -rf *.class - -JAVAFILES= DOMViewerFactory.java - -clean: - for i in ${JAVAFILES} ; do \ - file=$$i; \ - classfile=`echo $$file | sed 's/java/class/g'` ; \ - /bin/rm $(CLASSDIR)/$(TESTPACKAGE)/$$classfile ; done diff --git a/mozilla/java/dom/tests/src/newsrc/Makefile.solaris b/mozilla/java/dom/tests/src/newsrc/Makefile.solaris deleted file mode 100755 index f5e36acddad..00000000000 --- a/mozilla/java/dom/tests/src/newsrc/Makefile.solaris +++ /dev/null @@ -1,51 +0,0 @@ -# The contents of this file are subject to the Mozilla Public -# License Version 1.1 (the "License"); you may not use this file -# except in compliance with the License. You may obtain a copy of -# the License at http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS -# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -# implied. See the License for the specific language governing -# rights and limitations under the License. -# -# The Original Code is mozilla.org code. -# -# The Initial Developer of the Original Code is Sun Microsystems, -# Inc. Portions created by Sun are -# Copyright (C) 1999 Sun Microsystems, Inc. All -# Rights Reserved. -# -# Contributor(s): - - -HOMEDIR=../.. -SRCDIR=$(HOMEDIR)/src/newsrc -CLASSDIR=$(HOMEDIR)/classes - -JAVAC=javac -TESTPACKAGE=org/mozilla/dom/test -DOMPACKAGE=org/mozilla/dom -DOMPLUGLET_JAR=DOMPLUGLET.jar - - - - -all: - @echo "******************************************************" - @echo "Make changes to $(SRCDIR)/mozilla.csh" - @echo "and source it else it may not compile..." - @echo "******************************************************" - @echo "" - cd $(HOMEDIR); $(JAVAC) -d $(CLASSDIR) $(JAVAFILES) - /bin/cp manifest $(CLASSDIR) - cd $(HOMEDIR)/src/api; make - cd $(CLASSDIR); jar cvfm $(DOMPLUGLET_JAR) manifest org - cd $(CLASSDIR); /bin/cp $(DOMPLUGLET_JAR) $(MOZILLA_FIVE_HOME)/../classes; rm -rf *.class - -JAVAFILES= DOMViewerFactory.java - -clean: - for i in ${JAVAFILES} ; do \ - file=$$i; \ - classfile=`echo $$file | sed 's/java/class/g'` ; \ - /bin/rm $(CLASSDIR)/$(TESTPACKAGE)/$$classfile ; done diff --git a/mozilla/java/dom/tests/src/newsrc/Makefile.win b/mozilla/java/dom/tests/src/newsrc/Makefile.win deleted file mode 100755 index e9c170c19cd..00000000000 --- a/mozilla/java/dom/tests/src/newsrc/Makefile.win +++ /dev/null @@ -1,58 +0,0 @@ -#!nmake -# -# The contents of this file are subject to the Mozilla Public -# License Version 1.1 (the "License"); you may not use this file -# except in compliance with the License. You may obtain a copy of -# the License at http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS -# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or -# implied. See the License for the specific language governing -# rights and limitations under the License. -# -# The Original Code is mozilla.org code. -# -# The Initial Developer of the Original Code is Sun Microsystems, -# Inc. Portions created by Sun are -# Copyright (C) 1999 Sun Microsystems, Inc. All -# Rights Reserved. -# -# Contributor(s): - - -HOMEDIR=..\.. -SRCDIR=$(HOMEDIR)\src\newsrc -CLASSDIR=$(HOMEDIR)\classes - -JAVAC=javac -TESTPACKAGE=org\mozilla\dom\test -DOMPACKAGE=org\mozilla\dom -DOMPLUGLET_JAR=DOMPLUGLET.jar - - -JAVAFILES=DOMViewerFactory.java - - -all: testloader - @echo done - @cd $(CLASSDIR); jar cvfm $(DOMPLUGLET_JAR) manifest org - @cd $(CLASSDIR); cp $(DOMPLUGLET_JAR) $(MOZILLA_FIVE_HOME)\..\classes; del /f/q *.class - -testloader: - @echo "******************************************************" - @echo "Make changes to $(SRCDIR)\mozilla.bat" - @echo "and execute it else it may not compile..." - @echo "******************************************************" - @echo "" - @echo Building test accessory classes ... - @$(JAVAC) -d $(CLASSDIR) $(JAVAFILES) - @cp manifest $(CLASSDIR) - - -clean: - del /f/q $(CLASSDIR)\$(TESTPACKAGE)\*.class - del /f/q $(CLASSDIR)\$(DOMPACKAGE)\*.class - - - - diff --git a/mozilla/java/dom/tests/src/newsrc/README b/mozilla/java/dom/tests/src/newsrc/README deleted file mode 100755 index 9c586ca7764..00000000000 --- a/mozilla/java/dom/tests/src/newsrc/README +++ /dev/null @@ -1,121 +0,0 @@ -This document describes steps required to run the Test Suite for JavaDOM API -throught a PLUGLET. -You have to build PLUGLETS before building this -( see http://www.mozilla.org/projects/blackwood/java-plugins ) - -For Solaris -=========== - 1) open mozilla.csh - - 2) make changes to variables - MOZILLA_FIVE_HOME - Absolute path where mozilla-bin - executable is located. - JAVA_HOME - Absolute Path to J2SE1.3 dir. - TEST_PATH - Absolute Directory Path where file - BWTestClass.lst is located. - PLUGLET - Absolute dir. where DOMPLUGLET.jar - is located - - 3) source mozilla.csh - this will set up the environment - - 4) Edit BWProperties file and change the locations for variables - BW_TESTDIR (Absolute Directory Path where file BWTestClass.lst is - located) - BW_LOGDIR (Absolute Directory Path where log files need to be - created) - BW_THREADMODE (Execute tests in single thread [S] or - multi-thread [M] mode. Takes values S/M.) - - 5) Set PLUGLET enviornment to point to classes dir. - setenv PLUGLET /opt/mozilla/java/dom/tests/classes - - 6) Set LD_PRELOAD to point to libXm.so - setenv LD_PRELOAD libXm.so - - 7) Invoke autorun.sh from command prompt. - sh autorun.sh - - 8) The results are recorded in HTML file BWTest.html - and in log file BWTest.log - Individual test Log files are also found in 'log' directory. - - ---------------------------------------------------------------------------- - -To Invoke a specific test case - sh autorun.sh -t org.mozilla.dom.test.AttrImpl_getName - -NOTE: All TestCase list is recorded in file BWTestClass.lst.ORIG - If your machine is slow and loading time of mozilla is high then - accordingly increase DELAY_FACTOR to a higher value in autorun.sh. - - - -============================================================================= - -For WIN32 -=========== -Assumes you have installed PERL and the following variables are set in your environment: - MOZILLA_HOME - top directory in mozilla's tree - JAVA_HOME - path to JDK - - 1) open mozilla.bat - - 2) make changes to variables - MOZILLA_BIN - Mozilla's executable file name - (e.g. mozilla.exe or viewer.exe) - TEST_PATH - path to the current directory - (where mozilla.bat is) - PLUGLET - Absolute dir. where DOMPLUGLET.jar - is located - - 3) execute mozilla.bat from command prompt - this will create new console and set up the environment for this - command prompt - - 4) Edit BWProperties file and change the locations for variables - BW_TESTDIR (Absolute Directory Path where file BWTestClass.lst is - located) - BW_LOGDIR (Absolute Directory Path where log files need to be - created) - BW_THREADMODE (Execute tests in single thread [S] or - multi-thread [M] mode. Takes values S/M.) - - - NOTE: Since on Windows file separator is a `\`, it should be escaped - by another '\'. So if a file is in c:\mozilla\tests then it - would be written as c:\\mozilla\\tests. - - - 5) Invoke autorun.pl from command prompt. - perl autorun.pl - - 6) The results are recorded in HTML file BWTest.html - and in log file BWTest.log - Individual test Log files are also found in 'log' directory. - - ---------------------------------------------------------------------------- - -To Invoke a specific test case - perl autorun.pl -t org.mozilla.dom.test.AttrImpl_getName - -NOTE: All Test Cases are recorded in file BWTestClass.lst.ORIG - ---------------------------------------------------------------------------- - - -BUGS: - - Currently a bug is filed against getDocumentType method of object Document. - for XML (see Bugzilla ID: 15118). - Hence all the tests which depend on the same will fail, namely - DocumentTypeImpl->getEntities - DocumentTypeImpl->getInternalSubset - DocumentTypeImpl->getName - DocumentTypeImpl->getNotations - DocumentTypeImpl->getPublicId - DocumentTypeImpl->getSystemId - DocumentImpl->getDoctype_xml - diff --git a/mozilla/java/dom/tests/src/newsrc/manifest b/mozilla/java/dom/tests/src/newsrc/manifest deleted file mode 100755 index 75d00466e71..00000000000 --- a/mozilla/java/dom/tests/src/newsrc/manifest +++ /dev/null @@ -1,2 +0,0 @@ -MIMEDescription: application/dom-pluglet::Pluglet DOM Viewer -Pluglet-Class: org.mozilla.dom.test.DOMViewerFactory diff --git a/mozilla/java/dom/tests/src/newsrc/mozilla.bat b/mozilla/java/dom/tests/src/newsrc/mozilla.bat deleted file mode 100644 index 9205f507921..00000000000 --- a/mozilla/java/dom/tests/src/newsrc/mozilla.bat +++ /dev/null @@ -1,38 +0,0 @@ -rem @ECHO off -set BLACKWOOD_HOME=%MOZILLA_HOME% -set MOZILLA_FIVE_HOME=%MOZILLA_HOME%\dist\WIN32_D.OBJ\bin -set JAVADOM_HOME=%MOZILLA_HOME%\java\dom -rem Mozilla binary file name -set MOZILLA_BIN=mozilla.exe -set JAVA_HOME=%JAVAHOME% - -rem path to the SRC directory of the JavaDOM tests -set TEST_PATH=E:\Mozilla\BW_SQE\Tests_accessor\src\JavaDOM\CoreLevel1\src - - -rem if this variable is set then we register DOMDocumentListener through TestLoader applet -rem (currently avilable on Win32 only) -rem otherwise hacked DOMAccessorImpl class is used for running tests -set USE_APPLET_FOR_REGISTRATION=1 - -if %USE_APPLET_FOR_REGISTRATION%x==1x del %TEST_PATH%\..\classes\org\mozilla\dom\DOMAccessorImpl.class 2> nul; -if %USE_APPLET_FOR_REGISTRATION%x==1x del %TEST_PATH%\..\classes\org\mozilla\dom\DocumentImpl.class 2> nul; - -rem url of the directory where you placed test.html and test.xml -rem complete URL looks like that: $TEST_PATH/test.html(xml) -rem if you register DOMDocumentListener through TestLoader applet (by default under Win32) then -rem url below is unused - it should be set in the BWProperties file -rem (BW_HTMLTEST and BW_XMLTEST properties) -rem (file:/test.html and file:/test.xml URLs are used by default) -set TEST_URL=file: - -set PATH=%JAVA_HOME%\bin;%PATH% -set PATH=%MOZILLA_FIVE_HOME%;%PATH% - -set CLASSPATH=%TEST_PATH%\..\classes;%JAVADOM_HOME%\tests\classes;%MOZILLA_FIVE_HOME%\..\classes;%CLASSPATH% - -set PLUGLET=%JAVADOM_HOME%\..\tests\classes - -rem creating new console window with these variables being set -start - diff --git a/mozilla/java/dom/tests/src/newsrc/mozilla.csh b/mozilla/java/dom/tests/src/newsrc/mozilla.csh deleted file mode 100755 index 6aa1c238382..00000000000 --- a/mozilla/java/dom/tests/src/newsrc/mozilla.csh +++ /dev/null @@ -1,22 +0,0 @@ -setenv TEST_PATH `pwd`/../.. -setenv MOZILLA_FIVE_HOME `pwd`/../../../../../dist/bin -setenv JAVADOM_HOME `pwd`/../../../ -setenv JAVA_HOME /opt/j2sdk1_3_0_01/jre -setenv PREFIX /opt - -setenv LD_LIBRARY_PATH ${JAVA_HOME}/jre/lib/sparc -setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${JAVA_HOME}/jre/lib/sparc/classic -setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${JAVA_HOME}/jre/lib/sparc/native_threads -setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${PREFIX}/lib:${PREFIX}/mozilla/dist/lib -setenv LD_LIBRARY_PATH ${LD_LIBRARY_PATH}:${MOZILLA_FIVE_HOME} - -setenv PATH ${JAVA_HOME}/bin:${PATH} -setenv PATH ${PATH}:${MOZILLA_FIVE_HOME}:${PREFIX}/bin - -setenv CLASSPATH ${JAVADOM_HOME}/classes:${MOZILLA_FIVE_HOME}/../classes:${PREFIX}/xml/xml.jar:. -setenv CLASSPATH ${TEST_PATH}/classes:${CLASSPATH} - - -setenv LD_PRELOAD libXm.so - -setenv PLUGLET /opt/mozilla.PR3/java/dom/tests/classes diff --git a/mozilla/java/dom/tests/src/newsrc/test.html b/mozilla/java/dom/tests/src/newsrc/test.html deleted file mode 100755 index 1c47a452200..00000000000 --- a/mozilla/java/dom/tests/src/newsrc/test.html +++ /dev/null @@ -1,7 +0,0 @@ - - - - -Hello - - diff --git a/mozilla/java/dom/tests/src/newsrc/testxml.html b/mozilla/java/dom/tests/src/newsrc/testxml.html deleted file mode 100755 index a1a2919633d..00000000000 --- a/mozilla/java/dom/tests/src/newsrc/testxml.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -]> - - - -Hello1 - - - - diff --git a/mozilla/java/dom/tests/src/redirect.html b/mozilla/java/dom/tests/src/redirect.html deleted file mode 100755 index cde6860657b..00000000000 --- a/mozilla/java/dom/tests/src/redirect.html +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/mozilla/java/dom/tests/src/redirectxml.html b/mozilla/java/dom/tests/src/redirectxml.html deleted file mode 100755 index c89951c9ef6..00000000000 --- a/mozilla/java/dom/tests/src/redirectxml.html +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/mozilla/java/dom/tests/src/test.html b/mozilla/java/dom/tests/src/test.html deleted file mode 100755 index 1c47a452200..00000000000 --- a/mozilla/java/dom/tests/src/test.html +++ /dev/null @@ -1,7 +0,0 @@ - - - - -Hello - - diff --git a/mozilla/java/dom/tests/src/test.xml b/mozilla/java/dom/tests/src/test.xml deleted file mode 100755 index a3023fe7096..00000000000 --- a/mozilla/java/dom/tests/src/test.xml +++ /dev/null @@ -1,17 +0,0 @@ - - - - - Virtual Library - - - - -Hello - - - - - - diff --git a/mozilla/java/dom/tests/src/testxml.html b/mozilla/java/dom/tests/src/testxml.html deleted file mode 100755 index a1a2919633d..00000000000 --- a/mozilla/java/dom/tests/src/testxml.html +++ /dev/null @@ -1,39 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - -]> - - - -Hello1 - - - -