more blah
HTML-Tidy-1.60/t/ignore.t 0000644 0001017 0000764 00000010665 13156247313 014222 0 ustar alester ispc #!perl -T use strict; use warnings; use Test::More tests => 9; use HTML::Tidy; my $html = do { local $/ = undef; }; my @expected_warnings = split /\n/, q{ - (1:1) Warning: missing declaration - (23:1) Warning: discarding unexpected
Unicodeが好きですか?
HTML-Tidy-1.60/t/unicode.html 0000644 0001017 0000764 00000000254 13156247313 015057 0 ustar alester ispcUnicodeが好きですか?
HTML-Tidy-1.60/t/too-many-titles.t 0000644 0001017 0000764 00000001446 13156247313 016001 0 ustar alester ispc #!perl -T use warnings; use strict; use Test::More tests => 3; use HTML::Tidy; my $html = join '', ; my @expected = split /\n/, q{ - (1:1) Warning: missing declaration - (4:9) Warning: too many title elements in }; chomp @expected; shift @expected; # First one's blank my $tidy = HTML::Tidy->new; isa_ok( $tidy, 'HTML::Tidy' ); $tidy->ignore( type => TIDY_INFO ); my $rc = $tidy->parse( '-', $html ); ok( $rc, 'Parsed OK' ); my @returned = map { $_->as_string } $tidy->messages; s/[\r\n]+\z// for @returned; is_deeply( \@returned, \@expected, 'Matching warnings' ); __DATA__This is my paragraph
HTML-Tidy-1.60/t/pod.t 0000644 0001017 0000764 00000000247 13156247313 013514 0 ustar alester ispc #!perl -Tw use strict; use warnings; use Test::More; eval 'use Test::Pod 1.14'; plan skip_all => 'Test::Pod 1.14 required for testing POD' if $@; all_pod_files_ok(); HTML-Tidy-1.60/t/levels.t 0000644 0001017 0000764 00000007104 13156247313 014223 0 ustar alester ispc #!perl -T use warnings; use strict; use Test::More tests => 3; use HTML::Tidy; my $tidy = HTML::Tidy->new; isa_ok( $tidy, 'HTML::Tidy' ); my $rc = $tidy->parse( '-', ); ok( $rc, 'Parsed OK' ); my @expected = split /\n/, q{ - (1:1) Warning: missing declaration - (23:1) Error:Here's some ed and
eakfest MarkUp: ...
EOD my @expected = split(/\n/, $expected); my $result = $tidy->clean( $input ); my @result = split(/\r/, $result); is_deeply( \@result, \@expected, 'Cleaned stuff looks like what we expected'); HTML-Tidy-1.60/t/message.t 0000644 0001017 0000764 00000002647 13156247313 014364 0 ustar alester ispc #!perl -T use warnings; use strict; use Test::More tests => 4; use HTML::Tidy; use HTML::Tidy::Message; WITH_LINE_NUMBERS: { my $error = HTML::Tidy::Message->new( 'foo.pl', TIDY_ERROR, 2112, 5150, 'Blah blah' ); isa_ok( $error, 'HTML::Tidy::Message' ); my %expected = ( file => 'foo.pl', type => TIDY_ERROR, line => 2112, column => 5150, text => 'Blah blah', as_string => 'foo.pl (2112:5150) Error: Blah blah', ); _match_up( $error, \%expected, 'With line numbers' ); } WITHOUT_LINE_NUMBERS: { my $error = HTML::Tidy::Message->new( 'bar.pl', TIDY_WARNING, undef, undef, 'Blah blah' ); isa_ok( $error, 'HTML::Tidy::Message' ); my %expected = ( file => 'bar.pl', type => TIDY_WARNING, line => 0, column => 0, text => 'Blah blah', as_string => 'bar.pl - Warning: Blah blah', ); _match_up( $error, \%expected, 'Without line numbers' ); } sub _match_up { local $Test::Builder::Level = $Test::Builder::Level + 1; my $error = shift; my $expected = shift; my $msg = shift or die; return subtest "_matchup( $msg )" => sub { plan tests => scalar keys %{$expected}; for my $what ( sort keys %{$expected} ) { is( $error->$what, $expected->{$what}, "$what matches" ); } }; } HTML-Tidy-1.60/t/venus.html 0000644 0001017 0000764 00000004570 13156247313 014576 0 ustar alester ispc