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