Commit 4eb5bfcd authored by Morten Welinder's avatar Morten Welinder

Test: get started on conditional formats.

parent 215fd5cf
......@@ -89,6 +89,7 @@ TESTS = t1000-statfuns.pl \
t6512-format.pl \
t6513-merges.pl \
t6514-rich-text.pl \
t6515-cond-format.pl \
t7000-goal-seek.pl \
t7100-solver-blend.pl \
t7101-solver-afiro.pl \
......
#!/usr/bin/perl -w
# -----------------------------------------------------------------------------
use strict;
use lib ($0 =~ m|^(.*/)| ? $1 : ".");
use GnumericTest;
my $file = "$samples/cond-format-tests.gnumeric";
&message ("Check conditional format gnumeric roundtrip.");
&test_roundtrip ($file,
'format' => 'Gnumeric_XmlIO:sax',
'ext' => "gnm");
&message ("Check conditional format ods roundtrip.");
&test_roundtrip ($file,
'format' => 'Gnumeric_OpenCalc:odf',
'ext' => "ods",
'filter2' => "$PERL -p -e '\$_ = \"\" if m{<meta:generator>}'",
'ignore_failure' => 1);
my $xls_codepage_filter = "$PERL -p -e '\$_ = \"\" if m{<meta:user-defined meta:name=.msole:codepage.}'";
&message ("Check conditional format xls/BIFF7 roundtrip.");
&test_roundtrip ($file,
'format' => 'Gnumeric_Excel:excel_biff7',
'ext' => "xls",
'resize' => '16384x256',
'filter2' => $xls_codepage_filter,
'ignore_failure' => 1);
&message ("Check conditional format xls/BIFF8 roundtrip.");
&test_roundtrip ($file,
'format' => 'Gnumeric_Excel:excel_biff8',
'ext' => "xls",
'filter2' => $xls_codepage_filter,
'ignore_failure' => 1);
&message ("Check conditional format xlsx roundtrip.");
&test_roundtrip ($file,
'format' => 'Gnumeric_Excel:xlsx',
'ext' => "xlsx",
'resize' => '1048576x16384');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment