File: 065_HTML_Attribute_Strip.t

package info (click to toggle)
libpetal-perl 2.05-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 792 kB
  • ctags: 137
  • sloc: perl: 3,722; xml: 630; makefile: 39
file content (32 lines) | stat: -rw-r--r-- 588 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/perl
use Test::More 'no_plan';
use warnings;
use lib 'lib';
use Petal;

$Petal::DISK_CACHE   = 0;
$Petal::MEMORY_CACHE = 0;
$Petal::BASE_DIR     = ('t/data');
my $file             = 'attribute_strip.html';

{
    my $t = new Petal ( file => $file );
    my $s = $t->process();
    like ($s, qr/test/);
}


{
    my $file  = 'attribute_strip2.html';
    my $t = new Petal ( file => $file );
    my $s = $t->process();
    like ($s, qr/Keyword\(s\)/);
}

$Petal::OUTPUT = 'XHTML';
{
    my $t = new Petal ( file => $file );
    my $s = $t->process();
    like ($s, qr/test/);
}