New Test Cases for all UNSUPPORTED methods

This commit is contained in:
rpallath%eng.sun.com 2000-02-16 22:58:27 +00:00
Родитель a339609feb
Коммит e3d02556ec
77 изменённых файлов: 10446 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,124 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 {
try {
Element e = a.getOwnerElement();
TestLoader.logErrPrint("Attr 'getOwnerElement()' is not a supported method ...");
return BWBaseTest.FAILED;
} catch (UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD";
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 {}
}
}

Просмотреть файл

@ -0,0 +1,131 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
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) according to specs. is not supported...");
return BWBaseTest.FAILED;
} else {
System.out.println("DomImplementation 'createDocumentType(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 {}
}
}

Просмотреть файл

@ -0,0 +1,131 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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 {}
}
}

Просмотреть файл

@ -0,0 +1,135 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
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.createDocument(null, null, null) == null) {
System.out.println("DomImplementation 'createDocument' according to specs. is not supported...");
return BWBaseTest.FAILED;
} else {
System.out.println("DomImplementation 'createDocument' according to specs is not supported...");
}
} catch (UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD ";
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
} catch (DOMException e) {
String msg = "DOMException : " + e;
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 {}
}
}

Просмотреть файл

@ -0,0 +1,123 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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 {}
}
}

Просмотреть файл

@ -0,0 +1,125 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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 {}
}
}

Просмотреть файл

@ -0,0 +1,125 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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 {}
}
}

Просмотреть файл

@ -0,0 +1,125 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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 {}
}
}

Просмотреть файл

@ -0,0 +1,125 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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 {}
}
}

Просмотреть файл

@ -0,0 +1,125 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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 {}
}
}

Просмотреть файл

@ -0,0 +1,125 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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 {}
}
}

Просмотреть файл

@ -0,0 +1,125 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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 {}
}
}

Просмотреть файл

@ -0,0 +1,122 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
DocumentImpl d = (DocumentImpl)tobj;
if (d != null)
{
try {
String s = null;
Event e = d.createEvent(s);
TestLoader.logErrPrint("DocumentEvent is not a supported method...");
return BWBaseTest.FAILED;
} catch (UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD ";
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 {}
}
}

Просмотреть файл

@ -0,0 +1,121 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
DocumentImpl d = (DocumentImpl)tobj;
if (d != null)
{
try {
Event e = d.createEvent("CLICK");
TestLoader.logErrPrint("DocumentEvent is not a supported method...");
return BWBaseTest.FAILED;
} catch (UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD ";
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 {}
}
}

Просмотреть файл

@ -0,0 +1,120 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
DocumentImpl d = (DocumentImpl)tobj;
if (d != null)
{
try {
Element e = d.getElementById(null);
TestLoader.logErrPrint("Document 'getElementById'is an unsupported method");
return BWBaseTest.FAILED;
} catch ( UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD";
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 {}
}
}

Просмотреть файл

@ -0,0 +1,120 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
DocumentImpl d = (DocumentImpl)tobj;
if (d != null)
{
try {
Element e = d.getElementById(null);
TestLoader.logErrPrint("Document 'getElementsById'is an unsupported method");
return BWBaseTest.FAILED;
} catch ( UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD";
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 {}
}
}

Просмотреть файл

@ -0,0 +1,121 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
Document d = (Document)tobj;
if (d != null)
{
try {
String nuri = null;
String qname = null;
NodeList dt = d.getElementsByTagNameNS(nuri, qname);
TestLoader.logErrPrint("Document 'getElementsByTagNameNS' is not a supported method... ");
return BWBaseTest.FAILED;
} catch (UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD";
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 {}
}
}

Просмотреть файл

@ -0,0 +1,121 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
Document d = (Document)tobj;
if (d != null)
{
try {
String nuri = null;
String qname = "xml";
NodeList dt = d.getElementsByTagNameNS(nuri, qname);
TestLoader.logErrPrint("Document 'getElementsByTagNameNS' is not a supported method... ");
return BWBaseTest.FAILED;
} catch (UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD";
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 {}
}
}

Просмотреть файл

@ -0,0 +1,121 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
Document d = (Document)tobj;
if (d != null)
{
try {
String nuri = "";
String qname = null;
NodeList dt = d.getElementsByTagNameNS(nuri, qname);
TestLoader.logErrPrint("Document 'getElementsByTagNameNS' is not a supported method... ");
return BWBaseTest.FAILED;
} catch (UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD";
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 {}
}
}

Просмотреть файл

