remove these until they can be replaced with JUnit tests

git-svn-id: svn://10.0.0.236/trunk@128625 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
edburns%acm.org
2002-08-31 18:18:26 +00:00
parent 96fbcc7ad8
commit 3dc3985aad
314 changed files with 0 additions and 41772 deletions

View File

@@ -1,81 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
public class BWBaseTest implements Execution
{
/**
* This is a dummy implementation of interface method
*
* @param obj Object instance (Node/Document/....)
*
* @return if test has passed then return true else false
*
*
*/
public boolean execute(Object obj)
{
return true;
}
/**
* Send a null Object. Classes extending this class will override this
* method
*
*
* @return Null object reference
*
*/
public Object returnObject()
{
return null;
}
/**
* This method indicates whether a particular method is UNSUPPORTED or
* not.
*
*/
public void setUnsupported()
{
UNSUPPORTED = true;
}
/**
* This method indicates whether a particular method is UNSUPPORTED or
* not.
*
*
* @return Value of boolean varibale UNSUPPORTED.
*
*/
public boolean isUnsupported()
{
return UNSUPPORTED;
}
public static boolean FAILED=false;
public static boolean PASSED=true;
public boolean UNSUPPORTED=false;
}

View File

@@ -1,102 +0,0 @@
JavaTest Template:
Woking on similar lines as JavaSpec, this template generator parses an
input Class file and creates unique Test Template Files for
each public method complying with all combinations of its parameter list.
It is mainly used for doing a white box testing for all API's (methods).
This will ensure that all Java Testcase Files follow a given template.
It uses reflection to figure out all constructors and public methods
for a given class.
The file-naming convention for output files is a straight forward one.
<class Name>_<method name>_<param combinations>.java
param combinations is based on all permutations depending on the values
of different data types (as listed below)
Listed below is all possible values for types of parameter.
String = (null, "DUMMY_STRING")
int = (0, Integer.MIN_VALUE, Integer.MAX_VALUE)
float = (0, Float.MIN_VALUE, Float.MAX_VALUE)
double = (0, Double.MIN_VALUE, Double.MAX_VALUE)
long = (0, Long.MIN_VALUE, Long.MAX_VALUE)
short = (0, Short.MIN_VALUE, Short.MAX_VALUE)
char = (Character.MAX_VALUE)
boolean = (true, false)
byte = (Byte.MIN_VALUE, Byte.MAX_VALUE)
Integer = (null, 0, Integer.MIN_VALUE, Integer.MAX_VALUE)
Float = (null, 0, Float.MIN_VALUE, Float.MAX_VALUE)
Double = (null, 0, Double.MIN_VALUE, Double.MAX_VALUE)
Long = (null, 0, Long.MIN_VALUE, Long.MAX_VALUE)
Short = (null, 0, Short.MIN_VALUE, Short.MAX_VALUE)
Character = (null, Character.MAX_VALUE)
Byte = (null, Byte.MIN_VALUE, Byte.MAX_VALUE)
Object = (null, "NOTNULL")
So for a method 'm' for class 'c' with two String parameters
the output files generated will be
c_m_String_String_0.java --> (null, null)
c_m_String_String_1.java --> ("DUMMY_STRING", null)
c_m_String_String_2.java --> (null, "DUMMY_STRING")
C_m_String_String_3.java --> ("DUMMY_STRING", "DUMMY_STRING")
--------------------------------------------------------------------------
How to run
==========
java BWJavaTestTemplate [ -d <output directory> ] classname
<output directory> is the location where u want to generate these
TestCase files
--------------------------------------------------------------------------
For Example
===========
Class: x.java
public class x
{
public x(String arg)
{
}
private void modifyVal(String instr)
{
}
public void setVal (String ival)
{
}
public void setIndexVal (String ival, int index)
{
}
}
Generated Files are
x_setVal_String_0.java
x_setVal_String_1.java
x_setIndexVal_String_int_0.java
x_setIndexVal_String_int_1.java
x_setIndexVal_String_int_2.java
x_setIndexVal_String_int_3.java
x_setIndexVal_String_int_4.java
x_setIndexVal_String_int_5.java
x_x_String_0.java
x_x_String_1.java
x.txt
--------------------------------------------------------------------------
NOTE: Right now the author name in each of those generated files is left
empty. Future version will reflect the same from configuration files

View File

@@ -1,192 +0,0 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Mozilla/4.51 [en] (X11; U; SunOS 5.6 sun4u) [Netscape]">
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#0000EE" vlink="#551A8B" alink="#FF0000">
<b><u><font color="#993399"><font size=+1>JavaTest Template</font></font></u></b>
<br>&nbsp;
<p>Woking on similar lines as JavaSpec, this template generator parses
an
<br>input Class file and creates unique Test Template Files for
<br>each public method complying with all combinations of its parameter
list.
<br>It is mainly used for doing a white box testing for all API's (methods).
<p>This will ensure that all Java Testcase Files follow a given template.
<p>It uses reflection to figure out all constructors and public methods
<br>for a given class.
<br>The file-naming convention for output files is a straight forward one.
<br>[class Name]_[method name]_[param combinations].java
<p>param combinations is based on all permutations depending on the values
<br>of different data types (as listed below)
<br>&nbsp;
<p>Listed below is all possible values for types of parameter.
<br>&nbsp;
<table BORDER COLS=2 WIDTH="100%" BGCOLOR="#99FFCC" NOSAVE >
<tr NOSAVE>
<td WIDTH="100" NOSAVE>String</td>
<td>(null, "DUMMY_STRING")</td>
</tr>
<tr>
<td>int</td>
<td>(0, Integer.MIN_VALUE, Integer.MAX_VALUE)</td>
</tr>
<tr>
<td>float</td>
<td>(0, Float.MIN_VALUE, Float.MAX_VALUE)</td>
</tr>
<tr>
<td>double</td>
<td>(0, Double.MIN_VALUE, Double.MAX_VALUE)</td>
</tr>
<tr>
<td>long</td>
<td>(0, Long.MIN_VALUE, Long.MAX_VALUE)</td>
</tr>
<tr>
<td>short</td>
<td>(0, Short.MIN_VALUE, Short.MAX_VALUE)</td>
</tr>
<tr>
<td>char</td>
<td>(Character.MAX_VALUE)</td>
</tr>
<tr>
<td>boolean</td>
<td>(true, false)</td>
</tr>
<tr>
<td>byte</td>
<td>(Byte.MIN_VALUE, Byte.MAX_VALUE)</td>
</tr>
<tr>
<td>Integer</td>
<td>(null, 0, Integer.MIN_VALUE, Integer.MAX_VALUE)</td>
</tr>
<tr>
<td>Float</td>
<td>&nbsp;(null, 0, Float.MIN_VALUE, Float.MAX_VALUE)</td>
</tr>
<tr>
<td>Double</td>
<td>(null, 0, Double.MIN_VALUE, Double.MAX_VALUE)</td>
</tr>
<tr>
<td>Long</td>
<td>(null, 0, Long.MIN_VALUE, Long.MAX_VALUE)</td>
</tr>
<tr>
<td>Short</td>
<td>(null, 0, Short.MIN_VALUE, Short.MAX_VALUE)</td>
</tr>
<tr>
<td>Character</td>
<td>(null, Character.MAX_VALUE)</td>
</tr>
<tr>
<td>Byte</td>
<td>(null, Byte.MIN_VALUE, Byte.MAX_VALUE)</td>
</tr>
<tr>
<td>Object</td>
<td>(null, "NOTNULL")</td>
</tr>
<tr>
<td></td>
<td></td>
</tr>
</table>
<p>So for a method 'm' for class 'c' with two String parameters the output
files generated will be
<br>c_m_String_String_0.java --> (null, null)
<br>c_m_String_String_1.java --> ("DUMMY_STRING", null)
<br>c_m_String_String_2.java --> (null, "DUMMY_STRING")
<br>C_m_String_String_3.java --> ("DUMMY_STRING", "DUMMY_STRING")
<p>
<hr NOSHADE WIDTH="100%">
<h2>
<b><u><font color="#993399"><font size=+1>How to run</font></font></u></b></h2>
<p><br>java BWJavaTestTemplate [ -d&nbsp;<output directory>] classname
<br><output directory>is the location where u want to generate these
<br>TestCase files
<br>
<hr NOSHADE WIDTH="100%">
<h2>
<u><font color="#993399">Example</font></u></h2>
<font color="#FF6666">Class: x.java</font><font color="#FF6666"></font>
<p><font color="#FF6666">&nbsp;&nbsp; public class x</font>
<br><font color="#FF6666">&nbsp;&nbsp; {</font>
<br><font color="#FF6666">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public x(String
arg)</font>
<br><font color="#FF6666">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {</font>
<br><font color="#FF6666">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }</font><font color="#FF6666"></font>
<p><font color="#FF6666">&nbsp;&nbsp;&nbsp;&nbsp; private void modifyVal(String
instr)</font>
<br><font color="#FF6666">&nbsp;&nbsp;&nbsp;&nbsp; {</font>
<br><font color="#FF6666">&nbsp;&nbsp;&nbsp;&nbsp; }</font><font color="#FF6666"></font>
<p><font color="#FF6666">&nbsp;&nbsp;&nbsp;&nbsp; public void setVal (String
ival)</font>
<br><font color="#FF6666">&nbsp;&nbsp;&nbsp;&nbsp; {</font>
<br><font color="#FF6666">&nbsp;&nbsp;&nbsp;&nbsp; }</font><font color="#FF6666"></font>
<p><font color="#FF6666">&nbsp;&nbsp;&nbsp;&nbsp; public void setIndexVal
(String ival, int index)</font>
<br><font color="#FF6666">&nbsp;&nbsp;&nbsp;&nbsp; {</font>
<br><font color="#FF6666">&nbsp;&nbsp;&nbsp;&nbsp; }</font>
<br><font color="#FF6666">&nbsp; }</font>
<br><font color="#FF6666"></font>&nbsp;<font color="#FF6666"></font>
<p>Generated Files are
<br><font color="#FF6666">&nbsp;&nbsp;&nbsp; x_setVal_String_0.java</font>
<br><font color="#FF6666">&nbsp;&nbsp;&nbsp; x_setIndexVal_String_int_0.java</font>
<br><font color="#FF6666">&nbsp;&nbsp;&nbsp; x_setIndexVal_String_int_1.java</font>
<br><font color="#FF6666">&nbsp;&nbsp;&nbsp; x_setIndexVal_String_int_2.java</font>
<br><font color="#FF6666">&nbsp;&nbsp;&nbsp; x_setIndexVal_String_int_3.java</font>
<br><font color="#FF6666">&nbsp;&nbsp;&nbsp; x_setIndexVal_String_int_4.java</font>
<br><font color="#FF6666">&nbsp;&nbsp;&nbsp; x_setIndexVal_String_int_5.java</font>
<br><font color="#FF6666">&nbsp;&nbsp;&nbsp; x_x_String_0.java</font>
<br><font color="#FF6666">&nbsp;&nbsp;&nbsp; x_x_String_1.java</font>
<br><font color="#FF6666">&nbsp;&nbsp;&nbsp; x.txt</font><font color="#FF6666"></font>
<p>
<hr NOSHADE WIDTH="100%">
<p><u><font color="#993399"><font size=+1>NOTE</font></font></u>
<p>Right now the author name in each of those generated files is left&nbsp;
empty. Future version will reflect the same from configuration files.
</body>
</html>

View File

