You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ch...@locus.apache.org on 2000/03/11 04:00:25 UTC
cvs commit: xml-xerces/c/tests/DOM/DOMTest DTest.cpp
chchou 00/03/10 19:00:25
Modified: c/tests/DOM/DOMTest DTest.cpp
Log:
Fix bug # 18, remove set method of readonly attributes.
As a result, remove related test cases
Revision Changes Path
1.10 +5 -47 xml-xerces/c/tests/DOM/DOMTest/DTest.cpp
Index: DTest.cpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/tests/DOM/DOMTest/DTest.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- DTest.cpp 2000/03/02 19:55:45 1.9
+++ DTest.cpp 2000/03/11 03:00:24 1.10
@@ -56,6 +56,10 @@
/*
* $Log: DTest.cpp,v $
+ * Revision 1.10 2000/03/11 03:00:24 chchou
+ * Fix bug # 18, remove set method of readonly attributes.
+ * As a result, remove related test cases
+ *
* Revision 1.9 2000/03/02 19:55:45 roddey
* This checkin includes many changes done while waiting for the
* 1.1.0 code to be finished. I can't list them all here, but a list is
@@ -691,14 +695,6 @@
OK = false;
}
- // IBM Specific function
- attributeNode.setSpecified(F);//***** How do we change this for external use??
- if (! F ==attributeNode.getSpecified())
- {
- printf("Warning!!! DOM_Attr's 'setSpecified' method failed to work properly!\n");
- OK = false;
- }
-
attributeNode.setValue(null);
if (! attributeNode.getValue().equals(""))
{
@@ -1592,29 +1588,6 @@
}
// Deep clone test comparison is in testNode & testDocument
- entity.setNotationName("testNotationName");
- compare = "testNotationName";
- if(! compare.equals(entity.getNotationName()))
- {
- printf("Warning!!! DOM_Entity's 'setNotationName' and/or getNotationName' failed!\n");
- OK = false;
- }
- entity.setPublicId("testPublicId");
- compare = "testPublicId";
- if(! compare.equals(entity.getPublicId()))
- {
- printf("Warning!!! DOM_Entity's 'setPublicId' and/or getPublicId' failed!\n");
- OK = false;
- }
- entity.setSystemId("testSystemId");
- compare = "testSystemId";
- if(! compare.equals(entity.getSystemId()))
- {
- printf("Warning!!! DOM_Entity's 'setSystemId' and/or getSystemId' failed!\n");
- OK = false;
- }
- // entity.setNodeValue("This shouldn't work");//!! Throws a NO_MODIFICATION_ALLOWED_ERR ********
-
// For debugging***** printf("All DOM_Entity method calls worked correctly.\n");
if (!OK)
printf("\n*****The DOM_Entity method calls listed above failed, all others worked correctly.*****\n");
@@ -1738,22 +1711,6 @@
}
// Deep clone test comparison is in testNode & testDocument
- // IBM specific call...
- notation.setPublicId("testPublicId");//*****?
- compare = "testPublicId";
- if (!compare.equals(notation.getPublicId()))
- {
- printf("Warning!!! DOM_Notation's 'getPublicId' failed!");
- OK = false;
- }
- // IBM specific call...
- notation.setSystemId("testSystemId");//*****?
- compare = "testSystemId";
- if (! compare.equals(notation.getSystemId()))
- {
- printf("Warning!!! DOM_Notation's 'getSystemId' failed!\n");
- OK = false;
- }
// notation.setNodeValue("This shouldn't work");//!! Throws a NO_MODIFICATION_ALLOWED_ERR ********
// For debugging***** printf("All DOM_Notation method calls worked correctly.\n");