X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Ft%2Fweb%2Fcf_textarea.t;h=444020eae134211f37023d02bb25bd8346c4f29d;hp=d11bda4d55d8fbbe603356a041586e6b30f9e4e8;hb=de9d037528895f7151a9aead6724ce2df95f9586;hpb=026dc7ad72ba972f230b6709e31fa64397d75ad4 diff --git a/rt/t/web/cf_textarea.t b/rt/t/web/cf_textarea.t index d11bda4d5..444020eae 100644 --- a/rt/t/web/cf_textarea.t +++ b/rt/t/web/cf_textarea.t @@ -27,6 +27,10 @@ my $cfs = { type => 'FreeformSingle', name => 'TheControlField', }, + zero => { + type => 'FreeformSingle', + name => 'Zero', + }, }; while ( my( $label, $data ) = each %$cfs ) { @@ -55,10 +59,13 @@ $m->submit_form_ok({ $cfs->{area}{input} . '-Magic' => "1", $cfs->{text}{input} => 'value a', $cfs->{text}{input} . '-Magic' => "1", + $cfs->{zero}{input} => '0', + $cfs->{zero}{input} . '-Magic' => "1", }, }, 'submitted form to initially set CFs'); $m->content_contains('
  • TheControlField value a added
  • '); $m->content_contains("
  • TheTextarea $content added
  • ", 'content found'); +$m->content_contains("
  • Zero 0 added
  • ", 'zero field found'); # http://issues.bestpractical.com/Ticket/Display.html?id=30378 # #30378: RT 4.2.6 - Very long text fields get updated even when they haven't changed @@ -71,5 +78,9 @@ $m->submit_form_ok({ $m->content_contains('
  • TheControlField value a changed to value b
  • '); $m->content_lacks("
  • TheTextarea $content changed to $content
  • ", 'textarea wasnt updated'); +# http://issues.bestpractical.com/Ticket/Display.html?id=32440 +# #32440: Spurious "CF changed from 0 to 0" +$m->content_lacks("
  • Zero 0 changed to 0
  • ", "Zero wasn't updated"); + undef $m; done_testing;