@@ -1,895 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.lang.*;
import java.util.*;
import java.io.*;
import java.lang.reflect.*;
import org.mozilla.dom.*;
class BWJavaTemplate
{
ReflectionTest rt=null;
String fullclass=null;
String jclass=null;
String packageName=null;
String outputDir=null;
Vector outputFiles=null;
private Method[] methods = null;
private String currMethod=new String();
private String currParamList=new String();
private Hashtable rules = null;
public BWJavaTemplate(String ajclass, String aoutDir, String rulesFile)
{
outputDir = aoutDir+System.getProperty("file.separator");
fullclass = ajclass;
if (fullclass == null) {
System.out.println("Class Name cannot be NULL... ");
return;
}
if (rulesFile != null) {
loadRules(rulesFile);
}
int idx = fullclass.lastIndexOf(".");
if ( idx != -1)
{
packageName = fullclass.substring(0, idx);
jclass = fullclass.substring(idx+1);
System.out.println("packageName is " + packageName);
} else {
jclass = fullclass;
}
System.out.println("class Name is " + jclass);
rt = new ReflectionTest();
if (rt == null) {
System.out.println("Could not instantiate ReflectionTest...\n");
return;
}
outputFiles = new Vector();
System.out.println("Parsing constructors and methods ...");
if (!(parseClassConstructor()) && !(parseClassMethod())) {
System.out.println("Can't parse neither COnstructors nor Methods !!!\n");
return;
}
DataOutputStream dos = null;
String txtFile = jclass + ".txt";
try {
dos = new DataOutputStream( new FileOutputStream(outputDir+txtFile));
} catch (Exception e) {
System.out.println("ERROR: Could not create File " + txtFile);
return;
}
try {
//dos.write("#Class|Method|Parameter|FileName\n".getBytes());
for(int i=0; i<outputFiles.size(); i++)
{
dos.write(((String)outputFiles.elementAt(i)).getBytes());
dos.write("\n".getBytes());
}
} catch (IOException e) {
System.out.println("ERROR: Could not write to File " + txtFile);
return;
}
try {
dos.close();
} catch (Exception e) {
System.out.println("ERROR: Could not close File " + txtFile);
return;
}
}
private void loadRules(String rulesFile) {
try {
/* Input stream routines*/
FileInputStream in = new FileInputStream(rulesFile);
LineNumberReader ln = new LineNumberReader((Reader)(new InputStreamReader((InputStream)in)));
/*Parsing rules file*/
rules = new Hashtable();
String str = null;
int pos = -1;
while((str = ln.readLine()) != null) {
if ((pos = str.indexOf(' ')) <= 0 || pos == str.length()) {
System.out.println("WARNIG: rules file format error at line "+ln.getLineNumber());
} else {
//System.out.println("Rules: "+str.substring(0, pos)+" <-> "+str.substring(pos+1));
rules.put((Object)str.substring(0, pos), (Object)str.substring(pos+1));
}
}
} catch (Exception e) {
System.out.println("WARNING: Can't read rules file "+rulesFile+": "+e.fillInStackTrace()+"\n");
rules = null;
}
}
/**
* Parses the class constructors and create class files
*
* @return Either true or false
*/
public boolean parseClassConstructor()
{
Class cl = null;
try {
cl = Class.forName(fullclass);
} catch (Exception e) {
System.out.println("Could not find class file " + fullclass);
return false;
}
if (Modifier.isAbstract(cl.getModifiers()))
return false;
if (Modifier.isInterface(cl.getModifiers()))
return false;
Constructor constructors[] = rt.getConstructors(cl);
String paramString = null;
int staticFlag=0;
for (int i = 0; i < constructors.length; i++)
{
staticFlag=0;
String returnType = "void";
Constructor c = constructors[i];
Class[] paramTypes = c.getParameterTypes();
String conName = c.getName();
currMethod = conName;
int mod = c.getModifiers();
if (Modifier.isStatic(mod))
staticFlag = 1;
else if (!(Modifier.isPublic(mod)))
continue;
paramString = new String();
ParamCombination pcomb = null;
pcomb = new ParamCombination(paramTypes.length);
if (pcomb == null)
{
System.out.println("Could not instantiate ParamCombination...\n");
return false;
}
for (int j = 0; j < paramTypes.length; j++)
{
// Construct parameter string (param1_param2_...)
String pstr = paramTypes[j].getName();
String tstr = new String("");
// check if param is an Array and accordingly get
// component type.
if (pstr.startsWith("["))
{
int index = pstr.lastIndexOf("[") + 1;
tstr = "Arr" + (new Integer(index)).toString();
pstr = (pstr.substring(index)).trim();
if (pstr.length() == 1) {
if (pstr.compareTo("I") == 0)
tstr = tstr + "int";
else if (pstr.compareTo("F") == 0)
tstr = tstr + "float";
else if (pstr.compareTo("D") == 0)
tstr = tstr + "double";
else if (pstr.compareTo("S") == 0)
tstr = tstr + "short";
else if (pstr.compareTo("C") == 0)
tstr = tstr + "char";
else if (pstr.compareTo("B") == 0)
tstr = tstr + "byte";
} else {
// Remove the leading 'L' from the string
pstr = pstr.substring(1);
}
// Remove trailing semicolon
int slen = pstr.length();
pstr = pstr.substring(0, slen-1);
}
// Remove . from paramname (java.lang.String)
int idx = pstr.lastIndexOf(".");
if (idx != -1)
{
pstr = pstr.substring(idx + 1);
}
tstr = tstr + pstr;
paramString = paramString + "_" + tstr;
/* get value list for parameter */
pcomb.addElement(getParameterValueList(tstr));
}
// remove leading underscore
if (paramString.length() > 1)
paramString = paramString.substring(1);
currParamList = paramString;
String combstr[] = pcomb.getValueList();
if (combstr != null)
{
for (int k=0; k< combstr.length; k++)
{
String pstr = paramString + "_" + (new Integer(k)).toString();
createTemplate(jclass, jclass, pstr, combstr[k], returnType, staticFlag);
}
} else {
createTemplate(jclass, jclass, null, null, returnType, staticFlag);
}
}
return true;
}
/**
* Parses the class methods and create class files
*
* @return Either true or false
*/
public boolean parseClassMethod()
{
Class cl = null;
try {
cl = Class.forName(fullclass);
} catch (Exception e) {
System.out.println("Could not find class file " + fullclass);
return false;
}
methods = rt.getMethods(cl);
String paramString = null;
int staticFlag=0;
for (int i = 0; i < methods.length; i++)
{
System.out.println("Parsing method: "+jclass+" -> "+methods[i].getName());
staticFlag=0;
Method m = methods[i];
Class[] paramTypes = m.getParameterTypes();
String conName = m.getName();
String returnType = (m.getReturnType()).getName();
currMethod = conName;
int mod = m.getModifiers();
if (Modifier.isStatic(mod))
staticFlag = 1;
else if (!(Modifier.isPublic(mod)))
continue;
paramString = new String();
ParamCombination pcomb = null;
System.out.println("Number of parms: "+paramTypes.length);
pcomb = new ParamCombination(paramTypes.length);
if (pcomb == null)
{
System.out.println("Could not instantiate ParamCombination...\n");
return false;
}
if (Modifier.isStatic(m.getModifiers()))
staticFlag = 1;
for (int j = 0; j < paramTypes.length; j++)
{
// Construct parameter string (param1_param2_...)
String pstr = paramTypes[j].getName();
String tstr = new String("");
// check if param is an Array and accordingly get
// component type.
if (pstr.startsWith("["))
{
int index = pstr.lastIndexOf("[") + 1;
tstr = "Arr" + (new Integer(index)).toString();
pstr = (pstr.substring(index)).trim();
if (pstr.length() == 1) {
if (pstr.compareTo("I") == 0)
tstr = tstr + "int";
else if (pstr.compareTo("F") == 0)
tstr = tstr + "float";
else if (pstr.compareTo("D") == 0)
tstr = tstr + "double";
else if (pstr.compareTo("S") == 0)
tstr = tstr + "short";
else if (pstr.compareTo("C") == 0)
tstr = tstr + "char";
else if (pstr.compareTo("B") == 0)
tstr = tstr + "byte";
} else {
// Remove the leading 'L' from the string
pstr = pstr.substring(1);
}
// Remove trailing semicolon
int slen = pstr.length();
pstr = pstr.substring(0, slen-1);
}
// Remove . from paramname (java.lang.String)
int idx = pstr.lastIndexOf(".");
if (idx != -1)
{
pstr = pstr.substring(idx + 1);
}
tstr = tstr + pstr;
paramString = paramString + "_" + tstr;
/* get value list for parameter */
pcomb.addElement(getParameterValueList(tstr));
}
// remove leading underscore
if (paramString.length() > 1)
paramString = paramString.substring(1);
String combstr[] = pcomb.getValueList();
if (combstr != null)
{
for (int k=0; k< combstr.length; k++)
{
String pstr = paramString + "_" + (new Integer(k)).toString();
currParamList = paramString;
createTemplate(jclass, conName, pstr, combstr[k], returnType, staticFlag);
}
} else {
createTemplate(jclass, conName, null, null, returnType, staticFlag);
}
}
return true;
}
/**
* GetParses the class constructors and create class files
*
* @param Name of the paramter class
* @return Vector of all permissbile values for this class
* viz: for String class it will be null/"dummy"
*/
public Vector getParameterValueList(String param)
{
Vector result = null;
if (param == null) return null;
result = new Vector();
if (param.compareTo("String") == 0)
{
result.addElement("null");
result.addElement("\"DUMMY_STRING\"");
} else
if (param.compareTo("int") == 0)
{
result.addElement("0");
result.addElement("Integer.MIN_VALUE");
result.addElement("Integer.MAX_VALUE");
} else
if (param.compareTo("float") == 0)
{
result.addElement("0");
result.addElement("Float.MAX_VALUE");
result.addElement("Float.NaN");
} else
if (param.compareTo("double") == 0)
{
result.addElement("0");
result.addElement("Double.MAX_VALUE");
result.addElement("Double.NaN");
} else
if (param.compareTo("long") == 0)
{
result.addElement("0");
result.addElement("Long.MIN_VALUE");
result.addElement("Long.MAX_VALUE");
} else
if (param.compareTo("short") == 0)
{
result.addElement("0");
result.addElement("Short.MIN_VALUE");
result.addElement("Short.MAX_VALUE");
} else
if (param.compareTo("char") == 0)
{
result.addElement("Character.MAX_VALUE");
} else
if (param.compareTo("boolean") == 0)
{
result.addElement("true");
result.addElement("false");
} else
if (param.compareTo("byte") == 0)
{
result.addElement("Byte.MIN_VALUE");
result.addElement("Byte.MAX_VALUE");
} else
if (param.compareTo("Integer") == 0)
{
result.addElement("null");
result.addElement("new Integer(0)");
result.addElement("new Integer(Integer.MIN_VALUE)");
result.addElement("new Integer(Integer.MAX_VALUE)");
} else
if (param.compareTo("Float") == 0)
{
result.addElement("null");
result.addElement("new Float(0)");
result.addElement("new Float(Float.MAX_VALUE)");
result.addElement("new Float(Float.NaN)");
} else
if (param.compareTo("Double") == 0)
{
result.addElement("null");
result.addElement("new Double(0)");
result.addElement("new Double(Double.MAX_VALUE)");
result.addElement("new Double(Double.NaN)");
} else
if (param.compareTo("Long") == 0)
{
result.addElement("null");
result.addElement("new Long(0)");
result.addElement("new Long(Long.MIN_VALUE)");
result.addElement("new Long(Long.MAX_VALUE)");
} else
if (param.compareTo("Short") == 0)
{
result.addElement("null");
result.addElement("new Short(0)");
result.addElement("new Short(Short.MIN_VALUE)");
result.addElement("new Short(Short.MAX_VALUE)");
} else
if (param.compareTo("Character") == 0)
{
result.addElement("'" + (new Character(Character.MAX_VALUE)).toString() + "`");
} else
if (param.compareTo("Byte") == 0)
{
result.addElement("null");
result.addElement("new Byte(Byte.MIN_VALUE)");
result.addElement("new Byte(Byte.MAX_VALUE)");
} else
if (rules != null && rules.get(param) != null) {
result.addElement((String)rules.get(param));
result.addElement("null");
} else {
result.addElement("null");
result.addElement("NOTNULL");
}
return result;
}
/**
* Create Template Java File
*
* @param className Name of the class file
* @param methodName Name of the method
* @param paramString Concated string of parameter types separated by
* underscores.
* @param valueList A concated String of values for the above
* parameters in the given order
* @param returnType Return Type for the given method.
*
*
* @return void
*/
public void createTemplate( String className,
String methodName,
String paramString,
String valueList,
String returnType,
int staticFlag
)
{
if (className == null) return;
if (methodName == null) return;
if (returnType == null) return;
if (paramString != null)
if (valueList == null) return;
String cName = new String();
String filename = new String();
if (paramString != null){
cName = className + "_" + methodName + "_" + paramString;
filename = cName + ".java";
} else {
cName = className + "_" + methodName;
filename = cName + ".java";
}
DataOutputStream raf = null;
try {
raf = new DataOutputStream( new FileOutputStream(outputDir+filename));
} catch (Exception e) {
System.out.println("ERROR: Could not create File " + filename);
return;
}
try {
String fstr = new String();
fstr = fstr + "/**";
fstr = fstr + "\n";
fstr = fstr + " *";
fstr = fstr + "\n";
fstr = fstr + " * @version 1.00 ";
fstr = fstr + "\n";
fstr = fstr + " * @author ";
fstr = fstr + "\n";
fstr = fstr + " *";
fstr = fstr + "\n";
fstr = fstr + " * TESTID ";
fstr = fstr + "\n";
fstr = fstr + " * ";
fstr = fstr + "\n";
fstr = fstr + " *";
fstr = fstr + "\n";
fstr = fstr + " */";
fstr = fstr + "\n";
fstr = fstr + "package org.mozilla.dom.test;";
fstr = fstr + "\n";
fstr = fstr + "\n";
fstr = fstr + "import java.util.*;";
fstr = fstr + "\n";
fstr = fstr + "import java.io.*;";
fstr = fstr + "\n";
fstr = fstr + "import org.mozilla.dom.test.*;";
fstr = fstr + "\n";
fstr = fstr + "import org.mozilla.dom.*;";
fstr = fstr + "\n";
fstr = fstr + "import org.w3c.dom.*;";
fstr = fstr + "\n";
fstr = fstr + "import org.w3c.dom.html.*;";
fstr = fstr + "\n";
fstr = fstr + "\n";
fstr = fstr + "public class " + cName;
fstr = fstr + " extends BWBaseTest implements Execution";
fstr = fstr + "\n";
fstr = fstr + "{";
fstr = fstr + "\n";
fstr = fstr + "\n";
fstr = fstr + " /**";
fstr = fstr + "\n";
fstr = fstr + " *";
fstr = fstr + "\n";
fstr = fstr + " ***********************************************************";
fstr = fstr + "\n";
fstr = fstr + " * Constructor";
fstr = fstr + "\n";
fstr = fstr + " ***********************************************************";
fstr = fstr + "\n";
fstr = fstr + " *";
fstr = fstr + "\n";
fstr = fstr + " */";
fstr = fstr + "\n";
fstr = fstr + " public " + cName + "()";
fstr = fstr + "\n";
fstr = fstr + " {";
fstr = fstr + "\n";
fstr = fstr + " }";
fstr = fstr + "\n";
fstr = fstr + "\n";
fstr = fstr + "\n";
fstr = fstr + " /**";
fstr = fstr + "\n";
fstr = fstr + " *";
fstr = fstr + "\n";
fstr = fstr + " ***********************************************************";
fstr = fstr + "\n";
fstr = fstr + " * Starting point of application";
fstr = fstr + "\n";
fstr = fstr + " *";
fstr = fstr + "\n";
fstr = fstr + " * @param args Array of command line arguments";
fstr = fstr + "\n";
fstr = fstr + " *";
fstr = fstr + "\n";
fstr = fstr + " ***********************************************************";
fstr = fstr + "\n";
fstr = fstr + " */";
fstr = fstr + "\n";
fstr = fstr + " public static void main(String[] args)";
fstr = fstr + "\n";
fstr = fstr + " {";
fstr = fstr + "\n";
fstr = fstr + " }";
fstr = fstr + "\n";
fstr = fstr + "\n";
fstr = fstr + " /**";
fstr = fstr + "\n";
fstr = fstr + " ***********************************************************";
fstr = fstr + "\n";
fstr = fstr + " *";
fstr = fstr + "\n";
fstr = fstr + " * Execute Method ";
fstr = fstr + "\n";
fstr = fstr + " *";
fstr = fstr + "\n";
fstr = fstr + " * @param tobj Object reference (Node/Document/...)";
fstr = fstr + "\n";
fstr = fstr + " * @return true or false depending on whether test passed or failed.";
fstr = fstr + "\n";
fstr = fstr + " *";
fstr = fstr + "\n";
fstr = fstr + " ***********************************************************";
fstr = fstr + "\n";
fstr = fstr + " */";
fstr = fstr + "\n";
fstr = fstr + " public boolean execute(Object tobj)";
fstr = fstr + "\n";
fstr = fstr + " {";
fstr = fstr + "\n";
fstr = fstr + " if (tobj == null) {";
fstr = fstr + "\n";
fstr = fstr + " TestLoader.logPrint(\"Object is NULL...\");";
fstr = fstr + "\n";
fstr = fstr + " return BWBaseTest.FAILED;";
fstr = fstr + "\n";
fstr = fstr + " }";
fstr = fstr + "\n";
fstr = fstr + "\n";
fstr = fstr + " String os = System.getProperty(\"OS\");";
fstr = fstr + "\n";
fstr = fstr + " osRoutine(os);";
fstr = fstr + "\n";
/* String pString=valueList;
if (valueList == null)
pString= new String("");
*/
if (rules != null && rules.get(className) != null)
fstr =fstr + makeTestRoutine(className, returnType, methodName, valueList);
fstr = fstr + " return BWBaseTest.PASSED;";
fstr = fstr + "\n";
fstr = fstr + " }";
fstr = fstr + "\n";
fstr = fstr + "\n";
fstr = fstr + " /**";
fstr = fstr + "\n";
fstr = fstr + " *";
fstr = fstr + "\n";
fstr = fstr + " ***********************************************************";
fstr = fstr + "\n";
fstr = fstr + " * Routine where OS specific checks are made. ";
fstr = fstr + "\n";
fstr = fstr + " *";
fstr = fstr + "\n";
fstr = fstr + " * @param os OS Name (SunOS/Linus/MacOS/...)";
fstr = fstr + "\n";
fstr = fstr + " ***********************************************************";
fstr = fstr + "\n";
fstr = fstr + " *";
fstr = fstr + "\n";
fstr = fstr + " */";
fstr = fstr + "\n";
fstr = fstr + " private void osRoutine(String os)";
fstr = fstr + "\n";
fstr = fstr + " {";
fstr = fstr + "\n";
fstr = fstr + " if(os == null) return;";
fstr = fstr + "\n";
fstr = fstr + "\n";
fstr = fstr + " os = os.trim();";
fstr = fstr + "\n";
fstr = fstr + " if(os.compareTo(\"SunOS\") == 0) {}";
fstr = fstr + "\n";
fstr = fstr + " else if(os.compareTo(\"Linux\") == 0) {}";
fstr = fstr + "\n";
fstr = fstr + " else if(os.compareTo(\"Windows\") == 0) {}";
fstr = fstr + "\n";
fstr = fstr + " else if(os.compareTo(\"MacOS\") == 0) {}";
fstr = fstr + "\n";
fstr = fstr + " else {}";
fstr = fstr + "\n";
fstr = fstr + " }";
fstr = fstr + "\n";
fstr = fstr + "}";
fstr = fstr + "\n";
raf.write(fstr.getBytes());
} catch (IOException e) {
System.out.println("ERROR: Could not write to File " + filename);
return;
}
try {
raf.close();
} catch (Exception e) {
System.out.println("ERROR: Could not close File " + filename);
return;
}
DataOutputStream dos = null;
String txtFile = className + ".txt";
try {
dos = new DataOutputStream( new FileOutputStream(outputDir+txtFile));
} catch (Exception e) {
System.out.println("ERROR: Could not create File " + txtFile);
return;
}
String str = className + ":" + currMethod + ":" + currParamList + ":" + filename;
outputFiles.addElement(str);
try {
dos.write(str.getBytes());
} catch (IOException e) {
System.out.println("ERROR: Could not write to File " + txtFile);
return;
}
try {
dos.close();
} catch (Exception e) {
System.out.println("ERROR: Could not close File " + txtFile);
return;
}
}
private Method findMethod(String mn) {
if (methods == null)
return null;
for (int i=0; i < methods.length; i++) {
//System.out.println("Comparing: "+mn+" <-> "+methods[i].getName());
if (methods[i].getName().compareTo(mn) == 0)
return methods[i];
}
return null;
}
private String makeTestRoutine(String className, String returnType, String methodName, String valueList) {
String result = new String("");
String tab = " ", tab1=tab+tab, tab2=tab1+tab, tab3=tab2+tab1;
String robj = "", check = "";
String valList = valueList;
if (valueList == null)
valList = "";
/*Weather method returns object ?*/
if (returnType.compareTo("void") != 0) {
robj = returnType + " rc = ";
if (returnType.indexOf('.') > 0)
check = tab3 + "if (rc == null) return BWBaseTest.FAILED;\n";
}
/*Let's try to find set<->get pair for methods with one argument ...*/
if (methodName.startsWith("set") && valueList.indexOf(',') < 0 && valueList.compareTo("null") != 0) {
String getMethod = "get" + methodName.substring(3);
//System.out.println("GET_METHOD "+getMethod);
Method m;
if ((m = findMethod(getMethod)) != null && m.getParameterTypes().length == 0) {
String equals = ".equals";
/* Weather return type is standard ?*/
if (m.getReturnType().getName().indexOf('.') < 0)
equals = "==";
check = tab3+"if (!(obj."+getMethod+"()"+equals+"("+valueList+"))) return BWBaseTest.FAILED;\n";
}
}
result += tab1 + "Document d = (Document)tobj;\n";
result += tab1 + "if (d != null) {\n";
result += tab2 + "try {\n";
result += tab3 + className+" obj = " + rules.get(className)+";\n";
result += tab3 + robj + "obj." + methodName + "("+valList+");\n" + check;
result += tab2 + "} catch (Exception e) {\n";
result += tab3 + "return BWBaseTest.FAILED;\n";
result += tab2 + "}\n";
result += tab1 + "} else {\n";
result += tab2 + "return BWBaseTest.FAILED;\n";
result += tab1 + "}\n";
return result;
}
public static void usage()
{
System.out.println("Usage: java JavaTestTemplate [-d <output dir>] [-r <rules_file>] <className>");
}
public static void main(String args[])
{
if (args.length == 0)
{
BWJavaTemplate.usage();
return;
}
String className = null;
String outDirectory = null;
String rulesFile = null;
switch(args.length) {
case(0):
BWJavaTemplate.usage();
return;
case(1):
if(args[0].charAt(0) == '-') {
BWJavaTemplate.usage();
return;
}
className = args[0];
break;
default:
for(int i=0; i<args.length;) {
if(args[i].charAt(0) != '-') {
if (className != null) {
BWJavaTemplate.usage();
return;
}
className = args[i];
i++;
} else {
switch(args[i].charAt(1)) {
case('d'):
outDirectory = args[i+1];
i+=2;
break;
case('r'):
rulesFile = args[i+1];
i+=2;
break;
default:
BWJavaTemplate.usage();
return;
} //end of switch
}
}
} //end of switch
/*
if (args.length == 3) {
if (args[0].compareTo("-d") != 0) {
BWJavaTemplate.usage();
return;
} else {
outDirectory = args[1];
className = args[2];
}
} else {
outDirectory = new String(".");
className = args[0];
}
*/
BWJavaTemplate jt = new BWJavaTemplate(className, outDirectory, rulesFile);
}
}

View File

@@ -1,7 +0,0 @@
BW_TESTDIR=/workspace/mozilla/java/dom/tests/src
BW_TESTFILE=BWTestClass.lst
BW_LOGDIR=/workspace/mozilla/java/dom/tests/src/log
BW_LOGFILE=BWTest.log
BW_THREADMODE=S
BW_HTMLTEST=file:
BW_XMLTEST=file:

View File

@@ -1 +0,0 @@
org.mozilla.dom.test.AttrImpl_getName

View File

@@ -1,237 +0,0 @@
org.mozilla.dom.test.AttrImpl_getName
org.mozilla.dom.test.AttrImpl_getSpecified
org.mozilla.dom.test.AttrImpl_getValue
org.mozilla.dom.test.AttrImpl_getOwnerElement
org.mozilla.dom.test.AttrImpl_setValue_String_0
org.mozilla.dom.test.AttrImpl_setValue_String_1
org.mozilla.dom.test.CharacterDataImpl_appendData_String_0
org.mozilla.dom.test.CharacterDataImpl_appendData_String_1
org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_0
org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_1
org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_2
org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_3
org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_4
org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_5
org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_6
org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_7
org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_8
org.mozilla.dom.test.CharacterDataImpl_getData
org.mozilla.dom.test.CharacterDataImpl_getLength
org.mozilla.dom.test.CharacterDataImpl_insertData_int_String_0
org.mozilla.dom.test.CharacterDataImpl_insertData_int_String_1
org.mozilla.dom.test.CharacterDataImpl_insertData_int_String_2
org.mozilla.dom.test.CharacterDataImpl_insertData_int_String_3
org.mozilla.dom.test.CharacterDataImpl_insertData_int_String_4
org.mozilla.dom.test.CharacterDataImpl_insertData_int_String_5
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_0
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_1
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_10
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_11
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_12
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_13
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_14
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_15
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_16
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_17
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_2
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_3
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_4
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_5
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_6
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_7
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_8
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_9
org.mozilla.dom.test.CharacterDataImpl_setData_String_0
org.mozilla.dom.test.CharacterDataImpl_setData_String_1
org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_0
org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_1
org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_2
org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_3
org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_4
org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_5
org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_6
org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_7
org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_8
org.mozilla.dom.test.DOMImplementationImpl_hasFeature_String_String_0
org.mozilla.dom.test.DOMImplementationImpl_hasFeature_String_String_1
org.mozilla.dom.test.DOMImplementationImpl_hasFeature_String_String_2
org.mozilla.dom.test.DOMImplementationImpl_hasFeature_String_String_3
org.mozilla.dom.test.DOMImplementationImpl_hasFeature_String_String_4
org.mozilla.dom.test.DOMImplementationImpl_createDocumentType_String_String_String_0
org.mozilla.dom.test.DOMImplementationImpl_createDocumentType_String_String_String_String_0
org.mozilla.dom.test.DOMImplementationImpl_createDocument_String_String_DocumentType_0
org.mozilla.dom.test.DocumentImpl_createAttribute_String_0
org.mozilla.dom.test.DocumentImpl_createAttribute_String_1
org.mozilla.dom.test.DocumentImpl_createAttributeNS_String_String_0
org.mozilla.dom.test.DocumentImpl_createAttributeNS_String_String_1
org.mozilla.dom.test.DocumentImpl_createAttributeNS_String_String_2
org.mozilla.dom.test.DocumentImpl_createAttributeNS_String_String_3
org.mozilla.dom.test.DocumentImpl_createCDATASection_String_0
org.mozilla.dom.test.DocumentImpl_createCDATASection_String_1
org.mozilla.dom.test.DocumentImpl_createComment_String_0
org.mozilla.dom.test.DocumentImpl_createComment_String_1
org.mozilla.dom.test.DocumentImpl_createDocumentFragment
org.mozilla.dom.test.DocumentImpl_createElement_String_0
org.mozilla.dom.test.DocumentImpl_createElement_String_1
org.mozilla.dom.test.DocumentImpl_createElement_createElementNS_String_String_0
org.mozilla.dom.test.DocumentImpl_createElement_createElementNS_String_String_1
org.mozilla.dom.test.DocumentImpl_createElement_createElementNS_String_String_2
org.mozilla.dom.test.DocumentImpl_createElement_createElementNS_String_String_3
org.mozilla.dom.test.DocumentImpl_createEntityReference_String_0
org.mozilla.dom.test.DocumentImpl_createEvent_String_0
org.mozilla.dom.test.DocumentImpl_createEvent_String_1
org.mozilla.dom.test.DocumentImpl_createProcessingInstruction_String_String_0
org.mozilla.dom.test.DocumentImpl_createProcessingInstruction_String_String_1
org.mozilla.dom.test.DocumentImpl_createProcessingInstruction_String_String_2
org.mozilla.dom.test.DocumentImpl_createProcessingInstruction_String_String_3
org.mozilla.dom.test.DocumentImpl_createTextNode_String_0
org.mozilla.dom.test.DocumentImpl_createTextNode_String_1
org.mozilla.dom.test.DocumentImpl_getDoctype
org.mozilla.dom.test.DocumentImpl_getDocumentElement
org.mozilla.dom.test.DocumentImpl_getElementsByTagName_String_0
org.mozilla.dom.test.DocumentImpl_getElementsByTagName_String_1
org.mozilla.dom.test.DocumentImpl_getElementsByTagNameNS_String_String_0
org.mozilla.dom.test.DocumentImpl_getElementsByTagNameNS_String_String_1
org.mozilla.dom.test.DocumentImpl_getElementsByTagNameNS_String_String_2
org.mozilla.dom.test.DocumentImpl_getElementsByTagNameNS_String_String_3
org.mozilla.dom.test.DocumentImpl_getElementById_String_0
org.mozilla.dom.test.DocumentImpl_getElementById_String_1
org.mozilla.dom.test.DocumentImpl_getImplementation
org.mozilla.dom.test.DocumentImpl_importNode_Node_boolean_0
org.mozilla.dom.test.DocumentImpl_importNode_Node_boolean_1
org.mozilla.dom.test.DocumentImpl_importNode_Node_boolean_2
org.mozilla.dom.test.DocumentImpl_importNode_Node_boolean_3
org.mozilla.dom.test.DocumentTypeImpl_getEntities
org.mozilla.dom.test.DocumentTypeImpl_getName
org.mozilla.dom.test.DocumentTypeImpl_getNotations
org.mozilla.dom.test.DocumentTypeImpl_getPublicId
org.mozilla.dom.test.DocumentTypeImpl_getSystemId
org.mozilla.dom.test.DocumentTypeImpl_getInternalSubset
org.mozilla.dom.test.ElementImpl_getAttributeNode_String_0
org.mozilla.dom.test.ElementImpl_getAttributeNode_String_1
org.mozilla.dom.test.ElementImpl_getAttribute_String_0
org.mozilla.dom.test.ElementImpl_getAttribute_String_1
org.mozilla.dom.test.ElementImpl_getAttributeNS_String_String_0
org.mozilla.dom.test.ElementImpl_getAttributeNS_String_String_1
org.mozilla.dom.test.ElementImpl_getAttributeNS_String_String_2
org.mozilla.dom.test.ElementImpl_getAttributeNS_String_String_3
org.mozilla.dom.test.ElementImpl_getAttributeNodeNS_String_String_0
org.mozilla.dom.test.ElementImpl_getAttributeNodeNS_String_String_1
org.mozilla.dom.test.ElementImpl_getAttributeNodeNS_String_String_2
org.mozilla.dom.test.ElementImpl_getAttributeNodeNS_String_String_3
org.mozilla.dom.test.ElementImpl_getElementsByTagName_String_0
org.mozilla.dom.test.ElementImpl_getElementsByTagName_String_1
org.mozilla.dom.test.ElementImpl_getElementsByTagNameNS_String_String_0
org.mozilla.dom.test.ElementImpl_getElementsByTagNameNS_String_String_1
org.mozilla.dom.test.ElementImpl_getElementsByTagNameNS_String_String_2
org.mozilla.dom.test.ElementImpl_getElementsByTagNameNS_String_String_3
org.mozilla.dom.test.ElementImpl_getTagName
org.mozilla.dom.test.ElementImpl_hasAttribute_String_0
org.mozilla.dom.test.ElementImpl_hasAttribute_String_1
org.mozilla.dom.test.ElementImpl_hasAttributeNS_String_String_0
org.mozilla.dom.test.ElementImpl_hasAttributeNS_String_String_1
org.mozilla.dom.test.ElementImpl_hasAttributeNS_String_String_2
org.mozilla.dom.test.ElementImpl_hasAttributeNS_String_String_3
org.mozilla.dom.test.ElementImpl_normalize
org.mozilla.dom.test.ElementImpl_removeAttributeNode_Attr_0
org.mozilla.dom.test.ElementImpl_removeAttributeNode_Attr_1
org.mozilla.dom.test.ElementImpl_removeAttribute_String_0
org.mozilla.dom.test.ElementImpl_removeAttribute_String_1
org.mozilla.dom.test.ElementImpl_removeAttributeNS_String_String_0
org.mozilla.dom.test.ElementImpl_removeAttributeNS_String_String_1
org.mozilla.dom.test.ElementImpl_removeAttributeNS_String_String_2
org.mozilla.dom.test.ElementImpl_removeAttributeNS_String_String_3
org.mozilla.dom.test.ElementImpl_setAttributeNode_Attr_0
org.mozilla.dom.test.ElementImpl_setAttributeNode_Attr_1
org.mozilla.dom.test.ElementImpl_setAttributeNode_Attr_2
org.mozilla.dom.test.ElementImpl_setAttributeNodeNS_Attr_0
org.mozilla.dom.test.ElementImpl_setAttributeNodeNS_Attr_1
org.mozilla.dom.test.ElementImpl_setAttribute_String_String_0
org.mozilla.dom.test.ElementImpl_setAttribute_String_String_1
org.mozilla.dom.test.ElementImpl_setAttribute_String_String_2
org.mozilla.dom.test.ElementImpl_setAttribute_String_String_3
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_0
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_1
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_2
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_3
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_4
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_5
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_6
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_7
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_8
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_9
org.mozilla.dom.test.NamedNodeMapImpl_getLength
org.mozilla.dom.test.NamedNodeMapImpl_getNamedItem_String_0
org.mozilla.dom.test.NamedNodeMapImpl_getNamedItem_String_1
org.mozilla.dom.test.NamedNodeMapImpl_getNamedItemNS_String_String_0
org.mozilla.dom.test.NamedNodeMapImpl_getNamedItemNS_String_String_1
org.mozilla.dom.test.NamedNodeMapImpl_getNamedItemNS_String_String_2
org.mozilla.dom.test.NamedNodeMapImpl_getNamedItemNS_String_String_3
org.mozilla.dom.test.NamedNodeMapImpl_item_int_0
org.mozilla.dom.test.NamedNodeMapImpl_item_int_1
org.mozilla.dom.test.NamedNodeMapImpl_item_int_2
org.mozilla.dom.test.NamedNodeMapImpl_removeNamedItem_String_0
org.mozilla.dom.test.NamedNodeMapImpl_removeNamedItem_String_1
org.mozilla.dom.test.NamedNodeMapImpl_removeNamedItemNS_String_String_0
org.mozilla.dom.test.NamedNodeMapImpl_removeNamedItemNS_String_String_1
org.mozilla.dom.test.NamedNodeMapImpl_removeNamedItemNS_String_String_2
org.mozilla.dom.test.NamedNodeMapImpl_removeNamedItemNS_String_String_3
org.mozilla.dom.test.NamedNodeMapImpl_setNamedItem_Node_0
org.mozilla.dom.test.NamedNodeMapImpl_setNamedItem_Node_1
org.mozilla.dom.test.NamedNodeMapImpl_setNamedItem_Node_2
org.mozilla.dom.test.NamedNodeMapImpl_setNamedItemNS_Node_0
org.mozilla.dom.test.NamedNodeMapImpl_setNamedItemNS_Node_1
org.mozilla.dom.test.NodeImpl_appendChild_Node_0
org.mozilla.dom.test.NodeImpl_appendChild_Node_1
org.mozilla.dom.test.NodeImpl_cloneNode_boolean_0
org.mozilla.dom.test.NodeImpl_cloneNode_boolean_1
org.mozilla.dom.test.NodeImpl_equals_Object_0
org.mozilla.dom.test.NodeImpl_equals_Object_1
org.mozilla.dom.test.NodeImpl_equals_Object_2
org.mozilla.dom.test.NodeImpl_getAttributes
org.mozilla.dom.test.NodeImpl_getChildNodes
org.mozilla.dom.test.NodeImpl_getFirstChild
org.mozilla.dom.test.NodeImpl_getLastChild
org.mozilla.dom.test.NodeImpl_getNextSibling
org.mozilla.dom.test.NodeImpl_getNodeName
org.mozilla.dom.test.NodeImpl_getNodeType
org.mozilla.dom.test.NodeImpl_getNodeValue
org.mozilla.dom.test.NodeImpl_getOwnerDocument
org.mozilla.dom.test.NodeImpl_getParentNode
org.mozilla.dom.test.NodeImpl_getPreviousSibling
org.mozilla.dom.test.NodeImpl_getNamespaceURI
org.mozilla.dom.test.NodeImpl_getPrefix
org.mozilla.dom.test.NodeImpl_getLocalName
org.mozilla.dom.test.NodeImpl_hasChildNodes
org.mozilla.dom.test.NodeImpl_hashCode
org.mozilla.dom.test.NodeImpl_insertBefore_Node_Node_0
org.mozilla.dom.test.NodeImpl_insertBefore_Node_Node_1
org.mozilla.dom.test.NodeImpl_insertBefore_Node_Node_2
org.mozilla.dom.test.NodeImpl_insertBefore_Node_Node_3
org.mozilla.dom.test.NodeImpl_removeChild_Node_0
org.mozilla.dom.test.NodeImpl_removeChild_Node_1
org.mozilla.dom.test.NodeImpl_replaceChild_Node_Node_0
org.mozilla.dom.test.NodeImpl_replaceChild_Node_Node_1
org.mozilla.dom.test.NodeImpl_replaceChild_Node_Node_2
org.mozilla.dom.test.NodeImpl_replaceChild_Node_Node_3
org.mozilla.dom.test.NodeImpl_setNodeValue_String_0
org.mozilla.dom.test.NodeImpl_setNodeValue_String_1
org.mozilla.dom.test.NodeImpl_toString
org.mozilla.dom.test.NodeImpl_normalize
org.mozilla.dom.test.NodeImpl_setPrefix_String_0
org.mozilla.dom.test.NodeImpl_setPrefix_String_1
org.mozilla.dom.test.NodeImpl_supports_String_String_0
org.mozilla.dom.test.NodeImpl_supports_String_String_1
org.mozilla.dom.test.NodeImpl_supports_String_String_2
org.mozilla.dom.test.NodeImpl_supports_String_String_3
org.mozilla.dom.test.NodeListImpl_getLength
org.mozilla.dom.test.NodeListImpl_item_int_0
org.mozilla.dom.test.NodeListImpl_item_int_1
org.mozilla.dom.test.NodeListImpl_item_int_2
org.mozilla.dom.test.ProcessingInstructionImpl_getData
org.mozilla.dom.test.ProcessingInstructionImpl_getTarget
org.mozilla.dom.test.ProcessingInstructionImpl_setData_String_0
org.mozilla.dom.test.ProcessingInstructionImpl_setData_String_1
org.mozilla.dom.test.TextImpl_splitText_int_0
org.mozilla.dom.test.TextImpl_splitText_int_1
org.mozilla.dom.test.TextImpl_splitText_int_2

