File: 11_force_inline.t

package info (click to toggle)
libtap-formatter-html-perl 0.11+dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 468 kB
  • ctags: 88
  • sloc: perl: 744; sh: 51; makefile: 2
file content (27 lines) | stat: -rw-r--r-- 797 bytes parent folder | download | duplicates (4)
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
use strict;
use warnings;

use lib 'lib';
use lib 't/lib';

use Test::More 'no_plan';
use FileTempTFH;

use TAP::Harness;
use TAP::Parser::Aggregator;
use_ok( 'TAP::Formatter::HTML' );

my @tests = ( 't/data/01_pass.pl' );
my $tmp = FileTempTFH->new;
my $f = TAP::Formatter::HTML->new({ silent => 1 })->output_fh( $tmp )->force_inline_css(1)->force_inline_js(1);
my $h = TAP::Harness->new({ merge => 1, formatter => $f });

$h->runtests(@tests);

my $html = $tmp->get_all_output;

ok( $html =~ qr|01_pass|, 'html contains file 1' );
ok( $html =~ qr|default javascript for report|, 'html contains default js' );
ok( $html =~ qr|default stylesheet for report body|, 'html contains default css body' );
ok( $html =~ qr|default stylesheet for report page layout|, 'html contains default css page' );