Permalink
Browse files

Merge pull request #5 from squeeks/master

Fix to broken XPath tests
  • Loading branch information...
2 parents 28227d8 + c1be7df commit 125ac68119f85b1a735f83cd3779b8821cee282d @tomill committed Dec 2, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 t/11_exp_to_xpath.t
View
@@ -99,19 +99,19 @@ E > F@foo
--- exp
E:first-child@foo
--- xpath
-//*[1]/self::E/@foo
+//E[count(preceding-sibling::*) = 0 and parent::*]/@foo
===
--- exp
F E:first-child@foo
--- xpath
-//F//*[1]/self::E/@foo
+//F//E[count(preceding-sibling::*) = 0 and parent::*]/@foo
===
--- exp
F > E:first-child@foo
--- xpath
-//F/*[1]/self::E/@foo
+//F/E[count(preceding-sibling::*) = 0 and parent::*]/@foo
===
--- exp
@@ -177,7 +177,7 @@ E#myid@foo
--- exp
E:nth-child(1)@foo
--- xpath
-//E[count(preceding-sibling::*) = 0]/@foo
+//E[count(preceding-sibling::*) = 0 and parent::*]/@foo
===
--- exp

0 comments on commit 125ac68

Please sign in to comment.