"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "t/351_unpaper.t" between
gscan2pdf-2.13.1.tar.xz and gscan2pdf-2.13.2.tar.xz

About: gscan2pdf is a GUI to produce PDFs from scanned documents (using Perl).

351_unpaper.t  (gscan2pdf-2.13.1.tar.xz):351_unpaper.t  (gscan2pdf-2.13.2.tar.xz)
use warnings; use warnings;
use strict; use strict;
use File::Basename; # Split filename into dir, file, ext use File::Basename; # Split filename into dir, file, ext
use IPC::Cmd qw(can_run); use IPC::Cmd qw(can_run);
use IPC::System::Simple qw(system capture); use IPC::System::Simple qw(system capture);
use Test::More tests => 7; use Test::More tests => 7;
BEGIN { BEGIN {
use Gscan2pdf::Document; use Gscan2pdf::Document;
use Gscan2pdf::Unpaper; use Gscan2pdf::Unpaper;
use Gtk3 -init; # Could just call init separately use Gtk3 -init; # Could just call init separately
} }
Gscan2pdf::Translation::set_domain('gscan2pdf'); Gscan2pdf::Translation::set_domain('gscan2pdf');
skipping to change at line 91 skipping to change at line 91
list_of_pages => [ $slist->{data}[0][2]{uuid} ], list_of_pages => [ $slist->{data}[0][2]{uuid} ],
finished_callback => sub { Gtk3->main_quit } finished_callback => sub { Gtk3->main_quit }
); );
}, },
error_callback => sub { error_callback => sub {
my ( $uuid, $process, $message ) = @_; my ( $uuid, $process, $message ) = @_;
for my $msg ( split "\n", $message ) { for my $msg ( split "\n", $message ) {
# if we use unlike, we no longer # if we use unlike, we no longer
# know how many tests there will be # know how many tests there will be
if ( $msg !~ /( deprecated | if (
$msg !~ /( deprecated |
\Qdoes not contain an image sequence pattern\E | \Qdoes not contain an image sequence pattern\E |
\QEncoder did not produce proper pts, making some up \E | \QEncoder did not produce proper pts, making some up \E |
\Quse the -update option\E )/x \Quse the -update option\E )/x
) )
{ {
fail 'no warnings'; fail 'no warnings';
} }
} }
} }
); );
 End of changes. 2 change blocks. 
2 lines changed or deleted 3 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)