26 Feb 2004 15:19:50 UTC
- Distribution: Test-HTML-Tidy
- Module version: 1.00
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (0)
- Testers (528 / 4 / 3)
- KwaliteeBus factor: 1
- 87.50% Coverage
- License: unknown
- Activity24 month
- Download (7.95KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest version++ed by:1 non-PAUSE userPETDANCE Andy Lester
- Copyright & License
Test::HTML::Tidy - Test::More-style wrapper around HTML::Tidy
$Header: /home/cvs/test-html-tidy/Tidy.pm,v 1.4 2004/02/26 06:12:36 andy Exp $
use Test::HTML::Tidy tests => 4; my $page = build_a_web_page(); html_tidy_ok( $page, 'Built page properly' );
If you are not already familiar with Test::More now would be the time to go take a look.
Checks to see if
$htmlcontains valid HTML.
$htmlbeing blank is OK.
$htmlbeing undef is not.
If you pass an HTML::Tidy object,
html_tidy_ok()will use that for its settings. The $html will get passed through $tidy.
my $tidy = new HTML::Tidy; $tidy->ignore( type => TIDY_WARNING ); html_tidy_ok( $tidy, $content, "Web page passes without errors" );
html_tidy_okwill use the default rules.
html_tidy_ok( $content, "Web page passes ALL tests" );
Note that if you pass in your own HTML::Tidy object,
html_tidy_ok()will clear its errors before using it.
Please report any bugs or feature requests to
firstname.lastname@example.org, or through the web interface at http://rt.cpan.org. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
Copyright 2004 Andy Lester, All Rights Reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Please note that these modules are not products of or supported by the employers of the various contributors to the code.
Module Install Instructions
To install Test::HTML::Tidy, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Test::HTML::Tidy
For more information on module installation, please visit the detailed CPAN module installation guide.