Skip to content

Commit

Permalink
Use HTML::Lint in autolint.t in a more realistic way
Browse files Browse the repository at this point in the history
  • Loading branch information
leto committed Oct 22, 2011
1 parent 630c305 commit 4fe3cd7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion t/autolint.t
Expand Up @@ -5,6 +5,7 @@ use warnings;
use Test::Builder::Tester;
use Test::More;
use URI::file;
use HTML::Lint;

BEGIN {
eval 'use HTML::Lint';
Expand All @@ -17,7 +18,8 @@ BEGIN {
}

CUSTOM_LINTER: {
my $lint = HTML::Lint->new;
my $lint = HTML::Lint->new( only_types => HTML::Lint::Error::STRUCTURE );

my $mech = Test::WWW::Mechanize->new( autolint => $lint );
isa_ok( $mech, 'Test::WWW::Mechanize' );
}
Expand Down

0 comments on commit 4fe3cd7

Please sign in to comment.