[gnumeric] Tests: add test for style roundtrip.



commit 776c56db09b86d2b9b34bfe32431c4ebec686fd9
Author: Morten Welinder <terra gnome org>
Date:   Wed Feb 19 18:15:53 2014 -0500

    Tests: add test for style roundtrip.
    
    Only colours so far.

 samples/style-tests.gnumeric |  Bin 0 -> 2418 bytes
 test/Makefile.am             |    1 +
 test/t6502-styles.pl         |   23 +++++++++++++++++++++++
 3 files changed, 24 insertions(+), 0 deletions(-)
---
diff --git a/samples/style-tests.gnumeric b/samples/style-tests.gnumeric
new file mode 100644
index 0000000..55596d8
Binary files /dev/null and b/samples/style-tests.gnumeric differ
diff --git a/test/Makefile.am b/test/Makefile.am
index 01c6737..40b9564 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -73,6 +73,7 @@ TESTS =       t1000-statfuns.pl                       \
        t6104-finfuns-ods.pl                    \
        t6500-strings.pl                        \
        t6501-numbers.pl                        \
+       t6501-style.pl                          \
        t7000-goal-seek.pl                      \
        t7100-solver-blend.pl                   \
        t7101-solver-afiro.pl                   \
diff --git a/test/t6502-styles.pl b/test/t6502-styles.pl
new file mode 100755
index 0000000..f2c8cf2
--- /dev/null
+++ b/test/t6502-styles.pl
@@ -0,0 +1,23 @@
+#!/usr/bin/perl -w
+# -----------------------------------------------------------------------------
+
+use strict;
+use lib ($0 =~ m|^(.*/)| ? $1 : ".");
+use GnumericTest;
+
+my $file = "$samples/style-tests.gnumeric";
+
+&message ("Check style gnumeric roundtrip.");
+&test_roundtrip ($file, 'Gnumeric_XmlIO:sax', "gnm");
+
+&message ("Check style ods roundtrip.");
+&test_roundtrip ($file, 'Gnumeric_OpenCalc:odf', "ods");
+
+&message ("Check style xls/BIFF7 roundtrip.");
+&test_roundtrip ($file, 'Gnumeric_Excel:excel_biff7', "xls", '16384x256');
+
+&message ("Check style xls/BIFF8 roundtrip.");
+&test_roundtrip ($file, 'Gnumeric_Excel:excel_biff8', "xls");
+
+&message ("Check style xlsx roundtrip.");
+&test_roundtrip ($file, 'Gnumeric_Excel:xlsx', "xlsx", '1048576x16384');


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