1 # This might look like shell script, but it's actually -*- perl -*-
5 use Test::More qw(no_plan);
8 use HTML::Element::Library;
14 $branch->look_down(id => 'age')->replace_content($age);
20 my $tree = HTML::TreeBuilder->new_from_file('t/html/highlander2.html');
21 my $if_then = $tree->look_down(id => 'age_dialog');
23 $if_then->highlander2(
41 my $root = "t/html/highlander2-$age";
43 local $_; # XML::Parser does not like read-only $_ (RT #101129)
44 is_xml ($tree->as_XML, scalar File::Slurp::read_file("$root.exp"), "HTML for $age");
48 tage($_) for qw(5 15 27);