Remove disabled check from all tests because it gives inconsistent

results.  Some forms were returning undef, some were returning 0.

Added a Radio button test.
Added a test to Checkbox that sees if the value (which is displayed to the
user) can be only whitespace.
This commit is contained in:
Colin Kuskie 2006-04-02 19:25:01 +00:00
parent 29635395cf
commit dc2ec6bbdd
13 changed files with 145 additions and 27 deletions

View file

@ -44,7 +44,7 @@ my $testBlock = [
my $formType = 'text';
my $numTests = 12 + scalar @{ $testBlock } + 1;
my $numTests = 11 + scalar @{ $testBlock } + 1;
diag("Planning on running $numTests tests\n");
@ -75,7 +75,6 @@ my $input = $inputs[0];
is($input->name, 'TestText', 'Checking input name');
is($input->type, $formType, 'Checking input type');
is($input->value, 'Some text in here', 'Checking default value');
is($input->disabled, undef, 'Disabled param not sent to form');
is($input->{size}, 30, 'Checking size param, default');
is($input->{maxlength}, 255, 'Checking maxlength param, default');