From: Simon Elliott Date: Fri, 20 May 2011 19:50:48 +0000 (+0100) Subject: another test X-Git-Tag: allocate~7 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FHTML-Zoom.git;a=commitdiff_plain;h=bce61371d913754688d91e7a325f45b7bc7e6f1e another test --- diff --git a/t/dwim-autoload.t b/t/dwim-autoload.t index 2fc73de..8765a99 100644 --- a/t/dwim-autoload.t +++ b/t/dwim-autoload.t @@ -342,4 +342,20 @@ sub code_stream (&) { 'Hashref selectors on codestream'; } +{ + ok my $dwim = HTML::Zoom + ->from_html(q[]) + ->select('ul')->collect({ + passthrough => 1, + filter => sub { + $_->set_attribute({ + 'li.foo' => [{ class => 'baz', name => 'moo', }], + 'li.bar' => [ class => 'qux' ], + }); + } + })->to_html; + is $dwim, '', + 'Hashref selectors with hashref attributes on codestream'; +} + done_testing;