Changeset 1656
- Timestamp:
- 09/02/06 22:07:10
- Files:
-
- trunk/plagger (modified) (previous)
- trunk/plagger/deps/Publish-Takahashi.yaml (modified) (1 diff)
- trunk/plagger/lib/Plagger/Plugin/Publish/Takahashi.pm (modified) (2 diffs)
- trunk/plagger/t/TestPlagger.pm (modified) (1 diff)
- trunk/plagger/t/core/assets_path.t (modified) (4 diffs)
- trunk/plagger/t/core/log-level.t (modified) (2 diffs)
- trunk/plagger/t/plugins/Bundle-Planet/vulnerability.t (added)
- trunk/plagger/t/plugins/Filter-FeedBurnerPermalink/feedburner.t (modified) (1 diff)
- trunk/plagger/t/plugins/Notify-Beep/beep.t (modified) (1 diff)
- trunk/plagger/t/plugins/Notify-Beep/music.t (modified) (1 diff)
- trunk/plagger/t/plugins/Notify-Eject/eject.t (modified) (1 diff)
- trunk/plagger/t/plugins/Notify-Growl/growl.t (modified) (1 diff)
- trunk/plagger/t/plugins/Publish-Takahashi/publish.t (modified) (2 diffs)
- trunk/plagger/t/plugins/UserAgent-AuthenRequest/authen.t (modified) (3 diffs)
- trunk/plagger/t/regression/cookies-nofile.t (modified) (1 diff)
- trunk/plagger/t/samples/evil.xml (added)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/plagger/deps/Publish-Takahashi.yaml
r1651 r1656 1 name: Publish::PowerTakahashi 1 name: Publish::Takahashi 2 author: Tatsuhiko Miyagawa 3 trunk/plagger/lib/Plagger/Plugin/Publish/Takahashi.pm
r1653 r1656 43 43 1; 44 44 45 =head1 1NAME45 =head1 NAME 46 46 47 47 Plagger::Plugin::Publish::Takahashi - produce takahasi output … … 52 52 config: 53 53 dir: /home/miyagawa/takahashi 54 54 55 55 =head1 DESCRIPTION 56 56 trunk/plagger/t/TestPlagger.pm
r1650 r1656 231 231 # this is often used in the tests as a way to find 232 232 # out what has happened (e.g. the Growl plugin) 233 my $warning ;233 my $warnings; 234 234 { 235 local $SIG{__WARN__} = sub { $warning .= "@_" };235 local $SIG{__WARN__} = sub { $warnings .= "@_" }; 236 236 $block->run_filters; 237 237 } trunk/plagger/t/core/assets_path.t
r1418 r1656 28 28 - module: Test::AssetsPath 29 29 --- expected 30 like $warning , qr!plugins[/\\]Test-AssetsPath!;30 like $warnings, qr!plugins[/\\]Test-AssetsPath!; 31 31 32 32 === Test plugin:assets_path … … 39 39 assets_path: $t::TestPlagger::BaseDir/t/samples 40 40 --- expected 41 unlike $warning , qr!/tmp/assets!;42 like $warning , qr!assets_path is .*t/samples$!m;41 unlike $warnings, qr!/tmp/assets!; 42 like $warnings, qr!assets_path is .*t/samples$!m; 43 43 44 44 === Test templatize … … 53 53 - module: Test::AssetsPath 54 54 --- expected 55 like $warning , qr/template: foo/;55 like $warnings, qr/template: foo/; 56 56 57 57 === Test localized templatize … … 66 66 assets_path: $t::TestPlagger::BaseDir/t/samples 67 67 --- expected 68 like $warning , qr/template: bar/;68 like $warnings, qr/template: bar/; trunk/plagger/t/core/log-level.t
r1283 r1656 28 28 - module: Test::Log 29 29 --- expected 30 like $warning , qr/error/;31 like $warning , qr/info/;32 like $warning , qr/warn/;33 like $warning , qr/debug/;30 like $warnings, qr/error/; 31 like $warnings, qr/info/; 32 like $warnings, qr/warn/; 33 like $warnings, qr/debug/; 34 34 35 35 === info log level … … 41 41 - module: Test::Log 42 42 --- expected 43 like $warning , qr/error/;44 like $warning , qr/info/;45 unlike $warning , qr/warn/;46 unlike $warning , qr/debug/;43 like $warnings, qr/error/; 44 like $warnings, qr/info/; 45 unlike $warnings, qr/warn/; 46 unlike $warnings, qr/debug/; trunk/plagger/t/plugins/Filter-FeedBurnerPermalink/feedburner.t
r1283 r1656 21 21 - module: Filter::FeedBurnerPermalink 22 22 --- expected 23 like $warning , qr/Permalink rewritten to/;23 like $warnings, qr/Permalink rewritten to/; trunk/plagger/t/plugins/Notify-Beep/beep.t
r1483 r1656 25 25 - module: Notify::Beep 26 26 --- expected 27 like $warning , qr/beep ok/;27 like $warnings, qr/beep ok/; trunk/plagger/t/plugins/Notify-Beep/music.t
r1483 r1656 27 27 music: "g' f bes' c8 f d4 c8 f d4 bes c g f2" 28 28 --- expected 29 like $warning , qr/g' f bes' c8 f d4 c8 f d4 bes c g f2/;29 like $warnings, qr/g' f bes' c8 f d4 c8 f d4 bes c g f2/; trunk/plagger/t/plugins/Notify-Eject/eject.t
r1483 r1656 31 31 - module: Notify::Eject 32 32 --- expected 33 like $warning , qr/eject ok/;33 like $warnings, qr/eject ok/; 34 34 trunk/plagger/t/plugins/Notify-Growl/growl.t
r1533 r1656 31 31 - module: Notify::Growl 32 32 --- expected 33 my @count = $warning =~ /^Growl: plagger:/gm;33 my @count = $warnings =~ /^Growl: plagger:/gm; 34 34 is scalar @count, 4; 35 35 36 like $warning , qr{^Growl: plagger:Liftoff News:Star City:How do Americans }m;37 like $warning , qr{^Growl: plagger:Liftoff News:The Engine That Does More:B}m;36 like $warnings, qr{^Growl: plagger:Liftoff News:Star City:How do Americans }m; 37 like $warnings, qr{^Growl: plagger:Liftoff News:The Engine That Does More:B}m; trunk/plagger/t/plugins/Publish-Takahashi/publish.t
r1651 r1656 3 3 use t::TestPlagger; 4 4 use File::Spec; 5 use Digest::MD5 qw(md5_hex); 5 6 6 our $output = File::Spec->rel2abs("$FindBin::Bin/89c7ff2fc4bb5e80be21aa7cae83e2d1.xul"); 7 our $url = "file://$t::TestPlagger::BaseDirURI/t/samples/rss-full.xml"; 8 my $id = md5_hex($url); 9 10 our $output = File::Spec->rel2abs("$FindBin::Bin/$id.xul"); 7 11 our $css = File::Spec->rel2abs("$FindBin::Bin/takahashi.css"); 8 12 our $js = File::Spec->rel2abs("$FindBin::Bin/takahashi.js"); … … 26 30 config: 27 31 feed: 28 - file://$t::TestPlagger::BaseDirURI/t/samples/rss-full.xml32 - $main::url 29 33 - module: Publish::Takahashi 30 34 config: trunk/plagger/t/plugins/UserAgent-AuthenRequest/authen.t
r1283 r1656 18 18 - http://irisresearch.library.cornell.edu/control/authBasic/authTest/ 19 19 --- expected 20 like $warning , qr/401 Authorization Required/;20 like $warnings, qr/401 Authorization Required/; 21 21 22 22 === With auth … … 37 37 password: this 38 38 --- expected 39 unlike $warning , qr/401 Authorization Required/;40 like $warning , qr!200: http://irisresearch!;39 unlike $warnings, qr/401 Authorization Required/; 40 like $warnings, qr!200: http://irisresearch!; 41 41 42 42 === With auth as list … … 58 58 password: this 59 59 --- expected 60 unlike $warning , qr/401 Authorization Required/;61 like $warning , qr!200: http://irisresearch!;60 unlike $warnings, qr/401 Authorization Required/; 61 like $warnings, qr!200: http://irisresearch!; trunk/plagger/t/regression/cookies-nofile.t
r1312 r1656 23 23 open my $fh, "/tmp/xxxxxxxx"; 24 24 my $no_such_file = $!; 25 like $warning , qr/Cookies\.plist: $no_such_file/25 like $warnings, qr/Cookies\.plist: $no_such_file/ 26 26
