changed PASS/FAIL conditions and add print statments

git-svn-id: svn://10.0.0.236/trunk@58323 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
leila.garin%eng.sun.com
2000-01-20 22:32:20 +00:00
parent 052b207ca3
commit cc0d3e976d
5 changed files with 24 additions and 6 deletions

View File

@@ -86,8 +86,8 @@ public class AttrImpl_setValue_String_0 extends BWBaseTest implements Execution
} else {
a.setValue(null);
String str = a.getValue();
if (str != null) {
TestLoader.logErrPrint("Attr 'getValue()' is not NULL ...");
if (str == null) {
TestLoader.logErrPrint("Attr 'setValue()' is NULL ...");
return BWBaseTest.FAILED;
}
}

View File

@@ -87,12 +87,24 @@ public class CharacterDataImpl_appendData_String_0 extends BWBaseTest implements
return BWBaseTest.FAILED;
} else {
String newstr=null;
String prevstr = tn.getData();
tn.appendData(newstr);
String getstr = tn.getData();
if (getstr == null) {
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 " );

View File

@@ -87,12 +87,18 @@ public class CharacterDataImpl_setData_String_0 extends BWBaseTest implements Ex
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 " );

View File

@@ -83,7 +83,7 @@ public class DOMImplementationImpl_hasFeature_String_String_1 extends BWBaseTest
TestLoader.logErrPrint("Document DomImplementation is NULL..");
return BWBaseTest.FAILED;
} else {
if (di.hasFeature("HTML", null))
if (!di.hasFeature("HTML", null))
{
System.out.println("DomImplementation 'hasFeature(HTML, null)' Failed..");
return BWBaseTest.FAILED;

View File

@@ -105,9 +105,9 @@ public class NodeImpl_insertBefore_Node_Node_2 extends BWBaseTest implements Exe
if (n.getNodeName().compareTo(nodename) == 0)
{
Node iNode = n.insertBefore(newChild, null);
if (iNode != null)
if (iNode == null)
{
TestLoader.logErrPrint("A Node cannot be inserted to any NULL node...");
TestLoader.logErrPrint("Node should be inserted at end of all chidren...");
return BWBaseTest.FAILED;
}
}