X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FHTML-Zoom.git;a=blobdiff_plain;f=t%2Fdwim-autoload.t;fp=t%2Fdwim-autoload.t;h=12a64802ba11e99615f07b6634b559b951522109;hp=cd63df6fd4d9fa5d8e2e4a9f553f32b271ff2755;hb=3688f85a36b7825ad89e8800e5a573c6c9b60166;hpb=6dc05a36124ed607d23e19f2969ca5ab308bce5f diff --git a/t/dwim-autoload.t b/t/dwim-autoload.t index cd63df6..12a6480 100644 --- a/t/dwim-autoload.t +++ b/t/dwim-autoload.t @@ -312,7 +312,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;