[gnumeric] Style test: silence biff7 complaints about 45 and -45 degree rotation.



commit f5f35cf9fdf97ba92cd5b736746dad0cff47112e
Author: Morten Welinder <terra gnome org>
Date:   Thu Feb 20 10:23:04 2014 -0500

    Style test: silence biff7 complaints about 45 and -45 degree rotation.
    
    The format cannot handle those.

 test/t6502-styles.pl |    8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/test/t6502-styles.pl b/test/t6502-styles.pl
index 3392958..6b656a4 100755
--- a/test/t6502-styles.pl
+++ b/test/t6502-styles.pl
@@ -18,21 +18,23 @@ my $file = "$samples/style-tests.gnumeric";
                 'ext' => "ods",
                 'filter2' => "$PERL -p -e '\$_ = \"\" if m{<meta:generator>}'");
 
-my $xls_filter = "$PERL -p -e '\$_ = \"\" if m{<meta:user-defined meta:name=.msole:codepage.}'";
+my $xls_codepage_filter = "$PERL -p -e '\$_ = \"\" if m{<meta:user-defined meta:name=.msole:codepage.}'";
+my $xls_rotation_filter = "$PERL -p -e 's{\\b(Rotation)=\"315\"}{\$1=\"270\"}; 
s{\\b(Rotation)=\"45\"}{\$1=\"0\"};'";
 
 &message ("Check style xls/BIFF7 roundtrip.");
 &test_roundtrip ($file,
                 'format' => 'Gnumeric_Excel:excel_biff7',
                 'ext' => "xls",
                 'resize' => '16384x256',
-                'filter2' => $xls_filter,
+                'filter1' => $xls_rotation_filter,
+                'filter2' => $xls_codepage_filter ,
                 'ignore_failure' => 1);
 
 &message ("Check style xls/BIFF8 roundtrip.");
 &test_roundtrip ($file,
                 'format' => 'Gnumeric_Excel:excel_biff8',
                 'ext' => "xls",
-                'filter2' => $xls_filter,
+                'filter2' => $xls_codepage_filter,
                 'ignore_failure' => 1);
 
 &message ("Check style xlsx roundtrip.");


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