From: Simon Elliott Date: Mon, 13 Jun 2011 12:23:44 +0000 (+0100) Subject: test for collect on void element X-Git-Tag: release_0.009007_1~4 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=e1d0e35c57621cc567b3cc9f0129369891f40e55;p=catagits%2FHTML-Zoom.git test for collect on void element --- diff --git a/t/bugs/after_void.t b/t/bugs/void.t similarity index 72% rename from t/bugs/after_void.t rename to t/bugs/void.t index ae3e9f7..520f15c 100644 --- a/t/bugs/after_void.t +++ b/t/bugs/void.t @@ -16,6 +16,15 @@ my $tmpl2 = <from_html($tmpl); + +my $count = 0; +$z->select('input')->collect({ + filter => sub { $count++; $_ }, + passthrough => 1, +})->run; + +is($count, 1,"collect on void"); + is( $z->select('input') ->add_before(\"
cluck
")