From: Simon Elliott Date: Thu, 19 May 2011 16:32:52 +0000 (+0100) Subject: additional test X-Git-Tag: allocate~12 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FHTML-Zoom.git;a=commitdiff_plain;h=efc6c054d3681e579364e270c16f512f3645ef31;hp=6af04df5d563b2044ff7d65c88f977557ec17e48 additional test --- diff --git a/t/dwim-autoload.t b/t/dwim-autoload.t index 6441d1f..405543e 100644 --- a/t/dwim-autoload.t +++ b/t/dwim-autoload.t @@ -330,7 +330,18 @@ sub code_stream (&) { 'li.bar' => ['bar'], })->to_html; is $dwim, '', - 'Multiple selectors from hashref'; + 'Multiple selectors from hashref (via replace_content)'; +} + +{ + ok my $dwim = HTML::Zoom + ->from_html(q[]) + ->set_attribute({ + 'li.foo' => [ class => 'baz' ], + 'li.bar' => [ class => 'qux' ], + })->to_html; + is $dwim, '', + 'Multiple selectors from hashref (via set_attribute)'; } done_testing;