@ -0,0 +1,121 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
Document d = (Document)tobj;
if (d != null)
{
try {
String nuri = "xmlns:edi='http://ecommerce.org/schema'";
String qname = "xml";
NodeList dt = d.getElementsByTagNameNS(nuri, qname);
TestLoader.logErrPrint("Document 'getElementsByTagNameNS' is not a supported method... ");
return BWBaseTest.FAILED;
} catch (UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD";
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 {}
}
}

Просмотреть файл

@ -0,0 +1,125 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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 {}
}
}

Просмотреть файл

@ -0,0 +1,125 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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 {}
}
}

Просмотреть файл

@ -0,0 +1,137 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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 {}
}
}

Просмотреть файл

@ -0,0 +1,137 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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 {}
}
}

Просмотреть файл

@ -0,0 +1,128 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 s = dt.getInternalSubset();
TestLoader.logErrPrint("DocumentType 'getInternalSubset' according to specs should currently not have been supported...");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD ";
TestLoader.logErrPrint(msg);
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 {}
}
}

Просмотреть файл

@ -0,0 +1,128 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 s = dt.getPublicId();
TestLoader.logErrPrint("DocumentType 'getPublicId' according to specs should currently not have been supported...");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD ";
TestLoader.logErrPrint(msg);
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 {}
}
}

Просмотреть файл

@ -0,0 +1,128 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 s = dt.getSystemId();
TestLoader.logErrPrint("DocumentType 'getSystemId' according to specs should currently not have been supported...");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD ";
TestLoader.logErrPrint(msg);
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 {}
}
}

Просмотреть файл

