You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xalan.apache.org by mm...@apache.org on 2001/06/26 18:18:25 UTC

cvs commit: xml-xalan/test/java/src/org/apache/qetest/xalanj2 TestXPathAPI.java

mmidy       01/06/26 09:18:25

  Modified:    test/java/src/org/apache/qetest/xalanj2 TestXPathAPI.java
  Log:
  Added more xpath api tests
  
  Revision  Changes    Path
  1.2       +10 -1     xml-xalan/test/java/src/org/apache/qetest/xalanj2/TestXPathAPI.java
  
  Index: TestXPathAPI.java
  ===================================================================
  RCS file: /home/cvs/xml-xalan/test/java/src/org/apache/qetest/xalanj2/TestXPathAPI.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- TestXPathAPI.java	2001/06/26 15:46:47	1.1
  +++ TestXPathAPI.java	2001/06/26 16:18:19	1.2
  @@ -185,7 +185,7 @@
           testFileInfo4.xmlName = testBasePath + "testXPath.xml";
           testFileInfo4.goldName = goldBasePath;
           
  -        numxpath = 16;
  +        numxpath = 25;
           xpath = new String[numxpath];
           xpath[0] = "/doc/a/@test";
           xpath[1] = "//."; 
  @@ -203,6 +203,15 @@
           xpath[13] = "//*[local-name()='a']";
           xpath[14] = "//*[current()]/@*";
           xpath[15] = "//*[last()]";
  +        xpath[16] = "doc/*[last()]";
  +        xpath[17] = "/doc/a/*[current()]/@*";
  +        xpath[18] = "doc/descendant::node()";
  +        xpath[19] = "doc/a/@*";
  +        xpath[20] = "doc/b/a/ancestor-or-self::*";
  +        xpath[21] = "doc/b/a/preceding::*";
  +        xpath[22] = "doc/a/following::*";
  +        xpath[23] = "/doc/b/preceding-sibling::*";
  +        xpath[24] = "/doc/a/following-sibling::*";
   
           return true;
       }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-cvs-help@xml.apache.org