From 6f01fbd0f9ddeef6669b6b4850cb632772e6bdfb Mon Sep 17 00:00:00 2001 From: Vincent Hennebert Date: Fri, 2 Nov 2007 11:01:41 +0000 Subject: Reworked the creation of implicit columns to match new behaviour: the number of columns of a table without explicit fo:table-column is set by the row that has the most columns. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@591299 13f79535-47bb-0310-9956-ffa450edef68 --- .../table/implicit_columns_column-number.fo | 240 +++++++++++++++++++++ 1 file changed, 240 insertions(+) create mode 100644 test/fotree/unittests/table/implicit_columns_column-number.fo (limited to 'test/fotree') diff --git a/test/fotree/unittests/table/implicit_columns_column-number.fo b/test/fotree/unittests/table/implicit_columns_column-number.fo new file mode 100644 index 000000000..9a0699477 --- /dev/null +++ b/test/fotree/unittests/table/implicit_columns_column-number.fo @@ -0,0 +1,240 @@ + + + + + + + + + + + + Checking that the number of columns is correctly computed + for tables without explicit fo:table-column. + + Number of columns determined by the header’s + first row. + + + Header 1.1 + Header 1.2 + Header 2.1 + + + Footer 1.1 + + + Cell 1.1 + Cell 2.1 + + + + Number of columns determined by the header’s + second row. + + + + Header 1.1 + + + Header 2.1 + Header 2.2 + + + + + Footer 1.1 + + + + + Cell 1.1 + + + Cell 2.1 + + + + + Number of columns determined by the footer’s + first row. + + + + Header 1.1 + + + Header 2.1 + + + + + Footer 1.1 + Footer 1.2 + + + Footer 2.1 + + + + + Cell 1.1 + + + Cell 2.1 + + + + + Number of columns determined by the footer’s + second row. + + + Header 1.1 + + + Footer 1.1 + Footer 2.2 + + + Cell 1.1 + Cell 2.1 + + + + Number of columns determined by the body’s + first row. + + + + Header 1.1 + Header 1.2 + + + Header 2.1 + Header 2.2 + + + + + Footer 1.1 + Footer 1.2 + + + Footer 2.1 + + + + + Cell 1.1 + Cell 1.2 + Cell 1.3 + + + Cell 2.1 + Cell 2.2 + + + + + Number of columns determined by the body’s + not first row. + + + Header 1.1 + Header 1.2 + Header 2.1 + Header 2.2 + + + Footer 1.1 + Footer 1.2 + Footer 2.1 + + + Cell 1.1 + Cell 1.2 + Cell 2.1 + Cell 2.2 + Cell 3.1 + Cell 3.2 + + + + Number of columns determined by the second + body. + + + + Header 1.1 + Header 1.2 + + + Header 2.2 + + + + + Footer 1.1 + + + Footer 2.1 + Footer 2.2 + + + + Cell 1.1 + Cell 1.2 + Cell 2.1 + Cell 2.2 + Cell 3.1 + Cell 3.2 + + + + Cell 1.1 + Cell 1.2 + + + Cell 2.1 + Cell 2.2 + + + Cell 3.3 + Cell 3.1 + Cell 3.2 + + + + + + + -- cgit v1.2.3