From f883f199b673ab284d45c0b8218c92dcee1b8ba8 Mon Sep 17 00:00:00 2001 From: Jeremias Maerki Date: Mon, 29 Aug 2005 12:01:13 +0000 Subject: Bugzilla #36396: More test cases for background images. Submitted by: Manuel Mall git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@264118 13f79535-47bb-0310-9956-ffa450edef68 --- .../testcases/background-image-list1.xml | 81 ++++++++++++++++ .../testcases/background-image-list2.xml | 81 ++++++++++++++++ .../testcases/background-image-table1.xml | 108 +++++++++++++++++++++ .../testcases/background-image-table2.xml | 107 ++++++++++++++++++++ .../testcases/background-image-table3.xml | 107 ++++++++++++++++++++ .../testcases/background-image-table4.xml | 107 ++++++++++++++++++++ .../testcases/background-image-table5.xml | 107 ++++++++++++++++++++ test/layoutengine/testcases/background-image5.xml | 45 +++++++++ test/layoutengine/testcases/background-image6.xml | 45 +++++++++ test/layoutengine/testcases/background-image7.xml | 45 +++++++++ 10 files changed, 833 insertions(+) create mode 100644 test/layoutengine/testcases/background-image-list1.xml create mode 100644 test/layoutengine/testcases/background-image-list2.xml create mode 100644 test/layoutengine/testcases/background-image-table1.xml create mode 100644 test/layoutengine/testcases/background-image-table2.xml create mode 100644 test/layoutengine/testcases/background-image-table3.xml create mode 100644 test/layoutengine/testcases/background-image-table4.xml create mode 100644 test/layoutengine/testcases/background-image-table5.xml create mode 100644 test/layoutengine/testcases/background-image5.xml create mode 100644 test/layoutengine/testcases/background-image6.xml create mode 100644 test/layoutengine/testcases/background-image7.xml (limited to 'test') diff --git a/test/layoutengine/testcases/background-image-list1.xml b/test/layoutengine/testcases/background-image-list1.xml new file mode 100644 index 000000000..091be019e --- /dev/null +++ b/test/layoutengine/testcases/background-image-list1.xml @@ -0,0 +1,81 @@ + + + + + +

+ This test checks background image on lists (list-item). +

+
+ + ../../resources/images/bgimg300dpi.jpg + + + + + + + + + + + + + + label 1 + + + + body 1: The whole list should have a centered background. + The whole list should have a centered background. + The whole list should have a centered background. + + + + + + label 2 + + + + body 2: The whole list should have a centered background. + The whole list should have a centered background. + The whole list should have a centered background. + + + + + + label 3 + + + + body 3: The whole list should have a centered background. + The whole list should have a centered background. + The whole list should have a centered background. + + + + + + + + + + + +
diff --git a/test/layoutengine/testcases/background-image-list2.xml b/test/layoutengine/testcases/background-image-list2.xml new file mode 100644 index 000000000..687e278b4 --- /dev/null +++ b/test/layoutengine/testcases/background-image-list2.xml @@ -0,0 +1,81 @@ + + + + + +

+ This test checks background image on lists (list-block). +

+
+ + ../../resources/images/bgimg300dpi.jpg + + + + + + + + + + + + + + label 1 + + + + body 1: We should have a background centered within this whole list item. + We should have a background centered within this whole list item. + We should have a background centered within this whole list item. + + + + + + label 2 + + + + body 2: We should have no background on this list item. + We should have no background on this list item. + We should have no background on this list item. + + + + + + label 3 + + + + body 3: The whole list should have a centered background. + The whole list should have a centered background. + The whole list should have a centered background. + + + + + + + + + + + +
diff --git a/test/layoutengine/testcases/background-image-table1.xml b/test/layoutengine/testcases/background-image-table1.xml new file mode 100644 index 000000000..c6b597a94 --- /dev/null +++ b/test/layoutengine/testcases/background-image-table1.xml @@ -0,0 +1,108 @@ + + + + + +

+ This test checks background image on a table. +

+
+ + ../../resources/images/bgimg300dpi.jpg + + + + + + + + + + + + + + + + + + Header Col 1 + + + Header Col 2 + + + Header Col 3 + + + + + + + Row 1 Col 1 + + + Row 1 Col 2 + + + Row 1 Col 3 + + + + + Row 2 Col 1 + + + Row 2 Col 2 + + + Row 2 Col 3 + + + + + Row 3 Col 1 + + + Row 3 Col 2 + + + Row 3 Col 3 + + + + + Row 4 Col 1 + + + Row 4 Col 2 + + + Row 4 Col 3 + + + + + Table with centered background + + + + + + + +
diff --git a/test/layoutengine/testcases/background-image-table2.xml b/test/layoutengine/testcases/background-image-table2.xml new file mode 100644 index 000000000..be87ea653 --- /dev/null +++ b/test/layoutengine/testcases/background-image-table2.xml @@ -0,0 +1,107 @@ + + + + + +

+ This test checks background image on a table. +

+
+ + ../../resources/images/bgimg300dpi.jpg + + + + + + + + + + + + + + + + + + Header Col 1 + + + Header Col 2 + + + Header Col 3 + + + + + + + Row 1 Col 1 + + + Row 1 Col 2 + + + Row 1 Col 3 + + + + + Row 2 Col 1 + + + Row 2 Col 2 + + + Row 2 Col 3 + + + + + Row 3 Col 1 + + + Row 3 Col 2 + + + Row 3 Col 3 + + + + + Row 4 Col 1 + + + Row 4 Col 2 + + + Row 4 Col 3 + + + + + Table with centered body background + + + + + + +
diff --git a/test/layoutengine/testcases/background-image-table3.xml b/test/layoutengine/testcases/background-image-table3.xml new file mode 100644 index 000000000..c6d5e7de0 --- /dev/null +++ b/test/layoutengine/testcases/background-image-table3.xml @@ -0,0 +1,107 @@ + + + + + +

+ This test checks background image on a table. +

+
+ + ../../resources/images/bgimg300dpi.jpg + + + + + + + + + + + + + + + + + + Header Col 1 + + + Header Col 2 + + + Header Col 3 + + + + + + + Row 1 Col 1 + + + Row 1 Col 2 + + + Row 1 Col 3 + + + + + Row 2 Col 1 + + + Row 2 Col 2 + + + Row 2 Col 3 + + + + + Row 3 Col 1 + + + Row 3 Col 2 + + + Row 3 Col 3 + + + + + Row 4 Col 1 + + + Row 4 Col 2 + + + Row 4 Col 3 + + + + + Table with centered row 1 background + + + + + + +
diff --git a/test/layoutengine/testcases/background-image-table4.xml b/test/layoutengine/testcases/background-image-table4.xml new file mode 100644 index 000000000..4c5e7c691 --- /dev/null +++ b/test/layoutengine/testcases/background-image-table4.xml @@ -0,0 +1,107 @@ + + + + + +

+ This test checks background image on a table. +

+
+ + ../../resources/images/bgimg300dpi.jpg + + + + + + + + + + + + + + + + + + Header Col 1 + + + Header Col 2 + + + Header Col 3 + + + + + + + Row 1 Col 1 + + + Row 1 Col 2 + + + Row 1 Col 3 + + + + + Row 2 Col 1 + + + Row 2 Col 2 + + + Row 2 Col 3 + + + + + Row 3 Col 1 + + + Row 3 Col 2 + + + Row 3 Col 3 + + + + + Row 4 Col 1 + + + Row 4 Col 2 + + + Row 4 Col 3 + + + + + Table with centered row 1 col 1 background + + + + + + +
diff --git a/test/layoutengine/testcases/background-image-table5.xml b/test/layoutengine/testcases/background-image-table5.xml new file mode 100644 index 000000000..b4bd72372 --- /dev/null +++ b/test/layoutengine/testcases/background-image-table5.xml @@ -0,0 +1,107 @@ + + + + + +

+ This test checks background image on a table. +

+
+ + ../../resources/images/bgimg300dpi.jpg + + + + + + + + + + + + + + + + + + Header Col 1 + + + Header Col 2 + + + Header Col 3 + + + + + + + Row 1 Col 1 + + + Row 1 Col 2 + + + Row 1 Col 3 + + + + + Row 2 Col 1 + + + Row 2 Col 2 + + + Row 2 Col 3 + + + + + Row 3 Col 1 + + + Row 3 Col 2 + + + Row 3 Col 3 + + + + + Row 4 Col 1 + + + Row 4 Col 2 + + + Row 4 Col 3 + + + + + Table with centered header background + + + + + + +
diff --git a/test/layoutengine/testcases/background-image5.xml b/test/layoutengine/testcases/background-image5.xml new file mode 100644 index 000000000..353f36fb9 --- /dev/null +++ b/test/layoutengine/testcases/background-image5.xml @@ -0,0 +1,45 @@ + + + + + +

+ This test checks background image on a fo:basic-link. +

+
+ + ../../resources/images/bgimg300dpi.jpg + + + + + + + + + + + + Why is FOP so cool? + + + + + + + +
diff --git a/test/layoutengine/testcases/background-image6.xml b/test/layoutengine/testcases/background-image6.xml new file mode 100644 index 000000000..d71072076 --- /dev/null +++ b/test/layoutengine/testcases/background-image6.xml @@ -0,0 +1,45 @@ + + + + + +

+ This test checks background image on a character. +

+
+ + ../../resources/images/bgimg300dpi.jpg + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/testcases/background-image7.xml b/test/layoutengine/testcases/background-image7.xml new file mode 100644 index 000000000..0e8d0d210 --- /dev/null +++ b/test/layoutengine/testcases/background-image7.xml @@ -0,0 +1,45 @@ + + + + + +

+ This test checks background image on a fo:basic-link. +

+
+ + ../../resources/images/bgimg300dpi.jpg + + + + + + + + + + + + Why is FOP so cool? + + + + + + + +
-- cgit v1.2.3