[gnumeric] Tests: add test for column and row properties.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Tests: add test for column and row properties.
- Date: Tue, 25 Feb 2014 01:53:24 +0000 (UTC)
commit 92d81e854767b752b8b6cc0c5be0c6fabb2ae6fd
Author: Morten Welinder <terra gnome org>
Date: Mon Feb 24 20:50:08 2014 -0500
Tests: add test for column and row properties.
samples/colrow-tests.gnumeric | Bin 0 -> 1951 bytes
test/Makefile.am | 1 +
test/t6505-colrow.pl | 42 +++++++++++++++++++++++++++++++++++++++++
3 files changed, 43 insertions(+), 0 deletions(-)
---
diff --git a/samples/colrow-tests.gnumeric b/samples/colrow-tests.gnumeric
new file mode 100644
index 0000000..c124a15
Binary files /dev/null and b/samples/colrow-tests.gnumeric differ
diff --git a/test/Makefile.am b/test/Makefile.am
index a2de048..67a7a46 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -76,6 +76,7 @@ TESTS = t1000-statfuns.pl \
t6502-styles.pl \
t6503-page-setup.pl \
t6504-formula.pl \
+ t6505-colrow.pl \
t7000-goal-seek.pl \
t7100-solver-blend.pl \
t7101-solver-afiro.pl \
diff --git a/test/t6505-colrow.pl b/test/t6505-colrow.pl
new file mode 100755
index 0000000..6987b85
--- /dev/null
+++ b/test/t6505-colrow.pl
@@ -0,0 +1,42 @@
+#!/usr/bin/perl -w
+# -----------------------------------------------------------------------------
+
+use strict;
+use lib ($0 =~ m|^(.*/)| ? $1 : ".");
+use GnumericTest;
+
+my $file = "$samples/colrow-tests.gnumeric";
+
+&message ("Check col/row info gnumeric roundtrip.");
+&test_roundtrip ($file,
+ 'format' => 'Gnumeric_XmlIO:sax',
+ 'ext' => "gnm");
+
+&message ("Check col/row info ods roundtrip.");
+&test_roundtrip ($file,
+ 'format' => 'Gnumeric_OpenCalc:odf',
+ 'ext' => "ods",
+ 'filter2' => "$PERL -p -e '\$_ = \"\" if m{<meta:generator>}'");
+
+my $xls_codepage_filter = "$PERL -p -e '\$_ = \"\" if m{<meta:user-defined meta:name=.msole:codepage.}'";
+
+&message ("Check col/row info xls/BIFF7 roundtrip.");
+&test_roundtrip ($file,
+ 'format' => 'Gnumeric_Excel:excel_biff7',
+ 'ext' => "xls",
+ 'resize' => '16384x256',
+ 'filter2' => $xls_codepage_filter,
+ 'ignore_failure' => 1);
+
+&message ("Check col/row info xls/BIFF8 roundtrip.");
+&test_roundtrip ($file,
+ 'format' => 'Gnumeric_Excel:excel_biff8',
+ 'ext' => "xls",
+ 'filter2' => $xls_codepage_filter,
+ 'ignore_failure' => 1);
+
+&message ("Check col/row info xlsx roundtrip.");
+&test_roundtrip ($file,
+ 'format' => 'Gnumeric_Excel:xlsx',
+ 'ext' => "xlsx",
+ 'resize' => '1048576x16384');
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]