Commit 4cce6cc0 authored by Morten Welinder's avatar Morten Welinder

tests: add tests for combo and list objects.

parent 88c273ae
...@@ -427,6 +427,8 @@ my $supersub_filter = "$PERL -p -e 's{\\[superscript=1:(\\d+):(\\d+)\\]\\[subscr ...@@ -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 $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 { sub normalize_filter {
my ($f) = @_; my ($f) = @_;
return 'cat' unless defined $f; return 'cat' unless defined $f;
...@@ -437,6 +439,7 @@ sub normalize_filter { ...@@ -437,6 +439,7 @@ sub normalize_filter {
$f =~ s/\bstd:no_rich_comment\b/$no_rich_comment_filter/; $f =~ s/\bstd:no_rich_comment\b/$no_rich_comment_filter/;
$f =~ s/\bstd:supersub\b/$supersub_filter/; $f =~ s/\bstd:supersub\b/$supersub_filter/;
$f =~ s/\bstd:noframewidget\b/$noframe_filter/; $f =~ s/\bstd:noframewidget\b/$noframe_filter/;
$f =~ s/\bstd:nocomboasindex\b/$noasindex_filter/;
return $f; return $f;
} }
......
...@@ -51,6 +51,7 @@ if (&subtest ("xlsx")) { ...@@ -51,6 +51,7 @@ if (&subtest ("xlsx")) {
'format' => 'Gnumeric_Excel:xlsx', 'format' => 'Gnumeric_Excel:xlsx',
'ext' => "xlsx", 'ext' => "xlsx",
'filter0' => 'std:noframewidget', 'filter0' => 'std:noframewidget',
'filter' => 'std:nocomboasindex',
'resize' => '1048576x16384', 'resize' => '1048576x16384',
'ignore_failure' => 1); 'ignore_failure' => 1);
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment