From 1955f62a143940cb36e2db4e1aeae98321b2046d Mon Sep 17 00:00:00 2001 From: Christian Geisert Date: Thu, 4 Aug 2005 09:47:44 +0000 Subject: [PATCH] Testcases for word-spacing Submitted by: Manuel Mall , see Bugzilla #36010 git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@227334 13f79535-47bb-0310-9956-ffa450edef68 --- test/layoutengine/testcases/word-spacing1.xml | 59 +++++++++++++++++++ test/layoutengine/testcases/word-spacing2.xml | 59 +++++++++++++++++++ test/layoutengine/testcases/word-spacing3.xml | 58 ++++++++++++++++++ test/layoutengine/testcases/word-spacing4.xml | 58 ++++++++++++++++++ 4 files changed, 234 insertions(+) create mode 100644 test/layoutengine/testcases/word-spacing1.xml create mode 100644 test/layoutengine/testcases/word-spacing2.xml create mode 100644 test/layoutengine/testcases/word-spacing3.xml create mode 100644 test/layoutengine/testcases/word-spacing4.xml diff --git a/test/layoutengine/testcases/word-spacing1.xml b/test/layoutengine/testcases/word-spacing1.xml new file mode 100644 index 000000000..271c8630a --- /dev/null +++ b/test/layoutengine/testcases/word-spacing1.xml @@ -0,0 +1,59 @@ + + + + + +

+ This test checks block level word-spacing. +

+
+ + + + + + + + + + Next block has no word-spacing property: + Default space between words is defined to be the inline-progression-dimension + of the glyph-area obtained by formatting the current fo:character whose + treat-as-word-space trait has the value "true". + Next block has word-spacing="normal": + Default space between words is defined to be the inline-progression-dimension + of the glyph-area obtained by formatting the current fo:character whose + treat-as-word-space trait has the value "true". + Next block has word-spacing="0pt": + Default space between words is defined to be the inline-progression-dimension + of the glyph-area obtained by formatting the current fo:character whose + treat-as-word-space trait has the value "true". + Next block has word-spacing="-2pt": + Default space between words is defined to be the inline-progression-dimension + of the glyph-area obtained by formatting the current fo:character whose + treat-as-word-space trait has the value "true". + Next block has word-spacing.optimum="6pt" word-spacing.minimum="3pt" word-spacing.maximum="12pt": + Default space between words is defined to be the inline-progression-dimension + of the glyph-area obtained by formatting the current fo:character whose + treat-as-word-space trait has the value "true". + + + + + + +
diff --git a/test/layoutengine/testcases/word-spacing2.xml b/test/layoutengine/testcases/word-spacing2.xml new file mode 100644 index 000000000..84ea2279e --- /dev/null +++ b/test/layoutengine/testcases/word-spacing2.xml @@ -0,0 +1,59 @@ + + + + + +

+ This test checks block level word-spacing on justified blocks. +

+
+ + + + + + + + + + Next block has no word-spacing property: + Default space between words is defined to be the inline-progression-dimension + of the glyph-area obtained by formatting the current fo:character whose + treat-as-word-space trait has the value "true". + Next block has word-spacing="normal": + Default space between words is defined to be the inline-progression-dimension + of the glyph-area obtained by formatting the current fo:character whose + treat-as-word-space trait has the value "true". + Next block has word-spacing="0pt": + Default space between words is defined to be the inline-progression-dimension + of the glyph-area obtained by formatting the current fo:character whose + treat-as-word-space trait has the value "true". + Next block has word-spacing="-2pt": + Default space between words is defined to be the inline-progression-dimension + of the glyph-area obtained by formatting the current fo:character whose + treat-as-word-space trait has the value "true". + Next block has word-spacing.optimum="6pt" word-spacing.minimum="3pt" word-spacing.maximum="12pt": + Default space between words is defined to be the inline-progression-dimension + of the glyph-area obtained by formatting the current fo:character whose + treat-as-word-space trait has the value "true". + + + + + + +
diff --git a/test/layoutengine/testcases/word-spacing3.xml b/test/layoutengine/testcases/word-spacing3.xml new file mode 100644 index 000000000..02e48cb22 --- /dev/null +++ b/test/layoutengine/testcases/word-spacing3.xml @@ -0,0 +1,58 @@ + + + + + +

+ This test checks inline level word-spacing. +

+
+ + + + + + + + + + In all the following tests the <fo:inline> is wrappped around the + first and last words of the block and this section of text: + of the glyph-area obtained by formatting the current fo:character whose + Next block inlines have word-spacing="normal": + Default space between words is defined to be the inline-progression-dimension + of the glyph-area obtained by formatting the current fo:character whose + treat-as-word-space trait has the value "true". + Next block inlines have word-spacing="0pt": + Default space between words is defined to be the inline-progression-dimension + of the glyph-area obtained by formatting the current fo:character whose + treat-as-word-space trait has the value "true". + Next block inlines have word-spacing="-2pt": + Default space between words is defined to be the inline-progression-dimension + of the glyph-area obtained by formatting the current fo:character whose + treat-as-word-space trait has the value "true". + Next block inlines have word-spacing.optimum="6pt" word-spacing.minimum="3pt" word-spacing.maximum="12pt": + Default space between words is defined to be the inline-progression-dimension + of the glyph-area obtained by formatting the current fo:character whose + treat-as-word-space trait has the value "true". + + + + + + +
diff --git a/test/layoutengine/testcases/word-spacing4.xml b/test/layoutengine/testcases/word-spacing4.xml new file mode 100644 index 000000000..4218d54f1 --- /dev/null +++ b/test/layoutengine/testcases/word-spacing4.xml @@ -0,0 +1,58 @@ + + + + + +

+ This test checks inline level word-spacing in justified blocks. +

+
+ + + + + + + + + + In all the following tests the <fo:inline> is wrappped around the + first and last words of the block and this section of text: + of the glyph-area obtained by formatting the current fo:character whose + Next block inlines have word-spacing="normal": + Default space between words is defined to be the inline-progression-dimension + of the glyph-area obtained by formatting the current fo:character whose + treat-as-word-space trait has the value "true". + Next block inlines have word-spacing="0pt": + Default space between words is defined to be the inline-progression-dimension + of the glyph-area obtained by formatting the current fo:character whose + treat-as-word-space trait has the value "true". + Next block inlines have word-spacing="-2pt": + Default space between words is defined to be the inline-progression-dimension + of the glyph-area obtained by formatting the current fo:character whose + treat-as-word-space trait has the value "true". + Next block inlines have word-spacing.optimum="6pt" word-spacing.minimum="3pt" word-spacing.maximum="12pt": + Default space between words is defined to be the inline-progression-dimension + of the glyph-area obtained by formatting the current fo:character whose + treat-as-word-space trait has the value "true". + + + + + + +
-- 2.39.5