1Test::HTML::Lint(3)   User Contributed Perl Documentation  Test::HTML::Lint(3)
2
3
4

NAME

6       Test::HTML::Lint - Test::More-style wrapper around HTML::Lint
7

VERSION

9       Version 2.06
10

SYNOPSIS

12           use Test::HTML::Lint tests => 4;
13
14           my $table = build_display_table();
15           html_ok( $table, 'Built display table properly' );
16

DESCRIPTION

18       This module provides a few convenience methods for testing exception
19       based code. It is built with Test::Builder and plays happily with
20       Test::More and friends.
21
22       If you are not already familiar with Test::More now would be the time
23       to go take a look.
24

EXPORT

26       "html_ok"
27
28   html_ok( [$lint, ] $html, $name )
29       Checks to see that $html contains valid HTML.
30
31       Checks to see if $html contains valid HTML.  $html being blank is OK.
32       $html being undef is not.
33
34       If you pass an HTML::Lint object, "html_ok()" will use that for its
35       settings.
36
37           my $lint = new HTML::Lint( only_types => STRUCTURE );
38           html_ok( $lint, $content, "Web page passes structural tests only" );
39
40       Otherwise, it will use the default rules.
41
42           html_ok( $content, "Web page passes ALL tests" );
43
44       Note that if you pass in your own HTML::Lint object, "html_ok()" will
45       clear its errors before using it.
46

BUGS

48       All bugs and requests are now being handled through the Google Code
49       issue tracker at http://code.google.com/p/html-lint/issues/list.  DO
50       NOT send bug reports to http://rt.cpan.org/
51

TO DO

53       There needs to be a "html_table_ok()" to check that the HTML is a self-
54       contained, well-formed table, and then a comparable one for
55       "html_page_ok()".
56
57       If you think this module should do something that it doesn't do at the
58       moment please let me know.
59

ACKNOWLEGEMENTS

61       Thanks to chromatic and Michael G Schwern for the excellent
62       Test::Builder, without which this module wouldn't be possible.
63
64       Thanks to Adrian Howard for writing Test::Exception, from which most of
65       this module is taken.
66

LICENSE

68       Copyright 2003-2008 Andy Lester, All Rights Reserved.
69
70       This program is free software; you can redistribute it and/or modify it
71       under the same terms as Perl itself.
72
73       Please note that these modules are not products of or supported by the
74       employers of the various contributors to the code.
75

AUTHOR

77       Andy Lester, "andy@petdance.com"
78
79
80
81perl v5.12.0                      2008-12-18               Test::HTML::Lint(3)
Impressum