View File

@@ -1,174 +0,0 @@
org.mozilla.dom.test.AttrImpl_getName
org.mozilla.dom.test.AttrImpl_getSpecified
org.mozilla.dom.test.AttrImpl_getValue
org.mozilla.dom.test.AttrImpl_getOwnerElement
org.mozilla.dom.test.AttrImpl_setValue_String_0
org.mozilla.dom.test.AttrImpl_setValue_String_1
org.mozilla.dom.test.CharacterDataImpl_appendData_String_0
org.mozilla.dom.test.CharacterDataImpl_appendData_String_1
org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_0
org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_1
org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_2
org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_3
org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_4
org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_5
org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_6
org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_7
org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_8
org.mozilla.dom.test.CharacterDataImpl_getData
org.mozilla.dom.test.CharacterDataImpl_getLength
org.mozilla.dom.test.CharacterDataImpl_insertData_int_String_0
org.mozilla.dom.test.CharacterDataImpl_insertData_int_String_1
org.mozilla.dom.test.CharacterDataImpl_insertData_int_String_2
org.mozilla.dom.test.CharacterDataImpl_insertData_int_String_3
org.mozilla.dom.test.CharacterDataImpl_insertData_int_String_4
org.mozilla.dom.test.CharacterDataImpl_insertData_int_String_5
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_0
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_1
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_10
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_11
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_12
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_13
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_14
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_15
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_16
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_17
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_2
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_3
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_4
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_5
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_6
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_7
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_8
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_9
org.mozilla.dom.test.CharacterDataImpl_setData_String_0
org.mozilla.dom.test.CharacterDataImpl_setData_String_1
org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_0
org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_1
org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_2
org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_3
org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_4
org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_5
org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_6
org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_7
org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_8
org.mozilla.dom.test.DOMImplementationImpl_hasFeature_String_String_0
org.mozilla.dom.test.DOMImplementationImpl_hasFeature_String_String_1
org.mozilla.dom.test.DOMImplementationImpl_hasFeature_String_String_2
org.mozilla.dom.test.DOMImplementationImpl_hasFeature_String_String_3
org.mozilla.dom.test.DOMImplementationImpl_createDocumentType_String_String_String_0
org.mozilla.dom.test.DOMImplementationImpl_createDocumentType_String_String_String_1
org.mozilla.dom.test.DOMImplementationImpl_createDocumentType_String_String_String_2
org.mozilla.dom.test.DOMImplementationImpl_createDocumentType_String_String_String_3
org.mozilla.dom.test.DOMImplementationImpl_createDocumentType_String_String_String_4
org.mozilla.dom.test.DOMImplementationImpl_createDocument_String_String_DocumentType_0
org.mozilla.dom.test.DOMImplementationImpl_createDocument_String_String_DocumentType_1
org.mozilla.dom.test.DOMImplementationImpl_createDocument_String_String_DocumentType_2
org.mozilla.dom.test.DOMImplementationImpl_createDocument_String_String_DocumentType_3
org.mozilla.dom.test.DOMImplementationImpl_createDocument_String_String_DocumentType_4
org.mozilla.dom.test.DocumentImpl_createAttribute_String_0
org.mozilla.dom.test.DocumentImpl_createAttribute_String_1
org.mozilla.dom.test.DocumentImpl_createComment_String_0
org.mozilla.dom.test.DocumentImpl_createComment_String_1
org.mozilla.dom.test.DocumentImpl_createDocumentFragment
org.mozilla.dom.test.DocumentImpl_createElement_String_0
org.mozilla.dom.test.DocumentImpl_createElement_String_1
org.mozilla.dom.test.DocumentImpl_createEvent_String_0
org.mozilla.dom.test.DocumentImpl_createEvent_String_1
org.mozilla.dom.test.DocumentImpl_createEvent_String_2
org.mozilla.dom.test.DocumentImpl_createTextNode_String_0
org.mozilla.dom.test.DocumentImpl_createTextNode_String_1
org.mozilla.dom.test.DocumentImpl_getDoctype
org.mozilla.dom.test.DocumentImpl_getDocumentElement
org.mozilla.dom.test.DocumentImpl_getElementsByTagName_String_0
org.mozilla.dom.test.DocumentImpl_getElementsByTagName_String_1
org.mozilla.dom.test.DocumentImpl_getElementById_String_0
org.mozilla.dom.test.DocumentImpl_getElementById_String_1
org.mozilla.dom.test.DocumentImpl_getElementById_String_2
org.mozilla.dom.test.DocumentImpl_getImplementation
org.mozilla.dom.test.DocumentImpl_importNode_Node_boolean_0
org.mozilla.dom.test.DocumentImpl_importNode_Node_boolean_1
org.mozilla.dom.test.DocumentImpl_importNode_Node_boolean_2
org.mozilla.dom.test.DocumentImpl_importNode_Node_boolean_3
org.mozilla.dom.test.ElementImpl_getAttributeNode_String_0
org.mozilla.dom.test.ElementImpl_getAttributeNode_String_1
org.mozilla.dom.test.ElementImpl_getAttribute_String_0
org.mozilla.dom.test.ElementImpl_getAttribute_String_1
org.mozilla.dom.test.ElementImpl_getElementsByTagName_String_0
org.mozilla.dom.test.ElementImpl_getElementsByTagName_String_1
org.mozilla.dom.test.ElementImpl_getTagName
org.mozilla.dom.test.ElementImpl_hasAttribute_String_0
org.mozilla.dom.test.ElementImpl_hasAttribute_String_1
org.mozilla.dom.test.ElementImpl_normalize
org.mozilla.dom.test.ElementImpl_removeAttributeNode_Attr_0
org.mozilla.dom.test.ElementImpl_removeAttributeNode_Attr_1
org.mozilla.dom.test.ElementImpl_removeAttribute_String_0
org.mozilla.dom.test.ElementImpl_removeAttribute_String_1
org.mozilla.dom.test.ElementImpl_setAttributeNode_Attr_0
org.mozilla.dom.test.ElementImpl_setAttributeNode_Attr_1
org.mozilla.dom.test.ElementImpl_setAttributeNode_Attr_2
org.mozilla.dom.test.ElementImpl_setAttribute_String_String_0
org.mozilla.dom.test.ElementImpl_setAttribute_String_String_1
org.mozilla.dom.test.ElementImpl_setAttribute_String_String_2
org.mozilla.dom.test.ElementImpl_setAttribute_String_String_3
org.mozilla.dom.test.NamedNodeMapImpl_getLength
org.mozilla.dom.test.NamedNodeMapImpl_getNamedItem_String_0
org.mozilla.dom.test.NamedNodeMapImpl_getNamedItem_String_1
org.mozilla.dom.test.NamedNodeMapImpl_item_int_0
org.mozilla.dom.test.NamedNodeMapImpl_item_int_1
org.mozilla.dom.test.NamedNodeMapImpl_item_int_2
org.mozilla.dom.test.NamedNodeMapImpl_removeNamedItem_String_0
org.mozilla.dom.test.NamedNodeMapImpl_removeNamedItem_String_1
org.mozilla.dom.test.NamedNodeMapImpl_setNamedItem_Node_0
org.mozilla.dom.test.NamedNodeMapImpl_setNamedItem_Node_1
org.mozilla.dom.test.NamedNodeMapImpl_setNamedItem_Node_2
org.mozilla.dom.test.NodeImpl_appendChild_Node_0
org.mozilla.dom.test.NodeImpl_appendChild_Node_1
org.mozilla.dom.test.NodeImpl_cloneNode_boolean_0
org.mozilla.dom.test.NodeImpl_cloneNode_boolean_1
org.mozilla.dom.test.NodeImpl_equals_Object_0
org.mozilla.dom.test.NodeImpl_equals_Object_1
org.mozilla.dom.test.NodeImpl_equals_Object_2
org.mozilla.dom.test.NodeImpl_getAttributes
org.mozilla.dom.test.NodeImpl_getChildNodes
org.mozilla.dom.test.NodeImpl_getFirstChild
org.mozilla.dom.test.NodeImpl_getLastChild
org.mozilla.dom.test.NodeImpl_getNextSibling
org.mozilla.dom.test.NodeImpl_getNodeName
org.mozilla.dom.test.NodeImpl_getNodeType
org.mozilla.dom.test.NodeImpl_getNodeValue
org.mozilla.dom.test.NodeImpl_getOwnerDocument
org.mozilla.dom.test.NodeImpl_getParentNode
org.mozilla.dom.test.NodeImpl_getPreviousSibling
org.mozilla.dom.test.NodeImpl_getNamespaceURI
org.mozilla.dom.test.NodeImpl_getPrefix
org.mozilla.dom.test.NodeImpl_getLocalName
org.mozilla.dom.test.NodeImpl_hasChildNodes
org.mozilla.dom.test.NodeImpl_hashCode
org.mozilla.dom.test.NodeImpl_insertBefore_Node_Node_0
org.mozilla.dom.test.NodeImpl_insertBefore_Node_Node_1
org.mozilla.dom.test.NodeImpl_insertBefore_Node_Node_2
org.mozilla.dom.test.NodeImpl_insertBefore_Node_Node_3
org.mozilla.dom.test.NodeImpl_removeChild_Node_0
org.mozilla.dom.test.NodeImpl_removeChild_Node_1
org.mozilla.dom.test.NodeImpl_replaceChild_Node_Node_0
org.mozilla.dom.test.NodeImpl_replaceChild_Node_Node_1
org.mozilla.dom.test.NodeImpl_replaceChild_Node_Node_2
org.mozilla.dom.test.NodeImpl_replaceChild_Node_Node_3
org.mozilla.dom.test.NodeImpl_setNodeValue_String_0
org.mozilla.dom.test.NodeImpl_setNodeValue_String_1
org.mozilla.dom.test.NodeImpl_toString
org.mozilla.dom.test.NodeListImpl_getLength
org.mozilla.dom.test.NodeListImpl_item_int_0
org.mozilla.dom.test.NodeListImpl_item_int_1
org.mozilla.dom.test.NodeListImpl_item_int_2
org.mozilla.dom.test.NodeImpl_normalize
org.mozilla.dom.test.NodeImpl_setPrefix_String_0
org.mozilla.dom.test.NodeImpl_setPrefix_String_1
org.mozilla.dom.test.NodeImpl_supports_String_String_0
org.mozilla.dom.test.NodeImpl_supports_String_String_1
org.mozilla.dom.test.NodeImpl_supports_String_String_2
org.mozilla.dom.test.NodeImpl_supports_String_String_3
org.mozilla.dom.test.TextImpl_splitText_int_0
org.mozilla.dom.test.TextImpl_splitText_int_1
org.mozilla.dom.test.TextImpl_splitText_int_2

View File

@@ -1,121 +0,0 @@
org.mozilla.dom.test.DOMImplementationImpl_hasFeature_String_String_0
org.mozilla.dom.test.DOMImplementationImpl_hasFeature_String_String_1
org.mozilla.dom.test.DOMImplementationImpl_hasFeature_String_String_2
org.mozilla.dom.test.DOMImplementationImpl_hasFeature_String_String_4
org.mozilla.dom.test.DOMImplementationImpl_createDocumentType_String_String_String_0
org.mozilla.dom.test.DOMImplementationImpl_createDocumentType_String_String_String_1
org.mozilla.dom.test.DOMImplementationImpl_createDocumentType_String_String_String_2
org.mozilla.dom.test.DOMImplementationImpl_createDocumentType_String_String_String_3
org.mozilla.dom.test.DOMImplementationImpl_createDocumentType_String_String_String_4
org.mozilla.dom.test.DOMImplementationImpl_createDocument_String_String_DocumentType_0
org.mozilla.dom.test.DOMImplementationImpl_createDocument_String_String_DocumentType_1
org.mozilla.dom.test.DOMImplementationImpl_createDocument_String_String_DocumentType_2
org.mozilla.dom.test.DOMImplementationImpl_createDocument_String_String_DocumentType_3
org.mozilla.dom.test.DOMImplementationImpl_createDocument_String_String_DocumentType_4
org.mozilla.dom.test.DocumentImpl_createAttributeNS_String_String_0
org.mozilla.dom.test.DocumentImpl_createAttributeNS_String_String_1
org.mozilla.dom.test.DocumentImpl_createAttributeNS_String_String_2
org.mozilla.dom.test.DocumentImpl_createAttributeNS_String_String_3
org.mozilla.dom.test.DocumentImpl_createCDATASection_String_0
org.mozilla.dom.test.DocumentImpl_createCDATASection_String_1
org.mozilla.dom.test.DocumentImpl_createComment_String_0
org.mozilla.dom.test.DocumentImpl_createComment_String_1
org.mozilla.dom.test.DocumentImpl_createElement_createElementNS_String_String_0
org.mozilla.dom.test.DocumentImpl_createElement_createElementNS_String_String_1
org.mozilla.dom.test.DocumentImpl_createElement_createElementNS_String_String_2
org.mozilla.dom.test.DocumentImpl_createElement_createElementNS_String_String_3
org.mozilla.dom.test.DocumentImpl_createEvent_String_0
org.mozilla.dom.test.DocumentImpl_createEvent_String_1
org.mozilla.dom.test.DocumentImpl_createEvent_String_2
org.mozilla.dom.test.DocumentImpl_createEntityReference_String_0
org.mozilla.dom.test.DocumentImpl_createEntityReference_String_1
org.mozilla.dom.test.DocumentImpl_createProcessingInstruction_String_String_0
org.mozilla.dom.test.DocumentImpl_createProcessingInstruction_String_String_1
org.mozilla.dom.test.DocumentImpl_createProcessingInstruction_String_String_2
org.mozilla.dom.test.DocumentImpl_createProcessingInstruction_String_String_3
org.mozilla.dom.test.DocumentImpl_createTextNode_String_0
org.mozilla.dom.test.DocumentImpl_createTextNode_String_1
org.mozilla.dom.test.DocumentImpl_getDoctype_xml
org.mozilla.dom.test.DocumentImpl_getDocumentElement
org.mozilla.dom.test.DocumentImpl_getElementsByTagName_String_0
org.mozilla.dom.test.DocumentImpl_getElementsByTagName_String_1
org.mozilla.dom.test.DocumentImpl_getElementsByTagNameNS_String_String_0
org.mozilla.dom.test.DocumentImpl_getElementsByTagNameNS_String_String_1
org.mozilla.dom.test.DocumentImpl_getElementsByTagNameNS_String_String_2
org.mozilla.dom.test.DocumentImpl_getElementsByTagNameNS_String_String_3
org.mozilla.dom.test.DocumentImpl_getElementById_String_0
org.mozilla.dom.test.DocumentImpl_getElementById_String_1
org.mozilla.dom.test.DocumentImpl_getElementById_String_2
org.mozilla.dom.test.DocumentImpl_getImplementation
org.mozilla.dom.test.DocumentImpl_importNode_Node_boolean_0
org.mozilla.dom.test.DocumentImpl_importNode_Node_boolean_1
org.mozilla.dom.test.DocumentImpl_importNode_Node_boolean_2
org.mozilla.dom.test.DocumentImpl_importNode_Node_boolean_3
org.mozilla.dom.test.DocumentTypeImpl_getEntities
org.mozilla.dom.test.DocumentTypeImpl_getName
org.mozilla.dom.test.DocumentTypeImpl_getNotations
org.mozilla.dom.test.DocumentTypeImpl_getPublicId
org.mozilla.dom.test.DocumentTypeImpl_getSystemId
org.mozilla.dom.test.DocumentTypeImpl_getInternalSubset
org.mozilla.dom.test.ProcessingInstructionImpl_getData
org.mozilla.dom.test.ProcessingInstructionImpl_getTarget
org.mozilla.dom.test.ProcessingInstructionImpl_setData_String_0
org.mozilla.dom.test.ProcessingInstructionImpl_setData_String_1
org.mozilla.dom.test.TextImpl_splitText_int_0
org.mozilla.dom.test.TextImpl_splitText_int_1
org.mozilla.dom.test.TextImpl_splitText_int_2
org.mozilla.dom.test.ElementImpl_getAttributeNS_String_String_0
org.mozilla.dom.test.ElementImpl_getAttributeNS_String_String_1
org.mozilla.dom.test.ElementImpl_getAttributeNS_String_String_2
org.mozilla.dom.test.ElementImpl_getAttributeNS_String_String_3
org.mozilla.dom.test.ElementImpl_getAttributeNodeNS_String_String_0
org.mozilla.dom.test.ElementImpl_getAttributeNodeNS_String_String_1
org.mozilla.dom.test.ElementImpl_getAttributeNodeNS_String_String_2
org.mozilla.dom.test.ElementImpl_getAttributeNodeNS_String_String_3
org.mozilla.dom.test.ElementImpl_getElementsByTagNameNS_String_String_0
org.mozilla.dom.test.ElementImpl_getElementsByTagNameNS_String_String_1
org.mozilla.dom.test.ElementImpl_getElementsByTagNameNS_String_String_2
org.mozilla.dom.test.ElementImpl_getElementsByTagNameNS_String_String_3
org.mozilla.dom.test.ElementImpl_hasAttributeNS_String_String_0
org.mozilla.dom.test.ElementImpl_hasAttributeNS_String_String_1
org.mozilla.dom.test.ElementImpl_hasAttributeNS_String_String_2
org.mozilla.dom.test.ElementImpl_hasAttributeNS_String_String_3
org.mozilla.dom.test.ElementImpl_hasAttribute_String_0
org.mozilla.dom.test.ElementImpl_hasAttribute_String_1
org.mozilla.dom.test.ElementImpl_hasAttribute_String_2
org.mozilla.dom.test.ElementImpl_removeAttributeNS_String_String_0
org.mozilla.dom.test.ElementImpl_removeAttributeNS_String_String_1
org.mozilla.dom.test.ElementImpl_removeAttributeNS_String_String_2
org.mozilla.dom.test.ElementImpl_removeAttributeNS_String_String_3
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_0
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_1
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_2
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_3
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_4
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_5
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_6
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_7
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_8
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_9
org.mozilla.dom.test.ElementImpl_setAttributeNodeNS_Attr_0
org.mozilla.dom.test.ElementImpl_setAttributeNodeNS_Attr_1
org.mozilla.dom.test.NodeImpl_getLocalName
org.mozilla.dom.test.NodeImpl_getNamespaceURI
org.mozilla.dom.test.NodeImpl_getPrefix_0
org.mozilla.dom.test.NodeImpl_getPrefix_1
org.mozilla.dom.test.NodeImpl_setPrefix_String_0
org.mozilla.dom.test.NodeImpl_setPrefix_String_1
org.mozilla.dom.test.NodeImpl_supports_String_String_0
org.mozilla.dom.test.NodeImpl_supports_String_String_1
org.mozilla.dom.test.NodeImpl_supports_String_String_2
org.mozilla.dom.test.NodeImpl_supports_String_String_3
org.mozilla.dom.test.NamedNodeMapImpl_getNamedItemNS_String_String_0
org.mozilla.dom.test.NamedNodeMapImpl_getNamedItemNS_String_String_1
org.mozilla.dom.test.NamedNodeMapImpl_getNamedItemNS_String_String_2
org.mozilla.dom.test.NamedNodeMapImpl_getNamedItemNS_String_String_3
org.mozilla.dom.test.NamedNodeMapImpl_removeNamedItemNS_String_String_0
org.mozilla.dom.test.NamedNodeMapImpl_removeNamedItemNS_String_String_1
org.mozilla.dom.test.NamedNodeMapImpl_removeNamedItemNS_String_String_2
org.mozilla.dom.test.NamedNodeMapImpl_removeNamedItemNS_String_String_3
org.mozilla.dom.test.NamedNodeMapImpl_setNamedItemNS_Node_0
org.mozilla.dom.test.NamedNodeMapImpl_setNamedItemNS_Node_1

