]> iEval git - html-element-library.git/blame - t/fillinform.t
Fix tests
[html-element-library.git] / t / fillinform.t
CommitLineData
674cdd66
TB
1# This might look like shell script, but it's actually -*- perl -*-
2use strict;use warnings;
674cdd66
TB
3
4use File::Slurp;
5use Test::More qw(no_plan);
6
674cdd66
TB
7use HTML::TreeBuilder;
8use HTML::Element::Library;
d4b9a41a 9use Test::XML;
674cdd66
TB
10
11sub tage {
12
13 my $root = "t/html/fillinform/fillinform";
14
15 my $tree = HTML::TreeBuilder->new_from_file("$root.initial")->guts;
16
17 my %data = (state => 'catatonic');
18
19 my $new_tree = HTML::TreeBuilder->new_from_content( $tree->fillinform(\%data) ) ;
20
d4b9a41a 21 is_xml ($new_tree->as_XML, scalar File::Slurp::read_file("$root.exp"), "HTML for fillinform");
674cdd66
TB
22}
23
24
25tage();
26
This page took 0.01806 seconds and 4 git commands to generate.