1 # This might look like shell script, but it's actually -*- perl -*-
6 use Test::More qw(no_plan);
10 use HTML::Element::Library;
15 $branch->look_down(id => 'age')->replace_content($age);
21 my $tree = HTML::TreeBuilder->new_from_file('t/html/highlander2.html');
22 my $if_then = $tree->look_down(id => 'age_dialog');
24 $if_then->highlander2(
42 my $root = "t/html/highlander2-$age";
44 my $generated_html = ptree($tree, "$root.gen");
46 is ($generated_html, File::Slurp::read_file("$root.exp"), "HTML for $age");
50 tage($_) for qw(5 15 27);