]> source.dussan.org Git - gwtquery.git/commitdiff
tests in jvm
authorManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>
Tue, 3 Dec 2013 08:46:24 +0000 (09:46 +0100)
committerManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>
Tue, 3 Dec 2013 08:46:24 +0000 (09:46 +0100)
gwtquery-core/src/test/java/com/google/gwt/query/client/impl/SelectorEnginesTest.java

index 7b8199ee185c95fe8b891e5b31e7eeaa75e3130a..765dcfab6cb0adfb6f69169d1865289c2f90c3ae 100644 (file)
@@ -77,6 +77,12 @@ public class SelectorEnginesTest extends GWTTestCase {
 
     assertEquals(".//div[@class='comment' and (contains(string(.),'John'))]",
         sel.css2Xpath("div[@class='comment']:contains('John')"));
+
+    assertEquals(".//div[@role='treeItem' and (position() mod 2=0 and position()>=0)]",
+        sel.css2Xpath("div[role=treeItem]:odd"));
+
+    assertEquals(".//div[@role='treeItem' and ((count(preceding-sibling::*) + 1) mod 2=1)]",
+        sel.css2Xpath("div[role=treeItem]:even"));
   }
 
 }