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...@locus.apache.org on 2000/08/08 19:51:16 UTC

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

lehors      00/08/08 10:51:14

  Modified:    java/tests/dom/mem Test.java
  Log:
  added an attribute to the import test
  
  Revision  Changes    Path
  1.2       +3 -1      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.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- Test.java	2000/03/06 22:49:21	1.1
  +++ Test.java	2000/08/08 17:51:14	1.2
  @@ -1,4 +1,4 @@
  -/* $Id: Test.java,v 1.1 2000/03/06 22:49:21 lehors Exp $ */
  +/* $Id: Test.java,v 1.2 2000/08/08 17:51:14 lehors Exp $ */
   /*
    * The Apache Software License, Version 1.1
    * 
  @@ -398,11 +398,13 @@
           Element     el1  = doc1.createElement("abc");
           doc1.appendChild(el1);
           Assertion.assert(el1.getParentNode() != null);
  +        el1.setAttribute("foo", "foovalue");
           Node        el2  = doc2.importNode(el1, true);
           Assertion.assert(el2.getParentNode() == null);
           String       tagName = el2.getNodeName();
           Assertion.equals(tagName, "abc");
           Assertion.assert(el2.getOwnerDocument() == doc2);
  +        Assertion.equals(((Element) el2).getAttribute("foo"), "foovalue");
           Assertion.assert(doc1 != doc2);
       }