@ -0,0 +1,135 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 nuri = null;
String lname = null;
String s = e.getAttributeNS(nuri, lname);
TestLoader.logErrPrint("Element 'getAttributeNS' is not a supported method... ");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD";
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
} catch (DOMException de) {
String msg = "DOMException: " + de;
TestLoader.logErrPrint(msg);
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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,135 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 nuri = null;
String lname = "dummyattr";
String s = e.getAttributeNS(nuri, lname);
TestLoader.logErrPrint("Element 'getAttributeNS' is not a supported method... ");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD";
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
} catch (DOMException de) {
String msg = "DOMException: " + de;
TestLoader.logErrPrint(msg);
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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,135 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 nuri = "";
String lname = null;
String s = e.getAttributeNS(nuri, lname);
TestLoader.logErrPrint("Element 'getAttributeNS' is not a supported method... ");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD";
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
} catch (DOMException de) {
String msg = "DOMException: " + de;
TestLoader.logErrPrint(msg);
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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,135 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 nuri = "xmlns:edi='http://ecommerce.org/schema'";
String lname = "dummyattr";
String s = e.getAttributeNS(nuri, lname);
TestLoader.logErrPrint("Element 'getAttributeNS' is not a supported method... ");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD";
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
} catch (DOMException de) {
String msg = "DOMException: " + de;
TestLoader.logErrPrint(msg);
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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,135 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 nuri = null;
String lname = null;
Node n = e.getAttributeNodeNS(nuri, lname);
TestLoader.logErrPrint("Element 'getAttributeNodeNS' is not a supported method... ");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD";
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
} catch (DOMException de) {
String msg = "DOMException: " + de;
TestLoader.logErrPrint(msg);
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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,135 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 nuri = null;
String lname = "dummyattr";
Node n = e.getAttributeNodeNS(nuri, lname);
TestLoader.logErrPrint("Element 'getAttributeNodeNS' is not a supported method... ");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD";
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
} catch (DOMException de) {
String msg = "DOMException: " + de;
TestLoader.logErrPrint(msg);
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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,135 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 nuri = "";
String lname = null;
Node n = e.getAttributeNodeNS(nuri, lname);
TestLoader.logErrPrint("Element 'getAttributeNodeNS' is not a supported method... ");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD";
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
} catch (DOMException de) {
String msg = "DOMException: " + de;
TestLoader.logErrPrint(msg);
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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,135 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 nuri = "xmlns:edi='http://ecommerce.org/schema'";
String lname = "dummyattr";
Node n = e.getAttributeNodeNS(nuri, lname);
TestLoader.logErrPrint("Element 'getAttributeNS' is not a supported method... ");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD";
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
} catch (DOMException de) {
String msg = "DOMException: " + de;
TestLoader.logErrPrint(msg);
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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,135 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 nuri = null;
String lname = null;
NodeList nl = e.getElementsByTagNameNS(nuri, lname);
TestLoader.logErrPrint("Element 'getElementsByTagNameNS' is not a supported method... ");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD";
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
} catch (DOMException de) {
String msg = "DOMException: " + de;
TestLoader.logErrPrint(msg);
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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,135 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 nuri = null;
String lname = "dummyattr";
NodeList nl = e.getElementsByTagNameNS(nuri, lname);
TestLoader.logErrPrint("Element 'getElementsByTagNameNS' is not a supported method... ");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD";
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
} catch (DOMException de) {
String msg = "DOMException: " + de;
TestLoader.logErrPrint(msg);
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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,135 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 nuri = "";
String lname = null;
NodeList nl = e.getElementsByTagNameNS(nuri, lname);
TestLoader.logErrPrint("Element 'getElementsByTagNameNS' is not a supported method... ");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD";
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
} catch (DOMException de) {
String msg = "DOMException: " + de;
TestLoader.logErrPrint(msg);
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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,135 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 nuri = "xmlns:edi='http://ecommerce.org/schema'";
String lname = "dummyattr";
NodeList nl = e.getElementsByTagNameNS(nuri, lname);
TestLoader.logErrPrint("Element 'getElementsByTagNameNS' is not a supported method... ");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD";
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
} catch (DOMException de) {
String msg = "DOMException: " + de;
TestLoader.logErrPrint(msg);
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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,135 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 nuri = null;
String lname = null;
e.removeAttributeNS(nuri, lname);
TestLoader.logErrPrint("Element 'removeAttributeNS' is not a supported method... ");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD";
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
} catch (DOMException de) {
String msg = "DOMException: " + de;
TestLoader.logErrPrint(msg);
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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,135 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 nuri = null;
String lname = "dummyattr";
e.removeAttributeNS(nuri, lname);
TestLoader.logErrPrint("Element 'removeAttributeNS' is not a supported method... ");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD";
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
} catch (DOMException de) {
String msg = "DOMException: " + de;
TestLoader.logErrPrint(msg);
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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,135 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 nuri = "";
String lname = null;
e.removeAttributeNS(nuri, lname);
TestLoader.logErrPrint("Element 'removeAttributeNS' is not a supported method... ");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD";
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
} catch (DOMException de) {
String msg = "DOMException: " + de;
TestLoader.logErrPrint(msg);
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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,135 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 nuri = "xmlns:edi='http://ecommerce.org/schema'";
String lname = "dummyattr";
e.removeAttributeNS(nuri, lname);
TestLoader.logErrPrint("Element 'removeAttributeNS' is not a supported method... ");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD";
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
} catch (DOMException de) {
String msg = "DOMException: " + de;
TestLoader.logErrPrint(msg);
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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,135 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 nuri = null;
String lname = null;
String val = null;
e.setAttributeNS(nuri, lname, val);
TestLoader.logErrPrint("setAttributeNS is a unsupported method ...");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
TestLoader.logErrPrint("UNSUPPORTED METHOD");
return BWBaseTest.PASSED;
} 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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,135 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 nuri = null;
String lname = null;
String val = "1";
e.setAttributeNS(nuri, lname, val);
TestLoader.logErrPrint("setAttributeNS is a unsupported method ...");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
TestLoader.logErrPrint("UNSUPPORTED METHOD");
return BWBaseTest.PASSED;
} 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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,135 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 nuri = null;
String lname = "dummyattr";
String val = null;
e.setAttributeNS(nuri, lname, val);
TestLoader.logErrPrint("setAttributeNS is a unsupported method ...");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
TestLoader.logErrPrint("UNSUPPORTED METHOD");
return BWBaseTest.PASSED;
} 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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,135 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 nuri = null;
String lname = "dummyattr";
String val = "1";
e.setAttributeNS(nuri, lname, val);
TestLoader.logErrPrint("setAttributeNS is a unsupported method ...");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
TestLoader.logErrPrint("UNSUPPORTED METHOD");
return BWBaseTest.PASSED;
} 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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,135 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 nuri = null;
String lname = "dummyattr";
String val = null;
e.setAttributeNS(nuri, lname, val);
TestLoader.logErrPrint("setAttributeNS is a unsupported method ...");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
TestLoader.logErrPrint("UNSUPPORTED METHOD");
return BWBaseTest.PASSED;
} 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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,135 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 nuri = null;
String lname = "dummyattr";
String val = "1";
e.setAttributeNS(nuri, lname, val);
TestLoader.logErrPrint("setAttributeNS is a unsupported method ...");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
TestLoader.logErrPrint("UNSUPPORTED METHOD");
return BWBaseTest.PASSED;
} 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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,135 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 nuri = "xmlns:edi='http://ecommerce.org/schema'";
String lname = null;
String val = null;
e.setAttributeNS(nuri, lname, val);
TestLoader.logErrPrint("setAttributeNS is a unsupported method ...");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
TestLoader.logErrPrint("UNSUPPORTED METHOD");
return BWBaseTest.PASSED;
} 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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,135 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 nuri = "xmlns:edi='http://ecommerce.org/schema'";
String lname = null;
String val = "1";
e.setAttributeNS(nuri, lname, val);
TestLoader.logErrPrint("setAttributeNS is a unsupported method ...");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
TestLoader.logErrPrint("UNSUPPORTED METHOD");
return BWBaseTest.PASSED;
} 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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,135 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 nuri = "xmlns:edi='http://ecommerce.org/schema'";
String lname = "dummyattr";
String val = null;
e.setAttributeNS(nuri, lname, val);
TestLoader.logErrPrint("setAttributeNS is a unsupported method ...");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
TestLoader.logErrPrint("UNSUPPORTED METHOD");
return BWBaseTest.PASSED;
} 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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,135 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 nuri = "xmlns:edi='http://ecommerce.org/schema'";
String lname = "dummyattr";
String val = "1";
e.setAttributeNS(nuri, lname, val);
TestLoader.logErrPrint("setAttributeNS is a unsupported method ...");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
TestLoader.logErrPrint("UNSUPPORTED METHOD");
return BWBaseTest.PASSED;
} 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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,132 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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.setAttributeNodeNS(null);
TestLoader.logErrPrint("Document setAttributeNodeNS is an unsupported method...");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
TestLoader.logErrPrint("UNSUPPORTED METHOD ");
return BWBaseTest.PASSED;
} 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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,140 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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.setAttributeNodeNS(a);
TestLoader.logErrPrint("Document setAttributeNodeNS is an unsupported method...");
return BWBaseTest.FAILED;
}
} catch (UnsupportedOperationException ue) {
TestLoader.logErrPrint("UNSUPPORTED METHOD ");
return BWBaseTest.PASSED;
} 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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,157 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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 {}
}
}

