Commit 7620d154 authored by Morten Welinder's avatar Morten Welinder

Tests: new test for sheet names.

parent 68fe436e
......@@ -99,6 +99,7 @@ TESTS = t1000-statfuns.pl \
t6518-objects.pl \
t6519-selection.pl \
t6520-sheet-tab.pl \
t6521-sheet-names.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/sheet-names-tests.gnumeric";
if (&subtest ("gnumeric")) {
&message ("Check sheet names gnumeric roundtrip.");
&test_roundtrip ($file,
'format' => 'Gnumeric_XmlIO:sax',
'ext' => "gnm");
}
if (&subtest ("ods")) {
&message ("Check sheet names ods roundtrip.");
&test_roundtrip ($file,
'format' => 'Gnumeric_OpenCalc:odf',
'ext' => "ods",
'filter2' => 'std:drop_generator');
}
if (&subtest ("biff7")) {
&message ("Check sheet names xls/BIFF7 roundtrip.");
&test_roundtrip ($file,
'format' => 'Gnumeric_Excel:excel_biff7',
'ext' => "xls",
'resize' => '16384x256',
'filter2' => 'std:drop_codepage',
'ignore_failure' => 1);
}
if (&subtest ("biff8")) {
&message ("Check sheet names xls/BIFF8 roundtrip.");
&test_roundtrip ($file,
'format' => 'Gnumeric_Excel:excel_biff8',
'ext' => "xls",
'filter2' => 'std:drop_codepage',
'ignore_failure' => 1);
}
if (&subtest ("xlsx")) {
&message ("Check sheet names 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