View File

@@ -1,119 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
public class BWTestThread extends Thread
{
/**
* Constructor
*
* @param str Thread Name
*
* @return
*
*/
public BWTestThread (String astr)
{
super(astr);
threadName = astr;
if (threadName == null)
threadName = "defaultThread";
}
/**
* Set the Test Case ClassObject which has to be launched by this thread.
* and the Base Document Object.
* all these objects extend from BWBaseTest class.
*
* @param aobj Test Class Object reference
* (subclassed from BWBaseTest).
* @param atargetObj Base Document Object Reference
*
*
* @return
*
*/
public void setTestObject(Object aobj, Object atargetObj)
{
classObj = aobj;
targetObj = atargetObj;
}
/**
* Get the Test Case Object Reference.
*
* @return Test Object Reference
*
*/
public Object getTestObject()
{
return classObj;
}
/**
* Get the Thread Name
*
* @return thread name string
*
*/
public String getThreadName()
{
return threadName;
}
/**
* Thread Run Method
*
* @return
*
*/
public void run()
{
if (classObj == null) return;
if (targetObj == null) return;
try {
Thread.sleep (10);
} catch (Exception e) {
}
execute();
}
public synchronized void execute()
{
if (((BWBaseTest)classObj).execute(targetObj)) {
TestLoader.txtPrint(threadName, "PASSED");
} else {
TestLoader.txtPrint(threadName, "FAILED");
}
}
private Object classObj=null;
private Object targetObj=null;
private String threadName=null;
}

View File

@@ -1,200 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom;
import java.util.Vector;
import java.util.Enumeration;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.mozilla.dom.test.*;
import java.security.AccessController;
public final class DOMAccessor {
private static Vector documentLoadListeners = new Vector();
private static JavaDOMPermission permission = new JavaDOMPermission("JavaDOM");
static {
System.loadLibrary("javadomjni");
addDocumentLoadListener(new TestListener());
}
private void DOMAccessorImpl() {}
private static native void register();
private static native void unregister();
private static native Node getNodeByHandle(long p);
private static native void doGC();
public static synchronized void
addDocumentLoadListener(DocumentLoadListener listener) {
if (documentLoadListeners.size() == 0) {
register();
}
documentLoadListeners.addElement(listener);
}
public static synchronized void
removeDocumentLoadListener(DocumentLoadListener listener) {
documentLoadListeners.removeElement(listener);
if (documentLoadListeners.size() == 0) {
unregister();
}
}
public static synchronized void
startURLLoad(String url, String contentType, long p_doc) {
AccessController.checkPermission(permission);
for (Enumeration e = documentLoadListeners.elements();
e.hasMoreElements();) {
DocumentLoadListener listener =
(DocumentLoadListener) e.nextElement();
listener.startURLLoad(url, contentType, (Document)getNodeByHandle(p_doc));
}
doGC();
}
public static synchronized void
endURLLoad(String url, int status, long p_doc) {
AccessController.checkPermission(permission);
for (Enumeration e = documentLoadListeners.elements();
e.hasMoreElements();) {
DocumentLoadListener listener =
(DocumentLoadListener) e.nextElement();
listener.endURLLoad(url, status, (Document)getNodeByHandle(p_doc));
}
doGC();
}
public static synchronized void
progressURLLoad(String url, int progress, int progressMax,
long p_doc) {
AccessController.checkPermission(permission);
for (Enumeration e = documentLoadListeners.elements();
e.hasMoreElements();) {
DocumentLoadListener listener =
(DocumentLoadListener) e.nextElement();
listener.progressURLLoad(url, progress, progressMax, (Document)getNodeByHandle(p_doc));
}
doGC();
}
public static synchronized void
statusURLLoad(String url, String message, long p_doc) {
AccessController.checkPermission(permission);
for (Enumeration e = documentLoadListeners.elements();
e.hasMoreElements();) {
DocumentLoadListener listener =
(DocumentLoadListener) e.nextElement();
listener.statusURLLoad(url, message, (Document)getNodeByHandle(p_doc));
}
doGC();
}
public static synchronized void
startDocumentLoad(String url) {
AccessController.checkPermission(permission);
for (Enumeration e = documentLoadListeners.elements();
e.hasMoreElements();) {
DocumentLoadListener listener =
(DocumentLoadListener) e.nextElement();
listener.startDocumentLoad(url);
}
doGC();
}
public static synchronized void
endDocumentLoad(String url, int status, long p_doc) {
AccessController.checkPermission(permission);
for (Enumeration e = documentLoadListeners.elements();
e.hasMoreElements();) {
DocumentLoadListener listener =
(DocumentLoadListener) e.nextElement();
listener.endDocumentLoad(url, status, (Document)getNodeByHandle(p_doc));
}
doGC();
}
}
class TestListener implements DocumentLoadListener {
public void endDocumentLoad(String url, int status, Document doc) {
if (url.endsWith(".xul")
|| url.endsWith(".js")
|| url.endsWith(".css")
//|| url.startsWith("file:")
)
return;
if ((!(url.endsWith(".html"))) && (!(url.endsWith(".xml"))))
return;
if (url.endsWith(".html"))
{
if (url.indexOf("test.html") == -1) {
System.err.println("TestCases Tuned to run with test.html...");
return;
}
}
if (url.endsWith(".xml"))
{
if (url.indexOf("test.xml") == -1) {
System.err.println("TestCases Tuned to run with test.xml...");
return;
}
}
Object obj = (Object) doc;
System.out.println("Loading new TestLoader...\n");
TestLoader tl = new TestLoader(obj, 0);
if (tl != null) {
Object retobj = tl.loadTest();
}
//doc = null;
}
public void startURLLoad(String url, String contentType, Document doc) {}
public void progressURLLoad(String url, int progress, int progressMax,
Document doc) {}
public void statusURLLoad(String url, String message, Document doc) {}
public void startDocumentLoad(String url) {}
public void endURLLoad(String url, int status, Document doc) {}
} //end of class

View File

@@ -1,201 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public License
Version 1.0 (the "License"); you may not use this file except in
compliance with the License. You may obtain a copy of the License at
http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS IS"
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
the License for the specific language governing rights and limitations
under the License.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are Copyright (C) 1999 Sun Microsystems,
Inc. All Rights Reserved.
*/
package org.mozilla.dom;
import java.io.FileOutputStream;
import java.io.BufferedOutputStream;
import java.io.PrintStream;
import java.io.IOException;
import org.w3c.dom.Document;
import org.w3c.dom.DocumentType;
import org.w3c.dom.Element;
import org.w3c.dom.NamedNodeMap;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.w3c.dom.*;
import org.mozilla.dom.test.*;
public class DOMFactory implements DocumentLoadListener {
private static final boolean debug = false;
public DocumentLoadListener getDocumentLoadListener() {
return this;
}
public void startURLLoad(String url, String contentType, Document doc) {
if (debug)
System.err.println("DOM: start URL load - " +
url.toString() + " " +
contentType);
}
public void endURLLoad(String url, int status, Document doc) {
if (debug)
System.err.println("DOM: end URL load - " +
url.toString() + " " +
Integer.toHexString(status));
if (url.endsWith(".xul") ||
url.endsWith(".js") ||
url.endsWith(".css") ||
url.startsWith("file:")) return;
if ((!(url.endsWith(".html"))) && (!(url.endsWith(".xml"))))
return;
if (url.endsWith(".html"))
{
if (url.indexOf("test.html") == -1) {
System.out.println("TestCases Tuned to run with test.html...");
return;
}
}
if (url.endsWith(".xml"))
{
if (url.indexOf("test.xml") == -1) {
System.out.println("TestCases Tuned to run with test.xml...");
return;
}
}
Object obj = (Object) doc;
TestLoader tl = new TestLoader(obj, 0);
if (tl != null) {
Object retobj = tl.loadTest();
}
doc = null;
}
public void progressURLLoad(String url, int progress, int progressMax, Document doc) {
if (debug)
System.err.println("DOM: progress URL load - " +
url.toString() + " " +
Integer.toString(progress) + "/" +
Integer.toString(progressMax));
}
public void statusURLLoad(String url, String message, Document doc) {
if (debug)
System.err.println("DOM: status URL load - " +
url.toString() + " (" +
message + ")");
}
public void startDocumentLoad(String url) {
if (debug)
System.err.println("DOM: start load - " +
url.toString());
}
public void endDocumentLoad(String url, int status, Document doc) {
if (debug) {
System.err.println("DOM: end load - " +
url.toString() + " " +
Integer.toHexString(status));
}
}
private void dump(PrintStream ps, Node node, int indent, boolean mapNode) {
ps.println();
for (int i=0; i<indent; i++)
ps.print(' ');
ps.print("name=\"" + node.getNodeName() + "\"" +
" type=" + dumpType(node.getNodeType()) +
" value=\"" + normalize(node.getNodeValue()) + "\"");
if (mapNode)
return;
NamedNodeMap map = node.getAttributes();
dumpMap(ps, map, indent);
NodeList children = node.getChildNodes();
if (children == null)
return;
int length = children.getLength();
for (int i=0; i < length; i++) {
dump(ps, children.item(i), indent+2, false);
}
}
private void dumpMap(PrintStream ps, NamedNodeMap map, int indent) {
if (map == null) return;
ps.println();
int length = map.getLength();
if (length > 0) {
for (int i=0; i<indent; i++)
ps.print(' ');
ps.print("------- start attributes -------");
}
for (int i=0; i < length; i++) {
Node item = map.item(i);
dump(ps, item, indent, true);
}
if (length > 0) {
ps.println();
for (int i=0; i<indent; i++)
ps.print(' ');
ps.print("------- end attributes -------");
}
}
private static String dumpType(int type) {
switch (type) {
case Node.ELEMENT_NODE: return "ELEMENT";
case Node.ATTRIBUTE_NODE: return "ATTRIBUTE";
case Node.TEXT_NODE: return "TEXT";
case Node.CDATA_SECTION_NODE: return "CDATA_SECTION";
case Node.ENTITY_REFERENCE_NODE: return "ENTITY_REFERENCE";
case Node.ENTITY_NODE: return "ENTITY";
case Node.PROCESSING_INSTRUCTION_NODE: return "PROCESSING_INSTRUCTION";
case Node.COMMENT_NODE: return "COMMENT";
case Node.DOCUMENT_NODE: return "DOCUMENT";
case Node.DOCUMENT_TYPE_NODE: return "DOCUMENT_TYPE";
case Node.DOCUMENT_FRAGMENT_NODE: return "DOCUMENT_FRAGMENT";
case Node.NOTATION_NODE: return "NOTATION";
}
return "ERROR";
}
private static String normalize(String s) {
int len = s.length();
StringBuffer sb = new StringBuffer(len);
char c = ' ';
char pc = ' ';
for (int i=0; i < len; i++) {
c = s.charAt(i);
if ((pc == ' ' || pc == '\n' || pc == '\t') &&
(c == ' ' || c == '\n' || c == '\t'))
continue;
sb.append(c);
pc = c;
}
return sb.toString();
}
}

View File

@@ -1,93 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom;
import org.w3c.dom.Attr;
import org.w3c.dom.CDATASection;
import org.w3c.dom.Comment;
import org.w3c.dom.Document;
import org.w3c.dom.DocumentFragment;
import org.w3c.dom.Element;
import org.w3c.dom.EntityReference;
import org.w3c.dom.ProcessingInstruction;
import org.w3c.dom.Text;
import org.w3c.dom.DocumentType;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
import org.w3c.dom.DOMImplementation;
import org.w3c.dom.events.DocumentEvent;
import org.w3c.dom.events.Event;
import org.w3c.dom.DOMException;
public class DocumentImpl extends NodeImpl implements Document, DocumentEvent {
// instantiated from JNI only
private DocumentImpl() {}
public DocumentImpl(long p) {
super(p);
}
public native Attr createAttribute(String name);
public native CDATASection createCDATASection(String data);
public native Comment createComment(String data);
public native DocumentFragment createDocumentFragment();
public native Element createElement(String tagName);
public native EntityReference createEntityReference(String name);
public native ProcessingInstruction
createProcessingInstruction(String target,
String data);
public native Text createTextNode(String data);
public native DocumentType getDoctype();
public native Element getDocumentElement();
public native NodeList getElementsByTagName(String tagName);
public native DOMImplementation getImplementation();
public Event createEvent(String type) throws DOMException {
throw new UnsupportedOperationException();
}
public Node importNode(Node importedNode, boolean deep) throws DOMException {
throw new UnsupportedOperationException();
}
public Element createElementNS(String namespaceURI, String qualifiedName)
throws DOMException {
throw new UnsupportedOperationException();
}
public Attr createAttributeNS(String namespaceURI, String qualifiedName)
throws DOMException {
throw new UnsupportedOperationException();
}
public NodeList getElementsByTagNameNS(String namespaceURI, String localName) {
throw new UnsupportedOperationException();
}
public Element getElementById(String elementId) {
throw new UnsupportedOperationException();
};
}

View File

@@ -1,37 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
public interface Execution
{
/**
*
* @param targetObj Object instance (Node/Document/....)
*
* @return Return true or false
*
*/
public boolean execute(Object targetObj);
}

View File

@@ -1,59 +0,0 @@
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun are
# Copyright (C) 1999 Sun Microsystems, Inc. All
# Rights Reserved.
#
# Contributor(s):
HOMEDIR=../
SRCDIR=$(HOMEDIR)/src
CLASSDIR=$(HOMEDIR)/classes
JAVAC=javac
TESTPACKAGE=org/mozilla/dom/test
DOMPACKAGE=org/mozilla/dom
all:
@echo "******************************************************"
@echo "Make changes to $(SRCDIR)/mozilla.csh"
@echo "and source it else it may not compile..."
@echo "******************************************************"
@echo ""
mkdir -p $(CLASSDIR)
$(JAVAC) -d $(CLASSDIR) $(JAVAFILES)
cd api; make
cd newsrc; make
JAVAFILES= Execution.java \
BWBaseTest.java \
TestLoader.java \
ParamCombination.java \
ReflectionTest.java \
BWTestThread.java \
BWJavaTemplate.java
DOMFILE= DocumentImpl.java \
DOMAccessor.java
clean:
for i in ${JAVAFILES} ; do \
file=$$i; \
classfile=`echo $$file | sed 's/java/class/g'` ; \
/bin/rm $(CLASSDIR)/$(TESTPACKAGE)/$$classfile ; done
/bin/rm $(CLASSDIR)/$(DOMPACKAGE)/DOMFactory.class ;
cd api; make clean

View File

@@ -1,59 +0,0 @@
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun are
# Copyright (C) 1999 Sun Microsystems, Inc. All
# Rights Reserved.
#
# Contributor(s):
HOMEDIR=../
SRCDIR=$(HOMEDIR)/src
CLASSDIR=$(HOMEDIR)/classes
JAVAC=javac
TESTPACKAGE=org/mozilla/dom/test
DOMPACKAGE=org/mozilla/dom
all:
@echo "******************************************************"
@echo "Make changes to $(SRCDIR)/mozilla.csh"
@echo "and source it else it may not compile..."
@echo "******************************************************"
@echo ""
mkdir -p $(CLASSDIR)
$(JAVAC) -d $(CLASSDIR) $(JAVAFILES)
cd api; make
cd newsrc; make
JAVAFILES= Execution.java \
BWBaseTest.java \
TestLoader.java \
ParamCombination.java \
ReflectionTest.java \
BWTestThread.java \
BWJavaTemplate.java
DOMFILE= DocumentImpl.java \
DOMAccessor.java
clean:
for i in ${JAVAFILES} ; do \
file=$$i; \
classfile=`echo $$file | sed 's/java/class/g'` ; \
/bin/rm $(CLASSDIR)/$(TESTPACKAGE)/$$classfile ; done
/bin/rm $(CLASSDIR)/$(DOMPACKAGE)/DOMFactory.class ;
cd api; make clean

View File

@@ -1,80 +0,0 @@
#!nmake
#
# The contents of this file are subject to the Mozilla Public
# License Version 1.1 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
# implied. See the License for the specific language governing
# rights and limitations under the License.
#
# The Original Code is mozilla.org code.
#
# The Initial Developer of the Original Code is Sun Microsystems,
# Inc. Portions created by Sun are
# Copyright (C) 1999 Sun Microsystems, Inc. All
# Rights Reserved.
#
# Contributor(s):
HOMEDIR=..
SRCDIR=$(HOMEDIR)\src
CLASSDIR=$(HOMEDIR)\classes
JAVAC=javac
TESTPACKAGE=org\mozilla\dom\test
DOMPACKAGE=org\mozilla\dom
GENERATOR_FILES=BWJavaTemplate.java \
ReflectionTest.java \
ParamCombination.java
JAVAFILES= Execution.java \
BWBaseTest.java \
TestLoader.java \
ParamCombination.java \
ReflectionTest.java \
BWTestThread.java \
BWJavaTemplate.java
DOMFILE=DOMAccessor.java \
DocumentImpl.java
all: testloader
@echo done
@cd api
@nmake -f Makefile.win
@cd ..\newsrc
@nmake -f Makefile.win
testloader:
@echo "******************************************************"
@echo "Make changes to $(SRCDIR)\mozilla.bat"
@echo "and execute it else it may not compile..."
@echo "******************************************************"
@echo ""
@echo Building test accessory classes ...
@$(JAVAC) -d $(CLASSDIR) $(JAVAFILES)
accessor:
!if !defined(USE_APPLET_FOR_REGISTRATION)
@echo Building DOMAccessor ...
@$(JAVAC) -d $(CLASSDIR) $(DOMFILE)
!endif
generator:
javac $(GENERATOR_FILES) -d $(CLASSDIR)
clean:
del /f/q $(CLASSDIR)\$(TESTPACKAGE)\*.class
del /f/q $(CLASSDIR)\$(DOMPACKAGE)\*.class

View File

@@ -1,134 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.lang.*;
import java.util.*;
class ParamCombination
{
Object arrayOfVector[] = null;
int totalCombinations = 0;
int currIndex = 0;
/**
*
* Constructor
*
* @param paramLength No. of parameters which shall serve as index
* to array ofVectors
* @return void
*
*/
public ParamCombination(int paramLength)
{
arrayOfVector = new Object[paramLength];
if (arrayOfVector == null) return;
}
/**
*
* This routine adds a new Vector into arrayOfVector
*
* @param v Vector class containing values in string format
* viz: 0/null/DUMMY_STRING
* @return void
*
*/
public void addElement(Vector v)
{
if (v != null)
{
arrayOfVector[currIndex++] = v;
if (totalCombinations == 0) totalCombinations = v.size();
else totalCombinations = totalCombinations * v.size();
}
}
/**
*
* This routine adds a new Vector into arrayOfVector
*
* @return array of Strings containing all combinations of values in
* each Vector in vector array
*
*/
public String[] getValueList()
{
if (totalCombinations == 0) return null;
String str[] = new String[totalCombinations];
int len = arrayOfVector.length;
if (len == 1)
{
Vector v = (Vector)arrayOfVector[0];
for (int j=0; j< v.size(); j++)
str[j] = (String)v.elementAt(j);
return str;
}
Vector tmpVect = (Vector)arrayOfVector[len -1];
for (int i=arrayOfVector.length-2; i>= 0; i--)
{
tmpVect = getCombination((Vector)arrayOfVector[i], tmpVect);
}
for (int i=0; i< tmpVect.size(); i++)
{
str[i] = (String)tmpVect.elementAt(i);
}
return str;
}
/**
*
* Get all combinations of values in Vectors v1 and v2
*
* @param v1 Vector class containing values in string format
* viz: 0/null/DUMMY_STRING
* @param v2 Vector class containing values in string format
* viz: 0/null/DUMMY_STRING
* @return vector containing combinations of above values.
* viz: null, null
* null, DUMMY_STRING
* 0, null...
*
*/
private Vector getCombination( Vector v1, Vector v2)
{
Vector store = new Vector();
for (int i=0; i< v1.size(); i++)
{
String vstr1 = (String)v1.elementAt(i);
for (int j=0; j< v2.size(); j++)
{
String vstr2 = (String)v2.elementAt(j);
String newstr = vstr1 + ", " + vstr2;
store.addElement(newstr);
}
}
return store;
}
}

View File

