File Coverage

blib/lib/HTML/WidgetValidator/Widget/AmazonJP.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package HTML::WidgetValidator::Widget::AmazonJP;
2 1     1   5 use base qw(HTML::WidgetValidator::Widget);
  1         2  
  1         75  
3 1     1   6 use strict;
  1         3  
  1         29  
4 1     1   6 use warnings;
  1         1  
  1         227  
5              
6             __PACKAGE__->name('AmazonJP');
7             __PACKAGE__->url('http://www.amazon.com/');
8             __PACKAGE__->models([
9             [
10             { type => 'start', name => 'iframe',
11             attr => {
12             src => qr{http://rcm-jp\.amazon\.co\.jp/e/cm\?t=[A-Za-z0-9\-]+?&o=9&p=\d{1,2}?&l=(?:st1|bn1)&mode=[a-z\-]+?(?:&search=[A-Za-z0-9\-\.\_%]+?|&browse=\d+?)(?:&nou=1)?&fc1=[A-F0-9]{6}<1=(?:|_blank|_top)&lc1=[A-F0-9]{6}&bg1=[A-F0-9]{6}(?:&npa=1)?&f=ifr},
13             marginwidth => '0',
14             marginheight => '0',
15             width => qr{\d{2,3}},
16             height => qr{\d{2,3}},
17             border => '0',
18             frameborder => '0',
19             style => 'border:none;',
20             scrolling => 'no',
21             }},
22             { type => 'end', name => 'iframe' }
23             ],
24             ]);
25              
26             1;
27             __END__