[gnumeric] Tests: add tests for split panes.



commit 409fe7a57e9c7f254c8a247f09d9149caa9534da
Author: Morten Welinder <terra gnome org>
Date:   Wed Feb 26 10:37:43 2014 -0500

    Tests: add tests for split panes.

 samples/split-panes-tests.gnumeric |  Bin 0 -> 1822 bytes
 test/Makefile.am                   |    2 +
 test/t6507-split-panes.pl          |   42 ++++++++++++++++++++++++++++++++++++
 3 files changed, 44 insertions(+), 0 deletions(-)
---
diff --git a/samples/split-panes-tests.gnumeric b/samples/split-panes-tests.gnumeric
new file mode 100644
index 0000000..b7a9365
Binary files /dev/null and b/samples/split-panes-tests.gnumeric differ
diff --git a/test/Makefile.am b/test/Makefile.am
index 67a7a46..82640c8 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -77,6 +77,8 @@ TESTS =       t1000-statfuns.pl                       \
        t6503-page-setup.pl                     \
        t6504-formula.pl                        \
        t6505-colrow.pl                         \
+       t6506-cell-comments.pl                  \
+       t6507-split-panes.pl                    \
        t7000-goal-seek.pl                      \
        t7100-solver-blend.pl                   \
        t7101-solver-afiro.pl                   \
diff --git a/test/t6507-split-panes.pl b/test/t6507-split-panes.pl
new file mode 100755
index 0000000..7f4ce35
--- /dev/null
+++ b/test/t6507-split-panes.pl
@@ -0,0 +1,42 @@
+#!/usr/bin/perl -w
+# -----------------------------------------------------------------------------
+
+use strict;
+use lib ($0 =~ m|^(.*/)| ? $1 : ".");
+use GnumericTest;
+
+my $file = "$samples/split-panes-tests.gnumeric";
+
+&message ("Check split-panes gnumeric roundtrip.");
+&test_roundtrip ($file,
+                'format' => 'Gnumeric_XmlIO:sax',
+                'ext' => "gnm");
+
+&message ("Check split-panes 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 split-panes xls/BIFF7 roundtrip.");
+&test_roundtrip ($file,
+                'format' => 'Gnumeric_Excel:excel_biff7',
+                'ext' => "xls",
+                'resize' => '16384x256',
+                'filter2' => $xls_codepage_filter);
+
+&message ("Check split-panes xls/BIFF8 roundtrip.");
+&test_roundtrip ($file,
+                'format' => 'Gnumeric_Excel:excel_biff8',
+                'ext' => "xls",
+                'filter2' => $xls_codepage_filter,
+                'ignore_failure' => 1);
+
+&message ("Check split-panes 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]