File Coverage

blib/lib/HTML/WidgetValidator/Widget/PixivEmbedFeature.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::PixivEmbedFeature;
2 1     1   945 use base qw(HTML::WidgetValidator::Widget);
  1         2  
  1         735  
3 1     1   1242 use strict;
  1         2  
  1         21  
4 1     1   13 use warnings;
  1         1  
  1         156  
5            
6             our $VERSION = 0.03;
7            
8             __PACKAGE__->name('PixivEmbedFeature');
9             __PACKAGE__->url('http://www.pixiv.net/');
10             __PACKAGE__->models([
11             [
12             { type => 'start', name => 'iframe',
13             attr => {
14             style => qr{(?:background:(?:transparent);\s*)*},
15             width => qr{.*},
16             height => qr{.*},
17             frameborder => qr{.*},
18             marginheight => qr{.*},
19             marginwidth => qr{.*},
20             scrolling => qr{.*},
21             src => qr{http://embed\.pixiv\.net/code\.php\??.*},
22             }},
23             { type => 'end', name => 'iframe' }
24             ],
25             ]);
26            
27             1;
28             __END__