@@ -1,121 +0,0 @@
This document describes steps required to run the Test Suite for JavaDOM API
throught a PLUGLET.
You have to build PLUGLETS before building this
( see http://www.mozilla.org/projects/blackwood/java-plugins )
For Solaris
===========
1) open mozilla.csh
2) make changes to variables
MOZILLA_FIVE_HOME - Absolute path where mozilla-bin
executable is located.
JAVA_HOME - Absolute Path to J2SE1.3 dir.
TEST_PATH - Absolute Directory Path where file
BWTestClass.lst is located.
PLUGLET - Absolute dir. where DOMPLUGLET.jar
is located
3) source mozilla.csh
this will set up the environment
4) Edit BWProperties file and change the locations for variables
BW_TESTDIR (Absolute Directory Path where file BWTestClass.lst is
located)
BW_LOGDIR (Absolute Directory Path where log files need to be
created)
BW_THREADMODE (Execute tests in single thread [S] or
multi-thread [M] mode. Takes values S/M.)
5) Set PLUGLET enviornment to point to classes dir.
setenv PLUGLET /opt/mozilla/java/dom/tests/classes
6) Set LD_PRELOAD to point to libXm.so
setenv LD_PRELOAD libXm.so
7) Invoke autorun.sh from command prompt.
sh autorun.sh
8) The results are recorded in HTML file BWTest.html
and in log file BWTest.log
Individual test Log files are also found in 'log' directory.
---------------------------------------------------------------------------
To Invoke a specific test case
sh autorun.sh -t org.mozilla.dom.test.AttrImpl_getName
NOTE: All TestCase list is recorded in file BWTestClass.lst.ORIG
If your machine is slow and loading time of mozilla is high then
accordingly increase DELAY_FACTOR to a higher value in autorun.sh.
=============================================================================
For WIN32
===========
Assumes you have installed PERL and the following variables are set in your environment:
MOZILLA_HOME - top directory in mozilla's tree
JAVA_HOME - path to JDK
1) open mozilla.bat
2) make changes to variables
MOZILLA_BIN - Mozilla's executable file name
(e.g. mozilla.exe or viewer.exe)
TEST_PATH - path to the current directory
(where mozilla.bat is)
PLUGLET - Absolute dir. where DOMPLUGLET.jar
is located
3) execute mozilla.bat from command prompt
this will create new console and set up the environment for this
command prompt
4) Edit BWProperties file and change the locations for variables
BW_TESTDIR (Absolute Directory Path where file BWTestClass.lst is
located)
BW_LOGDIR (Absolute Directory Path where log files need to be
created)
BW_THREADMODE (Execute tests in single thread [S] or
multi-thread [M] mode. Takes values S/M.)
NOTE: Since on Windows file separator is a `\`, it should be escaped
by another '\'. So if a file is in c:\mozilla\tests then it
would be written as c:\\mozilla\\tests.
5) Invoke autorun.pl from command prompt.
perl autorun.pl
6) The results are recorded in HTML file BWTest.html
and in log file BWTest.log
Individual test Log files are also found in 'log' directory.
---------------------------------------------------------------------------
To Invoke a specific test case
perl autorun.pl -t org.mozilla.dom.test.AttrImpl_getName
NOTE: All Test Cases are recorded in file BWTestClass.lst.ORIG
---------------------------------------------------------------------------
BUGS:
Currently a bug is filed against getDocumentType method of object Document.
for XML (see Bugzilla ID: 15118).
Hence all the tests which depend on the same will fail, namely
DocumentTypeImpl->getEntities
DocumentTypeImpl->getInternalSubset
DocumentTypeImpl->getName
DocumentTypeImpl->getNotations
DocumentTypeImpl->getPublicId
DocumentTypeImpl->getSystemId
DocumentImpl->getDoctype_xml

View File

@@ -1,341 +0,0 @@
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="GENERATOR" content="Mozilla/4.51 [en] (X11; U; SunOS 5.7 sun4u) [Netscape]">
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#0000EE" vlink="#551A8B" alink="#FF0000">
<center>
<h3>
<b>README for DOM API Test Execution</b></h3>
<a href="#solaris">Solaris</a>
&nbsp;
&nbsp;
<a href="#winnt">WinNT</a>
&nbsp;
&nbsp;
<a href="#linux">Linux</a>
&nbsp;
&nbsp;
<a href="#mac">Macintosh</a>
</center>
<a name=solaris>
<center>
<hr NOSHADE WIDTH="100%"></center>
<i><u><font color="#990000"><font size=+3>Solaris</font></font></u></i>
<ul>
<li>
<b><font size=+1>open <font color="#FF6666">mozilla.csh</font></font></b></li>
<li>
<b><font size=+1>make changes to variables</font></b></li>
</ul>
<ul>&nbsp;
<center><table BORDER COLS=2 WIDTH="80%" BGCOLOR="#99FFCC" NOSAVE >
<tr NOSAVE>
<td WIDTH="30%" NOSAVE><b><font color="#FF6666"><font size=+1>TEST_PATH</font></font></b></td>
<td><b>Absolute Directory Path where file BWTestClass.lst is located.</b></td>
</tr>
<tr NOSAVE>
<td NOSAVE><b><font color="#FF6666"><font size=+1>MOZILLA_FIVE_HOME</font></font></b></td>
<td><b>Absolute Path where mozilla-bin is located.</b></td>
</tr>
<tr>
<td><b><font color="#FF6666"><font size=+1>JAVA_HOME</font></font></b></td>
<td><b>Absolute Path to JDK dir.</b></td>
</tr>
<tr>
<td><b><font color="#FF6666"><font size=+1>USE_APPLET_FOR_REGISTRATION</font></font></b></td>
<td><b>Set this variable if you wish to use applet for running tests (now
available under Win32 only). Otherwise hacked DOMAccessor class is
used.</b></td>
</tr>
</table></center>
<li>
<b><font size=+1>source mozilla.csh this will set up the environment</font></b></li>
<li>
<b><font size=+1>Edit BWProperties file and change the locations for variables</font></b></li>
</ul>
<center><table BORDER COLS=2 WIDTH="80%" BGCOLOR="#99FFCC" NOSAVE >
<tr NOSAVE>
<td WIDTH="30%" NOSAVE><b><font color="#FF6666"><font size=+1>BW_TESTDIR</font></font></b></td>
<td><b>Absolute Directory Path where file BWTestClass.lst is located.</b></td>
</tr>
<tr NOSAVE>
<td NOSAVE><b><font color="#FF6666"><font size=+1>BW_LOGDIR</font></font></b></td>
<td><b>Absolute Directory&nbsp; Path where log files need to be created.</b></td>
</tr>
<tr>
<td><b><font color="#FF6666"><font size=+1>BW_THREADMODE</font></font></b></td>
<td><b>Indicates whether to execute tests in single-thread mode[S]&nbsp;&nbsp;&nbsp;&nbsp;
or multi-thread mode[M].&nbsp; Takes values S/M .</b></td>
</tr>
<tr>
<td><b><font color="#FF6666"><font size=+1>BW_HTMLTEST</font></font></b></td>
<td><b>URL where redirect.html, test.html files are located. Used if you run tests through
TestLoader applet.</b></td>
</tr>
<tr>
<td><b><font color="#FF6666"><font size=+1>BW_XMTEST</font></font></b></td>
<td><b>URL where redirectxml.html, test.xml files are located. Used if you</b>
<br><b>run tests through TestLoader applet</b></td>
</tr>
</table></center>
<ul>&nbsp;</ul>
<ul>
<li>
<b><font size=+1>Copy <font color="#FF6666">redirect.html, test.html</font> and <font color="#FF6666">redirectxml.html, test.xml</font>
files to your web-servers DOCUMENT_ROOT ( By default it is assumed that
they can be&nbsp; accessed as <font color="#3366FF">http://[server name]/text.html</font>&nbsp;
or <font color="#3366FF">http://[servername]/~[username]/text.html</font>).</font></b></li>
</ul>
<ul>
<li>
<b><font size=+1>Invoke autorun.sh from command prompt.</font></b></li>
<ul>
<li>
<b><font size=+1>sh autorun.sh</font></b></li>
</ul>
</ul>
<ul>
<li>
<b><font size=+1>The results are recorded in HTML file <font color="#FF6666">BWTest.html</font>
and in log file <font color="#FF6666">BWTest.log</font> Individual test
Log files are also found in 'log' directory.</font></b></li>
</ul>
<p><br><b><font size=+1>To Invoke a specific test case</font></b>
<blockquote><b><font size=+1>sh autorun.sh -t org.mozilla.dom.test.AttrImpl_getName</font></b></blockquote>
<b><font size=+1><u><font color="#3366FF">NOTE:</font></u>All Test Cases
are recorded in file BWTestClass.lst.ORIG</font></b>
<p><font size=+1><u><font color="#3366FF">ASSUMPTION</font></u><b>: I assume
that u have copied the files test.xml, redirectxml.html, redirect.html, test.html to your DOCUMENT_ROOT
of your WebServer.</b></font>
<br><b><font size=+1>The URL it tries to load is http://[servername]/redirect.html.</font></b>
<br><b><font size=+1>If it is set in users public_html then open file autorun.sh
and change DOCROOT accordingly.</font></b>
<p>
</a>
<hr SIZE=4 NOSHADE WIDTH="100%">
<a name="winnt">
<br><i><u><font color="#990000"><font size=+3>Windows NT</font></font></u></i>
<ol>
<li>
<b>Assumes you have installed PERL and the following variables are set
in your environment:</b></li>
<ul>
<li>
<font color="#FF6666">MOZILLA_HOME</font> - top directory in mozilla's
tree</li>
<li>
<font color="#FF6666">JAVA_HOME</font> - path to JDK</li>
</ul>
<li>
open mozilla.bat</li>
<li>
make changes to variables</li>
<ul>
<li>
<font color="#FF6666">MOZILLA_BIN</font> - Mozilla's executable file name
(e.g. mozilla.exe or viewer.exe)</li>
<li>
<font color="#FF6666">TEST_PATH</font> - path to the current directory
(where mozilla.bat is)</li>
<li>
<font color="#FF6666">TEST_URL</font> - URL where redirect.html and test.html
are located (complte URL looks like that: $TEST_URL/redirect.html). Is used
if you run tests through hacked DOMAccessor only.</li>
</ul>
<li>
execute <b>mozilla.bat</b> from command prompt this will create new console
and set up the environment for this command prompt</li>
<li>
Edit BWProperties file and change the locations for variables</li>
<ul>
<li>
<font color="#FF6666">BW_TESTDIR</font> (Absolute Directory Path where
file BWTestClass.lst is located)</li>
<li>
<font color="#FF6666">BW_LOGDIR</font> (Absolute Directory Path where log
files need to be created)</li>
<li>
<font color="#FF6666">BW_THREADMODE</font> (Execute tests in single thread
[S] or multi-thread [M] mode. Takes values S/M.)</li>
<li>
<font color="#FF6666">BW_HTMLTEST</font> (URL where redirect.html file are
located. Used if you run tests through TestLoader applet)</li>
<li>
<font color="#FF6666">BW_XMLTEST</font> (URL where test.xml file are located.
Used if you run tests through TestLoader applet)</li>
</ul>
<br>
<b>NOTE:</b> Since on Windows file separator is a `\`, it should be escaped by
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;another '\'. So if a file is in c:\mozilla\tests then it would be written as c:\\mozilla\\tests.
<br>
<br>
<li>
There are several ways to run tests:</li>
<ul>
<li>
Invoke autorun.pl from command prompt.</li>
<br><b>perl autorun.pl</b>
<br>For each test new Mozilla is executed.
<li>
For quick testing say</li>
<br><b>mozilla.exe file:/TestLoaderHTML.html</b>
<br>(mozilla.exe file:/TestLoaderXML.html)
<br>if you use applet for registration
<li>
or say</li>
<br><b>mozilla.exe file:/redirect.html</b>
<br>if you use hacked DOMAcceessor.</ul>
<li>
The results are recorded in HTML file BWTest.html and in log file BWTest.log
Individual test Log files are also found in 'log' directory.</li>
</ol>
<!--
<ul>
<li>
<b><font size=+1>open <font color="#FF6666">mozilla.bat</font></font></b></li>
</ul>
<ul>
<li>
<b><font size=+1>make changes to variables</font></b></li>
<ul>
<li>
<b><font color="#FF6666"><font size=+1>BLACKWOOD_HOME</font></font></b></li>
<li>
<b><font color="#FF6666"><font size=+1>MOZILLA_FIVE_HOME</font></font></b></li>
<li>
<b><font color="#FF6666"><font size=+1>JAVA_HOME</font></font></b></li>
<li>
<b><font color="#FF6666"><font size=+1>TEST_PATH</font></font></b></li>
<li>
<b><font color="#FF6666"><font size=+1>TEST_URL</font></font></b></li>
</ul>
</ul>
<ul>
<li>
<b><font size=+1>execute&nbsp; mozilla.bat from command prompt.</font></b></li>
<br><b><font size=+1>&nbsp;this will set up the environment for this command
prompt.</font></b></ul>
<ul>
<li>
<b><font size=+1>Edit BWProperties file and change the locations for variables</font></b></li>
</ul>
<center><table BORDER COLS=2 WIDTH="80%" BGCOLOR="#99FFCC" NOSAVE >
<tr NOSAVE>
<td WIDTH="30%" NOSAVE><b><font color="#FF6666"><font size=+1>BW_TESTDIR</font></font></b></td>
<td><b>Absolute Directory Path where file BWTestClass.lst is located.</b></td>
</tr>
<tr NOSAVE>
<td NOSAVE><b><font color="#FF6666"><font size=+1>BW_LOGDIR</font></font></b></td>
<td><b>Absolute D.irectory&nbsp; Path where log files need to be created.</b></td>
</tr>
<tr>
<td><b><font color="#FF6666"><font size=+1>BW_THREADMODE</font></font></b></td>
<td><b>Indicates whether to execute tests in single-thread mode[S]&nbsp;&nbsp;&nbsp;&nbsp;
or multi-thread mode[M].&nbsp; Takes values S/M .</b></td>
</tr>
</table></center>
<ul>&nbsp;</ul>
<ul>
<li>
<b><font size=+1>Copy files <font color="#CC6600">redirect.html, test.html</font>and <font color="#CC6600">redirectxml.html, test.xml</font>
into some document directory of HTTP server. TEST_URL environment variable
should contain the URL of this directory.</font></b></li>
<br><b><font size=+1>&nbsp;For example, if you placed the files in the
root directory of&nbsp;&nbsp; HTTP server "<font color="#3333FF">myserver</font>",
then value of TEST_URL should be&nbsp; "<font color="#3333FF">http://myserver</font>".</font></b></ul>
<ul>
<li>
<b><font size=+1>Invoke autorun.pl from command prompt.</font></b></li>
<ul>
<li>
<b><font size=+1>perl autorun.pl</font></b></li>
</ul>
</ul>
<ul><b><font size=+1>The results are recorded in HTML file <font color="#FF6666">BWTest.html</font>
and in log file <font color="#FF6666">BWTest.log</font> Individual test
Log files are also found in 'log' directory.</font></b></ul>
-->
</a>
<hr SIZE=4 NOSHADE WIDTH="100%">
<br>&nbsp;
</body>
</html>

View File

@@ -1,140 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.lang.reflect.*;
public class ReflectionTest
{ public static void main(String[] args)
{ String name = readLine("Please enter a class name (e.g. java.util.Date): ");
try
{ Class cl = Class.forName(name);
Class supercl = cl.getSuperclass();
System.out.print("class " + name);
if (supercl != null && !supercl.equals(Object.class))
System.out.print(" extends " + supercl.getName());
System.out.print("\n{\n");
printConstructors(cl);
System.out.println();
printMethods(cl);
System.out.println();
printFields(cl);
System.out.println("}");
}
catch(ClassNotFoundException e)
{ System.out.println("Class not found.");
}
}
public static String readLine(String str)
{ int ch;
String r = "";
boolean done = false;
System.out.println(str);
while (!done)
{ try
{ ch = System.in.read();
if (ch < 0 || (char)ch == '\n')
done = true;
else if ((char)ch != '\r') // weird--it used to do \r\n translation
r = r + (char) ch;
}
catch(java.io.IOException e)
{ done = true;
}
}
return r;
}
public static void printConstructors(Class cl)
{ Constructor[] constructors = cl.getDeclaredConstructors();
for (int i = 0; i < constructors.length; i++)
{ Constructor c = constructors[i];
Class[] paramTypes = c.getParameterTypes();
String name = c.getName();
System.out.print(Modifier.toString(c.getModifiers()));
System.out.print(" " + name + "(");
for (int j = 0; j < paramTypes.length; j++)
{ if (j > 0) System.out.print(", ");
System.out.print(paramTypes[j].getName());
}
System.out.println(");");
}
}
public static void printMethods(Class cl)
{ Method[] methods = cl.getDeclaredMethods();
for (int i = 0; i < methods.length; i++)
{ Method m = methods[i];
Class retType = m.getReturnType();
Class[] paramTypes = m.getParameterTypes();
String name = m.getName();
System.out.print(Modifier.toString(m.getModifiers()));
System.out.print(" " + retType.getName() + " " + name
+ "(");
for (int j = 0; j < paramTypes.length; j++)
{ if (j > 0) System.out.print(", ");
System.out.print(paramTypes[j].getName());
}
System.out.println(");");
}
}
public static void printFields(Class cl)
{ Field[] fields = cl.getDeclaredFields();
for (int i = 0; i < fields.length; i++)
{ Field f = fields[i];
Class type = f.getType();
String name = f.getName();
System.out.print(Modifier.toString(f.getModifiers()));
System.out.println(" " + type.getName() + " " + name
+ ";");
}
}
public Method[] getMethods(Class cl)
{
Method[] methods = cl.getDeclaredMethods();
return methods;
}
public Class[] getParameters(Method m)
{
Class[] paramTypes = m.getParameterTypes();
return paramTypes;
}
public Constructor[] getConstructors(Class cl)
{
Constructor[] constructors = cl.getDeclaredConstructors();
return constructors;
}
}

View File

@@ -1,721 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.lang.*;
import java.util.*;
import java.io.*;
import java.net.URL;
import java.applet.Applet;
import org.w3c.dom.Document;
import org.mozilla.dom.DOMAccessor;
import org.mozilla.dom.DocumentLoadListener;
import org.mozilla.dom.test.*;
public class TestLoader extends Applet implements DocumentLoadListener
{
private Object targetObj;
private int returnType = 0;
private static String TESTFILE = "BWTestClass.lst";
private static String PROPERTYFILE = "BWProperties";
private static String LOGFILE = "BWTest.log";
private static String LOGHTML = "BWTest.html";
private static String LOGTXT = "BWTest.txt";
public static Properties propTable = new Properties();
private final boolean debug = true;
private static String FILE_SEP = "/";
/**
************************************************************************
* Default constructor
*
************************************************************************
*/
public TestLoader()
{
System.out.println("########################## Createing default TestLoader ...\n");
try {
throw new Exception();
} catch (Exception e) {
e.printStackTrace();
}
FILE_SEP = System.getProperty("file.separator");
}
/**
************************************************************************
* Constructor
*
* @param targetObj Object instance (Node/Document/....)
* @param areturnType if 1 then return Object expected
* if 0 then no return Object expected
*
************************************************************************
*/
public TestLoader(Object obj, int areturnType)
{
System.out.println("########################## Createing TestLoader ...");
targetObj = obj;
returnType = areturnType;
FILE_SEP = System.getProperty("file.separator");
}
/**
*
************************************************************************
*
* Sets the Testing Target
*
* @param target Target to be tested
*
* @return void
*
************************************************************************
*
*/
void setTarget(Object target)
{
targetObj = target;
}
/**
*
************************************************************************
*
* Load all the Test cases specified in file $BLACWOOD_TESTFILE
* It reads each entry and creates a runtime instantiation of each class
*
************************************************************************
*
*/
public Object loadTest()
{
if (targetObj == null) {
System.out.println("Target Object " + targetObj.toString() + " is null....");
return null;
}
// Read Property File
TestLoader.readPropertyFile();
// Check Property Names, to see if provided with correct file
// separators.
// For Windows platform FILE_SEP is \ but it has to be escaped with
// another \ , so a property value would look like c:\\mozilla\\java
// instead of c:\mozilla\java
//
String CHECK_SEP = "/";
if ( FILE_SEP.compareTo("/") == 0) CHECK_SEP = "\\";
Enumeration em = propTable.propertyNames();
if (em == null) return null;
while (em.hasMoreElements())
{
String name = (String)(em.nextElement());
String val = propTable.getProperty(name);
if (val == null) continue;
if (val.indexOf("BW_HTMLTEST") != -1) continue;
if (val.indexOf("BW_XMLTEST") != -1) continue;
int idx = val.indexOf(CHECK_SEP);
if (idx != -1) {
System.out.println("********** ERROR: File Separator for Property " + name + " is incorrect in file " + PROPERTYFILE);
return null;
}
}
String testDir = ".";
String testFile = TESTFILE;
System.out.println("Inside LoadTest");
// Set Test directory
testDir = propTable.getProperty("BW_TESTDIR");
if (testDir == null) testDir=".";
// Set Test Filename
testFile = propTable.getProperty("BW_TESTFILE");
if (testFile == null) testFile = TESTFILE;
String fname = testDir + FILE_SEP + testFile;
FileInputStream in = null;
try {
in = new FileInputStream(fname);
} catch (SecurityException e) {
System.out.println ("Security Exception:Could not create stream for file " + fname);
System.exit(-1);
return null;
} catch (FileNotFoundException e) {
System.out.println ("Could not create stream for file " + fname);
System.exit(-1);
return null;
}
BufferedReader din;
try {
din = new BufferedReader(new InputStreamReader(in));
} catch (Exception e) {
System.out.println ("Could not get Input Reader for file " + fname);
return null;
}
String line= new String("");
Vector fileVect = new Vector();
try {
while (line != null)
{
line = din.readLine();
if (line != null)
{
if (line.charAt(0) == '#')
continue;
fileVect.addElement(line);
}
}
} catch (Exception e) {
System.out.println("could not read Line from file " + fname);
line=null;
}
try {
din.close();
} catch (Exception e) {
System.out.println ("Could not close file " + fname);
return null;
}
// check if test have to be run in single Thread mode(S) or
// multi Thread mode (M)
//
String threadMode = propTable.getProperty("BW_THREADMODE");
if (threadMode == null)
threadMode = "S";
for (int i=0; i<fileVect.size(); i++)
{
String s = (String)fileVect.elementAt(i);
Class c=null;
try {
System.out.println("############### Class name: "+s);
c = Class.forName(s);
} catch (ClassNotFoundException e) {
System.out.println ("Could not find class " + s);
continue;
}
Object classObj = null;
try {
classObj = c.newInstance();
} catch (Exception e) {
System.out.println ("Could not instantiate class " + s);
continue;
}
// If single thread execution
if (threadMode.compareTo("S") == 0)
{
try {
System.out.println("################ Starting test ...");
if (((BWBaseTest)classObj).execute(targetObj)) {
if (((BWBaseTest)classObj).isUnsupported())
txtPrint(s, "UNSUPPORTED METHOD");
else
txtPrint(s, "PASSED");
System.out.println("################ passed");
} else {
txtPrint(s, "FAILED");
System.out.println("################ failed");
}
} catch (Exception e) {
System.out.println("################ failed with exception: "+e);
txtPrint(s, "FAILED: "+e);
}
// if any return type expected, then it is returned.
// This is just a provision kept for latter use
//
//if (returnType == 1)
//{
// return (((BWBaseTest)classObj).returnObject());
//}
} else {
BWTestThread t = new BWTestThread(s);
try {
System.out.println("############## Starting test ...");
if (t != null)
{
t.setTestObject(classObj, targetObj);
t.start();
}
} catch (Exception e) {
txtPrint(s, "FAILED: "+e);
}
}
}
//txtPrint("Parent Thread Done", "PASSED");
return null;
}
/**
*******************************************************************
*
* Read the property File and update the Property propTable
* the Property file BWProperties lists out all en. variables
* and their values.
*
* @return void
*
*******************************************************************
*/
public static void readPropertyFile()
{
if (propTable == null)
return ;
// Get Input Stream from Property file
FileInputStream fin=null;
try {
fin = new FileInputStream("./" + PROPERTYFILE);
} catch (Exception e) {
System.out.println ("Security Exception:Could not create stream for file " + PROPERTYFILE);
return;
}
try {
propTable.load(fin);
} catch (Exception e) {
System.out.println("Could not load property file " + PROPERTYFILE);
return;
}
try {
fin.close();
} catch (Exception e) {
System.out.println("Could not close " + PROPERTYFILE);
return;
}
}
/**
*
************************************************************************
* Routine which prints to log files and also to STDOUT
*
* @param msg Message to be logged
*
* @return void
************************************************************************
*
*/
public static void logErrPrint(String msg)
{
if (msg == null) return;
System.out.println(msg);
TestLoader.logPrint(msg);
}
/**
*
************************************************************************
* Routine which prints to log files
*
* @param msg Message to be logged
*
* @return void
************************************************************************
*
*/
public static void logPrint(String msg)
{
if (msg == null) return;
String logDir = propTable.getProperty("BW_LOGDIR");
if (logDir == null) logDir = ".";
String logFile = propTable.getProperty("BW_LOGFILE");
if (logFile == null) logFile = LOGFILE;
String fname = logDir + FILE_SEP + logFile;
// Get Output Stream from Log file
RandomAccessFile raf=null;
try {
raf = new RandomAccessFile(fname, "rw");
} catch (Exception e) {
System.out.println ("Could not open file " + fname);
return;
}
try {
long len = raf.length();
raf.seek(len);
raf.write(msg.getBytes());
raf.write("\n".getBytes());
} catch (IOException e) {
System.out.println("ERROR: Could not write to File " + fname);
return;
}
try {
raf.close();
} catch (Exception e) {
System.out.println("ERROR: Could not close File " + fname);
return;
}
}
/**
*
************************************************************************
* Routine which prints Header for HTML file
************************************************************************
*
*/
public static void htmlPrintHeader()
{
String logDir = propTable.getProperty("BW_LOGDIR");
if (logDir == null) logDir = ".";
String logFile = LOGHTML;
String fname = logDir + FILE_SEP + logFile;
File f=null;
try {
f = new File(logDir, logFile);
} catch (Exception e) {
System.out.println ("Could not get file Descriptor for file " + fname);
return;
}
if (f.exists())
{
File newf=null;
String nom = logFile + ".bak";
try {
newf = new File(logDir, nom);
} catch (Exception e) {
System.out.println ("Could not get file Descriptor for file " + nom);
return;
}
try {
f.renameTo(newf);
} catch (Exception e) {
System.out.println ("Could not rename file " + logFile + " to " + nom);
return;
}
}
// Get Output Stream from Log file
RandomAccessFile raf=null;
try {
raf = new RandomAccessFile(fname, "rw");
} catch (Exception e) {
System.out.println ("Could not open file " + fname);
return;
}
String msg=null;
try {
raf.seek(0);
Date dt = new Date();
msg = "<html><head><title>\n";
msg = msg + "DOMAPI Core Level 1 Test Status\n";
msg = msg + "</title></head><body bgcolor=\"white\">\n";
msg = msg + "<center><h1>\n";
msg = msg + "DOM API Automated TestRun Results\n";
msg = msg + dt.toString();
msg = msg + "</h1></center>\n";
msg = msg + "<hr noshade>";
msg = msg + "<table bgcolor=\"#99FFCC\">\n";
msg = msg + "<tr bgcolor=\"#FF6666\">\n";
msg = msg + "<td>Test Case</td>\n";
msg = msg + "<td>Result</td>\n";
msg = msg + "</tr>\n";
raf.write(msg.getBytes());
raf.write("\n".getBytes());
} catch (IOException e) {
System.out.println("ERROR: Could not write to File " + fname);
return;
}
try {
raf.close();
} catch (Exception e) {
System.out.println("ERROR: Could not close File " + fname);
return;
}
}
/**
*
************************************************************************
* Routine which prints Footer for HTML file
************************************************************************
*
*/
public static void htmlPrintFooter()
{
String logDir = propTable.getProperty("BW_LOGDIR");
if (logDir == null) logDir = ".";
String logFile = LOGHTML;
String fname = logDir + FILE_SEP + logFile;
// Get Output Stream from Log file
RandomAccessFile raf=null;
try {
raf = new RandomAccessFile(fname, "rw");
} catch (Exception e) {
System.out.println ("Could not open file " + fname);
return;
}
String msg=null;
try {
long len = raf.length();
raf.seek(len);
msg = "</table></body></html>\n";
raf.write(msg.getBytes());
} catch (IOException e) {
System.out.println("ERROR: Could not write to File " + fname);
return;
}
try {
raf.close();
} catch (Exception e) {
System.out.println("ERROR: Could not close File " + fname);
return;
}
}
/**
*
************************************************************************
* Routine which prints to HTML files
*
* @param testCase TestCase name (class name)
* @param msg Message to be logged
*
* @return void
************************************************************************
*
*/
public static void htmlPrint(String testCase, String msg)
{
if (msg == null) return;
if (testCase == null) return;
String logDir = propTable.getProperty("BW_LOGDIR");
if (logDir == null) logDir = ".";
String logFile = LOGHTML;
String fname = logDir + FILE_SEP + logFile;
// Get Output Stream from Log file
RandomAccessFile raf=null;
try {
raf = new RandomAccessFile(fname, "rw");
} catch (Exception e) {
System.out.println ("Could not open file " + fname);
return;
}
try {
String msg1 = null;
long len = raf.length();
raf.seek(len);
msg1 = "<tr><td>" + testCase + "</td>\n";
msg1 = msg1 + "<td>" + msg + "</td>\n";
msg1 = msg1 + "</tr>";
raf.write(msg1.getBytes());
} catch (IOException e) {
System.out.println("ERROR: Could not write to File " + fname);
return;
}
try {
raf.close();
} catch (Exception e) {
System.out.println("ERROR: Could not close File " + fname);
return;
}
}
/**
*
************************************************************************
* Routine which prints to txt file
*
* @param testCase TestCase name (class name)
* @param msg Message to be logged
*
* @return void
************************************************************************
*
*/
public static void txtPrint(String testCase, String msg)
{
if (msg == null) return;
if (testCase == null) return;
String logDir = propTable.getProperty("BW_LOGDIR");
if (logDir == null) logDir = ".";
String logFile = TestLoader.LOGTXT;
String fname = logDir + FILE_SEP + logFile;
// Get Output Stream from Log file
RandomAccessFile raf=null;
try {
raf = new RandomAccessFile(fname, "rw");
} catch (Exception e) {
System.out.println ("Could not open file " + fname);
return;
}
try {
String msg1 = null;
long len = raf.length();
raf.seek(len);
msg1 = testCase + "=" + msg + "\n";
raf.write(msg1.getBytes());
} catch (IOException e) {
System.out.println("ERROR: Could not write to File " + fname);
return;
}
try {
raf.close();
} catch (Exception e) {
System.out.println("ERROR: Could not close File " + fname);
return;
}
}
/*Implementing DocumentLoadListener interface*/
public void endDocumentLoad(String url, int status, Document doc)
{
System.out.println("################### Got Document: "+url);
if ((!(url.endsWith(".html"))) && (!(url.endsWith(".xml")))) {
System.out.println("################### Document is not HTML/XML ... "+url);
return;
}
if (url.endsWith(".html"))
{
if (url.indexOf("test.html") == -1) {
System.out.println("TestCases Tuned to run with test.html...");
return;
}
}
if (url.endsWith(".xml"))
{
if (url.indexOf("test.xml") == -1) {
System.out.println("TestCases Tuned to run with test.xml...");
return;
}
}
Object obj = (Object) doc;
setTarget(obj);
System.out.println("################## Loading test ... ");
try {
Object retobj = loadTest();
System.out.println("################## test exited normally ... ");
} catch (Exception e) {
System.out.println("################## test exited abnormally: \n" + e);
}
doc = null;
};
public void startURLLoad(String url, String contentType, Document doc) {};
public void endURLLoad(String url, int status, Document doc) {};
public void progressURLLoad(String url, int progress, int progressMax, Document doc) {};
public void statusURLLoad(String url, String message, Document doc) {};
public void startDocumentLoad(String url) {};
/*Overiding some Applet's methods */
public void init()
{
System.err.println("################## Regestring DocumentLoadListener !");
DOMAccessor.addDocumentLoadListener((DocumentLoadListener)this);
String testURL = propTable.getProperty("BW_HTMLTEST");
if (testURL == null) {
System.err.println("################# WARNING: BW_HTMLTEST property is not set ! Using file: protocol by default !");
testURL="file:";
}
if (getParameter("test_type").equals("XML")) {
testURL = propTable.getProperty("BW_XMLTEST");
if (testURL == null)
testURL="file:";
testURL+="/test.xml";
} else if (getParameter("test_type").equals("HTML")) {
testURL+="/test.html";
} else {
System.err.println("################ WARNING: Unrecognized test type (valid are HTML/XML):"+getParameter("test_type")+"\nLoading test.html by default.");
testURL+="/test.html";
}
System.err.println("################## Loading "+testURL);
try {
getAppletContext().showDocument(new URL(testURL));
} catch (Exception e) {
System.err.println("############ Can't show test document: \nException: " + e.fillInStackTrace());
}
}
}//end of class

View File

@@ -1,7 +0,0 @@
<html>
<body>
<applet code="org.mozilla.dom.test.TestLoader" width=1 height=1>
<param name="test_type" value="HTML">
</applet>
</body>
</html>

View File

@@ -1,7 +0,0 @@
<html>
<body>
<applet code="org.mozilla.dom.test.TestLoader" width=1 height=1></applet>
<param name="test_type" value="XML">
</script>
</body>
</html>

View File

@@ -1,126 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class AttrImpl_getName extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public AttrImpl_getName()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
Attr a = d.createAttribute("dummyattr");
if (a == null) {
TestLoader.logErrPrint("Could not Create Attribute ..");
return BWBaseTest.FAILED;
} else {
String str = a.getName();
if (str == null) {
TestLoader.logErrPrint("Attr 'getName()' is NULL ...");
return BWBaseTest.FAILED;
}
if (str.compareTo("dummyattr") != 0)
{
TestLoader.logErrPrint("Attr 'getName()' FAILED ...");
return BWBaseTest.FAILED;
}
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,129 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class AttrImpl_getOwnerElement extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public AttrImpl_getOwnerElement()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
Attr a = d.createAttribute("dummyattr_2");
Element e = d.getDocumentElement();
if (a == null || e == null) {
TestLoader.logErrPrint("Could not Create Attribute dummyattr_2 or get document element ..");
return BWBaseTest.FAILED;
} else {
try {
e.setAttributeNode(a);
Attr da = e.getAttributeNode("dummyattr_2");
Element oe = da.getOwnerElement();
if (oe != null) { //here we also need to check that oe is the same ???
return BWBaseTest.PASSED;
}
TestLoader.logErrPrint("Attr 'getOwnerElement()' returned incorrect element: "+oe+" "+oe.getNodeType());
return BWBaseTest.FAILED;
} catch (Exception ex) {
TestLoader.logErrPrint("Exception was thrown: "+ex);
return BWBaseTest.FAILED;
}
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,120 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class AttrImpl_getSpecified extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public AttrImpl_getSpecified()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
Attr a = d.createAttribute("dummyattr_1");
if (a == null) {
TestLoader.logErrPrint("Could not Create Attribute ..");
return BWBaseTest.FAILED;
} else {
if (a.getSpecified()) {
TestLoader.logErrPrint("Attr 'getSpecified' returned true...");
return BWBaseTest.FAILED;
} else {
}
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,127 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class AttrImpl_getValue extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public AttrImpl_getValue()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
Attr a = d.createAttribute("dummyattr_2");
if (a == null) {
TestLoader.logErrPrint("Could not Create Attribute dummyattr_2..");
return BWBaseTest.FAILED;
} else {
a.setValue("1");
String str = a.getValue();
if (str == null) {
TestLoader.logErrPrint("Attr 'getValue()' is NULL ...");
return BWBaseTest.FAILED;
}
if (str.compareTo("1") != 0)
{
TestLoader.logErrPrint("Attr 'getValue()' FAILED ...");
return BWBaseTest.FAILED;
}
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,128 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class AttrImpl_setValue_String_0 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public AttrImpl_setValue_String_0()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
Attr a = d.createAttribute("dummyattr_3");
if (a == null) {
TestLoader.logErrPrint("Could not Create Attribute dummyattr_3");
return BWBaseTest.FAILED;
} else {
try {
a.setValue(null);
String str = a.getValue();
if (str == null) {
TestLoader.logErrPrint("Attr 'setValue()' is NULL ...");
return BWBaseTest.FAILED;
}
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
}
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,133 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class AttrImpl_setValue_String_1 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public AttrImpl_setValue_String_1()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
Attr a = d.createAttribute("dummyattr_4");
if (a == null) {
TestLoader.logErrPrint("Could not Create Attribute dummyattr_4");
return BWBaseTest.FAILED;
} else {
try {
a.setValue("1");
String str = a.getValue();
if (str == null) {
TestLoader.logErrPrint("Attr 'setValue(1)' is NULL ...");
return BWBaseTest.FAILED;
}
if (str.compareTo("1") != 0)
{
TestLoader.logErrPrint("Attr 'setValue(1)' FAILED ...");
return BWBaseTest.FAILED;
}
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1 +0,0 @@
org.mozilla.dom.test.NodeImpl_getPrefix

View File

@@ -1,231 +0,0 @@
org.mozilla.dom.test.AttrImpl_getName
org.mozilla.dom.test.AttrImpl_getSpecified
org.mozilla.dom.test.AttrImpl_getValue
org.mozilla.dom.test.AttrImpl_getOwnerElement
org.mozilla.dom.test.AttrImpl_setValue_String_0
org.mozilla.dom.test.AttrImpl_setValue_String_1
org.mozilla.dom.test.CharacterDataImpl_appendData_String_0
org.mozilla.dom.test.CharacterDataImpl_appendData_String_1
org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_0
org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_1
org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_2
org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_3
org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_4
org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_5
org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_6
org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_7
org.mozilla.dom.test.CharacterDataImpl_deleteData_int_int_8
org.mozilla.dom.test.CharacterDataImpl_getData
org.mozilla.dom.test.CharacterDataImpl_getLength
org.mozilla.dom.test.CharacterDataImpl_insertData_int_String_0
org.mozilla.dom.test.CharacterDataImpl_insertData_int_String_1
org.mozilla.dom.test.CharacterDataImpl_insertData_int_String_2
org.mozilla.dom.test.CharacterDataImpl_insertData_int_String_3
org.mozilla.dom.test.CharacterDataImpl_insertData_int_String_4
org.mozilla.dom.test.CharacterDataImpl_insertData_int_String_5
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_0
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_1
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_10
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_11
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_12
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_13
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_14
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_15
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_16
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_17
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_2
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_3
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_4
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_5
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_6
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_7
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_8
org.mozilla.dom.test.CharacterDataImpl_replaceData_int_int_String_9
org.mozilla.dom.test.CharacterDataImpl_setData_String_0
org.mozilla.dom.test.CharacterDataImpl_setData_String_1
org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_0
org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_1
org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_2
org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_3
org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_4
org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_5
org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_6
org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_7
org.mozilla.dom.test.CharacterDataImpl_substringData_int_int_8
org.mozilla.dom.test.DOMImplementationImpl_hasFeature_String_String_0
org.mozilla.dom.test.DOMImplementationImpl_hasFeature_String_String_1
org.mozilla.dom.test.DOMImplementationImpl_hasFeature_String_String_2
org.mozilla.dom.test.DOMImplementationImpl_hasFeature_String_String_3
org.mozilla.dom.test.DOMImplementationImpl_hasFeature_String_String_4
org.mozilla.dom.test.DOMImplementationImpl_createDocumentType_String_String_String_0
org.mozilla.dom.test.DOMImplementationImpl_createDocumentType_String_String_String_String_0
org.mozilla.dom.test.DOMImplementationImpl_createDocument_String_String_DocumentType_0
org.mozilla.dom.test.DocumentImpl_createAttribute_String_0
org.mozilla.dom.test.DocumentImpl_createAttribute_String_1
org.mozilla.dom.test.DocumentImpl_createAttributeNS_String_String_0
org.mozilla.dom.test.DocumentImpl_createAttributeNS_String_String_1
org.mozilla.dom.test.DocumentImpl_createAttributeNS_String_String_2
org.mozilla.dom.test.DocumentImpl_createAttributeNS_String_String_3
org.mozilla.dom.test.DocumentImpl_createCDATASection_String_0
org.mozilla.dom.test.DocumentImpl_createCDATASection_String_1
org.mozilla.dom.test.DocumentImpl_createComment_String_0
org.mozilla.dom.test.DocumentImpl_createComment_String_1
org.mozilla.dom.test.DocumentImpl_createDocumentFragment
org.mozilla.dom.test.DocumentImpl_createElement_String_0
org.mozilla.dom.test.DocumentImpl_createElement_String_1
org.mozilla.dom.test.DocumentImpl_createElement_createElementNS_String_String_0
org.mozilla.dom.test.DocumentImpl_createElement_createElementNS_String_String_1
org.mozilla.dom.test.DocumentImpl_createElement_createElementNS_String_String_2
org.mozilla.dom.test.DocumentImpl_createElement_createElementNS_String_String_3
org.mozilla.dom.test.DocumentImpl_createEntityReference_String_0
org.mozilla.dom.test.DocumentImpl_createEvent_String_0
org.mozilla.dom.test.DocumentImpl_createEvent_String_1
org.mozilla.dom.test.DocumentImpl_createProcessingInstruction_String_String_0
org.mozilla.dom.test.DocumentImpl_createProcessingInstruction_String_String_1
org.mozilla.dom.test.DocumentImpl_createProcessingInstruction_String_String_2
org.mozilla.dom.test.DocumentImpl_createProcessingInstruction_String_String_3
org.mozilla.dom.test.DocumentImpl_createTextNode_String_0
org.mozilla.dom.test.DocumentImpl_createTextNode_String_1
org.mozilla.dom.test.DocumentImpl_getDoctype
org.mozilla.dom.test.DocumentImpl_getDocumentElement
org.mozilla.dom.test.DocumentImpl_getElementsByTagName_String_0
org.mozilla.dom.test.DocumentImpl_getElementsByTagName_String_1
org.mozilla.dom.test.DocumentImpl_getElementsByTagNameNS_String_String_0
org.mozilla.dom.test.DocumentImpl_getElementsByTagNameNS_String_String_1
org.mozilla.dom.test.DocumentImpl_getElementsByTagNameNS_String_String_2
org.mozilla.dom.test.DocumentImpl_getElementsByTagNameNS_String_String_3
org.mozilla.dom.test.DocumentImpl_getElementById_String_0
org.mozilla.dom.test.DocumentImpl_getElementById_String_1
org.mozilla.dom.test.DocumentImpl_getImplementation
org.mozilla.dom.test.DocumentImpl_importNode_Node_boolean_0
org.mozilla.dom.test.DocumentImpl_importNode_Node_boolean_1
org.mozilla.dom.test.DocumentImpl_importNode_Node_boolean_2
org.mozilla.dom.test.DocumentImpl_importNode_Node_boolean_3
org.mozilla.dom.test.DocumentTypeImpl_getEntities
org.mozilla.dom.test.DocumentTypeImpl_getName
org.mozilla.dom.test.DocumentTypeImpl_getNotations
org.mozilla.dom.test.DocumentTypeImpl_getPublicId
org.mozilla.dom.test.DocumentTypeImpl_getSystemId
org.mozilla.dom.test.DocumentTypeImpl_getInternalSubset
org.mozilla.dom.test.ElementImpl_getAttributeNode_String_0
org.mozilla.dom.test.ElementImpl_getAttributeNode_String_1
org.mozilla.dom.test.ElementImpl_getAttribute_String_0
org.mozilla.dom.test.ElementImpl_getAttribute_String_1
org.mozilla.dom.test.ElementImpl_getAttributeNS_String_String_0
org.mozilla.dom.test.ElementImpl_getAttributeNS_String_String_1
org.mozilla.dom.test.ElementImpl_getAttributeNS_String_String_2
org.mozilla.dom.test.ElementImpl_getAttributeNS_String_String_3
org.mozilla.dom.test.ElementImpl_getAttributeNodeNS_String_String_0
org.mozilla.dom.test.ElementImpl_getAttributeNodeNS_String_String_1
org.mozilla.dom.test.ElementImpl_getAttributeNodeNS_String_String_2
org.mozilla.dom.test.ElementImpl_getAttributeNodeNS_String_String_3
org.mozilla.dom.test.ElementImpl_getElementsByTagName_String_0
org.mozilla.dom.test.ElementImpl_getElementsByTagName_String_1
org.mozilla.dom.test.ElementImpl_getElementsByTagNameNS_String_String_0
org.mozilla.dom.test.ElementImpl_getElementsByTagNameNS_String_String_1
org.mozilla.dom.test.ElementImpl_getElementsByTagNameNS_String_String_2
org.mozilla.dom.test.ElementImpl_getElementsByTagNameNS_String_String_3
org.mozilla.dom.test.ElementImpl_getTagName
org.mozilla.dom.test.ElementImpl_normalize
org.mozilla.dom.test.ElementImpl_removeAttributeNode_Attr_0
org.mozilla.dom.test.ElementImpl_removeAttributeNode_Attr_1
org.mozilla.dom.test.ElementImpl_removeAttribute_String_0
org.mozilla.dom.test.ElementImpl_removeAttribute_String_1
org.mozilla.dom.test.ElementImpl_removeAttributeNS_String_String_0
org.mozilla.dom.test.ElementImpl_removeAttributeNS_String_String_1
org.mozilla.dom.test.ElementImpl_removeAttributeNS_String_String_2
org.mozilla.dom.test.ElementImpl_removeAttributeNS_String_String_3
org.mozilla.dom.test.ElementImpl_setAttributeNode_Attr_0
org.mozilla.dom.test.ElementImpl_setAttributeNode_Attr_1
org.mozilla.dom.test.ElementImpl_setAttributeNode_Attr_2
org.mozilla.dom.test.ElementImpl_setAttributeNodeNS_Attr_0
org.mozilla.dom.test.ElementImpl_setAttributeNodeNS_Attr_1
org.mozilla.dom.test.ElementImpl_setAttribute_String_String_0
org.mozilla.dom.test.ElementImpl_setAttribute_String_String_1
org.mozilla.dom.test.ElementImpl_setAttribute_String_String_2
org.mozilla.dom.test.ElementImpl_setAttribute_String_String_3
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_0
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_1
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_2
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_3
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_4
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_5
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_6
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_7
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_8
org.mozilla.dom.test.ElementImpl_setAttributeNS_String_String_String_9
org.mozilla.dom.test.NamedNodeMapImpl_getLength
org.mozilla.dom.test.NamedNodeMapImpl_getNamedItem_String_0
org.mozilla.dom.test.NamedNodeMapImpl_getNamedItem_String_1
org.mozilla.dom.test.NamedNodeMapImpl_getNamedItemNS_String_String_0
org.mozilla.dom.test.NamedNodeMapImpl_getNamedItemNS_String_String_1
org.mozilla.dom.test.NamedNodeMapImpl_getNamedItemNS_String_String_2
org.mozilla.dom.test.NamedNodeMapImpl_getNamedItemNS_String_String_3
org.mozilla.dom.test.NamedNodeMapImpl_item_int_0
org.mozilla.dom.test.NamedNodeMapImpl_item_int_1
org.mozilla.dom.test.NamedNodeMapImpl_item_int_2
org.mozilla.dom.test.NamedNodeMapImpl_removeNamedItem_String_0
org.mozilla.dom.test.NamedNodeMapImpl_removeNamedItem_String_1
org.mozilla.dom.test.NamedNodeMapImpl_removeNamedItemNS_String_String_0
org.mozilla.dom.test.NamedNodeMapImpl_removeNamedItemNS_String_String_1
org.mozilla.dom.test.NamedNodeMapImpl_removeNamedItemNS_String_String_2
org.mozilla.dom.test.NamedNodeMapImpl_removeNamedItemNS_String_String_3
org.mozilla.dom.test.NamedNodeMapImpl_setNamedItem_Node_0
org.mozilla.dom.test.NamedNodeMapImpl_setNamedItem_Node_1
org.mozilla.dom.test.NamedNodeMapImpl_setNamedItem_Node_2
org.mozilla.dom.test.NamedNodeMapImpl_setNamedItemNS_Node_0
org.mozilla.dom.test.NamedNodeMapImpl_setNamedItemNS_Node_1
org.mozilla.dom.test.NodeImpl_appendChild_Node_0
org.mozilla.dom.test.NodeImpl_appendChild_Node_1
org.mozilla.dom.test.NodeImpl_cloneNode_boolean_0
org.mozilla.dom.test.NodeImpl_cloneNode_boolean_1
org.mozilla.dom.test.NodeImpl_equals_Object_0
org.mozilla.dom.test.NodeImpl_equals_Object_1
org.mozilla.dom.test.NodeImpl_equals_Object_2
org.mozilla.dom.test.NodeImpl_getAttributes
org.mozilla.dom.test.NodeImpl_getChildNodes
org.mozilla.dom.test.NodeImpl_getFirstChild
org.mozilla.dom.test.NodeImpl_getLastChild
org.mozilla.dom.test.NodeImpl_getNextSibling
org.mozilla.dom.test.NodeImpl_getNodeName
org.mozilla.dom.test.NodeImpl_getNodeType
org.mozilla.dom.test.NodeImpl_getNodeValue
org.mozilla.dom.test.NodeImpl_getOwnerDocument
org.mozilla.dom.test.NodeImpl_getParentNode
org.mozilla.dom.test.NodeImpl_getPreviousSibling
org.mozilla.dom.test.NodeImpl_getNamespaceURI
org.mozilla.dom.test.NodeImpl_getPrefix
org.mozilla.dom.test.NodeImpl_getLocalName
org.mozilla.dom.test.NodeImpl_hasChildNodes
org.mozilla.dom.test.NodeImpl_hashCode
org.mozilla.dom.test.NodeImpl_insertBefore_Node_Node_0
org.mozilla.dom.test.NodeImpl_insertBefore_Node_Node_1
org.mozilla.dom.test.NodeImpl_insertBefore_Node_Node_2
org.mozilla.dom.test.NodeImpl_insertBefore_Node_Node_3
org.mozilla.dom.test.NodeImpl_removeChild_Node_0
org.mozilla.dom.test.NodeImpl_removeChild_Node_1
org.mozilla.dom.test.NodeImpl_replaceChild_Node_Node_0
org.mozilla.dom.test.NodeImpl_replaceChild_Node_Node_1
org.mozilla.dom.test.NodeImpl_replaceChild_Node_Node_2
org.mozilla.dom.test.NodeImpl_replaceChild_Node_Node_3
org.mozilla.dom.test.NodeImpl_setNodeValue_String_0
org.mozilla.dom.test.NodeImpl_setNodeValue_String_1
org.mozilla.dom.test.NodeImpl_toString
org.mozilla.dom.test.NodeImpl_normalize
org.mozilla.dom.test.NodeImpl_setPrefix_String_0
org.mozilla.dom.test.NodeImpl_setPrefix_String_1
org.mozilla.dom.test.NodeImpl_supports_String_String_0
org.mozilla.dom.test.NodeImpl_supports_String_String_1
org.mozilla.dom.test.NodeImpl_supports_String_String_2
org.mozilla.dom.test.NodeImpl_supports_String_String_3
org.mozilla.dom.test.NodeListImpl_getLength
org.mozilla.dom.test.NodeListImpl_item_int_0
org.mozilla.dom.test.NodeListImpl_item_int_1
org.mozilla.dom.test.NodeListImpl_item_int_2
org.mozilla.dom.test.ProcessingInstructionImpl_getData
org.mozilla.dom.test.ProcessingInstructionImpl_getTarget
org.mozilla.dom.test.ProcessingInstructionImpl_setData_String_0
org.mozilla.dom.test.ProcessingInstructionImpl_setData_String_1
org.mozilla.dom.test.TextImpl_splitText_int_0
org.mozilla.dom.test.TextImpl_splitText_int_1
org.mozilla.dom.test.TextImpl_splitText_int_2

View File

@@ -1,146 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import java.lang.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_appendData_String_0 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_appendData_String_0()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
String newstr=null;
String prevstr = tn.getData();
tn.appendData(newstr);
String getstr = tn.getData();
if (getstr == null){
TestLoader.logErrPrint("charcterData cannot be set to null....");
return BWBaseTest.FAILED;
}
if (prevstr != null)
{
if (prevstr.compareTo(getstr) != 0)
{
TestLoader.logErrPrint("characterData has changed from original value");
return BWBaseTest.FAILED;
}
} else {
TestLoader.logErrPrint("charcterData has changed to other than null...");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,134 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_appendData_String_1 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_appendData_String_1()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
String newstr=" I have appended more text";
tn.appendData(newstr);
String getstr = tn.getData();
if (getstr == null) {
TestLoader.logErrPrint("CharacterData could not be appended...");
return BWBaseTest.FAILED;
}
if (!(getstr.endsWith(newstr)))
{
TestLoader.logErrPrint("CharacterData could not appended ....");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,137 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_deleteData_int_int_0 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_deleteData_int_int_0()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = Integer.MIN_VALUE;
int count = Integer.MIN_VALUE;
tn.deleteData(offset, count);
String getstr = tn.getData();
if (getstr == null) {
TestLoader.logErrPrint("CharacterData cannot be null...");
return BWBaseTest.FAILED;
}
if (!(getstr.endsWith(str)))
{
TestLoader.logErrPrint("CharacterData should not have been deleted...");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,139 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_deleteData_int_int_1 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_deleteData_int_int_1()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = Integer.MIN_VALUE;
int count = Integer.MAX_VALUE;
tn.deleteData(offset, count);
String getstr = tn.getData();
if (getstr == null) {
TestLoader.logErrPrint("CharacterData cannot be null");
return BWBaseTest.FAILED;
}
if (!(getstr.endsWith(str)))
{
TestLoader.logErrPrint("CharacterData should not have been deleted...");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,139 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_deleteData_int_int_2 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_deleteData_int_int_2()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = Integer.MIN_VALUE;
int count = str.length();
tn.deleteData(offset, count);
String getstr = tn.getData();
if (getstr == null) {
TestLoader.logErrPrint("CharacterData cannot be null");
return BWBaseTest.FAILED;
}
if (!(getstr.endsWith(str)))
{
TestLoader.logErrPrint("CharacterData should not have been deleted...");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,139 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_deleteData_int_int_3 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_deleteData_int_int_3()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = Integer.MAX_VALUE;
int count = Integer.MIN_VALUE;
tn.deleteData(offset, count);
String getstr = tn.getData();
if (getstr == null) {
TestLoader.logErrPrint("CharacterData cannot be null");
return BWBaseTest.FAILED;
}
if (!(getstr.endsWith(str)))
{
TestLoader.logErrPrint("CharacterData should not have been deleted...");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,141 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.lang.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_deleteData_int_int_4 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_deleteData_int_int_4()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = Integer.MAX_VALUE;
int count = Integer.MAX_VALUE;
tn.deleteData(offset, count);
String getstr = tn.getData();
if (getstr == null) {
TestLoader.logErrPrint("CharacterData cannot be null");
return BWBaseTest.FAILED;
}
if (!(getstr.endsWith(str)))
{
TestLoader.logErrPrint("CharacterData should not have been deleted...");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
r.printStackTrace();
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,139 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_deleteData_int_int_5 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_deleteData_int_int_5()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = Integer.MAX_VALUE;
int count = str.length();
tn.deleteData(offset, count);
String getstr = tn.getData();
if (getstr == null) {
TestLoader.logErrPrint("CharacterData cannot be null");
return BWBaseTest.FAILED;
}
if (!(getstr.endsWith(str)))
{
TestLoader.logErrPrint("CharacterData should not have been deleted...");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,138 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_deleteData_int_int_6 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_deleteData_int_int_6()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = 1;
int count = Integer.MIN_VALUE;
tn.deleteData(offset, count);
String getstr = tn.getData();
if (getstr == null) {
TestLoader.logErrPrint("CharacterData cannot be null");
return BWBaseTest.FAILED;
}
if (!(getstr.endsWith(str)))
{
TestLoader.logErrPrint("CharacterData should not have been deleted...");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,138 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_deleteData_int_int_7 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_deleteData_int_int_7()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = 1;
int count = Integer.MAX_VALUE;
tn.deleteData(offset, count);
String getstr = tn.getData();
if (getstr == null) {
TestLoader.logErrPrint("CharacterData cannot be null");
return BWBaseTest.FAILED;
}
if (getstr.endsWith(str))
{
TestLoader.logErrPrint("CharacterData should have been deleted...");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.FAILED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,138 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_deleteData_int_int_8 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_deleteData_int_int_8()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = 0;
int count = str.length();
tn.deleteData(offset, count);
String getstr = tn.getData();
if (getstr == null) {
TestLoader.logErrPrint("CharacterData cannot be null");
return BWBaseTest.FAILED;
}
if ((getstr.endsWith(str)))
{
TestLoader.logErrPrint("CharacterData should have been deleted...");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.FAILED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,135 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_getData extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_getData()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
String getstr = tn.getData();
if (getstr == null) {
TestLoader.logErrPrint("Character getData cannot be null");
return BWBaseTest.FAILED;
}
if (getstr.compareTo(str) != 0)
{
TestLoader.logErrPrint("Character getData failed...");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.FAILED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,124 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_getLength extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_getLength()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int origlen = str.length();
String getstr = tn.getData();
int newlen = getstr.length();
if (newlen != origlen) {
TestLoader.logErrPrint("Character getLength failed...");
return BWBaseTest.FAILED;
}
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,139 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_insertData_int_String_0 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_insertData_int_String_0()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = Integer.MIN_VALUE;
String newstr = null;
tn.insertData(offset, newstr);
String getstr = tn.getData();
if (getstr == null) {
TestLoader.logErrPrint("CharacterData cannot be null");
return BWBaseTest.FAILED;
}
if (getstr.compareTo(str) != 0)
{
TestLoader.logErrPrint("CharacterData should not have been inserted...");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,139 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_insertData_int_String_1 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_insertData_int_String_1()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = Integer.MAX_VALUE;
String newstr = null;
tn.insertData(offset, newstr);
String getstr = tn.getData();
if (getstr == null) {
TestLoader.logErrPrint("CharacterData cannot be null");
return BWBaseTest.FAILED;
}
if (getstr.compareTo(str) != 0)
{
TestLoader.logErrPrint("CharacterData should have been inserted...");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,139 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_insertData_int_String_2 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_insertData_int_String_2()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = 0;
String newstr = null;
tn.insertData(offset, newstr);
String getstr = tn.getData();
if (getstr == null) {
TestLoader.logErrPrint("CharacterData cannot be null");
return BWBaseTest.FAILED;
}
if (getstr.compareTo(str) != 0)
{
TestLoader.logErrPrint("CharacterData should not have been inserted...");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.FAILED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,140 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_insertData_int_String_3 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_insertData_int_String_3()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = Integer.MIN_VALUE;
String newstr = "Inserted Text";
tn.insertData(offset, newstr);
String getstr = tn.getData();
if (getstr == null) {
TestLoader.logErrPrint("CharacterData cannot be null");
return BWBaseTest.FAILED;
}
if (getstr.compareTo(str) != 0)
{
TestLoader.logErrPrint("CharacterData should not have been inserted...");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,139 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_insertData_int_String_4 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_insertData_int_String_4()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = Integer.MAX_VALUE;
String newstr = "Inserted Text";
tn.insertData(offset, newstr);
String getstr = tn.getData();
if (getstr == null) {
TestLoader.logErrPrint("CharacterData cannot be null");
return BWBaseTest.FAILED;
}
if (getstr.compareTo(str) != 0)
{
TestLoader.logErrPrint("CharacterData should not have been inserted...");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,139 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_insertData_int_String_5 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_insertData_int_String_5()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = 0;
String newstr = "Inserted Text";
tn.insertData(offset, newstr);
String getstr = tn.getData();
if (getstr == null) {
TestLoader.logErrPrint("CharacterData cannot be null");
return BWBaseTest.FAILED;
}
if (getstr.compareTo(str) == 0)
{
TestLoader.logErrPrint("CharacterData should have been inserted...");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.FAILED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,142 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_replaceData_int_int_String_0 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_replaceData_int_int_String_0()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = Integer.MIN_VALUE;
int count = Integer.MIN_VALUE;
String repstr=null;
tn.replaceData(offset, count, repstr);
String getstr = tn.getData();
if (getstr == null)
{
TestLoader.logErrPrint("CharacterData should not have been null....");
return BWBaseTest.FAILED;
}
if (getstr.compareTo(str) != 0)
{
TestLoader.logErrPrint("CharacterData should not have been replaced....");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,145 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_replaceData_int_int_String_1 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_replaceData_int_int_String_1()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = Integer.MIN_VALUE;
int count = Integer.MIN_VALUE;
String repstr="Replaced String";
tn.replaceData(offset, count, repstr);
String getstr = tn.getData();
if (getstr == null)
{
TestLoader.logErrPrint("CharacterData should not have been null....");
return BWBaseTest.FAILED;
}
System.out.println("getstr is " + getstr);
System.out.println("str is " + str);
if (getstr.compareTo(str) != 0)
{
TestLoader.logErrPrint("CharacterData should not have been replaced....");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,142 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_replaceData_int_int_String_10 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_replaceData_int_int_String_10()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = Integer.MIN_VALUE;
int count = Integer.MAX_VALUE;
String repstr=null;
tn.replaceData(offset, count, repstr);
String getstr = tn.getData();
if (getstr == null)
{
TestLoader.logErrPrint("CharacterData should not have been null....");
return BWBaseTest.FAILED;
}
if (getstr.compareTo(str) != 0)
{
TestLoader.logErrPrint("CharacterData should not have been replaced....");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,148 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_replaceData_int_int_String_11 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_replaceData_int_int_String_11()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = Integer.MIN_VALUE;
int count = Integer.MAX_VALUE;
String repstr="Replaced Text";
tn.replaceData(offset, count, repstr);
String getstr = tn.getData();
if (getstr == null)
{
TestLoader.logErrPrint("CharacterData should not have been null....");
return BWBaseTest.FAILED;
}
System.out.println("offset is " + offset + " count is " + count);
int x = offset + count;
System.out.println("x is " + x);
System.out.println("getstr is " + getstr);
System.out.println("str is " + str);
if (getstr.compareTo(str) == 0)
{
TestLoader.logErrPrint("CharacterData should have been replaced....");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,142 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_replaceData_int_int_String_12 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_replaceData_int_int_String_12()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = Integer.MIN_VALUE;
int count = str.length();
String repstr=null;
tn.replaceData(offset, count, repstr);
String getstr = tn.getData();
if (getstr == null)
{
TestLoader.logErrPrint("CharacterData should not have been null....");
return BWBaseTest.FAILED;
}
if (getstr.compareTo(str) != 0)
{
TestLoader.logErrPrint("CharacterData should not have been replaced....");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,148 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_replaceData_int_int_String_13 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_replaceData_int_int_String_13()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = Integer.MIN_VALUE;
int count = str.length();
String repstr="Replaced Text";
tn.replaceData(offset, count, repstr);
String getstr = tn.getData();
if (getstr == null)
{
TestLoader.logErrPrint("CharacterData should not have been null....");
return BWBaseTest.FAILED;
}
System.out.println("offset is " + offset + " count is " + count);
int x = offset + count;
System.out.println("x is " + x);
System.out.println("getstr is " + getstr);
System.out.println("str is " + str);
if (getstr.compareTo(str) != 0)
{
TestLoader.logErrPrint("CharacterData should not have been replaced....");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,142 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_replaceData_int_int_String_14 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_replaceData_int_int_String_14()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = Integer.MAX_VALUE;
int count = Integer.MIN_VALUE;
String repstr=null;
tn.replaceData(offset, count, repstr);
String getstr = tn.getData();
if (getstr == null)
{
TestLoader.logErrPrint("CharacterData should not have been null....");
return BWBaseTest.FAILED;
}
if (getstr.compareTo(str) != 0)
{
TestLoader.logErrPrint("CharacterData should not have been replaced....");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,149 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_replaceData_int_int_String_15 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_replaceData_int_int_String_15()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = Integer.MAX_VALUE;
int count = Integer.MIN_VALUE;
String repstr="Replaced Text";
tn.replaceData(offset, count, repstr);
String getstr = tn.getData();
if (getstr == null)
{
TestLoader.logErrPrint("CharacterData should not have been null....");
return BWBaseTest.FAILED;
}
System.out.println("offset is " + offset + " count is " + count);
int x = offset + count;
System.out.println("x is " + x);
System.out.println("getstr is " + getstr);
System.out.println("str is " + str);
if (getstr.compareTo(str) != 0)
{
TestLoader.logErrPrint("CharacterData should not have been replaced....");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,142 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_replaceData_int_int_String_16 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_replaceData_int_int_String_16()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = Integer.MAX_VALUE;
int count = Integer.MAX_VALUE;
String repstr=null;
tn.replaceData(offset, count, repstr);
String getstr = tn.getData();
if (getstr == null)
{
TestLoader.logErrPrint("CharacterData should not have been null....");
return BWBaseTest.FAILED;
}
if (getstr.compareTo(str) != 0)
{
TestLoader.logErrPrint("CharacterData should not have been replaced....");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,147 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_replaceData_int_int_String_17 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_replaceData_int_int_String_17()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = Integer.MAX_VALUE;
int count = Integer.MAX_VALUE;
String repstr="Replaced Text";
tn.replaceData(offset, count, repstr);
String getstr = tn.getData();
if (getstr == null)
{
TestLoader.logErrPrint("CharacterData should not have been null....");
return BWBaseTest.FAILED;
}
System.out.println("offset is " + offset + " count is " + count);
int x = offset + count;
System.out.println("x is " + x);
System.out.println("getstr is " + getstr);
System.out.println("str is " + str);
if (getstr.compareTo(str) == 0)
{
TestLoader.logErrPrint("CharacterData should have been replaced....");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,142 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_replaceData_int_int_String_2 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_replaceData_int_int_String_2()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = Integer.MAX_VALUE;
int count = str.length();
String repstr=null;
tn.replaceData(offset, count, repstr);
String getstr = tn.getData();
if (getstr == null)
{
TestLoader.logErrPrint("CharacterData should not have been null....");
return BWBaseTest.FAILED;
}
if (getstr.compareTo(str) == 0)
{
TestLoader.logErrPrint("CharacterData should have been replaced....");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,142 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_replaceData_int_int_String_3 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_replaceData_int_int_String_3()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = Integer.MAX_VALUE;
int count = str.length();
String repstr="Replaced Text";
tn.replaceData(offset, count, repstr);
String getstr = tn.getData();
if (getstr == null)
{
TestLoader.logErrPrint("CharacterData should not have been null....");
return BWBaseTest.FAILED;
}
if (getstr.compareTo(str) == 0)
{
TestLoader.logErrPrint("CharacterData should have been replaced....");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,142 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_replaceData_int_int_String_4 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_replaceData_int_int_String_4()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = 0;
int count = Integer.MIN_VALUE;
String repstr=null;
tn.replaceData(offset, count, repstr);
String getstr = tn.getData();
if (getstr == null)
{
TestLoader.logErrPrint("CharacterData should not have been null....");
return BWBaseTest.FAILED;
}
if (getstr.compareTo(str) != 0)
{
TestLoader.logErrPrint("CharacterData should not have been replaced....");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,148 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_replaceData_int_int_String_5 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_replaceData_int_int_String_5()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = 0;
int count = Integer.MIN_VALUE;
String repstr="Replaced Text";
tn.replaceData(offset, count, repstr);
String getstr = tn.getData();
if (getstr == null)
{
TestLoader.logErrPrint("CharacterData should not have been null....");
return BWBaseTest.FAILED;
}
System.out.println("offset is " + offset + " count is " + count);
int x = offset + count;
System.out.println("x is " + x);
System.out.println("getstr is " + getstr);
System.out.println("str is " + str);
if (getstr.compareTo(str) != 0)
{
TestLoader.logErrPrint("CharacterData should not have been replaced....");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,142 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_replaceData_int_int_String_6 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_replaceData_int_int_String_6()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = 0;
int count = Integer.MAX_VALUE;
String repstr=null;
tn.replaceData(offset, count, repstr);
String getstr = tn.getData();
if (getstr == null)
{
TestLoader.logErrPrint("CharacterData should not have been null....");
return BWBaseTest.FAILED;
}
if (getstr.compareTo(str) != 0)
{
TestLoader.logErrPrint("CharacterData should not have been replaced....");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,143 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_replaceData_int_int_String_7 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_replaceData_int_int_String_7()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = 0;
int count = Integer.MAX_VALUE;
String repstr="Replaced Text";
tn.replaceData(offset, count, repstr);
String getstr = tn.getData();
if (getstr == null)
{
TestLoader.logErrPrint("CharacterData should not have been null....");
return BWBaseTest.FAILED;
}
if (getstr.compareTo(str) == 0)
{
TestLoader.logErrPrint("CharacterData should have been replaced....");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.FAILED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,143 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_replaceData_int_int_String_8 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_replaceData_int_int_String_8()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = 0;
int count = str.length();
String repstr=null;
tn.replaceData(offset, count, repstr);
String getstr = tn.getData();
if (getstr == null)
{
TestLoader.logErrPrint("CharacterData should not have been null....");
return BWBaseTest.FAILED;
}
if (getstr.compareTo(str) != 0)
{
TestLoader.logErrPrint("CharacterData should not have been replaced....");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,142 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_replaceData_int_int_String_9 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_replaceData_int_int_String_9()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = 0;
int count = str.length();
String repstr="Replaced Text";
tn.replaceData(offset, count, repstr);
String getstr = tn.getData();
if (getstr == null)
{
TestLoader.logErrPrint("CharacterData should not have been null....");
return BWBaseTest.FAILED;
}
if (!(getstr.startsWith(repstr)))
{
TestLoader.logErrPrint("CharacterData should have been replaced....");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.FAILED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,139 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_setData_String_0 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_setData_String_0()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
String newstr=null;
String prevstr = tn.getData();
tn.setData(newstr);
String getstr = tn.getData();
if (getstr == null) {
TestLoader.logErrPrint("charcterData cannot be set to null....");
return BWBaseTest.FAILED;
}
if (prevstr.compareTo(getstr) != 0) {
TestLoader.logErrPrint("charcterData cannot be set to null....");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,138 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_setData_String_1 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_setData_String_1()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
String newstr="Original Text is replaced with this text";
tn.setData(newstr);
String getstr = tn.getData();
if (getstr == null) {
TestLoader.logErrPrint("charcterData not set ....");
return BWBaseTest.FAILED;
}
if (getstr.compareTo(newstr) != 0)
{
TestLoader.logErrPrint("CharacterData not set ....");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.FAILED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,140 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_substringData_int_int_0 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_substringData_int_int_0()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = Integer.MIN_VALUE;
int count = Integer.MIN_VALUE;
String getstr = tn.substringData(offset, count);
if (getstr != null) {
TestLoader.logErrPrint("CharacterData should have been null....");
return BWBaseTest.FAILED;
}
System.out.println("offset is " + offset + " count is " + count);
int x = offset + count;
System.out.println("x is " + x);
System.out.println("getstr is " + getstr);
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,139 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_substringData_int_int_1 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_substringData_int_int_1()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = Integer.MIN_VALUE;
int count = Integer.MAX_VALUE;
String getstr = tn.substringData(offset, count);
if (getstr != null) {
TestLoader.logErrPrint("CharacterData should have been null....");
return BWBaseTest.FAILED;
}
System.out.println("offset is " + offset + " count is " + count);
int x = offset + count;
System.out.println("x is " + x);
System.out.println("getstr is " + getstr);
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,139 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_substringData_int_int_2 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_substringData_int_int_2()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = Integer.MIN_VALUE;
int count = str.length();
String getstr = tn.substringData(offset, count);
if (getstr != null) {
TestLoader.logErrPrint("CharacterData should have been null....");
return BWBaseTest.FAILED;
}
System.out.println("offset is " + offset + " count is " + count);
int x = offset + count;
System.out.println("x is " + x);
System.out.println("getstr is " + getstr);
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,139 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_substringData_int_int_3 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_substringData_int_int_3()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = Integer.MAX_VALUE;
int count = Integer.MIN_VALUE;
String getstr = tn.substringData(offset, count);
if (getstr != null) {
TestLoader.logErrPrint("CharacterData should have been null....");
return BWBaseTest.FAILED;
}
System.out.println("offset is " + offset + " count is " + count);
int x = offset + count;
System.out.println("x is " + x);
System.out.println("getstr is " + getstr);
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,139 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_substringData_int_int_4 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_substringData_int_int_4()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = Integer.MAX_VALUE;
int count = Integer.MAX_VALUE;
String getstr = tn.substringData(offset, count);
if (getstr != null) {
TestLoader.logErrPrint("CharacterData should have been null....");
return BWBaseTest.FAILED;
}
System.out.println("offset is " + offset + " count is " + count);
int x = offset + count;
System.out.println("x is " + x);
System.out.println("getstr is " + getstr);
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,139 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_substringData_int_int_5 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_substringData_int_int_5()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = Integer.MAX_VALUE;
int count = str.length();
String getstr = tn.substringData(offset, count);
if (getstr != null) {
TestLoader.logErrPrint("CharacterData should have been null....");
return BWBaseTest.FAILED;
}
System.out.println("offset is " + offset + " count is " + count);
int x = offset + count;
System.out.println("x is " + x);
System.out.println("getstr is " + getstr);
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,139 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_substringData_int_int_6 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_substringData_int_int_6()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = 0;
int count = Integer.MIN_VALUE;
String getstr = tn.substringData(offset, count);
System.out.println("offset is " + offset + " count is " + count);
int x = offset + count;
System.out.println("x is " + x);
if (getstr != null) {
TestLoader.logErrPrint("CharacterData should have been null....");
return BWBaseTest.FAILED;
}
System.out.println("getstr is " + getstr);
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.PASSED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,133 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_substringData_int_int_7 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_substringData_int_int_7()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = 0;
int count = Integer.MAX_VALUE;
String getstr = tn.substringData(offset, count);
if (getstr == null) {
TestLoader.logErrPrint("CharacterData should not be null....");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.FAILED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,139 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class CharacterDataImpl_substringData_int_int_8 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public CharacterDataImpl_substringData_int_int_8()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
try {
String str = "Creating a new Text Node";
Text tn = d.createTextNode(str);
if (tn == null) {
TestLoader.logErrPrint("Could not Create TextNode " + str);
return BWBaseTest.FAILED;
} else {
int offset = 0;
int count = str.length();
String getstr = tn.substringData(offset, count);
if (getstr == null) {
TestLoader.logErrPrint("CharacterData should have been null....");
return BWBaseTest.FAILED;
}
if (getstr.compareTo(str) != 0)
{
TestLoader.logErrPrint("CharacterData substring not extracted correctly...");
return BWBaseTest.FAILED;
}
}
} catch (DOMException e) {
TestLoader.logErrPrint("Caught DOMException " );
return BWBaseTest.FAILED;
} catch (RuntimeException r) {
String msg = "Caught RuntimeException " + r ;
TestLoader.logErrPrint(msg);
return BWBaseTest.FAILED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,133 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class DOMImplementationImpl_createDocumentType_String_String_String_0 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public DOMImplementationImpl_createDocumentType_String_String_String_0()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logErrPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
DOMImplementationImpl di = (DOMImplementationImpl)d.getImplementation();
if (di == null) {
TestLoader.logErrPrint("Document DomImplementation is NULL..");
return BWBaseTest.FAILED;
} else {
try {
String qualifiedName = "edi:price";
String publicId = "pID";
String systemId = "sID";
DocumentType dt = di.createDocumentType(qualifiedName, publicId, systemId);
if (dt == null) {
System.out.println("DomImplementation 'createDocumentType(...) returned null ...");
return BWBaseTest.FAILED;
}
} catch (DOMException de) {
TestLoader.logErrPrint("DOMException was thrown: "+de);
return BWBaseTest.FAILED;
} catch (Exception e) {
TestLoader.logErrPrint("Exception was thrown: "+e);
return BWBaseTest.FAILED;
}
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,134 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class DOMImplementationImpl_createDocumentType_String_String_String_1 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public DOMImplementationImpl_createDocumentType_String_String_String_1()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logErrPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
DOMImplementationImpl di = (DOMImplementationImpl)d.getImplementation();
if (di == null) {
TestLoader.logErrPrint("Document DomImplementation is NULL..");
return BWBaseTest.FAILED;
} else {
try {
String qualifiedName = null;
String publicId = "pID";
String systemId = "sID";
DocumentType dt = di.createDocumentType(qualifiedName, publicId, systemId);
if (dt == null) {
System.out.println("DomImplementation 'createDocumentType(...) returned null ...");
return BWBaseTest.FAILED;
} else {
System.out.println("DomImplementation 'createDocumentType(...)' didn't throw exception ");
return BWBaseTest.FAILED;
}
} catch (DOMException de) {
TestLoader.logErrPrint("DOMException was thrown: "+de);
return BWBaseTest.PASSED;
} catch (Exception e) {
TestLoader.logErrPrint("Exception was thrown: "+e);
return BWBaseTest.PASSED;
}
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,134 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class DOMImplementationImpl_createDocumentType_String_String_String_2 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public DOMImplementationImpl_createDocumentType_String_String_String_2()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logErrPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
DOMImplementationImpl di = (DOMImplementationImpl)d.getImplementation();
if (di == null) {
TestLoader.logErrPrint("Document DomImplementation is NULL..");
return BWBaseTest.FAILED;
} else {
try {
String qualifiedName = "edi:price";
String publicId = null;
String systemId = "sID";
DocumentType dt = di.createDocumentType(qualifiedName, publicId, systemId);
if (dt == null) {
System.out.println("DomImplementation 'createDocumentType(...) returned null ...");
return BWBaseTest.FAILED;
} else {
System.out.println("DomImplementation 'createDocumentType(...)' didn't throw exception ");
return BWBaseTest.FAILED;
}
} catch (DOMException de) {
TestLoader.logErrPrint("DOMException was thrown: "+de);
return BWBaseTest.PASSED;
} catch (Exception e) {
TestLoader.logErrPrint("Exception was thrown: "+e);
return BWBaseTest.PASSED;
}
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,134 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class DOMImplementationImpl_createDocumentType_String_String_String_3 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public DOMImplementationImpl_createDocumentType_String_String_String_3()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logErrPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
DOMImplementationImpl di = (DOMImplementationImpl)d.getImplementation();
if (di == null) {
TestLoader.logErrPrint("Document DomImplementation is NULL..");
return BWBaseTest.FAILED;
} else {
try {
String qualifiedName = "edi:price";
String publicId = "pID";
String systemId = null;
DocumentType dt = di.createDocumentType(qualifiedName, publicId, systemId);
if (dt == null) {
System.out.println("DomImplementation 'createDocumentType(...) returned null ...");
return BWBaseTest.FAILED;
} else {
System.out.println("DomImplementation 'createDocumentType(...)' didn't throw exception ");
return BWBaseTest.FAILED;
}
} catch (DOMException de) {
TestLoader.logErrPrint("DOMException was thrown: "+de);
return BWBaseTest.PASSED;
} catch (Exception e) {
TestLoader.logErrPrint("Exception was thrown: "+e);
return BWBaseTest.PASSED;
}
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,134 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class DOMImplementationImpl_createDocumentType_String_String_String_4 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public DOMImplementationImpl_createDocumentType_String_String_String_4()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logErrPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
DOMImplementationImpl di = (DOMImplementationImpl)d.getImplementation();
if (di == null) {
TestLoader.logErrPrint("Document DomImplementation is NULL..");
return BWBaseTest.FAILED;
} else {
try {
String qualifiedName = null;
String publicId = null;
String systemId = null;
DocumentType dt = di.createDocumentType(qualifiedName, publicId, systemId);
if (dt == null) {
System.out.println("DomImplementation 'createDocumentType(...) returned null ...");
return BWBaseTest.FAILED;
} else {
System.out.println("DomImplementation 'createDocumentType(...)' didn't throw exception ");
return BWBaseTest.FAILED;
}
} catch (DOMException de) {
TestLoader.logErrPrint("DOMException was thrown: "+de);
return BWBaseTest.PASSED;
} catch (Exception e) {
TestLoader.logErrPrint("Exception was thrown: "+e);
return BWBaseTest.PASSED;
}
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,131 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class DOMImplementationImpl_createDocumentType_String_String_String_String_0 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public DOMImplementationImpl_createDocumentType_String_String_String_String_0()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logErrPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
setUnsupported();
Document d = (Document)tobj;
if (d != null)
{
DOMImplementationImpl di = (DOMImplementationImpl)d.getImplementation();
if (di == null) {
TestLoader.logErrPrint("Document DomImplementation is NULL..");
return BWBaseTest.FAILED;
} else {
try {
if (di.createDocumentType(null, null, null) == null) {
System.out.println("DomImplementation 'createDocumentType(null, null, null, null) according to specs. is not supported...");
return BWBaseTest.FAILED;
} else {
System.out.println("DomImplementation 'createDocumentType(null, null, null, null)' according to specs is not supported...");
}
} catch (UnsupportedOperationException ue) {
String msg = "UNSUPPORTED METHOD ";
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
}
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,136 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class DOMImplementationImpl_createDocument_String_String_DocumentType_0 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public DOMImplementationImpl_createDocument_String_String_DocumentType_0()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logErrPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
DOMImplementationImpl di = (DOMImplementationImpl)d.getImplementation();
if (di == null) {
TestLoader.logErrPrint("Document DomImplementation is NULL..");
return BWBaseTest.FAILED;
} else {
try {
DocumentType dt = di.createDocumentType("edi:price", "pID", "sID");
if (dt == null) {
TestLoader.logErrPrint("DocumentType is NULL..");
return BWBaseTest.FAILED;
}
String namespaceURI = "edi='http://ecommerce.org/schema'";
String qualifiedName = "edi:price";
if (di.createDocument(namespaceURI, qualifiedName, dt) == null) {
System.out.println("DomImplementation 'createDocument' returns null ...");
TestLoader.logErrPrint("DomImplementation 'createDocument' returns null ...");
return BWBaseTest.FAILED;
}
} catch (DOMException de) {
TestLoader.logErrPrint("DOMException : " + de);
return BWBaseTest.FAILED;
} catch (Exception e) {
TestLoader.logErrPrint("Exception: "+e);
return BWBaseTest.FAILED;
}
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,131 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class DOMImplementationImpl_createDocument_String_String_DocumentType_1 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public DOMImplementationImpl_createDocument_String_String_DocumentType_1()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logErrPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
DOMImplementationImpl di = (DOMImplementationImpl)d.getImplementation();
if (di == null) {
TestLoader.logErrPrint("Document DomImplementation is NULL..");
return BWBaseTest.FAILED;
} else {
try {
String namespaceURI = "edi='http://ecommerce.org/schema'";
String qualifiedName = "edi:price";
if (di.createDocument(namespaceURI, qualifiedName, null) == null) {
System.out.println("DomImplementation 'createDocument' returns null ...");
TestLoader.logErrPrint("DomImplementation 'createDocument' returns null ...");
return BWBaseTest.FAILED;
}
} catch (DOMException de) {
TestLoader.logErrPrint("DOMException : " + de);
return BWBaseTest.FAILED;
} catch (Exception e) {
TestLoader.logErrPrint("Exception: "+e);
return BWBaseTest.FAILED;
}
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,138 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class DOMImplementationImpl_createDocument_String_String_DocumentType_2 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public DOMImplementationImpl_createDocument_String_String_DocumentType_2()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logErrPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
DOMImplementationImpl di = (DOMImplementationImpl)d.getImplementation();
if (di == null) {
TestLoader.logErrPrint("Document DomImplementation is NULL..");
return BWBaseTest.FAILED;
} else {
try {
DocumentType dt = di.createDocumentType("edi:price", "publicID", "systemID");
if (dt == null) {
TestLoader.logErrPrint("DocumentType is NULL..");
return BWBaseTest.FAILED;
}
String namespaceURI = "edi='http://ecommerce.org/schema'";
String qualifiedName = "edi:price";
if (di.createDocument(namespaceURI, null, dt) == null) {
System.out.println("DomImplementation 'createDocument' returns null ...");
TestLoader.logErrPrint("DomImplementation 'createDocument' returns null ...");
return BWBaseTest.FAILED;
} else {
TestLoader.logErrPrint("createDocumetn didn't throw exception ...");
return BWBaseTest.FAILED;
}
} catch (DOMException de) {
TestLoader.logErrPrint("DOMException : " + de);
return BWBaseTest.PASSED;
} catch (Exception e) {
TestLoader.logErrPrint("Exception: "+e);
return BWBaseTest.PASSED;
}
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,137 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class DOMImplementationImpl_createDocument_String_String_DocumentType_3 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public DOMImplementationImpl_createDocument_String_String_DocumentType_3()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logErrPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
DOMImplementationImpl di = (DOMImplementationImpl)d.getImplementation();
if (di == null) {
TestLoader.logErrPrint("Document DomImplementation is NULL..");
return BWBaseTest.FAILED;
} else {
try {
DocumentType dt = di.createDocumentType("edi:price", "publicID", "systemID");
if (dt == null) {
TestLoader.logErrPrint("DocumentType is NULL..");
return BWBaseTest.FAILED;
}
String namespaceURI = "edi='http://ecommerce.org/schema'";
String qualifiedName = "edi:price";
if (di.createDocument(null, qualifiedName, dt) == null) {
System.out.println("DomImplementation 'createDocument' returns null ...");
TestLoader.logErrPrint("DomImplementation 'createDocument' returns null ...");
return BWBaseTest.FAILED;
} else {
TestLoader.logErrPrint("createDocumetn didn't throw exception ...");
return BWBaseTest.FAILED;
}
} catch (DOMException de) {
TestLoader.logErrPrint("DOMException : " + de);
return BWBaseTest.PASSED;
} catch (Exception e) {
TestLoader.logErrPrint("Exception: "+e);
return BWBaseTest.PASSED;
}
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,139 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class DOMImplementationImpl_createDocument_String_String_DocumentType_4 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public DOMImplementationImpl_createDocument_String_String_DocumentType_4()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logErrPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
DOMImplementationImpl di = (DOMImplementationImpl)d.getImplementation();
if (di == null) {
TestLoader.logErrPrint("Document DomImplementation is NULL..");
return BWBaseTest.FAILED;
} else {
try {
DocumentType dt = di.createDocumentType("edi:price", "publicID", "systemID");
if (dt == null) {
TestLoader.logErrPrint("DocumentType is NULL..");
return BWBaseTest.FAILED;
}
String namespaceURI = "edi='http://ecommerce.org/schema'";
String qualifiedName = "edi:price";
if (di.createDocument(null, null, null) == null) {
System.out.println("DomImplementation 'createDocument' returns null ...");
TestLoader.logErrPrint("DomImplementation 'createDocument' returns null ...");
return BWBaseTest.FAILED;
} else {
System.out.println("DomImplementation 'createDocument' doesn't throw exception ...");
return BWBaseTest.FAILED;
}
} catch (DOMException de) {
TestLoader.logErrPrint("DOMException : " + de);
return BWBaseTest.PASSED;
} catch (Exception e) {
TestLoader.logErrPrint("Exception: "+e);
return BWBaseTest.PASSED;
}
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,122 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class DOMImplementationImpl_hasFeature_String_String_0 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public DOMImplementationImpl_hasFeature_String_String_0()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logErrPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
DOMImplementationImpl di = (DOMImplementationImpl)d.getImplementation();
if (di == null) {
TestLoader.logErrPrint("Document DomImplementation is NULL..");
return BWBaseTest.FAILED;
} else {
if (di.hasFeature(null, null)) {
System.out.println("DomImplementation 'hasFeature(null, null) Failed..");
return BWBaseTest.FAILED;
} else {
System.out.println("DomImplementation 'hasFeature(null, null)' Passed..");
}
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,120 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class DOMImplementationImpl_hasFeature_String_String_1 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public DOMImplementationImpl_hasFeature_String_String_1()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logErrPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
DOMImplementation di = d.getImplementation();
if (di == null) {
TestLoader.logErrPrint("Document DomImplementation is NULL..");
return BWBaseTest.FAILED;
} else {
if (!di.hasFeature("HTML", null))
{
System.out.println("DomImplementation 'hasFeature(HTML, null)' Failed..");
return BWBaseTest.FAILED;
}
}
} else {
System.out.println("Doument is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,120 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class DOMImplementationImpl_hasFeature_String_String_2 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public DOMImplementationImpl_hasFeature_String_String_2()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logErrPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
DOMImplementation di = d.getImplementation();
if (di == null) {
TestLoader.logErrPrint("Document DomImplementation is NULL..");
return BWBaseTest.FAILED;
} else {
if (di.hasFeature(null, "1.0"))
{
System.out.println("DomImplementation 'hasFeature(null, 1.0)' Failed..");
return BWBaseTest.FAILED;
}
}
} else {
System.out.println("Doument is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,121 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class DOMImplementationImpl_hasFeature_String_String_3 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public DOMImplementationImpl_hasFeature_String_String_3()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logErrPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
DOMImplementation di = d.getImplementation();
if (di == null) {
TestLoader.logErrPrint("Document DomImplementation is NULL..");
return BWBaseTest.FAILED;
} else {
if (di.hasFeature("HTML", "1.0"))
System.out.println("DomImplementation 'hasFeature(HTMl,1.0) Passed ..");
else {
System.out.println("DomImplementation 'hasFeature(HTMl,1.0) Failed ..");
return BWBaseTest.FAILED;
}
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,121 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class DOMImplementationImpl_hasFeature_String_String_4 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public DOMImplementationImpl_hasFeature_String_String_4()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logErrPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
Document d = (Document)tobj;
if (d != null)
{
DOMImplementation di = d.getImplementation();
if (di == null) {
TestLoader.logErrPrint("Document DomImplementation is NULL..");
return BWBaseTest.FAILED;
} else {
if (di.hasFeature("XML", "1.0"))
System.out.println("DomImplementation 'hasFeature(XML,1.0) Passed ..");
else {
System.out.println("DomImplementation 'hasFeature(XML,1.0) Failed ..");
return BWBaseTest.FAILED;
}
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
return BWBaseTest.PASSED;
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,123 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class DocumentImpl_createAttributeNS_String_String_0 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public DocumentImpl_createAttributeNS_String_String_0()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
setUnsupported();
Document d = (Document)tobj;
if (d != null)
{
try {
String nuri = null;
String qname = null;
Attr a = d.createAttributeNS(nuri, qname);
TestLoader.logErrPrint("createAttributeNS is a unsupported method...");
return BWBaseTest.FAILED;
} catch (UnsupportedOperationException ue) {
TestLoader.logErrPrint("UNSUPPORTED METHOD");
return BWBaseTest.PASSED;
} catch (DOMException de) {
String msg = "DOMException : " + de;
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,125 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class DocumentImpl_createAttributeNS_String_String_1 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public DocumentImpl_createAttributeNS_String_String_1()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
setUnsupported();
Document d = (Document)tobj;
if (d != null)
{
try {
String nuri = "";
String qname = null;
Attr a = d.createAttributeNS(nuri, qname);
TestLoader.logErrPrint("createAttributeNS is a unsupported method...");
return BWBaseTest.FAILED;
} catch (UnsupportedOperationException ue) {
TestLoader.logErrPrint("UNSUPPORTED METHOD");
return BWBaseTest.PASSED;
} catch (DOMException de) {
String msg = "DOMException : " + de;
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,125 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class DocumentImpl_createAttributeNS_String_String_2 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public DocumentImpl_createAttributeNS_String_String_2()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
setUnsupported();
Document d = (Document)tobj;
if (d != null)
{
try {
String nuri = null;
String qname = "xml";
Attr a = d.createAttributeNS(nuri, qname);
TestLoader.logErrPrint("createAttributeNS is a unsupported method...");
return BWBaseTest.FAILED;
} catch (UnsupportedOperationException ue) {
TestLoader.logErrPrint("UNSUPPORTED METHOD");
return BWBaseTest.PASSED;
} catch (DOMException de) {
String msg = "DOMException : " + de;
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

View File

@@ -1,125 +0,0 @@
/*
The contents of this file are subject to the Mozilla Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/MPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is mozilla.org code.
The Initial Developer of the Original Code is Sun Microsystems,
Inc. Portions created by Sun are
Copyright (C) 1999 Sun Microsystems, Inc. All
Rights Reserved.
Contributor(s):
*/
package org.mozilla.dom.test;
import java.util.*;
import java.io.*;
import org.mozilla.dom.test.*;
import org.mozilla.dom.*;
import org.w3c.dom.*;
public class DocumentImpl_createAttributeNS_String_String_3 extends BWBaseTest implements Execution
{
/**
*
***********************************************************
* Constructor
***********************************************************
*
*/
public DocumentImpl_createAttributeNS_String_String_3()
{
}
/**
*
***********************************************************
* Starting point of application
*
* @param args Array of command line arguments
*
***********************************************************
*/
public static void main(String[] args)
{
}
/**
***********************************************************
*
* Execute Method
*
* @param tobj Object reference (Node/Document/...)
* @return true or false depending on whether test passed or failed.
*
***********************************************************
*/
public boolean execute(Object tobj)
{
if (tobj == null) {
TestLoader.logPrint("Object is NULL...");
return BWBaseTest.FAILED;
}
String os = System.getProperty("OS");
osRoutine(os);
setUnsupported();
Document d = (Document)tobj;
if (d != null)
{
try {
String nuri = "xmlns:edi='http://ecommerce.org/schema'";
String qname = "xml";
Attr a = d.createAttributeNS(nuri, qname);
TestLoader.logErrPrint("createAttributeNS is a unsupported method...");
return BWBaseTest.FAILED;
} catch (UnsupportedOperationException ue) {
TestLoader.logErrPrint("UNSUPPORTED METHOD");
return BWBaseTest.PASSED;
} catch (DOMException de) {
String msg = "DOMException : " + de;
TestLoader.logErrPrint(msg);
return BWBaseTest.PASSED;
}
} else {
System.out.println("Document is NULL..");
return BWBaseTest.FAILED;
}
}
/**
*
***********************************************************
* Routine where OS specific checks are made.
*
* @param os OS Name (SunOS/Linus/MacOS/...)
***********************************************************
*
*/
private void osRoutine(String os)
{
if(os == null) return;
os = os.trim();
if(os.compareTo("SunOS") == 0) {}
else if(os.compareTo("Linux") == 0) {}
else if(os.compareTo("Windows") == 0) {}
else if(os.compareTo("MacOS") == 0) {}
else {}
}
}

Some files were not shown because too many files have changed in this diff Show More