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);
22 my $tree = HTML::TreeBuilder->new_from_file('t/html/highlander2.html');
24 my $saved_child = $tree->passover('under18');
26 my $root = "t/html/highlander2-passover";
28 my $generated_html = ptree($tree, "$root.gen");
30 is ($generated_html, File::Slurp::read_file("$root.exp"), "HTML for $age");