diff options
author | Manuel Carrasco Moñino <manuel.carrasco.m@gmail.com> | 2013-12-03 09:46:24 +0100 |
---|---|---|
committer | Manuel Carrasco Moñino <manuel.carrasco.m@gmail.com> | 2013-12-03 09:46:24 +0100 |
commit | 73af647e85d7e36d26a3561e37a3f50968f96e8d (patch) | |
tree | 2a753f7980bf951c55f86d58493f67abc42c17b5 | |
parent | d1a13c80b3688494f332970bce8783b763de1e2d (diff) | |
download | gwtquery-73af647e85d7e36d26a3561e37a3f50968f96e8d.tar.gz gwtquery-73af647e85d7e36d26a3561e37a3f50968f96e8d.zip |
tests in jvm
-rw-r--r-- | gwtquery-core/src/test/java/com/google/gwt/query/client/impl/SelectorEnginesTest.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gwtquery-core/src/test/java/com/google/gwt/query/client/impl/SelectorEnginesTest.java b/gwtquery-core/src/test/java/com/google/gwt/query/client/impl/SelectorEnginesTest.java index 7b8199ee..765dcfab 100644 --- a/gwtquery-core/src/test/java/com/google/gwt/query/client/impl/SelectorEnginesTest.java +++ b/gwtquery-core/src/test/java/com/google/gwt/query/client/impl/SelectorEnginesTest.java @@ -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")); } } |