mark todo-repeat.t as broken to prevent test fails
[catagits/HTML-Zoom.git] / t / todo-repeat.t
CommitLineData
23ba49c7 1use strict;
2use HTML::Zoom;
039e108c 3use Test::More skip_all => "Totally doesn't work yet";
23ba49c7 4
5my $z = HTML::Zoom->from_html(<<HTML);
6<html>
7<body>
8<div id="foo"><p/></div>
9</body>
10</html>
11HTML
12
13my @list = qw(foo bar baz);
14my $iter = sub { shift @list };
15
16$z->select("#foo")->repeat(sub {
17 my $e = $iter->() or return;
18 return sub { $_->select("p")->replace_content($e) };
19})->to_html;
20
21ok 1;
22
23done_testing;