xerces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mrgla...@apache.org
Subject svn commit: r826684 - /xerces/java/branches/xml-schema-1.1-dev/tests/dom/traversal/AbstractTestCase.java
Date Mon, 19 Oct 2009 14:16:57 GMT
Author: mrglavas
Date: Mon Oct 19 14:16:57 2009
New Revision: 826684

URL: http://svn.apache.org/viewvc?rev=826684&view=rev
Log:
Adding an assertion for hasFeature("ElementTraversal", "1.0").

Modified:
    xerces/java/branches/xml-schema-1.1-dev/tests/dom/traversal/AbstractTestCase.java

Modified: xerces/java/branches/xml-schema-1.1-dev/tests/dom/traversal/AbstractTestCase.java
URL: http://svn.apache.org/viewvc/xerces/java/branches/xml-schema-1.1-dev/tests/dom/traversal/AbstractTestCase.java?rev=826684&r1=826683&r2=826684&view=diff
==============================================================================
--- xerces/java/branches/xml-schema-1.1-dev/tests/dom/traversal/AbstractTestCase.java (original)
+++ xerces/java/branches/xml-schema-1.1-dev/tests/dom/traversal/AbstractTestCase.java Mon
Oct 19 14:16:57 2009
@@ -24,6 +24,7 @@
 import javax.xml.parsers.DocumentBuilderFactory;
 import javax.xml.parsers.ParserConfigurationException;
 
+import org.w3c.dom.DOMImplementation;
 import org.w3c.dom.Document;
 import org.w3c.dom.Element;
 import org.w3c.dom.ElementTraversal;
@@ -60,6 +61,8 @@
     protected final ElementTraversal parse(String input) {
         try {
             Document doc = fDocumentBuilder.parse(new InputSource(new StringReader(input)));
+            DOMImplementation domImpl = doc.getImplementation();
+            assertTrue(domImpl.hasFeature("ElementTraversal", "1.0"));
             return toElementTraversal(doc.getDocumentElement());
         } 
         catch (SAXException se) {



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org


Mime
View raw message