Просмотреть файл

@ -0,0 +1,152 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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 {}
}
}

Просмотреть файл

@ -0,0 +1,152 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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 {}
}
}

Просмотреть файл

@ -0,0 +1,152 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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 {}
}
}

Просмотреть файл

@ -0,0 +1,152 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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 {}
}
}

Просмотреть файл

@ -0,0 +1,156 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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 {}
}
}

Просмотреть файл

@ -0,0 +1,156 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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 {}
}
}

Просмотреть файл

@ -0,0 +1,156 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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 {}
}
}

Просмотреть файл

@ -0,0 +1,152 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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 {}
}
}

Просмотреть файл

@ -0,0 +1,157 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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 {}
}
}

Просмотреть файл

@ -0,0 +1,166 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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 {}
}
}

Просмотреть файл

@ -0,0 +1,180 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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 {}
}
}

Просмотреть файл

@ -0,0 +1,138 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
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.getLocalName();
TestLoader.logErrPrint("getLocalName 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 {}
}
}

Просмотреть файл

@ -0,0 +1,137 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
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.getNamespaceURI();
TestLoader.logErrPrint("getNameSpaceURI 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 {}
}
}

Просмотреть файл

@ -0,0 +1,138 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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 {}
}
}

Просмотреть файл

@ -0,0 +1,137 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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 {}
}
}

Просмотреть файл

@ -0,0 +1,136 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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.setPrefix(newval);
TestLoader.logErrPrint("setPrefix is an unsupported method...");
return BWBaseTest.FAILED;
} catch (UnsupportedOperationException ue) {
TestLoader.logErrPrint("UNSUPPORTED METHOD");
return BWBaseTest.PASSED;
} 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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,136 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
setUnsupported();
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 = "xml";
a.setPrefix(newval);
TestLoader.logErrPrint("setPrefix is an unsupported method...");
return BWBaseTest.FAILED;
} catch (UnsupportedOperationException ue) {
TestLoader.logErrPrint("UNSUPPORTED METHOD");
return BWBaseTest.PASSED;
} 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;
}
}
/**
*
***********************************************************
* 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 {}
}
}

Просмотреть файл

@ -0,0 +1,140 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
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 feature = null;
String ver = null;
if (n.supports(feature, ver)) {};
TestLoader.logErrPrint("Node.supports 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 {}
}
}

Просмотреть файл

@ -0,0 +1,140 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
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 feature = null;
String ver = "2.0";
if (n.supports(feature, ver)) {};
TestLoader.logErrPrint("Node.supports 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 {}
}
}

Просмотреть файл

@ -0,0 +1,140 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
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 feature = "xml";
String ver = null;
if (n.supports(feature, ver)) {};
TestLoader.logErrPrint("Node.supports 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 {}
}
}

Просмотреть файл

@ -0,0 +1,140 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is 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);
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 feature = "xml";
String ver = "2.0";
if (n.supports(feature, ver)) {};
TestLoader.logErrPrint("Node.supports 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 {}
}
}