1 # This might look like shell script, but it's actually -*- perl -*-
2 use strict;use warnings;
4 use File::Slurp qw/read_file/;
8 use HTML::Element::Library;
13 my $root = "t/html/crunch/crunch";
15 my $tree = HTML::TreeBuilder->new_from_file("$root.initial")->guts;
17 $tree->crunch(look_down => [ class => 'imageElement' ], leave => 1);
19 is_xml $tree->as_XML, scalar read_file("$root.exp"), 'XML for crunch';