You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by le...@apache.org on 2001/01/26 01:55:03 UTC

cvs commit: xml-xerces/java/tests/dom/mem Test.java

lehors      01/01/25 16:55:03

  Modified:    java/tests/dom/mem Test.java
  Log:
  fixed a couple of NS related tests
  
  Revision  Changes    Path
  1.3       +2 -6      xml-xerces/java/tests/dom/mem/Test.java
  
  Index: Test.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/tests/dom/mem/Test.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- Test.java	2000/08/08 17:51:14	1.2
  +++ Test.java	2001/01/26 00:55:03	1.3
  @@ -1,4 +1,4 @@
  -/* $Id: Test.java,v 1.2 2000/08/08 17:51:14 lehors Exp $ */
  +/* $Id: Test.java,v 1.3 2001/01/26 00:55:03 lehors Exp $ */
   /*
    * The Apache Software License, Version 1.1
    * 
  @@ -737,7 +737,7 @@
   	Assertion.assert(DOMExceptionsTest(doc, "createElementNS",
   				      new Class[]{String.class, String.class},
   				      new Object[]{"http://nsa", "<a"},
  -				      DOMException.NAMESPACE_ERR));
  +				      DOMException.INVALID_CHARACTER_ERR));
   	Assertion.assert(DOMExceptionsTest(doc, "createElementNS",
   				      new Class[]{String.class, String.class},
   				      new Object[]{"http://nsa", ":a"},
  @@ -1018,10 +1018,6 @@
           Assertion.assert(DOMExceptionsTest(attr, "setPrefix",
   					   new Class[]{String.class},
   					   new Object[]{"foo"},
  -					   DOMException.NAMESPACE_ERR));
  -        Assertion.assert(DOMExceptionsTest(attr, "setPrefix",
  -					   new Class[]{String.class},
  -					   new Object[]{"xmlns"},
   					   DOMException.NAMESPACE_ERR));
           //Also an attribute can not have a prefix with namespaceURI == null
           attr = doc.createAttributeNS(null, "a");