Mercurial > hg > chronicle
changeset 201:f107f6107ad4
Ignore errors which relate to <cut> tag
author | Steve Kemp <steve@steve.org.uk> |
---|---|
date | Mon, 14 Apr 2008 19:01:56 +0100 |
parents | 1dc051bcbe0c |
children | 12a343d708a1 |
files | tests/html-validator.t |
diffstat | 1 files changed, 7 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/html-validator.t Mon Apr 14 18:56:57 2008 +0100 +++ b/tests/html-validator.t Mon Apr 14 19:01:56 2008 +0100 @@ -10,7 +10,6 @@ use HTML::Lint; use Test::More; - # # Basically this test validates the HTML which would be produced if # a blog is compiled - if one is not present then we have nothing to @@ -56,9 +55,13 @@ my $error_count = $lint->errors; - # foreach my $error ( $lint->errors ) { - # print $error->as_string, "\n"; - # } + foreach my $error ( $lint->errors ) { + if ( $error->as_string =~ /<cut>/ ) + { + $error_count -= 1; + } + #print $error->as_string, "\n"; + } is( $error_count, 0 , "There are no errors in $file" ); }