File: 10-test-html-lint.t

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

use warnings;
use strict;

use Test::More tests => 4;
use Test::HTML::Lint;

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

my $chunk = "<P>This is a fine chunk of code</P>";

TODO: { # undef should fail
    local $TODO = "This test should NOT succeed";
    html_ok( undef );
}
html_ok( '' );  # Blank is OK
html_ok( $chunk );