Show
Ignore:
Timestamp:
10/08/07 21:34:27 (7 years ago)
Author:
otsune
Message:

lang/perl/plagger/t/plugins/Filter-FLVInfo/base.t: add test with local flv file

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/plagger/t/plugins/Filter-FLVInfo/base.t

    r430 r433  
    3333          enclosure: 
    3434            - url: http://mizzy.org/plagger-test/mizzy.flv 
     35        - title: 'Second Entry' 
     36          link: 'http://plagger.org/trac/browser/trunk/plagger/lib/Plagger/Plugin/Filter/FLVInfo.pm' 
     37          body: 'Test Filter::FLVInfo' 
     38          summary: 'Test Filter::FLVInfo' 
     39          author: 'Yohei Fushii' 
     40          enclosure: 
     41            - url: http://plagger.org/trac/browser/trunk/plagger/t/samples/plagger-logo-160x120.flv?format=raw 
     42              local_path: $t::TestPlagger::BaseDirURI/t/samples/plagger-logo-160x120.flv 
    3543 
    3644  - module: Filter::FetchEnclosure 
     45    rule:   
     46      expression: \$args->{entry}->link eq 'http://mizzy.org/plagger-test/'; 
    3747    config: 
    3848      dir: $main::tmpdir 
     
    4353is $context->update->feeds->[0]->entries->[0]->meta->{flvinfo}->{width}, '320'; 
    4454is $context->update->feeds->[0]->entries->[0]->meta->{flvinfo}->{aspect}, '4:3'; 
     55is $context->update->feeds->[0]->entries->[1]->meta->{flvinfo}->{height}, '120'; 
     56is $context->update->feeds->[0]->entries->[1]->meta->{flvinfo}->{width}, '160'; 
     57is $context->update->feeds->[0]->entries->[1]->meta->{flvinfo}->{aspect}, '4:3';