Cleaned the pollution from the forms system.
This commit is contained in:
parent
53b81b36d0
commit
8500c4d506
81 changed files with 2675 additions and 1570 deletions
|
|
@ -116,10 +116,10 @@ WebGUI::Form_Checking::auto_check($session, $formType, $testBlock);
|
|||
|
||||
# test that we can process non-POST values correctly
|
||||
my $cntl = WebGUI::Form::Text->new($session,{ defaultValue => 4242 });
|
||||
is($cntl->getValueFromPost('123-123-1234'), '123-123-1234', 'getValueFromPost(valid)');
|
||||
is($cntl->getValueFromPost(0), 0, 'zero');
|
||||
is($cntl->getValueFromPost(''), '', '""');
|
||||
is($cntl->getValueFromPost(undef), undef, 'undef returns undef');
|
||||
is($cntl->getValue('123-123-1234'), '123-123-1234', 'getValue(valid)');
|
||||
is($cntl->getValue(0), 0, 'zero');
|
||||
is($cntl->getValue(''), '', '""');
|
||||
is($cntl->getValue(undef), undef, 'undef returns undef');
|
||||
is($session->form->text(undef,'123-123-1234'), '123-123-1234', 'valid');
|
||||
is($session->form->text(undef,0), 0, 'zero');
|
||||
is($session->form->text(undef,undef), undef, 'undef returns undef');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue