[gnumeric] Tests: add test for import/export of selection



commit 5b3c9500925fc84d93c47781800f837143032946
Author: Morten Welinder <terra gnome org>
Date:   Sun Apr 12 14:05:36 2015 -0400

    Tests: add test for import/export of selection

 test/GnumericTest.pm    |    1 +
 test/Makefile.am        |    1 +
 test/t6519-selection.pl |   54 +++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 56 insertions(+), 0 deletions(-)
---
diff --git a/test/GnumericTest.pm b/test/GnumericTest.pm
index 789741c..a54a688 100644
--- a/test/GnumericTest.pm
+++ b/test/GnumericTest.pm
@@ -220,6 +220,7 @@ my @full_corpus =
      "$samples/split-panes-tests.gnumeric",
      "$samples/string-tests.gnumeric",
      "$samples/merge-tests.gnumeric",
+     "$samples/selection-tests.gnumeric",
      "$samples/style-tests.gnumeric",
      "$samples/validation-tests.gnumeric",
     );
diff --git a/test/Makefile.am b/test/Makefile.am
index 0795124..e3b69ed 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -96,6 +96,7 @@ TESTS =       t1000-statfuns.pl                       \
        t6516-graph.pl                          \
        t6517-names.pl                          \
        t6518-objects.pl                        \
+       t6519-selection.pl                      \
        t7000-goal-seek.pl                      \
        t7100-solver-blend.pl                   \
        t7101-solver-afiro.pl                   \
diff --git a/test/t6519-selection.pl b/test/t6519-selection.pl
new file mode 100755
index 0000000..d0aef34
--- /dev/null
+++ b/test/t6519-selection.pl
@@ -0,0 +1,54 @@
+#!/usr/bin/perl -w
+# -----------------------------------------------------------------------------
+
+use strict;
+use lib ($0 =~ m|^(.*/)| ? $1 : ".");
+use GnumericTest;
+
+my $file = "$samples/selection-tests.gnumeric";
+
+if (&subtest ("gnumeric")) {
+    &message ("Check selection gnumeric roundtrip.");
+    &test_roundtrip ($file,
+                    'format' => 'Gnumeric_XmlIO:sax',
+                    'ext' => "gnm");
+}
+
+if (&subtest ("ods")) {
+    &message ("Check selection ods roundtrip.");
+    &test_roundtrip ($file,
+                    'format' => 'Gnumeric_OpenCalc:odf',
+                    'ext' => "ods",
+                    'filter2' => 'std:drop_generator',
+                    'ignore_failure' => 1);
+}
+
+if (&subtest ("biff7")) {
+    &message ("Check selection xls/BIFF7 roundtrip.");
+    &test_roundtrip ($file,
+                    'format' => 'Gnumeric_Excel:excel_biff7',
+                    'ext' => "xls",
+                    'resize' => '16384x256',
+                    'filter2' => 'std:drop_codepage');
+}
+
+if (&subtest ("biff8")) {
+    &message ("Check selection xls/BIFF8 roundtrip.");
+    &test_roundtrip ($file,
+                    'format' => 'Gnumeric_Excel:excel_biff8',
+                    'ext' => "xls",
+                    'filter0' => 'std:noframewidget',
+                    'filter2' => 'std:drop_codepage',
+                    'ignore_failure' => 1);
+}
+
+if (&subtest ("xlsx")) {
+    &message ("Check selection xlsx roundtrip.");
+    &test_roundtrip ($file,
+                    'format' => 'Gnumeric_Excel:xlsx',
+                    'ext' => "xlsx",
+                    'filter0' => 'std:noframewidget',
+                    'filter' => 'std:nocomboasindex',
+                    'resize' => '1048576x16384',
+                    'ignore_failure' => 1);
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]