[gnumeric] t6515: disregard format for conditional format



commit 0c7c154b3520c408765c8980466a23fb616676e2
Author: Morten Welinder <terra gnome org>
Date:   Fri Mar 14 15:33:20 2014 -0400

    t6515: disregard format for conditional format
    
    xls cannot handle it, it seems.

 test/t6515-cond-format.pl |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/test/t6515-cond-format.pl b/test/t6515-cond-format.pl
index 70764a4..ee16852 100755
--- a/test/t6515-cond-format.pl
+++ b/test/t6515-cond-format.pl
@@ -21,11 +21,15 @@ my $file = "$samples/cond-format-tests.gnumeric";
 
 my $xls_codepage_filter = "$PERL -p -e '\$_ = \"\" if m{<meta:user-defined meta:name=.msole:codepage.}'";
 
+# xls/biff cannot handle format in conditional formats.
+my $xls_cond_format_filter = "$PERL -p -e 's{\\s+Format=\"[^\"\"]*\"}{} if m{<gnm:Style .*/>};'";
+
 &message ("Check conditional format xls/BIFF7 roundtrip.");
 &test_roundtrip ($file,
                 'format' => 'Gnumeric_Excel:excel_biff7',
                 'ext' => "xls",
                 'resize' => '16384x256',
+                'filter1' => $xls_cond_format_filter,
                 'filter2' => $xls_codepage_filter,
                 'ignore_failure' => 1);
 
@@ -33,6 +37,7 @@ my $xls_codepage_filter = "$PERL -p -e '\$_ = \"\" if m{<meta:user-defined meta:
 &test_roundtrip ($file,
                 'format' => 'Gnumeric_Excel:excel_biff8',
                 'ext' => "xls",
+                'filter1' => $xls_cond_format_filter,
                 'filter2' => $xls_codepage_filter,
                 'ignore_failure' => 1);
 


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