File: 11-test-html-lint-overload.t

package info (click to toggle)
libhtml-lint-perl 2.22%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 356 kB
  • ctags: 87
  • sloc: perl: 1,102; sh: 54; makefile: 20
file content (20 lines) | stat: -rw-r--r-- 450 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!perl -Tw

use strict;
use warnings;

use Test::More tests => 4;

BEGIN { use_ok( 'Test::HTML::Lint' ); }
BEGIN { use_ok( 'HTML::Lint' ); }
BEGIN { use_ok( 'HTML::Lint::Error' ); }

my $lint = HTML::Lint->new();
$lint->only_types( HTML::Lint::Error::FLUFF );

# This code is invalid, but the linter should ignore it
my $chunk = << 'END';
<P><TABLE>This is a fine chunk of code</P>
END

html_ok( $lint, $chunk, 'STRUCTUREally naughty code passed' );