[gnumeric] t6514: ignore xls differences for super+sub at the same time



commit e5a7b8eebc3e875b6f8b4af8850fc54993e0f20e
Author: Morten Welinder <terra gnome org>
Date:   Sat Mar 22 11:49:06 2014 -0400

    t6514: ignore xls differences for super+sub at the same time

 test/t6514-rich-text.pl |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/test/t6514-rich-text.pl b/test/t6514-rich-text.pl
index bd16ad2..8e1a649 100755
--- a/test/t6514-rich-text.pl
+++ b/test/t6514-rich-text.pl
@@ -23,11 +23,15 @@ my $file = "$samples/rich-text-tests.gnumeric";
 
 my $xls_codepage_filter = "$PERL -p -e '\$_ = \"\" if m{<meta:user-defined meta:name=.msole:codepage.}'";
 
+# xls cannot have superscript and subscript at the same time
+my $xls_supersub_filter = "$PERL -p -e 
's{\\[superscript=1:3:5\\]\\[subscript=1:4:5\\]}{[superscript=1:3:4][subscript=1:4:5]};'";
+
 &message ("Check rich text xls/BIFF7 roundtrip.");
 &test_roundtrip ($file,
                 'format' => 'Gnumeric_Excel:excel_biff7',
                 'ext' => "xls",
                 'resize' => '16384x256',
+                'filter1' => $xls_supersub_filter,
                 'filter2' => $xls_codepage_filter,
                 'ignore_failure' => 1);
 
@@ -35,6 +39,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_supersub_filter,
                 'filter2' => $xls_codepage_filter,
                 'ignore_failure' => 1);
 


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