Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix to broken XPath tests #5

Merged
merged 1 commit into from

2 participants

@squeeks

HTML::Selector::XPath changed its output and handling of sibling and parent paths being more explicit (miyagawa/HTML-Selector-XPath@edf6810). The tests have been updated to match the ouput.

@squeeks squeeks Addressing failing XPath tests
HTML::Selector::XPath changed its output and handling of sibling and parent
paths being more explicit (commit edf6810 in it's respective respository). The
tests have been updated to match the ouput.
c1be7df
@tomill tomill merged commit 125ac68 into from
@tomill
Owner

applied. thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Nov 30, 2011
  1. @squeeks

    Addressing failing XPath tests

    squeeks authored
    HTML::Selector::XPath changed its output and handling of sibling and parent
    paths being more explicit (commit edf6810 in it's respective respository). The
    tests have been updated to match the ouput.
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 4 deletions.
  1. +4 −4 t/11_exp_to_xpath.t
View
8 t/11_exp_to_xpath.t
@@ -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
Something went wrong with that request. Please try again.