Changeset 1307
- Timestamp:
- 08/14/06 11:20:09
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/plagger/t/plugins/UserAgent-RequestHeader/printenv.t
r1296 r1307 8 8 __END__ 9 9 10 === Test rt.cpan.org10 === Test printenv 11 11 --- input config 12 12 global: … … 16 16 - module: CustomFeed::Debug 17 17 config: 18 title: RT CPAN18 title: printenv 19 19 entry: 20 - title: rt.cpan.org21 link: http:// rt.cpan.org/20 - title: printenv 21 link: http://commonground.mines.edu/printenv.cgi 22 22 - module: Filter::EntryFullText 23 23 config: 24 24 store_html_on_failure: 1 25 25 --- expected 26 like $context->update->feeds->[0]->entries->[0]->body, qr!<span class="left">Login</span>!;26 unlike $context->update->feeds->[0]->entries->[0]->body, qr!ACCEPT_LANGUAGE!; 27 27 28 === Test rt.cpan.orgwith Accept-Language: ja28 === Test printenv with Accept-Language: ja 29 29 --- input config 30 30 global: … … 34 34 - module: CustomFeed::Debug 35 35 config: 36 title: RT CPAN36 title: printenv 37 37 entry: 38 - title: rt.cpan.org39 link: http:// rt.cpan.org/38 - title: printenv 39 link: http://commonground.mines.edu/printenv.cgi 40 40 - module: Filter::EntryFullText 41 41 config: … … 45 45 Accept-Language: ja 46 46 --- expected 47 like $context->update->feeds->[0]->entries->[0]->body, qr!< span class="left">ログイン</span>!;47 like $context->update->feeds->[0]->entries->[0]->body, qr!<TD>HTTP_ACCEPT_LANGUAGE</TD><TD>ja</TD>!; 48 48 49 === Test rt.cpan.orgwith Accept-Language: ja and rule49 === Test printenv with Accept-Language: ja and rule 50 50 --- input config 51 51 global: … … 55 55 - module: CustomFeed::Debug 56 56 config: 57 title: RT CPAN57 title: printenv 58 58 entry: 59 - title: rt.cpan.org60 link: http:// rt.cpan.org/59 - title: printenv 60 link: http://commonground.mines.edu/printenv.cgi 61 61 - module: Filter::EntryFullText 62 62 config: … … 66 66 Accept-Language: ja 67 67 rule: 68 expression: \$args->{url}->host eq ' rt.cpan.org'68 expression: \$args->{url}->host eq 'commonground.mines.edu' 69 69 --- expected 70 like $context->update->feeds->[0]->entries->[0]->body, qr!< span class="left">ログイン</span>!;70 like $context->update->feeds->[0]->entries->[0]->body, qr!<TD>HTTP_ACCEPT_LANGUAGE</TD><TD>ja</TD>!
