Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
test more selectors
  • Loading branch information
kraih committed Mar 21, 2015
1 parent 93dc67f commit 4260f19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions t/mojo/dom.t
Expand Up @@ -2374,6 +2374,8 @@ is $dom->at('[href^=h].bar:not(b)[href$=m]#foo')->text, 'Ok!', 'right text';
is $dom->at('[href^=h].bar:not(b)[href$=m]#bar'), undef, 'no result';
is $dom->at(':not(b)#foo#foo')->text, 'Ok!', 'right text';
is $dom->at(':not(b)#foo#bar'), undef, 'no result';
is $dom->at(':not([href^=h]#foo#bar)')->text, 'Ok!', 'right text';
is $dom->at(':not([href^=h]#foo#foo)'), undef, 'no result';

# Slash between attributes
$dom = Mojo::DOM->new('<input /type=checkbox / value="/a/" checked/><br/>');
Expand Down

0 comments on commit 4260f19

Please sign in to comment.