diff options
author | Manuel Carrasco Moñino <manuel.carrasco.m@gmail.com> | 2013-12-03 09:55:57 +0100 |
---|---|---|
committer | Manuel Carrasco Moñino <manuel.carrasco.m@gmail.com> | 2013-12-03 09:55:57 +0100 |
commit | 5de5d80a293c0b94f3259d7f31ca6fde40190814 (patch) | |
tree | 12878b05e48ad3d97b23ae8619b00927ae852102 /gwtquery-core | |
parent | 9ba912bbd61be504da96749f6615a0db2518d9d1 (diff) | |
parent | 73af647e85d7e36d26a3561e37a3f50968f96e8d (diff) | |
download | gwtquery-5de5d80a293c0b94f3259d7f31ca6fde40190814.tar.gz gwtquery-5de5d80a293c0b94f3259d7f31ca6fde40190814.zip |
Merge branch 'mcm_issue_26'
Diffstat (limited to 'gwtquery-core')
-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")); } } |