File Coverage

blib/lib/HTML/WidgetValidator/Widget/YahooTopicsJP.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             package HTML::WidgetValidator::Widget::YahooTopicsJP;
2 1     1   4 use base qw(HTML::WidgetValidator::Widget);
  1         1  
  1         59  
3 1     1   7 use warnings;
  1         3  
  1         23  
4 1     1   6 use strict;
  1         2  
  1         47  
5 1     1   5 use Carp;
  1         2  
  1         212  
6            
7             __PACKAGE__->name('Yahoo! Topics');
8             __PACKAGE__->url('http://public.news.yahoo.co.jp/blogparts/fc/');
9             __PACKAGE__->models([
10             [ { type=>'start', name=>'script' },
11             { type=>'text', text=> qr{\s*var\s+CFLwidth\s*=\s*"(?:150|222)";\s*var\s+CFLheight\s*=\s*"(?:208|240)";\s*var\s+CFLswfuri\s*=\s*"http:\/\/i\.yimg\.jp\/i\/topics\/blogparts\/topics(_s)?\.swf\?genre=[a-z]+&(?:amp;)?wakuFontColor=[0-9A-Za-z]{6}&(?:amp;)?wakuBGColor=[0-9A-Za-z]{6}&(?:amp;)?bodyFontColor=[0-9A-Za-z]{6}&(?:amp;)?bodyBGColor=[0-9A-Za-z]{6}";\s*} },
12             { type => 'end', name => 'script' } ],
13             [ { type => 'start', name => 'script',
14             attr => {
15             type => 'text/javascript',
16             charset => 'euc-jp',
17             src => 'http://public.news.yahoo.co.jp/blogparts/js/topics.js',
18             }},
19             { type => 'end', name=>'script' } ],
20             ]);
21            
22             1;
23             __END__