Skip Menu |

This queue is for tickets about the Form-Processor CPAN distribution.

Report information
The Basics
Id: 34106
Status: resolved
Priority: 0/
Queue: Form-Processor

People
Owner: Nobody in particular
Requestors: stennie [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.18
Fixed in: (no value)



Subject: t/10-Field-HtmlArea.t fails if HTML::Tidy 0.06+ installed
This is most likely an HTML::Tidy problem, but FYI tried on two machines with both HTML::Tidy 0.06 and HTML::Tidy 0.08 and got: # Failed test 'Check tidy message' # at t/10-Field-HtmlArea.t line 47. # got: ' (4:10) Warning: missing </b> before </p>' # expected: ' (4:8) Warning: missing </b> before </p>' # Looks like you failed 1 test of 5. Seems that HTML::Tidy 0.08 has a similar problem in it's own test suite .. bit of a buggy module to begin with if you look at the current RT queue ;). Suggest making the Form::Processor test a bit more tolerant: --- t/10-Field-HtmlArea.t 2007-12-02 05:02:26.000000000 +1100 +++ t/10-Field-HtmlArea-fix.t 2008-03-15 13:08:29.000000000 +1100 @@ -44,6 +44,6 @@ $field->input( $bad_html ); $field->validate_field; ok( $field->has_error, 'Test for failure 2' ); - is( $field->errors->[0],' (4:8) Warning: missing </b> before </p>', 'Check tidy message' ); + like( $field->errors->[0], qr{Warning: missing </b> before </p>}, 'Check tidy message' ); Cheers, Stephen
Cannot seem to reproduce, but the bug is 4 years old. All tests successful. Files=42, Tests=312, 4 wallclock secs ( 0.21 usr 0.15 sys + 3.83 cusr 0.62 csys = 4.81 CPU) Result: PASS moseley@bair ~/Form-Processor-0.22 $ perl -MHTML::Tidy -le 'print $HTML::Tidy::VERSION' 1.54