Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added sample/3.028/003_header_page_boundary.pdf
Binary file not shown.
9 changes: 4 additions & 5 deletions t/003_table.t
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ use Test::More;

use CtrlO::PDF;

use lib '.';
use t::lib::Tools qw(compare_pdf);

subtest 'Normal-sized table' => \&test_normality;
subtest 'Table straddling a page boundary' => \&test_page_boundary;
subtest 'Table header straddling a page boundary' => \&test_header_page_boundary;
Expand Down Expand Up @@ -76,9 +79,5 @@ sub test_header_page_boundary {
]
]);
is $pdf->pdf->page_count, 2, 'Our table spanned two pages';
if ($ENV{AUTHOR_TESTING}) {
open (my $fh, '>', 'header_page_boundary.pdf');
print $fh $pdf->content;
close $fh;
}
compare_pdf($pdf, '003_header_page_boundary.pdf');
}