| 70 |
test ($test) if $test->{errors}; |
test ($test) if $test->{errors}; |
| 71 |
} |
} |
| 72 |
|
|
| 73 |
use What::HTML; |
use Whatpm::HTML; |
| 74 |
use What::NanoDOM; |
use Whatpm::NanoDOM; |
| 75 |
|
|
| 76 |
sub test ($) { |
sub test ($) { |
| 77 |
my $test = shift; |
my $test = shift; |
| 78 |
|
|
| 79 |
my $doc = What::NanoDOM::Document->new; |
my $doc = Whatpm::NanoDOM::Document->new; |
| 80 |
my @errors; |
my @errors; |
| 81 |
|
|
| 82 |
$SIG{INT} = sub { |
$SIG{INT} = sub { |
| 84 |
exit; |
exit; |
| 85 |
}; |
}; |
| 86 |
|
|
| 87 |
What::HTML->parse_string |
Whatpm::HTML->parse_string |
| 88 |
($test->{data} => $doc, sub { |
($test->{data} => $doc, sub { |
| 89 |
my $msg = shift; |
my $msg = shift; |
| 90 |
push @errors, $msg; |
push @errors, $msg; |