Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (11 sloc) 419 Bytes
#!perl -Tw
use warnings;
use strict;
use Test::More tests => 5;
BEGIN { use_ok( 'HTML::Lint::Error', ':types' ); }
my $err = HTML::Lint::Error->new( undef, undef, undef, 'elem-empty-but-closed' );
ok( $err->is_type( STRUCTURE ) );
ok( !$err->is_type( FLUFF, HELPER ) );
$err = HTML::Lint::Error->new( undef, undef, undef, 'attr-unknown' );
ok( $err->is_type( FLUFF ) );
ok( !$err->is_type( STRUCTURE, HELPER ) );
Jump to Line
Something went wrong with that request. Please try again.