use Test::More; use Test::XML; use Data::Dumper; plan tests => 3; require_ok( 'XHTML::Instrumented' ); require_ok( 'XHTML::Instrumented::Form' ); my ($output, $cmp); my $data = <
DATA $cmp = <
DATA my $x = XHTML::Instrumented->new(name => \$data, type => ''); my $form = XHTML::Instrumented::Form->new(); $form->add_element( type => 'text', name => 'test', value => 'testme', ); $output = $x->output( myform => $form, loop => $x->loop( headers => ['a'], data => [['a'], ['b']], ), ); is_xml($output, $cmp, 'select');