X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FHTML-Zoom.git;a=blobdiff_plain;f=t%2Fselectors.t;h=e6be2c229704013e613a8d3cac6a110797d3d8e6;hp=6dd32bd16c1ded0cb9235bdbda12d4859c031e9c;hb=24725e7b32b680b376c06b1f9d641ec11fc1d067;hpb=8c9ef555e2320515b20ac191100c9b13fc0863ee diff --git a/t/selectors.t b/t/selectors.t index 6dd32bd..e6be2c2 100644 --- a/t/selectors.t +++ b/t/selectors.t @@ -55,7 +55,14 @@ is( HTML::Zoom->from_html('
'.$stub) ->to_html, '
grg
'.$stub, 'E[attr=val] works' ); - + +# el[attr!="foo"] +is( HTML::Zoom->from_html('
'.$stub) + ->select('div[class!="waargh"]') + ->replace_content('grg') + ->to_html, + '
grg
grg
'.$stub, + 'E[attr!="val"] works' ); # el[attr*="foo"] is( HTML::Zoom->from_html('
'.$stub)