[gnumeric] tests: add tests for combo and list objects.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] tests: add tests for combo and list objects.
- Date: Wed, 25 Feb 2015 16:12:39 +0000 (UTC)
commit 4cce6cc066045b093f7b30600195d5cff4d94b08
Author: Morten Welinder <terra gnome org>
Date: Wed Feb 25 11:12:23 2015 -0500
tests: add tests for combo and list objects.
samples/object-tests.gnumeric | Bin 5533 -> 5828 bytes
test/GnumericTest.pm | 3 +++
test/t6518-objects.pl | 1 +
3 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/samples/object-tests.gnumeric b/samples/object-tests.gnumeric
index ca5854b..e9a1cb4 100644
Binary files a/samples/object-tests.gnumeric and b/samples/object-tests.gnumeric differ
diff --git a/test/GnumericTest.pm b/test/GnumericTest.pm
index 0b17705..a0b916c 100644
--- a/test/GnumericTest.pm
+++ b/test/GnumericTest.pm
@@ -427,6 +427,8 @@ my $supersub_filter = "$PERL -p -e 's{\\[superscript=1:(\\d+):(\\d+)\\]\\[subscr
my $noframe_filter = "$PERL -p -e '\$_ = \"\" if m{<gnm:SheetWidgetFrame .*/>}'";
+my $noasindex_filter = "$PERL -p -e 'if (/gnm:SheetWidget(List|Combo)/) { s{(
OutputAsIndex=)\"\\d+\"}{\$1\"0\"}; }'";
+
sub normalize_filter {
my ($f) = @_;
return 'cat' unless defined $f;
@@ -437,6 +439,7 @@ sub normalize_filter {
$f =~ s/\bstd:no_rich_comment\b/$no_rich_comment_filter/;
$f =~ s/\bstd:supersub\b/$supersub_filter/;
$f =~ s/\bstd:noframewidget\b/$noframe_filter/;
+ $f =~ s/\bstd:nocomboasindex\b/$noasindex_filter/;
return $f;
}
diff --git a/test/t6518-objects.pl b/test/t6518-objects.pl
index 63b4218..e76f820 100755
--- a/test/t6518-objects.pl
+++ b/test/t6518-objects.pl
@@ -51,6 +51,7 @@ if (&subtest ("xlsx")) {
'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]