Skip to content

Commit

Permalink
Use Test::HTML::Tidy5 for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
petdance committed May 15, 2018
1 parent be18300 commit 020dcaa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -24,7 +24,7 @@ For building:

For testing:

Test::HTML::Lint
Test::HTML::Tidy5

Contributing page content
-------------------------
Expand Down
12 changes: 3 additions & 9 deletions t/html.t
@@ -1,24 +1,18 @@
#!/usr/bin/perl -w
#!/usr/bin/perl -T

use warnings;
use strict;

use Test::More;
use Test::HTML::Lint;
use Test::HTML::Tidy5;
use File::Slurp;
use Encode qw(decode_utf8);

{
no warnings 'redefine';
*HTML::Lint::Parser::_text = sub {return};
# http://www.w3.org/International/tutorials/tutorial-char-enc/#Slide0420
}

my @files = glob( 'build/*.html' );
plan( tests => scalar @files );

for my $filename ( @files ) {
my $text = decode_utf8(read_file( $filename ));

html_ok( $text, $filename );
html_tidy_ok( $text, $filename );
}

0 comments on commit 020dcaa

Please sign in to comment.