[gnumeric] Tests: add test for sheet tab colouring.



commit 550e22e26e2a7092dfdda848fa5efbdba111e505
Author: Morten Welinder <terra gnome org>
Date:   Mon Apr 13 15:28:58 2015 -0400

    Tests: add test for sheet tab colouring.

 samples/sheet-tab-tests.gnumeric |  Bin 0 -> 1756 bytes
 test/Makefile.am                 |    1 +
 test/t6520-sheet-tab.pl          |   50 ++++++++++++++++++++++++++++++++++++++
 3 files changed, 51 insertions(+), 0 deletions(-)
---
diff --git a/samples/sheet-tab-tests.gnumeric b/samples/sheet-tab-tests.gnumeric
new file mode 100644
index 0000000..753d11e
Binary files /dev/null and b/samples/sheet-tab-tests.gnumeric differ
diff --git a/test/Makefile.am b/test/Makefile.am
index e3b69ed..b97e416 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -97,6 +97,7 @@ TESTS =       t1000-statfuns.pl                       \
        t6517-names.pl                          \
        t6518-objects.pl                        \
        t6519-selection.pl                      \
+       t6520-sheet-tab.pl                      \
        t7000-goal-seek.pl                      \
        t7100-solver-blend.pl                   \
        t7101-solver-afiro.pl                   \
diff --git a/test/t6520-sheet-tab.pl b/test/t6520-sheet-tab.pl
new file mode 100755
index 0000000..16e8328
--- /dev/null
+++ b/test/t6520-sheet-tab.pl
@@ -0,0 +1,50 @@
+#!/usr/bin/perl -w
+# -----------------------------------------------------------------------------
+
+use strict;
+use lib ($0 =~ m|^(.*/)| ? $1 : ".");
+use GnumericTest;
+
+my $file = "$samples/sheet-tab-tests.gnumeric";
+
+if (&subtest ("gnumeric")) {
+    &message ("Check sheet tab formatting gnumeric roundtrip.");
+    &test_roundtrip ($file,
+                    'format' => 'Gnumeric_XmlIO:sax',
+                    'ext' => "gnm");
+}
+
+if (&subtest ("ods")) {
+    &message ("Check sheet tab formatting ods roundtrip.");
+    &test_roundtrip ($file,
+                    'format' => 'Gnumeric_OpenCalc:odf',
+                    'ext' => "ods",
+                    'filter2' => 'std:drop_generator');
+}
+
+if (&subtest ("biff7")) {
+    &message ("Check sheet tab formatting 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 tab formatting 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 tab formatting 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]