File Coverage

blib/lib/HTML/WidgetValidator/Widget/YahooWeatherJP.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::YahooWeatherJP;
2 1     1   4 use base qw(HTML::WidgetValidator::Widget);
  1         2  
  1         56  
3 1     1   5 use warnings;
  1         2  
  1         23  
4 1     1   3 use strict;
  1         1  
  1         20  
5 1     1   5 use Carp;
  1         1  
  1         200  
6            
7             __PACKAGE__->name('Yahoo! Weather');
8             __PACKAGE__->url('http://weather.yahoo.co.jp/weather/promo/blogparts/');
9             __PACKAGE__->models([
10             [ { type=>'start', name=>'script' },
11             { type=>'text', text=> qr{\s*var\s+CFLwidth\s*=\s*"150";\s*var\s+CFLheight\s*=\s*"322";\s*var\s+CFLswfuri\s*=\s*"http:\/\/i\.yimg\.jp\/images\/weather\/blogparts\/yj_weather\.swf\?mapc=[0-9a-z]+";\s*} },
12             { type => 'end', name=>'script' } ],
13             [ { type => 'start', name=>'script',
14             attr => {
15             type => 'text/javascript',
16             charset => 'euc-jp',
17             src => 'http://weather.yahoo.co.jp/weather/promo/js/weather.js',
18             }},
19             { type => 'end', name=>'script' } ],
20            
21             ]);
22            
23             1;
24             __END__