X-Git-Url: http://git.shiar.nl/perl/html-form-simple.git/blobdiff_plain/061e1dbc2abe6c89b90348e22e5f3455a2b8328d..47c6a0e47426e447523d4697b2fb596366f7f9d4:/t/html.t diff --git a/t/html.t b/t/html.t index a82c916..08f0e6b 100644 --- a/t/html.t +++ b/t/html.t @@ -5,7 +5,7 @@ use warnings; use Test::More; -plan tests => 76; +plan tests => 80; use_ok('HTML::Form::Simple'); @@ -543,6 +543,32 @@ is_deeply( 'various checkboxes' ); +# row + +is( + $form->row(undef), + ' ', + 'empty row' +); + +is( + $form->row('test'), + ' ', + 'standard row' +); + +is( + $form->row('test', {type => 'password'}, {for => '', label => '"blah"'}), + ' ', + 'row options' +); + +is( + $form->row('test', '"scalar"', {for => ''}), + ' "scalar"', + 'row scalar' +); + # defaults my $defform = HTML::Form::Simple->new({foo => '<">', '' => 'empty', 0 => 0});