"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "wml_test/t/des-gfont.t" between
wml-2.28.0.tar.xz and wml-2.30.0.tar.xz

About: WML (Website META Language) is an extensible Webdesigner’s off-line HTML generation toolkit.

des-gfont.t  (wml-2.28.0.tar.xz):des-gfont.t  (wml-2.30.0.tar.xz)
use strict; use strict;
use warnings; use warnings;
use Test::More; use Test::More;
use WmlTest; use WmlTest ();
WmlTest::init(); WmlTest::init();
my $exists = 0; my $exists = 0;
foreach ( split( /:/, $ENV{'PATH'} ) ) foreach ( split( /:/, $ENV{'PATH'} ) )
{ {
if ( -x "$_/gfont" ) if ( -x "$_/gfont" )
{ {
$exists = 1; $exists = 1;
last; last;
} }
} }
if ( not $exists ) if ( not $exists )
{ {
plan skip_all => "gfont not found"; plan skip_all => "gfont not found";
} }
else else
{ {
plan tests => 6; plan tests => 6;
} }
my $pass = "1-9";
# TEST*2 # TEST*2
WmlTest::generic( $pass, <<'EOT_IN', <<'EOT_OUT', '' ); WmlTest::all_passes( <<'EOT_IN', <<'EOT_OUT', '' );
#use wml::des::gfont #use wml::des::gfont
<gfont notag>foo</gfont> <gfont notag>foo</gfont>
void void
EOT_IN EOT_IN
void void
EOT_OUT EOT_OUT
WmlTest::add_files(qw(tmp.00.gfont000.gif tmp.00.gfont000.gif.cmd)); WmlTest::add_files(qw(tmp.00.gfont000.gif tmp.00.gfont000.gif.cmd));
# TEST*2 # TEST*2
WmlTest::generic( $pass, WmlTest::all_passes( <<'EOT_IN', <<'EOT_OUT', '-Dbar -Dvoid=\"\" -Dvoid2=' );
<<'EOT_IN', <<'EOT_OUT', '-Dbar -Dvoid=\"\" -Dvoid2=' );
#use wml::des::gfont #use wml::des::gfont
<gfont file="tmp.gif">foo</gfont> <gfont file="tmp.gif">foo</gfont>
EOT_IN EOT_IN
<img src="tmp.gif" alt="foo" width="24" height="22" border="0"> <img src="tmp.gif" alt="foo" width="24" height="22" border="0">
EOT_OUT EOT_OUT
WmlTest::add_files(qw(tmp.gif tmp.gif.cmd)); WmlTest::add_files(qw(tmp.gif tmp.gif.cmd));
# TEST*2 # TEST*2
WmlTest::generic( $pass, WmlTest::all_passes( <<'EOT_IN', <<'EOT_OUT', '-Dbar -Dvoid=\"\" -Dvoid2=' );
<<'EOT_IN', <<'EOT_OUT', '-Dbar -Dvoid=\"\" -Dvoid2=' );
#use wml::des::gfont #use wml::des::gfont
<gfont base="tmp">foo</gfont> <gfont base="tmp">foo</gfont>
EOT_IN EOT_IN
<img src="tmp.gfont000.gif" alt="foo" width="24" height="22" border="0"> <img src="tmp.gfont000.gif" alt="foo" width="24" height="22" border="0">
EOT_OUT EOT_OUT
WmlTest::add_files(qw(tmp.gfont000.gif tmp.gfont000.gif.cmd)); WmlTest::add_files(qw(tmp.gfont000.gif tmp.gfont000.gif.cmd));
WmlTest::cleanup(); WmlTest::cleanup();
 End of changes. 5 change blocks. 
8 lines changed or deleted 4 lines changed or added

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