From b37680209557f4dece0b25f5a4bf1594ab72194e Mon Sep 17 00:00:00 2001 From: Vincent Hennebert Date: Fri, 18 Apr 2014 19:34:46 +0000 Subject: By default, only the first child of a multi-switch should be laid out Patch by Seifeddine Dridi, applied with minor modifications git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/Temp_WhitespaceManagement@1588548 13f79535-47bb-0310-9956-ffa450edef68 --- .../standard-testcases/multi-switch_basic.xml | 61 +++++++++++++++++++ .../multi-switch_best-fit_forced_page_break.xml | 67 +++++++++++++++++++++ .../multi-switch_best-fit_padding.xml | 70 ++++++++++++++++++++++ 3 files changed, 198 insertions(+) create mode 100644 test/layoutengine/standard-testcases/multi-switch_basic.xml create mode 100644 test/layoutengine/standard-testcases/multi-switch_best-fit_forced_page_break.xml create mode 100644 test/layoutengine/standard-testcases/multi-switch_best-fit_padding.xml (limited to 'test') diff --git a/test/layoutengine/standard-testcases/multi-switch_basic.xml b/test/layoutengine/standard-testcases/multi-switch_basic.xml new file mode 100644 index 000000000..8f00d4179 --- /dev/null +++ b/test/layoutengine/standard-testcases/multi-switch_basic.xml @@ -0,0 +1,61 @@ + + + + + +

+ Test standard fo:multi-switch. +

+
+ + + + + + + + + + Block 1 + + + MS1 multi-case + + + Block 2 + + + MS2 multi-case 1 + + + MS2 multi-case 2 + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/multi-switch_best-fit_forced_page_break.xml b/test/layoutengine/standard-testcases/multi-switch_best-fit_forced_page_break.xml new file mode 100644 index 000000000..6b47dcf32 --- /dev/null +++ b/test/layoutengine/standard-testcases/multi-switch_best-fit_forced_page_break.xml @@ -0,0 +1,67 @@ + + + + + +

+ Test forced page breaks. +

+
+ + + + + + + + + + + Block 1 page 1 + + + MS1 Variant 1 + + + + + + MS2 Variant 1 + + + + Block 2 page 3 + + + MS3 Variant 1 + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/multi-switch_best-fit_padding.xml b/test/layoutengine/standard-testcases/multi-switch_best-fit_padding.xml new file mode 100644 index 000000000..5f11ce57d --- /dev/null +++ b/test/layoutengine/standard-testcases/multi-switch_best-fit_padding.xml @@ -0,0 +1,70 @@ + + + + + +

+ Test padding properties. +

+
+ + + + + + + + + + + + MS1 Variant 1 + + + + + MS2 Variant 1 + + + + + + MS3 Variant 1 + + + + + + + + + + + + + + + + + + + + + + +
-- cgit v1.2.3