From 99f613bb9a0e609f29e146fafb6080347c3c05eb Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Mon, 28 Feb 2011 15:41:06 -0800 Subject: [PATCH] Update test for CSRF token. --- t/Form/TimeField.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/t/Form/TimeField.t b/t/Form/TimeField.t index 5cd7890d3..27c9f490c 100644 --- a/t/Form/TimeField.t +++ b/t/Form/TimeField.t @@ -71,11 +71,11 @@ my @forms = HTML::Form->parse($html, 'http://www.webgui.org'); is(scalar @forms, 1, '1 form was parsed'); my @inputs = $forms[0]->inputs; -is(scalar @inputs, 2, 'The form has 2 inputs. One for the field, another for the JS pop-up button.'); +is(scalar @inputs, 3, 'The form has 3 inputs. Field, pop-up and CSRF'); #Basic tests -my $input = $inputs[0]; +my $input = $inputs[1]; is($input->name, 'TestTime', 'Checking input name'); is($input->type, $formType, 'Checking input type'); is($input->value, '00:00:10', 'Checking default value');