2 use warnings FATAL => 'all';
10 <div class="item-name"></div>
15 my $zoom = HTML::Zoom->from_html($tmpl);
16 my @list = qw(foo bar baz);
18 foreach my $flush (0..1) {
20 # from HTML::Zoom manpage, slightly modified
21 my $z2 = $zoom->select('.item')->repeat(sub {
22 if (my $name = shift @list) {
23 return sub { $_->select('.item-name')->replace_content($name) }
27 }, { flush_before => $flush });
31 while (my $chunk = $fh->getline) {
36 cmp_ok($lineno, '==', 1+$flush, "flush_before => $flush is $lineno chunks");