From ecac9f5b1c180f7abb13b3185c9d0c5043982bd2 Mon Sep 17 00:00:00 2001 From: Manuel Mall Date: Thu, 10 Nov 2005 13:31:39 +0000 Subject: [PATCH] Separated JUnit layout tests such that the majority are still run even if no hyphenation support present git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@332290 13f79535-47bb-0310-9956-ffa450edef68 --- .../basic-link_background-image.xml | 48 +++ .../block-container_absolute-position.xml | 95 +++++ ...ainer_absolute-position_border_padding.xml | 138 ++++++ ...tainer_absolute-position_display-align.xml | 145 +++++++ ...lock-container_absolute-position_fixed.xml | 80 ++++ ...-container_absolute-position_no-height.xml | 62 +++ ...k-container_absolute-position_overflow.xml | 57 +++ ...bsolute-position_reference-orientation.xml | 128 ++++++ ...und-image_background-position-relative.xml | 117 +++++ ...ner_background-image_background-repeat.xml | 66 +++ .../block-container_borders.xml | 145 +++++++ ...k-container_display-align_space-before.xml | 128 ++++++ .../block-container_padding_percentages.xml | 53 +++ .../block-container_page-breaking.xml | 65 +++ .../block-container_reference-orientation.xml | 171 ++++++++ ...ntainer_reference-orientation_bug36391.xml | 106 +++++ ...k-container_space-before_space-after_1.xml | 160 +++++++ ...k-container_space-before_space-after_2.xml | 93 ++++ ...k-container_space-before_space-after_3.xml | 126 ++++++ .../block-container_start-indent.xml | 73 ++++ .../block-container_width_height.xml | 124 ++++++ .../standard-testcases/block-level_id.xml | 101 +++++ .../standard-testcases/block_basic_1.xml | 52 +++ .../standard-testcases/block_basic_2.xml | 79 ++++ .../standard-testcases/block_border-style.xml | 137 ++++++ .../standard-testcases/block_border.xml | 105 +++++ .../block_border_padding.xml | 154 +++++++ .../block_border_shorthands.xml | 128 ++++++ .../standard-testcases/block_break-after.xml | 65 +++ .../standard-testcases/block_break-before.xml | 65 +++ .../standard-testcases/block_font-family.xml | 51 +++ .../block_font-size_absolute.xml | 109 +++++ .../block_font-size_percentage.xml | 174 ++++++++ .../block_font-size_relative.xml | 186 ++++++++ .../standard-testcases/block_font-stretch.xml | 55 +++ .../standard-testcases/block_font-style.xml | 79 ++++ .../standard-testcases/block_font-weight.xml | 121 ++++++ .../block_keep-together.xml | 143 +++++++ .../block_keep-with-next.xml | 95 +++++ .../block_keep-with-next_nested.xml | 65 +++ .../block_keep-with-previous.xml | 95 +++++ .../block_keep-with-previous_nested.xml | 55 +++ .../block_letter-spacing.xml | 64 +++ ...lock_letter-spacing_text-align_justify.xml | 70 +++ .../standard-testcases/block_line-height.xml | 123 ++++++ .../block_line-stacking-strategy_1.xml | 164 ++++++++ .../block_linefeed-treatment.xml | 80 ++++ .../standard-testcases/block_margin.xml | 74 ++++ .../block_margin_inherit.xml | 76 ++++ .../block_margin_percentages.xml | 76 ++++ .../block_margin_shorthands.xml | 94 +++++ .../standard-testcases/block_padding.xml | 103 +++++ .../standard-testcases/block_padding_2.xml | 105 +++++ .../block_padding_percentages.xml | 53 +++ .../block_padding_shorthands.xml | 83 ++++ .../block_space-before_space-after_1.xml | 75 ++++ .../block_space-before_space-after_2.xml | 156 +++++++ .../block_space-before_space-after_3.xml | 55 +++ .../block_space-before_space-after_4.xml | 83 ++++ .../block_space-before_space-after_5.xml | 96 +++++ .../block_space-before_space-after_6.xml | 92 ++++ .../block_space-before_space-after_7.xml | 56 +++ .../block_space-before_space-after_8.xml | 49 +++ .../block_space-before_space-after_9.xml | 69 +++ .../block_space-before_space-after_9a.xml | 90 ++++ .../block_start-indent_end-indent.xml | 55 +++ .../standard-testcases/block_text-align_1.xml | 123 ++++++ .../standard-testcases/block_text-align_2.xml | 51 +++ .../standard-testcases/block_text-indent.xml | 95 +++++ .../block_white-space-collapse_1.xml | 151 +++++++ .../block_white-space-collapse_2.xml | 111 +++++ .../block_white-space-treatment_1.xml | 85 ++++ .../block_white-space-treatment_2.xml | 85 ++++ .../block_white-space_1.xml | 68 +++ .../standard-testcases/block_word-spacing.xml | 59 +++ .../block_word-spacing_text-align_justify.xml | 59 +++ .../standard-testcases/block_wrap-option.xml | 57 +++ .../character_background-color.xml | 43 ++ .../character_background-image.xml | 48 +++ .../character_border_padding.xml | 98 +++++ .../character_vertical-align.xml | 59 +++ .../external-graphic_basic.xml | 50 +++ .../external-graphic_bmp.xml | 56 +++ .../external-graphic_border_padding.xml | 81 ++++ ...l-graphic_content-height_content-width.xml | 49 +++ .../external-graphic_display-align.xml | 85 ++++ .../external-graphic_emf.xml | 48 +++ .../external-graphic_eps.xml | 48 +++ .../external-graphic_gif.xml | 48 +++ .../external-graphic_jpeg.xml | 56 +++ .../external-graphic_overflow_hidden.xml | 62 +++ .../external-graphic_oversized.xml | 52 +++ .../external-graphic_png.xml | 57 +++ .../external-graphic_src_uri.xml | 82 ++++ .../external-graphic_svg.xml | 81 ++++ .../external-graphic_tiff.xml | 64 +++ .../standard-testcases/footnote_basic.xml | 80 ++++ .../footnote_footnote-separator.xml | 111 +++++ .../standard-testcases/footnote_large.xml | 158 +++++++ .../footnote_overflow-to-empty-page.xml | 81 ++++ .../footnote_overflow-to-multiple-pages.xml | 105 +++++ .../footnote_positioning_1.xml | 97 +++++ .../footnote_positioning_2.xml | 104 +++++ .../footnote_positioning_3.xml | 111 +++++ .../footnote_positioning_4.xml | 127 ++++++ .../footnote_positioning_5.xml | 137 ++++++ .../footnote_space-resolution.xml | 58 +++ .../inline-block_keep-together.xml | 62 +++ .../inline-container_block_nested.xml | 64 +++ .../inline-container_border_padding.xml | 85 ++++ .../standard-testcases/inline-level_id.xml | 79 ++++ .../inline_alignment-adjust_1.xml | 91 ++++ .../inline_alignment-adjust_2.xml | 98 +++++ .../inline_alignment-baseline_1.xml | 91 ++++ .../inline_alignment-baseline_2.xml | 116 +++++ .../inline_alignment-baseline_3.xml | 91 ++++ .../inline_alignment-baseline_4.xml | 231 ++++++++++ .../inline_background-color.xml | 132 ++++++ .../inline_background-image.xml | 48 +++ .../inline_baseline-shift_1.xml | 164 ++++++++ .../inline_baseline-shift_2.xml | 172 ++++++++ .../inline_baseline-shift_3.xml | 210 +++++++++ .../inline_baseline-shift_4.xml | 184 ++++++++ .../inline_block_nested_1.xml | 48 +++ .../inline_block_nested_2.xml | 99 +++++ .../inline_block_nested_3.xml | 89 ++++ .../inline_block_nested_4.xml | 93 ++++ .../inline_block_nested_bug36248.xml | 59 +++ .../inline_border_padding.xml | 140 ++++++ .../inline_border_padding_block_nested_1.xml | 126 ++++++ .../inline_border_padding_block_nested_2.xml | 168 ++++++++ ...inline_border_padding_conditionality_1.xml | 398 ++++++++++++++++++ ...inline_border_padding_conditionality_2.xml | 311 ++++++++++++++ .../inline_dominant-baseline_1.xml | 128 ++++++ .../inline_dominant-baseline_2.xml | 128 ++++++ .../inline_dominant-baseline_3.xml | 115 +++++ .../inline_letter-spacing.xml | 58 +++ .../inline_vertical-align_1.xml | 148 +++++++ .../inline_vertical-align_2.xml | 121 ++++++ .../inline_word-spacing.xml | 58 +++ ...inline_word-spacing_text-align_justify.xml | 58 +++ .../instream-foreign-object_basic.xml | 56 +++ ...instream-foreign-object_border_padding.xml | 95 +++++ .../instream-foreign-object_display-align.xml | 120 ++++++ .../standard-testcases/leader-alignment.xml | 67 +++ .../leader_alignment-baseline.xml | 170 ++++++++ .../leader_background-color.xml | 81 ++++ .../leader_border_padding.xml | 256 +++++++++++ .../leader_leader-pattern_dots.xml | 90 ++++ .../leader_leader-pattern_rule.xml | 176 ++++++++ .../leader_leader-pattern_space.xml | 60 +++ .../leader_leader-pattern_use-content.xml | 130 ++++++ .../standard-testcases/leader_toc.xml | 153 +++++++ .../list-block_background-image.xml | 83 ++++ .../standard-testcases/list-block_basic.xml | 163 +++++++ .../list-block_border_padding.xml | 189 +++++++++ .../list-block_keep-together.xml | 134 ++++++ .../list-block_keep-with-next.xml | 106 +++++ .../list-block_keep-with-previous.xml | 135 ++++++ .../list-block_padding_percentages.xml | 75 ++++ .../list-block_simple-page-master_margin.xml | 65 +++ .../list-block_space-before_space-after_1.xml | 221 ++++++++++ .../list-block_space-before_space-after_2.xml | 114 +++++ .../list-item_background-image.xml | 83 ++++ .../list-item_block_keep-with-next.xml | 108 +++++ .../list-item_block_keep-with-previous.xml | 108 +++++ .../list-item_padding_percentages.xml | 78 ++++ .../list-item_space-before_space-after_1.xml | 114 +++++ .../list-item_space-before_space-after_2.xml | 126 ++++++ .../list-item_space-before_space-after_3.xml | 73 ++++ .../standard-testcases/markers_1.xml | 105 +++++ .../standard-testcases/markers_2.xml | 125 ++++++ .../standard-testcases/markers_3.xml | 138 ++++++ .../standard-testcases/markers_4.xml | 99 +++++ .../standard-testcases/markers_5a.xml | 97 +++++ .../standard-testcases/markers_5b.xml | 159 +++++++ .../standard-testcases/markers_5c.xml | 96 +++++ .../standard-testcases/markers_5d.xml | 140 ++++++ .../standard-testcases/markers_6a.xml | 256 +++++++++++ .../standard-testcases/markers_6b.xml | 299 +++++++++++++ .../standard-testcases/markers_7.xml | 340 +++++++++++++++ .../standard-testcases/markers_8.xml | 146 +++++++ .../standard-testcases/markers_9.xml | 219 ++++++++++ .../standard-testcases/page-breaking_1.xml | 87 ++++ .../standard-testcases/page-breaking_2.xml | 54 +++ .../standard-testcases/page-breaking_3.xml | 56 +++ .../standard-testcases/page-breaking_4.xml | 64 +++ .../standard-testcases/page-breaking_4a.xml | 62 +++ .../standard-testcases/page-breaking_5.xml | 61 +++ .../standard-testcases/page-breaking_6.xml | 61 +++ .../page-height_indefinite_simple.xml | 52 +++ .../page-number-citation_background-color.xml | 43 ++ .../page-number-citation_background-image.xml | 49 +++ .../page-number-citation_basic.xml | 73 ++++ .../page-number-citation_border_padding.xml | 98 +++++ .../page-number-citation_complex_1.xml | 113 +++++ .../page-number-citation_complex_2.xml | 89 ++++ .../page-number-citation_vertical-align.xml | 59 +++ .../page-number_background-color.xml | 43 ++ .../page-number_background-image.xml | 48 +++ .../standard-testcases/page-number_basic.xml | 68 +++ .../page-number_border_padding.xml | 98 +++++ .../page-number_initial-page-number_1.xml | 68 +++ .../page-number_initial-page-number_2.xml | 53 +++ .../page-number_vertical-align.xml | 59 +++ .../page-production_empty_block_only.xml | 54 +++ .../region-body_background-image.xml | 51 +++ .../region-body_column-count_1.xml | 83 ++++ .../region-body_column-count_2.xml | 98 +++++ .../region-body_column-count_bug36356.xml | 59 +++ .../region-body_column-count_footnote.xml | 67 +++ .../region-body_column-count_span_1.xml | 112 +++++ .../region-body_column-count_span_2.xml | 103 +++++ .../region_side_space-resolution.xml | 63 +++ .../simple-page-master_margin_1.xml | 106 +++++ .../simple-page-master_margin_2.xml | 100 +++++ ...ter_margin_region-body_margin_relative.xml | 106 +++++ ...mple-page-master_reference-orientation.xml | 75 ++++ ...entation_0_region-body_margin_relative.xml | 111 +++++ ...ng-mode_rl_region-body_margin_relative.xml | 112 +++++ ...tation_180_region-body_margin_relative.xml | 112 +++++ ...ng-mode_rl_region-body_margin_relative.xml | 112 +++++ ...tation_270_region-body_margin_relative.xml | 112 +++++ ...ng-mode_rl_region-body_margin_relative.xml | 112 +++++ ...ntation_90_region-body_margin_relative.xml | 112 +++++ ...ng-mode_rl_region-body_margin_relative.xml | 112 +++++ .../simple-page-master_regions.xml | 114 +++++ ...ng-mode_rl_region-body_writing-mode-lr.xml | 113 +++++ .../table-body_background-image.xml | 109 +++++ .../standard-testcases/table-body_basic_1.xml | 86 ++++ .../standard-testcases/table-body_basic_2.xml | 75 ++++ .../table-border-separate3.xml | 80 ++++ .../table-cell_background-image.xml | 130 ++++++ .../table-cell_block_break-before.xml | 73 ++++ .../table-cell_block_keep-with-next.xml | 84 ++++ .../table-cell_block_keep-with-previous.xml | 84 ++++ .../table-cell_block_margin_percentage.xml | 81 ++++ ...ble-cell_border_padding_conditionality.xml | 128 ++++++ .../table-cell_column-number.xml | 120 ++++++ .../table-cell_display-align.xml | 99 +++++ .../table-cell_display-align_page-break.xml | 86 ++++ .../standard-testcases/table-cell_height.xml | 169 ++++++++ .../table-cell_height_page-break.xml | 87 ++++ .../table-cell_number-columns-spanned.xml | 114 +++++ .../table-cell_number-rows-spanned.xml | 99 +++++ .../table-cell_padding_percentages.xml | 64 +++ .../table-cell_starts-row_ends-row.xml | 126 ++++++ .../table-cell_various-combinations.xml | 137 ++++++ .../table-column_column-number.xml | 71 ++++ .../table-column_column-width.xml | 95 +++++ ...column-width_proportional-column-width.xml | 98 +++++ .../table-column_first-row-width.xml | 70 +++ .../table-footer_omit-footer-at-break.xml | 130 ++++++ .../table-header_background-image.xml | 100 +++++ .../table-header_omit-header-at-break.xml | 128 ++++++ .../table-header_table-footer_1.xml | 111 +++++ .../table-header_table-footer_2.xml | 135 ++++++ .../table-row_background-image.xml | 88 ++++ .../table-row_break-before.xml | 63 +++ .../table-row_break-before_break-after_1.xml | 70 +++ .../table-row_break-before_break-after_2.xml | 56 +++ .../standard-testcases/table-row_height.xml | 106 +++++ .../table-row_keep-together.xml | 72 ++++ .../table-row_keep-with-next.xml | 84 ++++ .../table-row_keep-with-previous.xml | 84 ++++ .../table_background-image.xml | 108 +++++ .../standard-testcases/table_basic.xml | 106 +++++ .../table_border-collapse_collapse_1.xml | 129 ++++++ .../table_border-collapse_collapse_2.xml | 69 +++ .../table_border-collapse_separate_1.xml | 117 +++++ ...order-collapse_separate_border-spacing.xml | 200 +++++++++ .../table_border-width_conditionality.xml | 195 +++++++++ .../table_border_padding.xml | 138 ++++++ .../table_border_padding_2.xml | 203 +++++++++ .../table_break-before_break-after.xml | 56 +++ .../standard-testcases/table_bug36403.xml | 99 +++++ .../standard-testcases/table_bug37270.xml | 89 ++++ .../table_keep-together.xml | 82 ++++ .../table_margin_space-before_space-after.xml | 114 +++++ .../table_padding_percentages.xml | 74 ++++ .../table_space-before_space-after_1.xml | 203 +++++++++ .../table_space-before_space-after_2.xml | 104 +++++ .../table_table-layout_fixed_1.xml | 109 +++++ .../table_table-layout_fixed_2.xml | 65 +++ .../standard-testcases/table_width.xml | 97 +++++ .../standard-testcases/text-decoration_1.xml | 104 +++++ .../standard-testcases/text-decoration_2.xml | 88 ++++ .../standard-testcases/wrapper_block.xml | 58 +++ .../standard-testcases/wrapper_inline.xml | 48 +++ .../wrapper_text-transform_1.xml | 48 +++ .../wrapper_text-transform_2.xml | 47 +++ 291 files changed, 29525 insertions(+) create mode 100644 test/layoutengine/standard-testcases/basic-link_background-image.xml create mode 100644 test/layoutengine/standard-testcases/block-container_absolute-position.xml create mode 100644 test/layoutengine/standard-testcases/block-container_absolute-position_border_padding.xml create mode 100644 test/layoutengine/standard-testcases/block-container_absolute-position_display-align.xml create mode 100644 test/layoutengine/standard-testcases/block-container_absolute-position_fixed.xml create mode 100644 test/layoutengine/standard-testcases/block-container_absolute-position_no-height.xml create mode 100644 test/layoutengine/standard-testcases/block-container_absolute-position_overflow.xml create mode 100644 test/layoutengine/standard-testcases/block-container_absolute-position_reference-orientation.xml create mode 100644 test/layoutengine/standard-testcases/block-container_background-image_background-position-relative.xml create mode 100644 test/layoutengine/standard-testcases/block-container_background-image_background-repeat.xml create mode 100644 test/layoutengine/standard-testcases/block-container_borders.xml create mode 100644 test/layoutengine/standard-testcases/block-container_display-align_space-before.xml create mode 100644 test/layoutengine/standard-testcases/block-container_padding_percentages.xml create mode 100644 test/layoutengine/standard-testcases/block-container_page-breaking.xml create mode 100644 test/layoutengine/standard-testcases/block-container_reference-orientation.xml create mode 100644 test/layoutengine/standard-testcases/block-container_reference-orientation_bug36391.xml create mode 100644 test/layoutengine/standard-testcases/block-container_space-before_space-after_1.xml create mode 100644 test/layoutengine/standard-testcases/block-container_space-before_space-after_2.xml create mode 100644 test/layoutengine/standard-testcases/block-container_space-before_space-after_3.xml create mode 100644 test/layoutengine/standard-testcases/block-container_start-indent.xml create mode 100644 test/layoutengine/standard-testcases/block-container_width_height.xml create mode 100644 test/layoutengine/standard-testcases/block-level_id.xml create mode 100644 test/layoutengine/standard-testcases/block_basic_1.xml create mode 100644 test/layoutengine/standard-testcases/block_basic_2.xml create mode 100644 test/layoutengine/standard-testcases/block_border-style.xml create mode 100644 test/layoutengine/standard-testcases/block_border.xml create mode 100644 test/layoutengine/standard-testcases/block_border_padding.xml create mode 100644 test/layoutengine/standard-testcases/block_border_shorthands.xml create mode 100644 test/layoutengine/standard-testcases/block_break-after.xml create mode 100644 test/layoutengine/standard-testcases/block_break-before.xml create mode 100644 test/layoutengine/standard-testcases/block_font-family.xml create mode 100644 test/layoutengine/standard-testcases/block_font-size_absolute.xml create mode 100644 test/layoutengine/standard-testcases/block_font-size_percentage.xml create mode 100644 test/layoutengine/standard-testcases/block_font-size_relative.xml create mode 100644 test/layoutengine/standard-testcases/block_font-stretch.xml create mode 100644 test/layoutengine/standard-testcases/block_font-style.xml create mode 100644 test/layoutengine/standard-testcases/block_font-weight.xml create mode 100644 test/layoutengine/standard-testcases/block_keep-together.xml create mode 100644 test/layoutengine/standard-testcases/block_keep-with-next.xml create mode 100644 test/layoutengine/standard-testcases/block_keep-with-next_nested.xml create mode 100644 test/layoutengine/standard-testcases/block_keep-with-previous.xml create mode 100644 test/layoutengine/standard-testcases/block_keep-with-previous_nested.xml create mode 100644 test/layoutengine/standard-testcases/block_letter-spacing.xml create mode 100644 test/layoutengine/standard-testcases/block_letter-spacing_text-align_justify.xml create mode 100644 test/layoutengine/standard-testcases/block_line-height.xml create mode 100755 test/layoutengine/standard-testcases/block_line-stacking-strategy_1.xml create mode 100755 test/layoutengine/standard-testcases/block_linefeed-treatment.xml create mode 100644 test/layoutengine/standard-testcases/block_margin.xml create mode 100644 test/layoutengine/standard-testcases/block_margin_inherit.xml create mode 100644 test/layoutengine/standard-testcases/block_margin_percentages.xml create mode 100644 test/layoutengine/standard-testcases/block_margin_shorthands.xml create mode 100644 test/layoutengine/standard-testcases/block_padding.xml create mode 100644 test/layoutengine/standard-testcases/block_padding_2.xml create mode 100644 test/layoutengine/standard-testcases/block_padding_percentages.xml create mode 100644 test/layoutengine/standard-testcases/block_padding_shorthands.xml create mode 100644 test/layoutengine/standard-testcases/block_space-before_space-after_1.xml create mode 100644 test/layoutengine/standard-testcases/block_space-before_space-after_2.xml create mode 100644 test/layoutengine/standard-testcases/block_space-before_space-after_3.xml create mode 100644 test/layoutengine/standard-testcases/block_space-before_space-after_4.xml create mode 100644 test/layoutengine/standard-testcases/block_space-before_space-after_5.xml create mode 100644 test/layoutengine/standard-testcases/block_space-before_space-after_6.xml create mode 100644 test/layoutengine/standard-testcases/block_space-before_space-after_7.xml create mode 100644 test/layoutengine/standard-testcases/block_space-before_space-after_8.xml create mode 100644 test/layoutengine/standard-testcases/block_space-before_space-after_9.xml create mode 100644 test/layoutengine/standard-testcases/block_space-before_space-after_9a.xml create mode 100644 test/layoutengine/standard-testcases/block_start-indent_end-indent.xml create mode 100644 test/layoutengine/standard-testcases/block_text-align_1.xml create mode 100644 test/layoutengine/standard-testcases/block_text-align_2.xml create mode 100644 test/layoutengine/standard-testcases/block_text-indent.xml create mode 100755 test/layoutengine/standard-testcases/block_white-space-collapse_1.xml create mode 100755 test/layoutengine/standard-testcases/block_white-space-collapse_2.xml create mode 100755 test/layoutengine/standard-testcases/block_white-space-treatment_1.xml create mode 100755 test/layoutengine/standard-testcases/block_white-space-treatment_2.xml create mode 100644 test/layoutengine/standard-testcases/block_white-space_1.xml create mode 100644 test/layoutengine/standard-testcases/block_word-spacing.xml create mode 100644 test/layoutengine/standard-testcases/block_word-spacing_text-align_justify.xml create mode 100644 test/layoutengine/standard-testcases/block_wrap-option.xml create mode 100755 test/layoutengine/standard-testcases/character_background-color.xml create mode 100644 test/layoutengine/standard-testcases/character_background-image.xml create mode 100755 test/layoutengine/standard-testcases/character_border_padding.xml create mode 100755 test/layoutengine/standard-testcases/character_vertical-align.xml create mode 100644 test/layoutengine/standard-testcases/external-graphic_basic.xml create mode 100644 test/layoutengine/standard-testcases/external-graphic_bmp.xml create mode 100644 test/layoutengine/standard-testcases/external-graphic_border_padding.xml create mode 100644 test/layoutengine/standard-testcases/external-graphic_content-height_content-width.xml create mode 100644 test/layoutengine/standard-testcases/external-graphic_display-align.xml create mode 100644 test/layoutengine/standard-testcases/external-graphic_emf.xml create mode 100644 test/layoutengine/standard-testcases/external-graphic_eps.xml create mode 100644 test/layoutengine/standard-testcases/external-graphic_gif.xml create mode 100644 test/layoutengine/standard-testcases/external-graphic_jpeg.xml create mode 100644 test/layoutengine/standard-testcases/external-graphic_overflow_hidden.xml create mode 100644 test/layoutengine/standard-testcases/external-graphic_oversized.xml create mode 100644 test/layoutengine/standard-testcases/external-graphic_png.xml create mode 100644 test/layoutengine/standard-testcases/external-graphic_src_uri.xml create mode 100644 test/layoutengine/standard-testcases/external-graphic_svg.xml create mode 100644 test/layoutengine/standard-testcases/external-graphic_tiff.xml create mode 100644 test/layoutengine/standard-testcases/footnote_basic.xml create mode 100644 test/layoutengine/standard-testcases/footnote_footnote-separator.xml create mode 100644 test/layoutengine/standard-testcases/footnote_large.xml create mode 100644 test/layoutengine/standard-testcases/footnote_overflow-to-empty-page.xml create mode 100644 test/layoutengine/standard-testcases/footnote_overflow-to-multiple-pages.xml create mode 100644 test/layoutengine/standard-testcases/footnote_positioning_1.xml create mode 100644 test/layoutengine/standard-testcases/footnote_positioning_2.xml create mode 100644 test/layoutengine/standard-testcases/footnote_positioning_3.xml create mode 100644 test/layoutengine/standard-testcases/footnote_positioning_4.xml create mode 100644 test/layoutengine/standard-testcases/footnote_positioning_5.xml create mode 100644 test/layoutengine/standard-testcases/footnote_space-resolution.xml create mode 100644 test/layoutengine/standard-testcases/inline-block_keep-together.xml create mode 100644 test/layoutengine/standard-testcases/inline-container_block_nested.xml create mode 100644 test/layoutengine/standard-testcases/inline-container_border_padding.xml create mode 100644 test/layoutengine/standard-testcases/inline-level_id.xml create mode 100755 test/layoutengine/standard-testcases/inline_alignment-adjust_1.xml create mode 100755 test/layoutengine/standard-testcases/inline_alignment-adjust_2.xml create mode 100755 test/layoutengine/standard-testcases/inline_alignment-baseline_1.xml create mode 100755 test/layoutengine/standard-testcases/inline_alignment-baseline_2.xml create mode 100755 test/layoutengine/standard-testcases/inline_alignment-baseline_3.xml create mode 100755 test/layoutengine/standard-testcases/inline_alignment-baseline_4.xml create mode 100755 test/layoutengine/standard-testcases/inline_background-color.xml create mode 100644 test/layoutengine/standard-testcases/inline_background-image.xml create mode 100755 test/layoutengine/standard-testcases/inline_baseline-shift_1.xml create mode 100755 test/layoutengine/standard-testcases/inline_baseline-shift_2.xml create mode 100755 test/layoutengine/standard-testcases/inline_baseline-shift_3.xml create mode 100755 test/layoutengine/standard-testcases/inline_baseline-shift_4.xml create mode 100644 test/layoutengine/standard-testcases/inline_block_nested_1.xml create mode 100644 test/layoutengine/standard-testcases/inline_block_nested_2.xml create mode 100644 test/layoutengine/standard-testcases/inline_block_nested_3.xml create mode 100644 test/layoutengine/standard-testcases/inline_block_nested_4.xml create mode 100644 test/layoutengine/standard-testcases/inline_block_nested_bug36248.xml create mode 100644 test/layoutengine/standard-testcases/inline_border_padding.xml create mode 100755 test/layoutengine/standard-testcases/inline_border_padding_block_nested_1.xml create mode 100755 test/layoutengine/standard-testcases/inline_border_padding_block_nested_2.xml create mode 100755 test/layoutengine/standard-testcases/inline_border_padding_conditionality_1.xml create mode 100755 test/layoutengine/standard-testcases/inline_border_padding_conditionality_2.xml create mode 100755 test/layoutengine/standard-testcases/inline_dominant-baseline_1.xml create mode 100755 test/layoutengine/standard-testcases/inline_dominant-baseline_2.xml create mode 100755 test/layoutengine/standard-testcases/inline_dominant-baseline_3.xml create mode 100644 test/layoutengine/standard-testcases/inline_letter-spacing.xml create mode 100755 test/layoutengine/standard-testcases/inline_vertical-align_1.xml create mode 100755 test/layoutengine/standard-testcases/inline_vertical-align_2.xml create mode 100644 test/layoutengine/standard-testcases/inline_word-spacing.xml create mode 100644 test/layoutengine/standard-testcases/inline_word-spacing_text-align_justify.xml create mode 100644 test/layoutengine/standard-testcases/instream-foreign-object_basic.xml create mode 100644 test/layoutengine/standard-testcases/instream-foreign-object_border_padding.xml create mode 100644 test/layoutengine/standard-testcases/instream-foreign-object_display-align.xml create mode 100644 test/layoutengine/standard-testcases/leader-alignment.xml create mode 100755 test/layoutengine/standard-testcases/leader_alignment-baseline.xml create mode 100755 test/layoutengine/standard-testcases/leader_background-color.xml create mode 100755 test/layoutengine/standard-testcases/leader_border_padding.xml create mode 100644 test/layoutengine/standard-testcases/leader_leader-pattern_dots.xml create mode 100644 test/layoutengine/standard-testcases/leader_leader-pattern_rule.xml create mode 100644 test/layoutengine/standard-testcases/leader_leader-pattern_space.xml create mode 100644 test/layoutengine/standard-testcases/leader_leader-pattern_use-content.xml create mode 100755 test/layoutengine/standard-testcases/leader_toc.xml create mode 100644 test/layoutengine/standard-testcases/list-block_background-image.xml create mode 100644 test/layoutengine/standard-testcases/list-block_basic.xml create mode 100644 test/layoutengine/standard-testcases/list-block_border_padding.xml create mode 100644 test/layoutengine/standard-testcases/list-block_keep-together.xml create mode 100644 test/layoutengine/standard-testcases/list-block_keep-with-next.xml create mode 100644 test/layoutengine/standard-testcases/list-block_keep-with-previous.xml create mode 100644 test/layoutengine/standard-testcases/list-block_padding_percentages.xml create mode 100644 test/layoutengine/standard-testcases/list-block_simple-page-master_margin.xml create mode 100644 test/layoutengine/standard-testcases/list-block_space-before_space-after_1.xml create mode 100644 test/layoutengine/standard-testcases/list-block_space-before_space-after_2.xml create mode 100644 test/layoutengine/standard-testcases/list-item_background-image.xml create mode 100644 test/layoutengine/standard-testcases/list-item_block_keep-with-next.xml create mode 100644 test/layoutengine/standard-testcases/list-item_block_keep-with-previous.xml create mode 100644 test/layoutengine/standard-testcases/list-item_padding_percentages.xml create mode 100644 test/layoutengine/standard-testcases/list-item_space-before_space-after_1.xml create mode 100644 test/layoutengine/standard-testcases/list-item_space-before_space-after_2.xml create mode 100644 test/layoutengine/standard-testcases/list-item_space-before_space-after_3.xml create mode 100644 test/layoutengine/standard-testcases/markers_1.xml create mode 100644 test/layoutengine/standard-testcases/markers_2.xml create mode 100644 test/layoutengine/standard-testcases/markers_3.xml create mode 100644 test/layoutengine/standard-testcases/markers_4.xml create mode 100644 test/layoutengine/standard-testcases/markers_5a.xml create mode 100644 test/layoutengine/standard-testcases/markers_5b.xml create mode 100644 test/layoutengine/standard-testcases/markers_5c.xml create mode 100644 test/layoutengine/standard-testcases/markers_5d.xml create mode 100644 test/layoutengine/standard-testcases/markers_6a.xml create mode 100644 test/layoutengine/standard-testcases/markers_6b.xml create mode 100644 test/layoutengine/standard-testcases/markers_7.xml create mode 100644 test/layoutengine/standard-testcases/markers_8.xml create mode 100644 test/layoutengine/standard-testcases/markers_9.xml create mode 100644 test/layoutengine/standard-testcases/page-breaking_1.xml create mode 100644 test/layoutengine/standard-testcases/page-breaking_2.xml create mode 100644 test/layoutengine/standard-testcases/page-breaking_3.xml create mode 100644 test/layoutengine/standard-testcases/page-breaking_4.xml create mode 100644 test/layoutengine/standard-testcases/page-breaking_4a.xml create mode 100644 test/layoutengine/standard-testcases/page-breaking_5.xml create mode 100644 test/layoutengine/standard-testcases/page-breaking_6.xml create mode 100644 test/layoutengine/standard-testcases/page-height_indefinite_simple.xml create mode 100755 test/layoutengine/standard-testcases/page-number-citation_background-color.xml create mode 100755 test/layoutengine/standard-testcases/page-number-citation_background-image.xml create mode 100644 test/layoutengine/standard-testcases/page-number-citation_basic.xml create mode 100755 test/layoutengine/standard-testcases/page-number-citation_border_padding.xml create mode 100644 test/layoutengine/standard-testcases/page-number-citation_complex_1.xml create mode 100644 test/layoutengine/standard-testcases/page-number-citation_complex_2.xml create mode 100755 test/layoutengine/standard-testcases/page-number-citation_vertical-align.xml create mode 100755 test/layoutengine/standard-testcases/page-number_background-color.xml create mode 100755 test/layoutengine/standard-testcases/page-number_background-image.xml create mode 100644 test/layoutengine/standard-testcases/page-number_basic.xml create mode 100755 test/layoutengine/standard-testcases/page-number_border_padding.xml create mode 100644 test/layoutengine/standard-testcases/page-number_initial-page-number_1.xml create mode 100644 test/layoutengine/standard-testcases/page-number_initial-page-number_2.xml create mode 100755 test/layoutengine/standard-testcases/page-number_vertical-align.xml create mode 100644 test/layoutengine/standard-testcases/page-production_empty_block_only.xml create mode 100644 test/layoutengine/standard-testcases/region-body_background-image.xml create mode 100644 test/layoutengine/standard-testcases/region-body_column-count_1.xml create mode 100644 test/layoutengine/standard-testcases/region-body_column-count_2.xml create mode 100644 test/layoutengine/standard-testcases/region-body_column-count_bug36356.xml create mode 100644 test/layoutengine/standard-testcases/region-body_column-count_footnote.xml create mode 100644 test/layoutengine/standard-testcases/region-body_column-count_span_1.xml create mode 100644 test/layoutengine/standard-testcases/region-body_column-count_span_2.xml create mode 100644 test/layoutengine/standard-testcases/region_side_space-resolution.xml create mode 100644 test/layoutengine/standard-testcases/simple-page-master_margin_1.xml create mode 100644 test/layoutengine/standard-testcases/simple-page-master_margin_2.xml create mode 100644 test/layoutengine/standard-testcases/simple-page-master_margin_region-body_margin_relative.xml create mode 100644 test/layoutengine/standard-testcases/simple-page-master_reference-orientation.xml create mode 100644 test/layoutengine/standard-testcases/simple-page-master_reference-orientation_0_region-body_margin_relative.xml create mode 100644 test/layoutengine/standard-testcases/simple-page-master_reference-orientation_0_writing-mode_rl_region-body_margin_relative.xml create mode 100644 test/layoutengine/standard-testcases/simple-page-master_reference-orientation_180_region-body_margin_relative.xml create mode 100644 test/layoutengine/standard-testcases/simple-page-master_reference-orientation_180_writing-mode_rl_region-body_margin_relative.xml create mode 100644 test/layoutengine/standard-testcases/simple-page-master_reference-orientation_270_region-body_margin_relative.xml create mode 100644 test/layoutengine/standard-testcases/simple-page-master_reference-orientation_270_writing-mode_rl_region-body_margin_relative.xml create mode 100644 test/layoutengine/standard-testcases/simple-page-master_reference-orientation_90_region-body_margin_relative.xml create mode 100644 test/layoutengine/standard-testcases/simple-page-master_reference-orientation_90_writing-mode_rl_region-body_margin_relative.xml create mode 100644 test/layoutengine/standard-testcases/simple-page-master_regions.xml create mode 100644 test/layoutengine/standard-testcases/simple-page-master_writing-mode_rl_region-body_writing-mode-lr.xml create mode 100644 test/layoutengine/standard-testcases/table-body_background-image.xml create mode 100644 test/layoutengine/standard-testcases/table-body_basic_1.xml create mode 100644 test/layoutengine/standard-testcases/table-body_basic_2.xml create mode 100644 test/layoutengine/standard-testcases/table-border-separate3.xml create mode 100644 test/layoutengine/standard-testcases/table-cell_background-image.xml create mode 100644 test/layoutengine/standard-testcases/table-cell_block_break-before.xml create mode 100644 test/layoutengine/standard-testcases/table-cell_block_keep-with-next.xml create mode 100644 test/layoutengine/standard-testcases/table-cell_block_keep-with-previous.xml create mode 100644 test/layoutengine/standard-testcases/table-cell_block_margin_percentage.xml create mode 100644 test/layoutengine/standard-testcases/table-cell_border_padding_conditionality.xml create mode 100644 test/layoutengine/standard-testcases/table-cell_column-number.xml create mode 100644 test/layoutengine/standard-testcases/table-cell_display-align.xml create mode 100644 test/layoutengine/standard-testcases/table-cell_display-align_page-break.xml create mode 100644 test/layoutengine/standard-testcases/table-cell_height.xml create mode 100644 test/layoutengine/standard-testcases/table-cell_height_page-break.xml create mode 100644 test/layoutengine/standard-testcases/table-cell_number-columns-spanned.xml create mode 100644 test/layoutengine/standard-testcases/table-cell_number-rows-spanned.xml create mode 100644 test/layoutengine/standard-testcases/table-cell_padding_percentages.xml create mode 100644 test/layoutengine/standard-testcases/table-cell_starts-row_ends-row.xml create mode 100644 test/layoutengine/standard-testcases/table-cell_various-combinations.xml create mode 100644 test/layoutengine/standard-testcases/table-column_column-number.xml create mode 100644 test/layoutengine/standard-testcases/table-column_column-width.xml create mode 100644 test/layoutengine/standard-testcases/table-column_column-width_proportional-column-width.xml create mode 100644 test/layoutengine/standard-testcases/table-column_first-row-width.xml create mode 100644 test/layoutengine/standard-testcases/table-footer_omit-footer-at-break.xml create mode 100644 test/layoutengine/standard-testcases/table-header_background-image.xml create mode 100644 test/layoutengine/standard-testcases/table-header_omit-header-at-break.xml create mode 100644 test/layoutengine/standard-testcases/table-header_table-footer_1.xml create mode 100644 test/layoutengine/standard-testcases/table-header_table-footer_2.xml create mode 100644 test/layoutengine/standard-testcases/table-row_background-image.xml create mode 100644 test/layoutengine/standard-testcases/table-row_break-before.xml create mode 100644 test/layoutengine/standard-testcases/table-row_break-before_break-after_1.xml create mode 100644 test/layoutengine/standard-testcases/table-row_break-before_break-after_2.xml create mode 100644 test/layoutengine/standard-testcases/table-row_height.xml create mode 100644 test/layoutengine/standard-testcases/table-row_keep-together.xml create mode 100644 test/layoutengine/standard-testcases/table-row_keep-with-next.xml create mode 100644 test/layoutengine/standard-testcases/table-row_keep-with-previous.xml create mode 100644 test/layoutengine/standard-testcases/table_background-image.xml create mode 100644 test/layoutengine/standard-testcases/table_basic.xml create mode 100644 test/layoutengine/standard-testcases/table_border-collapse_collapse_1.xml create mode 100644 test/layoutengine/standard-testcases/table_border-collapse_collapse_2.xml create mode 100644 test/layoutengine/standard-testcases/table_border-collapse_separate_1.xml create mode 100644 test/layoutengine/standard-testcases/table_border-collapse_separate_border-spacing.xml create mode 100644 test/layoutengine/standard-testcases/table_border-width_conditionality.xml create mode 100644 test/layoutengine/standard-testcases/table_border_padding.xml create mode 100644 test/layoutengine/standard-testcases/table_border_padding_2.xml create mode 100644 test/layoutengine/standard-testcases/table_break-before_break-after.xml create mode 100644 test/layoutengine/standard-testcases/table_bug36403.xml create mode 100644 test/layoutengine/standard-testcases/table_bug37270.xml create mode 100644 test/layoutengine/standard-testcases/table_keep-together.xml create mode 100644 test/layoutengine/standard-testcases/table_margin_space-before_space-after.xml create mode 100644 test/layoutengine/standard-testcases/table_padding_percentages.xml create mode 100644 test/layoutengine/standard-testcases/table_space-before_space-after_1.xml create mode 100644 test/layoutengine/standard-testcases/table_space-before_space-after_2.xml create mode 100644 test/layoutengine/standard-testcases/table_table-layout_fixed_1.xml create mode 100644 test/layoutengine/standard-testcases/table_table-layout_fixed_2.xml create mode 100644 test/layoutengine/standard-testcases/table_width.xml create mode 100644 test/layoutengine/standard-testcases/text-decoration_1.xml create mode 100644 test/layoutengine/standard-testcases/text-decoration_2.xml create mode 100644 test/layoutengine/standard-testcases/wrapper_block.xml create mode 100644 test/layoutengine/standard-testcases/wrapper_inline.xml create mode 100644 test/layoutengine/standard-testcases/wrapper_text-transform_1.xml create mode 100644 test/layoutengine/standard-testcases/wrapper_text-transform_2.xml diff --git a/test/layoutengine/standard-testcases/basic-link_background-image.xml b/test/layoutengine/standard-testcases/basic-link_background-image.xml new file mode 100644 index 000000000..7ec697ffa --- /dev/null +++ b/test/layoutengine/standard-testcases/basic-link_background-image.xml @@ -0,0 +1,48 @@ + + + + + +

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

+
+ + ../../resources/images/bgimg300dpi.jpg + + + + + + + + + + + + Why is FOP so cool? + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block-container_absolute-position.xml b/test/layoutengine/standard-testcases/block-container_absolute-position.xml new file mode 100644 index 000000000..10e34f67c --- /dev/null +++ b/test/layoutengine/standard-testcases/block-container_absolute-position.xml @@ -0,0 +1,95 @@ + + + + + +

+ This test checks absolutely positioned block-containers. +

+
+ + + + + + + + + + + absolutely positioned width/height + + + absolutely positioned right/bottom + + + This is some background-text. + This is some background-text. + This is some background-text. + This is some background-text. + This is some background-text. + This is some background-text. + + absolutely positioned right/bottom (inside a block) + + This is some background-text. + This is some background-text. + This is some background-text. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block-container_absolute-position_border_padding.xml b/test/layoutengine/standard-testcases/block-container_absolute-position_border_padding.xml new file mode 100644 index 000000000..cf9e88a06 --- /dev/null +++ b/test/layoutengine/standard-testcases/block-container_absolute-position_border_padding.xml @@ -0,0 +1,138 @@ + + + + + +

+ This test checks absolutely positioned block-containers with border/padding/indents. +

+
+ + + + + + + + + + + absolutely positioned right/width plus border & padding + + + absolutely positioned right/width plus border & padding, margin=0pt + + + absolutely positioned right/width plus border & padding, margin=0pt, start|end-indent=0pt + + + absolutely positioned right/width plus border & padding, margin=5pt, start|end-indent=0pt + + + This is some background-text. + This is some background-text. + This is some background-text. + This is some background-text. + This is some background-text. + This is some background-text. + This is some background-text. + This is some background-text. + This is some background-text. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block-container_absolute-position_display-align.xml b/test/layoutengine/standard-testcases/block-container_absolute-position_display-align.xml new file mode 100644 index 000000000..1d8c2300d --- /dev/null +++ b/test/layoutengine/standard-testcases/block-container_absolute-position_display-align.xml @@ -0,0 +1,145 @@ + + + + + +

+ This test checks display-align on absolutely positioned block-containers. +

+
+ + + + + + + + + + + display-align="auto" + reference-orientation="0" + + + display-align="before" + reference-orientation="90" + + + display-align="center" + reference-orientation="180" + + + display-align="after" + reference-orientation="270" + + + display-align="center" + no height + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block-container_absolute-position_fixed.xml b/test/layoutengine/standard-testcases/block-container_absolute-position_fixed.xml new file mode 100644 index 000000000..9c5850ccd --- /dev/null +++ b/test/layoutengine/standard-testcases/block-container_absolute-position_fixed.xml @@ -0,0 +1,80 @@ + + + + + +

+ This test checks block-containers with absolute-position="fixed". +

+
+ + + + + + + + + + + absolute-position="fixed" + + + absolute-position="absolute" + + + abs-bc blue + + fixed-bc in abs-bc + + abs-bc 2 red + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block-container_absolute-position_no-height.xml b/test/layoutengine/standard-testcases/block-container_absolute-position_no-height.xml new file mode 100644 index 000000000..931088f54 --- /dev/null +++ b/test/layoutengine/standard-testcases/block-container_absolute-position_no-height.xml @@ -0,0 +1,62 @@ + + + + + +

+ This test checks absolutely positioned block-containers where the content-bpd isn't specified. +

+
+ + + + + + + + + + + absolutely positioned width, no height specified + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block-container_absolute-position_overflow.xml b/test/layoutengine/standard-testcases/block-container_absolute-position_overflow.xml new file mode 100644 index 000000000..d76bfc4b5 --- /dev/null +++ b/test/layoutengine/standard-testcases/block-container_absolute-position_overflow.xml @@ -0,0 +1,57 @@ + + + + + +

+ This test checks clipping on block-containers. +

+
+ + + + + + + + + + + auto overflow overflow overflow overflow overflow + + + visible overflow overflow overflow overflow overflow + + + scroll overflow overflow overflow overflow overflow + + + hidden overflow overflow overflow overflow overflow + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block-container_absolute-position_reference-orientation.xml b/test/layoutengine/standard-testcases/block-container_absolute-position_reference-orientation.xml new file mode 100644 index 000000000..cbb478f85 --- /dev/null +++ b/test/layoutengine/standard-testcases/block-container_absolute-position_reference-orientation.xml @@ -0,0 +1,128 @@ + + + + + +

+ This test checks absolutely positioned block-containers with reference-orientation. +

+
+ + + + + + + + + + + ro = 0 + + + ro = 90 + + + ro = 180 + + + ro = 270 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block-container_background-image_background-position-relative.xml b/test/layoutengine/standard-testcases/block-container_background-image_background-position-relative.xml new file mode 100644 index 000000000..ea09a97d6 --- /dev/null +++ b/test/layoutengine/standard-testcases/block-container_background-image_background-position-relative.xml @@ -0,0 +1,117 @@ + + + + + +

+ This test checks relative positioned background images on a fo:block-container. +

+
+ + ../../resources/images/box1.png + + + + + + + + + + + + image in top right corner + + + image in center right + + + image in bottom right corner + + + image in top center + + + image in center + + + image in bottom center + + + image in top left + + + image in center left + + + image in bottom left + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block-container_background-image_background-repeat.xml b/test/layoutengine/standard-testcases/block-container_background-image_background-repeat.xml new file mode 100644 index 000000000..2ed43b0ce --- /dev/null +++ b/test/layoutengine/standard-testcases/block-container_background-image_background-repeat.xml @@ -0,0 +1,66 @@ + + + + + +

+ This test checks background images in block-containers. +

+
+ + ../../resources/images/bgimg300dpi.jpg + + + + + + + + + + + + repeat-x + + + repeat-y + + + repeat + + + no-repeat + + + repeat-x and vertical: 75% + + + repeat-y and horizontal: 75% + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block-container_borders.xml b/test/layoutengine/standard-testcases/block-container_borders.xml new file mode 100644 index 000000000..d49de6c03 --- /dev/null +++ b/test/layoutengine/standard-testcases/block-container_borders.xml @@ -0,0 +1,145 @@ + + + + + +

+ This test checks borders on block-containers. +

+
+ + + + + + + + + + + left *** + + + start *** + + + right *** + + + end *** + + + top *** + + + before *** + + + bottom *** + + + after *** + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block-container_display-align_space-before.xml b/test/layoutengine/standard-testcases/block-container_display-align_space-before.xml new file mode 100644 index 000000000..b483edbd3 --- /dev/null +++ b/test/layoutengine/standard-testcases/block-container_display-align_space-before.xml @@ -0,0 +1,128 @@ + + + + + +

+ This test checks display-align on in-flow block-containers. It also tests space-before|after in conjunction with reference-orientation. +

+
+ + + + + + + + + + + display-align = "auto" + ro = 0 + + + display-align = "before" + ro = 90 + + + display-align = "center" + ro = 180 + + + display-align = "after" + ro = 270 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block-container_padding_percentages.xml b/test/layoutengine/standard-testcases/block-container_padding_percentages.xml new file mode 100644 index 000000000..ca76d9afe --- /dev/null +++ b/test/layoutengine/standard-testcases/block-container_padding_percentages.xml @@ -0,0 +1,53 @@ + + + + + +

+ This test checks relative padding on block containers. +

+
+ + + + + + + + + + + margin not specified padding="5%" on this 2x1in yellow container + + + margin="0pt" padding="5%" on this 2x1in blue container + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block-container_page-breaking.xml b/test/layoutengine/standard-testcases/block-container_page-breaking.xml new file mode 100644 index 000000000..bc6afe052 --- /dev/null +++ b/test/layoutengine/standard-testcases/block-container_page-breaking.xml @@ -0,0 +1,65 @@ + + + + + +

+ This test checks normal page breaking for block-containers. +

+
+ + + + + + + + + + + block1 (in block-container, height="2in") + + outside block-container + + block2 (in block-container, height="2in") + + + block3 (in block-container, height="2in") + + + block4 (in block-container, height="2in") + + outside block-container + + block5 (in block-container, height="2in") + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block-container_reference-orientation.xml b/test/layoutengine/standard-testcases/block-container_reference-orientation.xml new file mode 100644 index 000000000..c5ea1020e --- /dev/null +++ b/test/layoutengine/standard-testcases/block-container_reference-orientation.xml @@ -0,0 +1,171 @@ + + + + + +

+ This test checks in-flow block-containers with reference orientation. +

+
+ + + + + + + + + + + + ro = 0 + + + ro = 90 + + + ro = 180 + + + ro = 270 + + + + ro = 0 + + + ro = -90 + + + ro = -180 + + + ro = -270 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block-container_reference-orientation_bug36391.xml b/test/layoutengine/standard-testcases/block-container_reference-orientation_bug36391.xml new file mode 100644 index 000000000..25a851391 --- /dev/null +++ b/test/layoutengine/standard-testcases/block-container_reference-orientation_bug36391.xml @@ -0,0 +1,106 @@ + + + + + +

+ This test checks in-flow block-containers with reference orientation. + Special case with nested block-containers from Bugzilla #36391. +

+
+ + + + + + + + + + Reference orientation : 0 + + + ABC + + + Reference orientation : 90 + + + ABC + + + Reference orientation : -270 + + + ABC + + + Reference orientation : 180 + + + ABC + + + Reference orientation : -180 + + + ABC + + + Reference orientation : 270 + + + ABC + + + Reference orientation : -90 + + + ABC + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block-container_space-before_space-after_1.xml b/test/layoutengine/standard-testcases/block-container_space-before_space-after_1.xml new file mode 100644 index 000000000..37b7b87c2 --- /dev/null +++ b/test/layoutengine/standard-testcases/block-container_space-before_space-after_1.xml @@ -0,0 +1,160 @@ + + + + + +

+ This test checks space properties on block-container. +

+
+ + + + + + + + + + + +In olden times when wishing still helped one, there lived a king whose daughters +were all beautiful; and the youngest was so beautiful that the sun itself, which +has seen so much, was astonished whenever it shone in her face. Close by the king's +castle lay a great dark forest, and under an old lime-tree in the forest was a well, +and when the day was very warm, the king's child went out into the forest and sat +down by the side of the cool fountain; and when she was bored she took a golden ball, +and threw it up on high and caught it; and this ball was her favorite plaything. + + + +Two blocks, testing conditionality="retain". + + + + + + + +In olden times when wishing still helped one, there lived a king whose daughters +were all beautiful; and the youngest was so beautiful that the sun itself, which +has seen so much, was astonished whenever it shone in her face. Close by the king's +castle lay a great dark forest, and under an old lime-tree in the forest was a well, +and when the day was very warm, the king's child went out into the forest and sat +down by the side of the cool fountain; and when she was bored she took a golden ball, +and threw it up on high and caught it; and this ball was her favorite plaything. + + + +Two blocks, testing conditionality="discard". + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 8 + 8 + 8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/block-container_space-before_space-after_2.xml b/test/layoutengine/standard-testcases/block-container_space-before_space-after_2.xml new file mode 100644 index 000000000..d742b3e85 --- /dev/null +++ b/test/layoutengine/standard-testcases/block-container_space-before_space-after_2.xml @@ -0,0 +1,93 @@ + + + + + +

+ This test checks block-level space properties. Demonstrates that spaces are repeated on every generated area. +

+
+ + + + + + + + + + + line 1 + line 2 + line 3 + line 4 + line 5 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block-container_space-before_space-after_3.xml b/test/layoutengine/standard-testcases/block-container_space-before_space-after_3.xml new file mode 100644 index 000000000..6e9d607d7 --- /dev/null +++ b/test/layoutengine/standard-testcases/block-container_space-before_space-after_3.xml @@ -0,0 +1,126 @@ + + + + + +

+ This test checks space properties on block-containers. The focus is on space properties on content inside the block-containers. +

+
+ + + + + + + + + + + line 1 + line 2 + + A block between block-containers. + + + line 1 + line 2 + + + + + + + line 1 + line 2 + + A block between block-containers. + + line 1 + line 2 + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + 3 + + + + + + + + + 3 + + + + + + + + + + + + + 3 + + + + + + + + 3 + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/block-container_start-indent.xml b/test/layoutengine/standard-testcases/block-container_start-indent.xml new file mode 100644 index 000000000..889d62b09 --- /dev/null +++ b/test/layoutengine/standard-testcases/block-container_start-indent.xml @@ -0,0 +1,73 @@ + + + + + +

+ This test checks indents on block-containers and especially inheritance of start-indent over a block-container. +

+

+ Since block-container generates a reference-area and no margin is specified the block-container as well as its + nested block inherit the start-indent of the top-most block. Since block-container also creates a viewport + the orange block is effectively indented two times by 10 pt. (See 5.3.2 in XSL 1.0) +

+
+ + + + + + + + + + + fo:block|fo:block + + fo:block|fo:block-container|fo:block + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block-container_width_height.xml b/test/layoutengine/standard-testcases/block-container_width_height.xml new file mode 100644 index 000000000..2ec7f24fb --- /dev/null +++ b/test/layoutengine/standard-testcases/block-container_width_height.xml @@ -0,0 +1,124 @@ + + + + + +

+ This test checks very basic block-containers. +

+
+ + + + + + + + + + + naked block-container + + + width="3in" specified + + + inline-progression-dimension="4in" specified + + + height=20pt + + + block-progression-dimension=20pt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block-level_id.xml b/test/layoutengine/standard-testcases/block-level_id.xml new file mode 100644 index 000000000..8d0a6bad2 --- /dev/null +++ b/test/layoutengine/standard-testcases/block-level_id.xml @@ -0,0 +1,101 @@ + + + + + +

+ This test checks IDs on block-level FOs. +

+

+ TODO: + Test table-and-caption and table-caption once implemented. +

+

+ Notes: + The following FOs cannot be tested this way: + table-body, table-header, table-footer, table-row, + multi-switch, multi-case, multi-toggle, multi-properties, multi-property-set, + page-sequence. +

+
+ + + + + + + + + + block1 + + + + • + + + here is text in the list item body + + + + + + + + + header + + + + + + + footer + + + + + + + body-content + + + + + + block-container-content + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_basic_1.xml b/test/layoutengine/standard-testcases/block_basic_1.xml new file mode 100644 index 000000000..4ef1e36cb --- /dev/null +++ b/test/layoutengine/standard-testcases/block_basic_1.xml @@ -0,0 +1,52 @@ + + + + + +

+ This test checks very basic operations. +

+
+ + + + + + + + + + test1 + line1line2 + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_basic_2.xml b/test/layoutengine/standard-testcases/block_basic_2.xml new file mode 100644 index 000000000..84e485e24 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_basic_2.xml @@ -0,0 +1,79 @@ + + + + + +

+ This test checks normal line layout. We test the reported heights of various text elements. +

+
+ + + + + + + + + + normal text + + + wrapped + inlined + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_border-style.xml b/test/layoutengine/standard-testcases/block_border-style.xml new file mode 100644 index 000000000..d16ea1308 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_border-style.xml @@ -0,0 +1,137 @@ + + + + + +

+ This test checks painting of borders and border-style. +

+
+ + + + + + + + + + + + + + + solid + + + dashed + + + dotted + + + double + + + groove + + + + + solid + + + dashed + + + dotted + + + double + + + groove + + + + + groove + + + ridge + + + inset + + + outset + + + + + groove + + + ridge + + + inset + + + outset + + + + + none + + + hidden + + + + + none + + + hidden + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_border.xml b/test/layoutengine/standard-testcases/block_border.xml new file mode 100644 index 000000000..7781cd908 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_border.xml @@ -0,0 +1,105 @@ + + + + + +

+ This test checks very simple border operations. +

+
+ + + + + + + + + + + start + left + end + right + before + top + after + bottom + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_border_padding.xml b/test/layoutengine/standard-testcases/block_border_padding.xml new file mode 100644 index 000000000..caf283542 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_border_padding.xml @@ -0,0 +1,154 @@ + + + + + +

+ This test checks nested blocks with border and padding properties. +

+
+ + + + + + + + + + + no gap between red and blue border! + + + padding="5pt" on outer block, gap between borders! + + + margin="5pt" on outer block + + + margin="5pt" on inner block + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_border_shorthands.xml b/test/layoutengine/standard-testcases/block_border_shorthands.xml new file mode 100644 index 000000000..9b32a423a --- /dev/null +++ b/test/layoutengine/standard-testcases/block_border_shorthands.xml @@ -0,0 +1,128 @@ + + + + + +

+ This test checks border shorthands. +

+
+ + + + + + + + + + + left + right + top + bottom + all + all + leftright + topbottom + three values + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_break-after.xml b/test/layoutengine/standard-testcases/block_break-after.xml new file mode 100644 index 000000000..beab46358 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_break-after.xml @@ -0,0 +1,65 @@ + + + + + +

+ This test checks basic breaks. +

+
+ + + + + + + + + + line1 + line2, last block had break-after="column" + line3 + line4, last block had break-after="page" + line5 + line6, last block had break-after="even-page" + line7 + line8, last block had break-after="even-page" + line9 + line10, last block had break-after="odd-page" + line11 + line12, last block had break-after="odd-page" + line13 + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_break-before.xml b/test/layoutengine/standard-testcases/block_break-before.xml new file mode 100644 index 000000000..760e0697e --- /dev/null +++ b/test/layoutengine/standard-testcases/block_break-before.xml @@ -0,0 +1,65 @@ + + + + + +

+ This test checks basic breaks. +

+
+ + + + + + + + + + line1 + line2 break-before="column" + line3 + line4 break-before="page" + line5 + line6 break-before="even-page" + line7 + line8 break-before="even-page" + line9 + line10 break-before="odd-page" + line11 + line12 break-before="odd-page" + line13 + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_font-family.xml b/test/layoutengine/standard-testcases/block_font-family.xml new file mode 100644 index 000000000..2f7bb6a0e --- /dev/null +++ b/test/layoutengine/standard-testcases/block_font-family.xml @@ -0,0 +1,51 @@ + + + + + +

+ This test checks the generic font families. +

+
+ + + + + + + + + + font-family not given + font-family="serif" + font-family="sans-serif" + font-family="cursive" + font-family="fantasy" + font-family="monospace" + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_font-size_absolute.xml b/test/layoutengine/standard-testcases/block_font-size_absolute.xml new file mode 100644 index 000000000..d5af4c49d --- /dev/null +++ b/test/layoutengine/standard-testcases/block_font-size_absolute.xml @@ -0,0 +1,109 @@ + + + + + +

+ This test checks absolute font sizes. +

+
+ + + + + + + + + + font-family="serif" font-size="xx-small" + font-family="serif" font-size="x-small" + font-family="serif" font-size="small" + font-family="serif" font-size="medium" + font-family="serif" font-size="large" + font-family="serif" font-size="x-large" + font-family="serif" font-size="xx-large" + font-family="sans-serif" font-size="xx-small" + font-family="sans-serif" font-size="x-small" + font-family="sans-serif" font-size="small" + font-family="sans-serif" font-size="medium" + font-family="sans-serif" font-size="large" + font-family="sans-serif" font-size="x-large" + font-family="sans-serif" font-size="xx-large" + font-family="monospace" font-size="xx-small" + font-family="monospace" font-size="x-small" + font-family="monospace" font-size="small" + font-family="monospace" font-size="medium" + font-family="monospace" font-size="large" + font-family="monospace" font-size="x-large" + font-family="monospace" font-size="xx-large" + font-family="cursive" font-size="xx-small" + font-family="cursive" font-size="x-small" + font-family="cursive" font-size="small" + font-family="cursive" font-size="medium" + font-family="cursive" font-size="large" + font-family="cursive" font-size="x-large" + font-family="cursive" font-size="xx-large" + font-family="fantasy" font-size="xx-small" + font-family="fantasy" font-size="x-small" + font-family="fantasy" font-size="small" + font-family="fantasy" font-size="medium" + font-family="fantasy" font-size="large" + font-family="fantasy" font-size="x-large" + font-family="fantasy" font-size="xx-large" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_font-size_percentage.xml b/test/layoutengine/standard-testcases/block_font-size_percentage.xml new file mode 100644 index 000000000..dc906e249 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_font-size_percentage.xml @@ -0,0 +1,174 @@ + + + + + +

+ This test checks percentage font sizes. +

+
+ + + + + + + + + + font-family="serif" font-size="24pt" + font-family="serif" font-size="83%" + font-family="serif" font-size="83%" + font-family="serif" font-size="83%" + font-family="serif" font-size="83%" + font-family="serif" font-size="83%" + font-family="serif" font-size="83%" + font-family="serif" font-size="83%" + font-family="serif" font-size="120%" + font-family="serif" font-size="120%" + font-family="serif" font-size="120%" + font-family="serif" font-size="120%" + font-family="serif" font-size="120%" + font-family="serif" font-size="120%" + font-family="serif" font-size="120%" + + + + + + + + + + + + + + + + font-family="sans-serif" font-size="24pt" + font-family="sans-serif" font-size="83%" + font-family="sans-serif" font-size="83%" + font-family="sans-serif" font-size="83%" + font-family="sans-serif" font-size="83%" + font-family="sans-serif" font-size="83%" + font-family="sans-serif" font-size="83%" + font-family="sans-serif" font-size="83%" + font-family="sans-serif" font-size="120%" + font-family="sans-serif" font-size="120%" + font-family="sans-serif" font-size="120%" + font-family="sans-serif" font-size="120%" + font-family="sans-serif" font-size="120%" + font-family="sans-serif" font-size="120%" + font-family="sans-serif" font-size="120%" + + + + + + + + + + + + + + + + font-family="monospace" font-size="24pt" + font-family="monospace" font-size="83%" + font-family="monospace" font-size="83%" + font-family="monospace" font-size="83%" + font-family="monospace" font-size="83%" + font-family="monospace" font-size="83%" + font-family="monospace" font-size="83%" + font-family="monospace" font-size="83%" + font-family="monospace" font-size="120%" + font-family="monospace" font-size="120%" + font-family="monospace" font-size="120%" + font-family="monospace" font-size="120%" + font-family="monospace" font-size="120%" + font-family="monospace" font-size="120%" + font-family="monospace" font-size="120%" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_font-size_relative.xml b/test/layoutengine/standard-testcases/block_font-size_relative.xml new file mode 100644 index 000000000..d12ebfe07 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_font-size_relative.xml @@ -0,0 +1,186 @@ + + + + + +

+ This test checks relative font sizes. +

+
+ + + + + + + + + + font-size="36pt" + font-size="smaller" + font-size="smaller" + font-size="larger" + font-size="larger" + + + + + + font-size="24pt" + font-size="smaller" + font-size="smaller" + font-size="larger" + font-size="larger" + + + + + + font-size="12pt" + font-size="smaller" + font-size="smaller" + font-size="larger" + font-size="larger" + + + + + + font-size="6pt" + font-size="smaller" + font-size="smaller" + font-size="larger" + font-size="larger" + + + + + + font-size="6pt" + font-size="larger" + font-size="larger" + font-size="smaller" + font-size="smaller" + + + + + + font-size="12pt" + font-size="larger" + font-size="larger" + font-size="smaller" + font-size="smaller" + + + + + + font-size="24pt" + font-size="larger" + font-size="larger" + font-size="smaller" + font-size="smaller" + + + + + + font-size="36pt" + font-size="larger" + font-size="larger" + font-size="smaller" + font-size="smaller" + + + + + + font-size="larger" + font-size="larger" + font-size="smaller" + font-size="smaller" + + + + + font-size="36pt" + font-size="0.5em" + font-size="0.5em" + font-size="2em" + font-size="2em" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_font-stretch.xml b/test/layoutengine/standard-testcases/block_font-stretch.xml new file mode 100644 index 000000000..07d7ab7cf --- /dev/null +++ b/test/layoutengine/standard-testcases/block_font-stretch.xml @@ -0,0 +1,55 @@ + + + + + +

+ This test checks font stretches. +

+
+ + + + + + + + + + font-family="serif" font-stretch not given + font-family="serif" font-stretch="ultra-condensed" + font-family="serif" font-stretch="narrower" + + font-family="serif" font-stretch="extra-condensed" + font-family="serif" font-stretch="condensed" + font-family="serif" font-stretch="semi-condensed" + font-family="serif" font-stretch="normal" + font-family="serif" font-stretch="semi-expanded" + font-family="serif" font-stretch="expanded" + font-family="serif" font-stretch="extra-expanded" + font-family="serif" font-stretch="ultra-expanded" + font-family="serif" font-stretch="wider" + + font-family="serif" font-stretch="narrower" + font-family="serif" font-stretch="wider" + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_font-style.xml b/test/layoutengine/standard-testcases/block_font-style.xml new file mode 100644 index 000000000..326664717 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_font-style.xml @@ -0,0 +1,79 @@ + + + + + +

+ This test checks font syles. +

+
+ + + + + + + + + + font-family="serif" font-style not given + font-family="serif" font-style="normal" + font-family="serif" font-style="italic" + font-family="serif" font-style="oblique" + font-family="serif" font-style="backslant" + font-family="serif" font-style="obscure" + + font-family="sans-serif" font-style not given + font-family="sans-serif" font-style="normal" + font-family="sans-serif" font-style="italic" + font-family="sans-serif" font-style="oblique" + font-family="sans-serif" font-style="backslant" + font-family="serif" font-style="obscure" + + font-family="monospace" font-style not given + font-family="monospace" font-style="normal" + font-family="monospace" font-style="italic" + font-family="monospace" font-style="oblique" + font-family="monospace" font-style="backslant" + font-family="serif" font-style="obscure" + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_font-weight.xml b/test/layoutengine/standard-testcases/block_font-weight.xml new file mode 100644 index 000000000..70827a7a9 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_font-weight.xml @@ -0,0 +1,121 @@ + + + + + +

+ This test checks font weights. +

+
+ + + + + + + + + + font-weight not specified + font-weight="normal" + font-weight="bold" + font-weight="100" + font-weight="200" + font-weight="300" + font-weight="400" + font-weight="500" + font-weight="600" + font-weight="700" + font-weight="800" + font-weight="900" + font-weight="lighter" + font-weight="lighter" + font-weight="lighter" + font-weight="lighter" + font-weight="lighter" + font-weight="lighter" + font-weight="lighter" + font-weight="lighter" + font-weight="lighter" + + + + + + + + + + + font-weight="100" + font-weight="bolder" + font-weight="bolder" + font-weight="bolder" + font-weight="bolder" + font-weight="bolder" + font-weight="bolder" + font-weight="bolder" + font-weight="bolder" + font-weight="bolder" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_keep-together.xml b/test/layoutengine/standard-testcases/block_keep-together.xml new file mode 100644 index 000000000..aa3c8085d --- /dev/null +++ b/test/layoutengine/standard-testcases/block_keep-together.xml @@ -0,0 +1,143 @@ + + + + + +

+ This test checks keep-together. +

+

+ Widows and Orphans are disabled in this test to avoid side-effects. +

+
+ + + + + + + + + + block1 + block2 + block3 + + The quick brown fox jumps over the lazy dog. + The quick brown fox jumps over the lazy dog. + The quick brown fox jumps over the lazy dog. + + + block4 + block5 + + block6 + block7 + block8 + block9 + + block10 + + + + + block11 + block12 + block13 + + The quick brown fox jumps over the lazy dog. + The quick brown fox jumps over the lazy dog. + The quick brown fox jumps over the lazy dog. + + + block14 + block15 + + block16 + block17 + block18 + block19 + + block20 + + + + + block21 + block22 + + block23 + block24 + block25 + + block26 + + + + + block31 + block32 + + + block33 + + block34 + block35 + + block36 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_keep-with-next.xml b/test/layoutengine/standard-testcases/block_keep-with-next.xml new file mode 100644 index 000000000..120c2c806 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_keep-with-next.xml @@ -0,0 +1,95 @@ + + + + + +

+ This test checks keep-with-next. +

+

+ Widows and Orphans are disabled in this test to avoid side-effects. +

+
+ + + + + + + + + + block1 + block2 + block3 + block4 + block5 + + block6 + block7 + block8 + block9 + block10 + + block11 + + + + + block21 + block22 + block23 + block24 + block25 + + block26 + block27 + block28 + block29 + block30 + + block31 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_keep-with-next_nested.xml b/test/layoutengine/standard-testcases/block_keep-with-next_nested.xml new file mode 100644 index 000000000..42351f58f --- /dev/null +++ b/test/layoutengine/standard-testcases/block_keep-with-next_nested.xml @@ -0,0 +1,65 @@ + + + + + +

+ This test checks keep-with-next. Special case: keep defined on lower level FO. +

+
+ + + + + + + + + + + block1 + block2 + block3 + block4 + + block5 + + + + + + + + + + + + + + + + 3 + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_keep-with-previous.xml b/test/layoutengine/standard-testcases/block_keep-with-previous.xml new file mode 100644 index 000000000..8dd297802 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_keep-with-previous.xml @@ -0,0 +1,95 @@ + + + + + +

+ This test checks keep-with-previous. +

+

+ Widows and Orphans are disabled in this test to avoid side-effects. +

+
+ + + + + + + + + + block1 + block2 + block3 + block4 + block5 + + block6 + block7 + block8 + block9 + block10 + + block11 + + + + + block21 + block22 + block23 + block24 + block25 + + block26 + block27 + block28 + block29 + block30 + + block31 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_keep-with-previous_nested.xml b/test/layoutengine/standard-testcases/block_keep-with-previous_nested.xml new file mode 100644 index 000000000..6784a061c --- /dev/null +++ b/test/layoutengine/standard-testcases/block_keep-with-previous_nested.xml @@ -0,0 +1,55 @@ + + + + + +

+ This test checks keep-with-previous. Special case: keep defined on lower level FO. +

+
+ + + + + + + + + + block1 + + block2 + block3 + block4 + + + + + + + + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/block_letter-spacing.xml b/test/layoutengine/standard-testcases/block_letter-spacing.xml new file mode 100644 index 000000000..37bece008 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_letter-spacing.xml @@ -0,0 +1,64 @@ + + + + + +

+ This test checks block level letter-spacing. +

+
+ + + + + + + + + + Next block has no letter-spacing property: + Default space between characters is defined to be 0pt, i.e., + glyph-areas stacked with no extra space between the allocation-rectangles + of the glyph-areas. + Next block has letter-spacing="normal": + Default space between characters is defined to be 0pt, i.e., + glyph-areas stacked with no extra space between the allocation-rectangles + of the glyph-areas. + Next block has letter-spacing="0pt": + Default space between characters is defined to be 0pt, i.e., + glyph-areas stacked with no extra space between the allocation-rectangles + of the glyph-areas. + Next block has letter-spacing="2pt": + Default space between characters is defined to be 0pt, i.e., + glyph-areas stacked with no extra space between the allocation-rectangles + of the glyph-areas. + Next block has letter-spacing.optimum="2pt" letter-spacing.minimum="0pt" letter-spacing.maximum="4pt": + Default space between characters is defined to be 0pt, i.e., + glyph-areas stacked with no extra space between the allocation-rectangles + of the glyph-areas. + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_letter-spacing_text-align_justify.xml b/test/layoutengine/standard-testcases/block_letter-spacing_text-align_justify.xml new file mode 100644 index 000000000..90f8f1098 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_letter-spacing_text-align_justify.xml @@ -0,0 +1,70 @@ + + + + + +

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

+
+ + + + + + + + + + Next block has no letter-spacing property: + Default space between characters is defined to be 0pt, i.e., + glyph-areas stacked with no extra space between the allocation-rectangles + of the glyph-areas. + Next block has letter-spacing="normal": + Default space between characters is defined to be 0pt, i.e., + glyph-areas stacked with no extra space between the allocation-rectangles + of the glyph-areas. + Next block has letter-spacing="0pt": + Default space between characters is defined to be 0pt, i.e., + glyph-areas stacked with no extra space between the allocation-rectangles + of the glyph-areas. + Next block has letter-spacing="2pt": + Default space between characters is defined to be 0pt, i.e., + glyph-areas stacked with no extra space between the allocation-rectangles + of the glyph-areas. + Next block has letter-spacing.optimum="2pt" letter-spacing.minimum="0pt" letter-spacing.maximum="4pt": + Default space between characters is defined to be 0pt, i.e., + glyph-areas stacked with no extra space between the allocation-rectangles + of the glyph-areas. + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_line-height.xml b/test/layoutengine/standard-testcases/block_line-height.xml new file mode 100644 index 000000000..65a27ed61 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_line-height.xml @@ -0,0 +1,123 @@ + + + + + +

+ This test checks line height and its special inheritance behaviour +

+
+ + + + + + + + + + line-height="normal" + font-size="larger" - line height grows + font-size="smaller" - line height shrinks + + line-height="150%" + font-size="larger" - line height same as above + font-size="smaller" - line height same as above + + line-height="20pt" + font-size="larger" - line height same as above + font-size="smaller" - line height same as above + + line-height="1.5" + font-size="larger" - line height grows + font-size="smaller" - line height shrinks + + line-height="150% - 5pt" + font-size="larger" - line height same as above + font-size="smaller" - line height same as above + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_line-stacking-strategy_1.xml b/test/layoutengine/standard-testcases/block_line-stacking-strategy_1.xml new file mode 100755 index 000000000..8de776c30 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_line-stacking-strategy_1.xml @@ -0,0 +1,164 @@ + + + + + +

+ This test checks line-stacking-strategy font-height against inlines of different sizes. +

+
+ + + + + + + + + + + Before + bigger + + After + + + Before + bigger with b & p + + After + + + Before + sub + sub + sub + + After + + + Before + super + super + super + + After + + + Before + super + sub + super + sub + super + + After + + + Before + sub + super + sub + super + sub + + After + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_linefeed-treatment.xml b/test/layoutengine/standard-testcases/block_linefeed-treatment.xml new file mode 100755 index 000000000..3dc540562 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_linefeed-treatment.xml @@ -0,0 +1,80 @@ + + + + + +

+ This test checks white space handling for linefeed-treatment. + This currently fails because + a) Preserved linefeeds in fo:character are not handled correctly + b) ZWSP are not handled correctly +

+
+ + + + + + + + + + +treat-as-space +alllinefeeds + + +ignore +alllinefeeds + + +preserve +alllinefeeds + + +treat-as-zero-width-space +alllinefeeds + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_margin.xml b/test/layoutengine/standard-testcases/block_margin.xml new file mode 100644 index 000000000..3723e5da0 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_margin.xml @@ -0,0 +1,74 @@ + + + + + +

+ This test checks very simple margin operations. +

+
+ + + + + + + + + + left + right + top + bottom + EOF + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_margin_inherit.xml b/test/layoutengine/standard-testcases/block_margin_inherit.xml new file mode 100644 index 000000000..ea43a11cd --- /dev/null +++ b/test/layoutengine/standard-testcases/block_margin_inherit.xml @@ -0,0 +1,76 @@ + + + + + +

+ This test checks margin percentages on fo:block with explict inheritance. +

+
+ + + + + + + + + + + + margin="inherit" - should have the same margin as the enclosing block + + + Yellow block has margin="5%" - 18pt margin based on 5in page width + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_margin_percentages.xml b/test/layoutengine/standard-testcases/block_margin_percentages.xml new file mode 100644 index 000000000..c84a816c5 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_margin_percentages.xml @@ -0,0 +1,76 @@ + + + + + +

+ This test checks margin percentages on fo:block. +

+
+ + + + + + + + + + + + margin="5%" - should have the slightly smaller margin than the enclosing block + + + Yellow block has margin="5%" - 18pt margin based on 5in page width + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_margin_shorthands.xml b/test/layoutengine/standard-testcases/block_margin_shorthands.xml new file mode 100644 index 000000000..25ac7d553 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_margin_shorthands.xml @@ -0,0 +1,94 @@ + + + + + +

+ This test checks margin shorthands. +

+
+ + + + + + + + + + + all + + left/right + + top/bottom + + three values + + EOF + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_padding.xml b/test/layoutengine/standard-testcases/block_padding.xml new file mode 100644 index 000000000..caac2429a --- /dev/null +++ b/test/layoutengine/standard-testcases/block_padding.xml @@ -0,0 +1,103 @@ + + + + + +

+ This test checks very simple padding operations. +

+
+ + + + + + + + + + start + left + end + right + before + top + after + bottom + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_padding_2.xml b/test/layoutengine/standard-testcases/block_padding_2.xml new file mode 100644 index 000000000..e64750785 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_padding_2.xml @@ -0,0 +1,105 @@ + + + + + +

+ This test checks non-conditional before- and after-padding in break-situations. +

+
+ + + + + + + + + + + line1 + line2 + line3 + line4 + line5 + line6 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/block_padding_percentages.xml b/test/layoutengine/standard-testcases/block_padding_percentages.xml new file mode 100644 index 000000000..45856b7cf --- /dev/null +++ b/test/layoutengine/standard-testcases/block_padding_percentages.xml @@ -0,0 +1,53 @@ + + + + + +

+ This test checks relative padding on blocks. +

+
+ + + + + + + + + + + margin not specified padding="5%" + + + margin="0pt" padding="5%" + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_padding_shorthands.xml b/test/layoutengine/standard-testcases/block_padding_shorthands.xml new file mode 100644 index 000000000..250b1938e --- /dev/null +++ b/test/layoutengine/standard-testcases/block_padding_shorthands.xml @@ -0,0 +1,83 @@ + + + + + +

+ This test checks shorthand padding operations. +

+
+ + + + + + + + + + all + leftright + topbottom + three values + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_space-before_space-after_1.xml b/test/layoutengine/standard-testcases/block_space-before_space-after_1.xml new file mode 100644 index 000000000..9c462b29c --- /dev/null +++ b/test/layoutengine/standard-testcases/block_space-before_space-after_1.xml @@ -0,0 +1,75 @@ + + + + + +

+ This test checks block-level space properties. +

+
+ + + + + + + + + + overlapping block1, negative space-after + normal block1 + spaced block1 + spaced block2 + normal block2 + overlapping block2, negative space-before + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_space-before_space-after_2.xml b/test/layoutengine/standard-testcases/block_space-before_space-after_2.xml new file mode 100644 index 000000000..0676277f9 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_space-before_space-after_2.xml @@ -0,0 +1,156 @@ + + + + + +

+ This test checks block-level space properties. +

+
+ + + + + + + + + + +In olden times when wishing still helped one, there lived a king whose daughters +were all beautiful; and the youngest was so beautiful that the sun itself, which +has seen so much, was astonished whenever it shone in her face. Close by the king's +castle lay a great dark forest, and under an old lime-tree in the forest was a well, +and when the day was very warm, the king's child went out into the forest and sat +down by the side of the cool fountain; and when she was bored she took a golden ball, +and threw it up on high and caught it; and this ball was her favorite plaything. + + +Two blocks, testing conditionality="retain". + + + + + + +In olden times when wishing still helped one, there lived a king whose daughters +were all beautiful; and the youngest was so beautiful that the sun itself, which +has seen so much, was astonished whenever it shone in her face. Close by the king's +castle lay a great dark forest, and under an old lime-tree in the forest was a well, +and when the day was very warm, the king's child went out into the forest and sat +down by the side of the cool fountain; and when she was bored she took a golden ball, +and threw it up on high and caught it; and this ball was her favorite plaything. + + +Two blocks, testing conditionality="discard". + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 8 + 8 + 8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/block_space-before_space-after_3.xml b/test/layoutengine/standard-testcases/block_space-before_space-after_3.xml new file mode 100644 index 000000000..0c59ec68f --- /dev/null +++ b/test/layoutengine/standard-testcases/block_space-before_space-after_3.xml @@ -0,0 +1,55 @@ + + + + + +

+ This test checks block-level space properties. This is the space-resolution example in "4.3.1 Space-resolution Rules". +

+
+ + + + + + + + + + + + + In olden times when wishing still helped one, there lived a king whose daughters + + + + + + + + + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/block_space-before_space-after_4.xml b/test/layoutengine/standard-testcases/block_space-before_space-after_4.xml new file mode 100644 index 000000000..3d4fb9f58 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_space-before_space-after_4.xml @@ -0,0 +1,83 @@ + + + + + +

+ This test checks block-level space properties. Demonstrates that spaces are repeated on every generated area. +

+
+ + + + + + + + + + + line 1 + line 2 + line 3 + line 4 + line 5 + + + + + + + + + + + + + + + + + + + + + + + 6 + 6 + + + + + + + 3 + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_space-before_space-after_5.xml b/test/layoutengine/standard-testcases/block_space-before_space-after_5.xml new file mode 100644 index 000000000..5a7beac8e --- /dev/null +++ b/test/layoutengine/standard-testcases/block_space-before_space-after_5.xml @@ -0,0 +1,96 @@ + + + + + +

+ This test checks block-level space properties. These here are the + examples 3 to 5 on the Wiki. +

+
+ + + + + + + + + + block 1: space-after conditional + block 2: space-before conditional + + + + + block 1: space-after retained + block 2: space-before: conditional + + + + + block 1: space-after retained + block 2: space-before: conditional + + + + + block 1: space-after retained + block 2: space-before retained + + + + + + + + + + + 3 + + + + + + + + + 3 + + + + + + + + 3 + + + + + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/block_space-before_space-after_6.xml b/test/layoutengine/standard-testcases/block_space-before_space-after_6.xml new file mode 100644 index 000000000..7b6737252 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_space-before_space-after_6.xml @@ -0,0 +1,92 @@ + + + + + +

+ This test checks block-level space properties. These here are the + examples 1 and 2 on the Wiki. +

+
+ + + + + + + + + + first line + + before break + after break + + + + + + first line + + before break + after break + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/block_space-before_space-after_7.xml b/test/layoutengine/standard-testcases/block_space-before_space-after_7.xml new file mode 100644 index 000000000..4387626f2 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_space-before_space-after_7.xml @@ -0,0 +1,56 @@ + + + + + +

+ This test checks block-level space properties. These here are the + examples 1 and 2 on the Wiki. +

+
+ + + + + + + + + + + first line + second line + + + + + + + + + + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/block_space-before_space-after_8.xml b/test/layoutengine/standard-testcases/block_space-before_space-after_8.xml new file mode 100644 index 000000000..6a960077f --- /dev/null +++ b/test/layoutengine/standard-testcases/block_space-before_space-after_8.xml @@ -0,0 +1,49 @@ + + + + + +

+ This test checks if the special case is properly handled when an empty block is between two + space-specifiers which should form a stacking constraint. +

+
+ + + + + + + + + + + first line + + + + second line + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_space-before_space-after_9.xml b/test/layoutengine/standard-testcases/block_space-before_space-after_9.xml new file mode 100644 index 000000000..4df459117 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_space-before_space-after_9.xml @@ -0,0 +1,69 @@ + + + + + +

+ This test checks if the isLast case is properly handled. In this case the part list has to be + reversed to do the conditionals removal, but then has to be reversed again to its natural order + so space resolution rules 2 and 3 are properly performed. +

+
+ + + + + + + + + + + + + Apache FOP! + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_space-before_space-after_9a.xml b/test/layoutengine/standard-testcases/block_space-before_space-after_9a.xml new file mode 100644 index 000000000..07f378368 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_space-before_space-after_9a.xml @@ -0,0 +1,90 @@ + + + + + +

+ This test checks if the isLast case is properly handled. In this case the part list has to be + reversed to do the conditionals removal, but then has to be reversed again to its natural order + so space resolution rules 2 and 3 are properly performed. +

+
+ + + + + + + + + + + + + Apache FOP! + + Apache FOP!!! + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_start-indent_end-indent.xml b/test/layoutengine/standard-testcases/block_start-indent_end-indent.xml new file mode 100644 index 000000000..db0e9fc11 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_start-indent_end-indent.xml @@ -0,0 +1,55 @@ + + + + + +

+ This test checks very simple indent operations. +

+
+ + + + + + + + + + start-indent + end-indent + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_text-align_1.xml b/test/layoutengine/standard-testcases/block_text-align_1.xml new file mode 100644 index 000000000..563c83711 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_text-align_1.xml @@ -0,0 +1,123 @@ + + + + + +

+ This test checks text-align and text-align-last. +

+
+ + + + + + + + + + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi suscipit, risus ac congue suscipit, tortor nibh cursus mauris, quis feugiat nunc ante sit amet ante. + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi suscipit, risus ac congue suscipit, tortor nibh cursus mauris, quis feugiat nunc ante sit amet ante. + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi suscipit, risus ac congue suscipit, tortor nibh cursus mauris, quis feugiat nunc ante sit amet ante. + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi suscipit, risus ac congue suscipit, tortor nibh cursus mauris, quis feugiat nunc ante sit amet ante. + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi suscipit, risus ac congue suscipit, tortor nibh cursus mauris, quis feugiat nunc ante sit amet ante. + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi suscipit, risus ac congue suscipit, tortor nibh cursus mauris, quis feugiat nunc ante sit amet ante. + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Morbi suscipit, risus ac congue suscipit, tortor nibh cursus mauris, quis feugiat nunc ante sit amet ante. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_text-align_2.xml b/test/layoutengine/standard-testcases/block_text-align_2.xml new file mode 100644 index 000000000..e6fdd55cd --- /dev/null +++ b/test/layoutengine/standard-testcases/block_text-align_2.xml @@ -0,0 +1,51 @@ + + + + + +

+ This test checks text-align and text-align-last in special conditions. +

+
+ + + + + + + + + + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. + + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. + + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_text-indent.xml b/test/layoutengine/standard-testcases/block_text-indent.xml new file mode 100644 index 000000000..1f1eaceb1 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_text-indent.xml @@ -0,0 +1,95 @@ + + + + + +

+ This test checks the text-indent property. +

+
+ + + + + + + + + + +In olden times when wishing still helped one, there lived a king whose daughters +were all beautiful; and the youngest was so beautiful that the sun itself, which +has seen so much, was astonished whenever it shone in her face. Close by the king's +castle lay a great dark forest, and under an old lime-tree in the forest was a well, +and when the day was very warm, the king's child went out into the forest and sat +down by the side of the cool fountain; and when she was bored she took a golden ball, +and threw it up on high and caught it; and this ball was her favorite plaything. + + +In olden times when wishing still helped one, there lived a king whose daughters +were all beautiful; and the youngest was so beautiful that the sun itself, which +has seen so much, was astonished whenever it shone in her face. Close by the king's +castle lay a great dark forest, and under an old lime-tree in the forest was a well, +and when the day was very warm, the king's child went out into the forest and sat +down by the side of the cool fountain; and when she was bored she took a golden ball, +and threw it up on high and caught it; and this ball was her favorite plaything. + + +This is just for testing purpose and this line will be indented. + + This is the nested block. + +The text following the nested block should be indented as well. The text following +the nested block should be indented as well. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_white-space-collapse_1.xml b/test/layoutengine/standard-testcases/block_white-space-collapse_1.xml new file mode 100755 index 000000000..a935401ad --- /dev/null +++ b/test/layoutengine/standard-testcases/block_white-space-collapse_1.xml @@ -0,0 +1,151 @@ + + + + + +

+ This test checks basic white space handling for white-space-collapse="true". +

+
+ + + + + + + + + + + spaces + before + and + after + each + word + and + linefeeds + everywhere + + + + nested block level + + + nested block level + + + + + inline level + + + inline level + + + + block level + + inline level + + block + + inline level + + block level + + + + inline level + + nested inline level + + + + + + + nested inline level + + inline level + + + + block level + + + nested inline level + + inline level + + block level + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_white-space-collapse_2.xml b/test/layoutengine/standard-testcases/block_white-space-collapse_2.xml new file mode 100755 index 000000000..4f72ba7b9 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_white-space-collapse_2.xml @@ -0,0 +1,111 @@ + + + + + +

+ This test checks basic white space handling for white-space-collapse="false". + The test currently fails because white space around formatter generated + linebreaks is not removed correctly. +

+
+ + + + + + + + + + + spaces + before + and + after + each + word + and + linefeeds + everywhere + + + + nested block level + + + nested block level + + + + + inline level + + + inline level + + + + block level + + inline level + + block + + inline level + + block level + + + + inline level + + nested inline level + + + + + + + nested inline level + + inline level + + + + block level + + + nested inline level + + inline level + + block level + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_white-space-treatment_1.xml b/test/layoutengine/standard-testcases/block_white-space-treatment_1.xml new file mode 100755 index 000000000..a8d48107f --- /dev/null +++ b/test/layoutengine/standard-testcases/block_white-space-treatment_1.xml @@ -0,0 +1,85 @@ + + + + + +

+ This test checks white space handling for white-space-treatment + with white-spcae-collapse="true". + The test currently fails because white space around formatter generated + linebreaks is not removed correctly. +

+
+ + + + + + + + + + + ignore-if-surrounding-linefeed + all + spaces + + + ignore + all + spaces + + + preserve + all + spaces + + + ignore-if-before-linefeed + all + spaces + + + ignore-if-after-linefeed + all + spaces + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_white-space-treatment_2.xml b/test/layoutengine/standard-testcases/block_white-space-treatment_2.xml new file mode 100755 index 000000000..fbd993d5b --- /dev/null +++ b/test/layoutengine/standard-testcases/block_white-space-treatment_2.xml @@ -0,0 +1,85 @@ + + + + + +

+ This test checks white space handling for white-space-treatment. + with white-spcae-collapse="false". + The test currently fails because white space around formatter generated + linebreaks is not removed correctly. +

+
+ + + + + + + + + + + ignore-if-surrounding-linefeed + all + spaces + + + ignore + all + spaces + + + preserve + all + spaces + + + ignore-if-before-linefeed + all + spaces + + + ignore-if-after-linefeed + all + spaces + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_white-space_1.xml b/test/layoutengine/standard-testcases/block_white-space_1.xml new file mode 100644 index 000000000..c249bcea3 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_white-space_1.xml @@ -0,0 +1,68 @@ + + + + + +

+ This test checks normal line layout. +

+
+ + + + + + + + + + word1 word2 word3 + word1 + word2 word3 + + line1 +line2 +line3 + +line1 +line2 + +line3 + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/block_word-spacing.xml b/test/layoutengine/standard-testcases/block_word-spacing.xml new file mode 100644 index 000000000..d8dda0cb7 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_word-spacing.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/standard-testcases/block_word-spacing_text-align_justify.xml b/test/layoutengine/standard-testcases/block_word-spacing_text-align_justify.xml new file mode 100644 index 000000000..739d927a6 --- /dev/null +++ b/test/layoutengine/standard-testcases/block_word-spacing_text-align_justify.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/standard-testcases/block_wrap-option.xml b/test/layoutengine/standard-testcases/block_wrap-option.xml new file mode 100644 index 000000000..40e64372f --- /dev/null +++ b/test/layoutengine/standard-testcases/block_wrap-option.xml @@ -0,0 +1,57 @@ + + + + + +

+ This test checks the wrap-option property on fo:block. +

+
+ + + + + + + + + + + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas et ligula. Suspendisse faucibus. Donec porta risus vitae turpis. + Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas et ligula. Suspendisse faucibus. Donec porta risus vitae turpis. + + + + + + + + + + + + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/character_background-color.xml b/test/layoutengine/standard-testcases/character_background-color.xml new file mode 100755 index 000000000..a95d2cf50 --- /dev/null +++ b/test/layoutengine/standard-testcases/character_background-color.xml @@ -0,0 +1,43 @@ + + + + + +

+ This test checks fo:character with background-color property. +

+
+ + + + + + + + + + + To mphasize a character highlight it. + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/character_background-image.xml b/test/layoutengine/standard-testcases/character_background-image.xml new file mode 100644 index 000000000..8dc1f4361 --- /dev/null +++ b/test/layoutengine/standard-testcases/character_background-image.xml @@ -0,0 +1,48 @@ + + + + + +

+ This test checks fo:character with background-image property. +

+
+ + ../../resources/images/bgimg300dpi.jpg + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/character_border_padding.xml b/test/layoutengine/standard-testcases/character_border_padding.xml new file mode 100755 index 000000000..02c72b118 --- /dev/null +++ b/test/layoutengine/standard-testcases/character_border_padding.xml @@ -0,0 +1,98 @@ + + + + + +

+ This test checks fo:character with border and padding properties. +

+
+ + + + + + + + + + + To mphasize a letter we give it a 1pt border. + + + To really mphasize a letter we give it a 5pt border and padding. + + + To onfuse give it unsymmetric borders and padding. + + + Big order but a smaller font. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/character_vertical-align.xml b/test/layoutengine/standard-testcases/character_vertical-align.xml new file mode 100755 index 000000000..125d56fb0 --- /dev/null +++ b/test/layoutengine/standard-testcases/character_vertical-align.xml @@ -0,0 +1,59 @@ + + + + + +

+ This test checks fo:character with vertical-align property. +

+
+ + + + + + + + + + + vertical-alignnot specified + + + vertical-alignbaseline + + + vertical-aligntop + + + vertical-alignmiddle + + + vertical-alignbottom + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/external-graphic_basic.xml b/test/layoutengine/standard-testcases/external-graphic_basic.xml new file mode 100644 index 000000000..a4ea4a45a --- /dev/null +++ b/test/layoutengine/standard-testcases/external-graphic_basic.xml @@ -0,0 +1,50 @@ + + + + + +

+ This test checks external-graphics. +

+
+ + + + + + + + + + plain external-graphic + + EOG + + EOF + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/external-graphic_bmp.xml b/test/layoutengine/standard-testcases/external-graphic_bmp.xml new file mode 100644 index 000000000..56c3ae62b --- /dev/null +++ b/test/layoutengine/standard-testcases/external-graphic_bmp.xml @@ -0,0 +1,56 @@ + + + + + +

+ This test checks external-graphics. +

+
+ + + + + + + + + + BMP external-graphic 300dpi + + EOG + + BMP external-graphic 72dpi + + EOG + + EOF + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/external-graphic_border_padding.xml b/test/layoutengine/standard-testcases/external-graphic_border_padding.xml new file mode 100644 index 000000000..a05c367b9 --- /dev/null +++ b/test/layoutengine/standard-testcases/external-graphic_border_padding.xml @@ -0,0 +1,81 @@ + + + + + +

+ This test checks borders and the like on external-graphics. +

+
+ + + + + + + + + + + Normal font + + + FO + + + In both blocks we have a setting of border-width="5pt 10pt 20pt 15pt" padding="15pt 20pt 10pt 5pt" on the e-g. + In the first block the e-g determines the height of the line in the 2nd block the font is bigger than the e-g. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/external-graphic_content-height_content-width.xml b/test/layoutengine/standard-testcases/external-graphic_content-height_content-width.xml new file mode 100644 index 000000000..eec2e7b70 --- /dev/null +++ b/test/layoutengine/standard-testcases/external-graphic_content-height_content-width.xml @@ -0,0 +1,49 @@ + + + + + +

+ This test checks external-graphics with relative content-height +

+
+ + + + + + + + + + plain external-graphic + + EOG + + EOF + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/external-graphic_display-align.xml b/test/layoutengine/standard-testcases/external-graphic_display-align.xml new file mode 100644 index 000000000..76d74b791 --- /dev/null +++ b/test/layoutengine/standard-testcases/external-graphic_display-align.xml @@ -0,0 +1,85 @@ + + + + + +

+ This test checks external-graphics with display-align. +

+
+ + + + + + + + + + plain external-graphic + + EOG + + external-graphic with display-align="auto" + + EOG + + external-graphic with display-align="before" + + EOG + + external-graphic with display-align="center" + + EOG + + external-graphic with display-align="after" + + EOG + + EOF + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/external-graphic_emf.xml b/test/layoutengine/standard-testcases/external-graphic_emf.xml new file mode 100644 index 000000000..6cf940530 --- /dev/null +++ b/test/layoutengine/standard-testcases/external-graphic_emf.xml @@ -0,0 +1,48 @@ + + + + + +

+ This test checks external-graphics. +

+
+ + + + + + + + + + EMF external-graphic + + EOG + + EOF + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/external-graphic_eps.xml b/test/layoutengine/standard-testcases/external-graphic_eps.xml new file mode 100644 index 000000000..9fedae0bb --- /dev/null +++ b/test/layoutengine/standard-testcases/external-graphic_eps.xml @@ -0,0 +1,48 @@ + + + + + +

+ This test checks external-graphics. +

+
+ + + + + + + + + + EPS external-graphic + + EOG + + EOF + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/external-graphic_gif.xml b/test/layoutengine/standard-testcases/external-graphic_gif.xml new file mode 100644 index 000000000..a7828aace --- /dev/null +++ b/test/layoutengine/standard-testcases/external-graphic_gif.xml @@ -0,0 +1,48 @@ + + + + + +

+ This test checks external-graphics. +

+
+ + + + + + + + + + GIF external-graphic + + EOG + + EOF + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/external-graphic_jpeg.xml b/test/layoutengine/standard-testcases/external-graphic_jpeg.xml new file mode 100644 index 000000000..1df417926 --- /dev/null +++ b/test/layoutengine/standard-testcases/external-graphic_jpeg.xml @@ -0,0 +1,56 @@ + + + + + +

+ This test checks external-graphics. +

+
+ + + + + + + + + + JPEG external-graphic 300dpi + + EOG + + JPEG external-graphic 72dpi + + EOG + + EOF + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/external-graphic_overflow_hidden.xml b/test/layoutengine/standard-testcases/external-graphic_overflow_hidden.xml new file mode 100644 index 000000000..ae099e6d6 --- /dev/null +++ b/test/layoutengine/standard-testcases/external-graphic_overflow_hidden.xml @@ -0,0 +1,62 @@ + + + + + +

+ This test checks external-graphics. +

+
+ + + + + + + + + + height="40pt" + + EOG + + width="40pt" + + EOG + + EOF + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/external-graphic_oversized.xml b/test/layoutengine/standard-testcases/external-graphic_oversized.xml new file mode 100644 index 000000000..3b091a8c0 --- /dev/null +++ b/test/layoutengine/standard-testcases/external-graphic_oversized.xml @@ -0,0 +1,52 @@ + + + + + +

+ This test checks external-graphics. An oversized image is to be squeezed into page using min/opt/max values. +

+
+ + + + + + + + + + This first block is only to force an infinite loop if the image is not scaled down. + + + + + EOF + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/external-graphic_png.xml b/test/layoutengine/standard-testcases/external-graphic_png.xml new file mode 100644 index 000000000..2479c533d --- /dev/null +++ b/test/layoutengine/standard-testcases/external-graphic_png.xml @@ -0,0 +1,57 @@ + + + + + +

+ This test checks external-graphics. +

+
+ + + + + + + + + + PNG external-graphic 300dpi + + EOG + + PNG external-graphic 72dpi + + EOG + + EOF + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/external-graphic_src_uri.xml b/test/layoutengine/standard-testcases/external-graphic_src_uri.xml new file mode 100644 index 000000000..d299517df --- /dev/null +++ b/test/layoutengine/standard-testcases/external-graphic_src_uri.xml @@ -0,0 +1,82 @@ + + + + + +

+ This test checks URI references to external-graphics. +

+
+ + + + + + + + + + plain external-graphic (relative URI) + + EOG + + plain external-graphic (relative URI with scheme) + + EOG + + + plain external-graphic (relative URI using url(...) function) + + EOG + + plain external-graphic (absolute HTTP URI) + + EOG + + EOF + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/external-graphic_svg.xml b/test/layoutengine/standard-testcases/external-graphic_svg.xml new file mode 100644 index 000000000..5f13dc313 --- /dev/null +++ b/test/layoutengine/standard-testcases/external-graphic_svg.xml @@ -0,0 +1,81 @@ + + + + + +

+ This test checks external-graphics. +

+
+ + + + + + + + + + 2 inch wide SVG external-graphic on LHS + + EOG + + 4 inch wide SVG external-graphic on RHS + + EOG + + 6 inch wide SVG external-graphic in center, non-uniformly squeezed to a height of 4in. + + EOG + + SVG external-graphic with an intrinsic size (16ptx16pt) + + EOG + + EOF + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/external-graphic_tiff.xml b/test/layoutengine/standard-testcases/external-graphic_tiff.xml new file mode 100644 index 000000000..1b38504b0 --- /dev/null +++ b/test/layoutengine/standard-testcases/external-graphic_tiff.xml @@ -0,0 +1,64 @@ + + + + + +

+ This test checks external-graphics. +

+
+ + + + + + + + + + TIFF external-graphic 300dpi + + EOG + + TIFF external-graphic 72dpi + + EOG + + TIFF external-graphic (CCITT group 4 encoding) + + EOG + + EOF + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/footnote_basic.xml b/test/layoutengine/standard-testcases/footnote_basic.xml new file mode 100644 index 000000000..888c0b1c6 --- /dev/null +++ b/test/layoutengine/standard-testcases/footnote_basic.xml @@ -0,0 +1,80 @@ + + + + + +

+ This test checks footnotes. +

+
+ + + + + + + + + + This is a block with a footnote11I'm a footnote! in it. + This is another block without a footnote. + filling 1... + filling 2... + filling 3... + filling 4... + filling 5... + filling 6... + filling 7... + filling 8... + filling 9... + filling 10... + filling 11... + filling 12... + filling 13... + filling 14... + filling 15... + filling 16... + filling 17... + filling 18... + filling 19... + filling 20... + filling 21... + filling 22... + filling 23... + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/footnote_footnote-separator.xml b/test/layoutengine/standard-testcases/footnote_footnote-separator.xml new file mode 100644 index 000000000..4bfdb64e1 --- /dev/null +++ b/test/layoutengine/standard-testcases/footnote_footnote-separator.xml @@ -0,0 +1,111 @@ + + + + + +

+ This test checks footnotes including separator. +

+
+ + + + + + + + + + I'm a block serving as a footnote separator. I'm on page . + + + This is a block with a footnote11I'm a footnote! in it. + This is a block with another footnote22I'm another footnote!. + filling 1... + filling 2... + filling 3... + filling 4... + filling 5... + filling 6... + filling 7... + filling 8... + filling 9... + filling 10... + filling 11... + filling 12... + filling 13... + filling 14... + filling 15... + filling 16... + filling 17... + filling 18... + filling 19... + filling 20... + filling 21... + filling 22... + filling 23... + I come from an empty block at the end of the flow! + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/footnote_large.xml b/test/layoutengine/standard-testcases/footnote_large.xml new file mode 100644 index 000000000..5870b3d14 --- /dev/null +++ b/test/layoutengine/standard-testcases/footnote_large.xml @@ -0,0 +1,158 @@ + + + + +

+ This test checks the positioning of a content line with respect to the footnotes cited in it. +

+
+ + + + + + + + + + line 1. The last content line in this page has a + line 2. reference to a huge footnote; the footnote + line 3. is broken, part of it will be placed in the + line 4. second page, together with a content line, + line 5. and the last part will be placed in page three + line 6. together with the remaining content and . + line 7. footnote lines. + line 8. ---------+---------+---------+---------+------ + line 9. + line 10. + line 11. + line 12. + line 13. + line 14. + line 15. + line 16. + line 17. + line 18. + + 1 + + 1 footnote line 1/43. + footnote line 2/43. + footnote line 3/43. + footnote line 4/43. + footnote line 5/43. + footnote line 6/43. + footnote line 7/43. + footnote line 8/43. + footnote line 9/43. + footnote line 10/43. + footnote line 11/43. + footnote line 12/43. + footnote line 13/43. + footnote line 14/43. + footnote line 15/43. + footnote line 16/43. + footnote line 17/43. + footnote line 18/43. + footnote line 19/43. + footnote line 20/43. + footnote line 21/43. + footnote line 22/43. + footnote line 23/43. + footnote line 24/43. + footnote line 25/43. + footnote line 26/43. + footnote line 27/43. + footnote line 28/43. + footnote line 29/43. + footnote line 30/43. + footnote line 31/43. + footnote line 32/43. + footnote line 33/43. + footnote line 34/43. + footnote line 35/43. + footnote line 36/43. + footnote line 37/43. + footnote line 38/43. + footnote line 39/43. + footnote line 40/43. + footnote line 41/43. + footnote line 42/43. + footnote line 43/43. + + + + line 19. + line 20. + line 21. + line 22. + line 23. + line 24. + line 25. + line 26. + line 27. + line 28. + line 29. + line 30. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/footnote_overflow-to-empty-page.xml b/test/layoutengine/standard-testcases/footnote_overflow-to-empty-page.xml new file mode 100644 index 000000000..ddeea2392 --- /dev/null +++ b/test/layoutengine/standard-testcases/footnote_overflow-to-empty-page.xml @@ -0,0 +1,81 @@ + + + + +

+ This test checks the creation of a page containing the remaining of a footnote and no content lines. +

+
+ + + + + + + + + + line 1. There is a footnote citation in the last + line 2. content line of this page. + line 3. The footnote body does not fit in the + line 4. remaining space so it is broken: the last + line 5. part of it will be placed in a new page + line 6. with no content lines. + line 7. ---------+---------+---------+---------+------ + line 8. + line 9. + line 10. + line 11. + line 12. + line 13. + line 14. + line 15. + line 16. + line 17. + line 18. + + 1 + + 1 footnote line 1/3. + footnote line 2/3. + footnote line 3/3. + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/footnote_overflow-to-multiple-pages.xml b/test/layoutengine/standard-testcases/footnote_overflow-to-multiple-pages.xml new file mode 100644 index 000000000..abd631e22 --- /dev/null +++ b/test/layoutengine/standard-testcases/footnote_overflow-to-multiple-pages.xml @@ -0,0 +1,105 @@ + + + + +

+ This test checks the creation of two pages containing the remaining of a footnote and no content lines. +

+
+ + + + + + + + + + line 1. There is a footnote citation in the last + line 2. content line of this page. + line 3. The footnote body does not fit in the + line 4. remaining space so it is broken: il will fill + line 5. a page and will end in another one. + line 6. ---------+---------+---------+---------+------ + line 7. + line 8. + line 9. + line 10. + line 11. + line 12. + line 13. + line 14. + line 15. + line 16. + line 17. + line 18. + + 1 + + 1 footnote line 1/23. + footnote line 2/23. + footnote line 3/23. + footnote line 4/23. + footnote line 5/23. + footnote line 6/23. + footnote line 7/23. + footnote line 8/23. + footnote line 9/23. + footnote line 10/23. + footnote line 11/23. + footnote line 12/23. + footnote line 13/23. + footnote line 14/23. + footnote line 15/23. + footnote line 16/23. + footnote line 17/23. + footnote line 18/23. + footnote line 19/23. + footnote line 20/23. + footnote line 21/23. + footnote line 22/23. + footnote line 23/23. + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/footnote_positioning_1.xml b/test/layoutengine/standard-testcases/footnote_positioning_1.xml new file mode 100644 index 000000000..854b3ed6e --- /dev/null +++ b/test/layoutengine/standard-testcases/footnote_positioning_1.xml @@ -0,0 +1,97 @@ + + + + +

+ This test checks the positioning of a content line with respect to the footnotes cited in it. +

+
+ + + + + + + + + + line 1. There are two footnote citation in the last + line 2. content line of this page. + line 3. The first footnote body does not fit in the + line 4. remaining space so it is broken, the second + line 5. one is deferred to the next page. + line 6. ---------+---------+---------+---------+------ + line 7. + line 8. + line 9. + line 10. + line 11. + line 12. + line 13. + line 14. + line 15. + line 16. + line 17. + line 18. + + 1 + + 1 footnote line 1/3. + footnote line 2/3. + footnote line 3/3. + + + + 2 + + 2 footnote line 1/2. + footnote line 2/2. + + + + line 19. + line 20. + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/footnote_positioning_2.xml b/test/layoutengine/standard-testcases/footnote_positioning_2.xml new file mode 100644 index 000000000..0fb323d5e --- /dev/null +++ b/test/layoutengine/standard-testcases/footnote_positioning_2.xml @@ -0,0 +1,104 @@ + + + + +

+ This test checks the positioning of a content line with respect to the footnotes cited in it. +

+
+ + + + + + + + + + line 1. There are three footnote citation in the last + line 2. content line of this page. + line 3. The third one does not fit in the remaining + line 4. space so it is deferred to the next page. + line 5. ---------+---------+---------+---------+------ + line 6. + line 7. + line 8. + line 9. + line 10. + line 11. + line 12. + line 13. + line 14. + line 15. + line 16. + line 17. + line 18. + + 1 + + 1 footnote line 1/1. + + + + 2 + + 2 footnote line 1/1. + + + + 3 + + 3 footnote line 1/2. + footnote line 2/2. + + + + line 19. + line 20. + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/footnote_positioning_3.xml b/test/layoutengine/standard-testcases/footnote_positioning_3.xml new file mode 100644 index 000000000..e2dee78ed --- /dev/null +++ b/test/layoutengine/standard-testcases/footnote_positioning_3.xml @@ -0,0 +1,111 @@ + + + + +

+ This test checks the positioning of a content line with respect to the footnotes cited in it. +

+
+ + + + + + + + + + line 1. There are three footnote citations in the last + line 2. content line that could be placed in this + line 3. page, but there is not enough space to insert + line 4. at least a piece of the first one, so the line + line 5. is deferred to the next page together with all + line 6. its footnotes. + line 7. ---------+---------+---------+---------+------ + line 8. + line 9. + line 10. + + 1 + + 1 footnote line 1/1. + + + + line 11. + line 12. + line 13. + line 14. + line 15. + line 16. + line 17. + line 18. + line 19. + + 2 + + 2 footnote line 1/1. + + + + 3 + + 3 footnote line 1/1. + + + + 4 + + 4 footnote line 1/2. + footnote line 2/2. + + + + line 20. + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/footnote_positioning_4.xml b/test/layoutengine/standard-testcases/footnote_positioning_4.xml new file mode 100644 index 000000000..e8be4b0cf --- /dev/null +++ b/test/layoutengine/standard-testcases/footnote_positioning_4.xml @@ -0,0 +1,127 @@ + + + + +

+ This test checks the positioning of a content line with respect to the footnotes cited in it. +

+
+ + + + + + + + + + line 1. The last content line in this page has a + line 2. reference to a huge footnote; the footnote + line 3. is broken, part of it will be placed in the + line 4. second page, together with a content line, + line 5. and the last part will be placed in page three + line 6. together with the remaining content and . + line 7. footnote lines. + line 8. ---------+---------+---------+---------+------ + line 9. + line 10. + line 11. + line 12. + line 13. + line 14. + line 15. + line 16. + line 17. + line 18. + + 1 + + 1 footnote line 1/23. + footnote line 2/23. + footnote line 3/23. + footnote line 4/23. + footnote line 5/23. + footnote line 6/23. + footnote line 7/23. + footnote line 8/23. + footnote line 9/23. + footnote line 10/23. + footnote line 11/23. + footnote line 12/23. + footnote line 13/23. + footnote line 14/23. + footnote line 15/23. + footnote line 16/23. + footnote line 17/23. + footnote line 18/23. + footnote line 19/23. + footnote line 20/23. + footnote line 21/23. + footnote line 22/23. + footnote line 23/23. + + + + line 19. + line 20. + line 21. + line 22. + line 23. + line 24. + line 25. + line 26. + line 27. + line 28. + line 29. + line 30. + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/footnote_positioning_5.xml b/test/layoutengine/standard-testcases/footnote_positioning_5.xml new file mode 100644 index 000000000..3b3cea007 --- /dev/null +++ b/test/layoutengine/standard-testcases/footnote_positioning_5.xml @@ -0,0 +1,137 @@ + + + + +

+ This test checks the positioning of a content line with respect to the footnotes cited in it. +

+
+ + + + + + + + + + line 1. The last content line in this page has a + line 2. reference to a huge footnote; the footnote + line 3. is broken, part of it will be placed in the + line 4. second page, together with a content line, + line 5. and the last part will be placed in page three + line 6. together with the remaining content and + line 7. footnote lines. + line 8. ---------+---------+---------+---------+------ + line 9. + line 10. + line 11. + line 12. + line 13. + line 14. + line 15. + line 16. + line 17. + line 18. + + 1 + + 1 footnote line 1/23. + footnote line 2/23. + footnote line 3/23. + footnote line 4/23. + footnote line 5/23. + footnote line 6/23. + footnote line 7/23. + footnote line 8/23. + footnote line 9/23. + footnote line 10/23. + footnote line 11/23. + footnote line 12/23. + footnote line 13/23. + footnote line 14/23. + footnote line 15/23. + footnote line 16/23. + footnote line 17/23. + footnote line 18/23. + footnote line 19/23. + footnote line 20/23. + footnote line 21/23. + footnote line 22/23. + footnote line 23/23. + + + + line 19. + + 2 + + 2 footnote line 1/1. + + + + line 20. + line 21. + line 22. + line 23. + line 24. + line 25. + line 26. + line 27. + line 28. + line 29. + line 30. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/footnote_space-resolution.xml b/test/layoutengine/standard-testcases/footnote_space-resolution.xml new file mode 100644 index 000000000..151e276b9 --- /dev/null +++ b/test/layoutengine/standard-testcases/footnote_space-resolution.xml @@ -0,0 +1,58 @@ + + + + + +

+ This test checks space-resolution inside the footnotes area. +

+
+ + + + + + + + + + region-body + 1 + + + 1I'm a footnote! + + + blah + 2 + + + 2I'm a footnote! + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline-block_keep-together.xml b/test/layoutengine/standard-testcases/inline-block_keep-together.xml new file mode 100644 index 000000000..6f04c96f7 --- /dev/null +++ b/test/layoutengine/standard-testcases/inline-block_keep-together.xml @@ -0,0 +1,62 @@ + + + + + +

+ This test checks keep-together.within-line. +

+

+ This test builds on the results from normal-breaking6.xml. +

+
+ + + + + + + + + + + This is BLah-blah-blah-blah! + This is Blah-blah-blah-blah! + This is Blah blah blah blah! + This is Blah blah blah blah! + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline-container_block_nested.xml b/test/layoutengine/standard-testcases/inline-container_block_nested.xml new file mode 100644 index 000000000..3acf170d3 --- /dev/null +++ b/test/layoutengine/standard-testcases/inline-container_block_nested.xml @@ -0,0 +1,64 @@ + + + + + +

+ This test checks nested blocks with inline-containers and indents. +

+
+ + + + + + + + + + outer block + + inner block + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline-container_border_padding.xml b/test/layoutengine/standard-testcases/inline-container_border_padding.xml new file mode 100644 index 000000000..10ab7b646 --- /dev/null +++ b/test/layoutengine/standard-testcases/inline-container_border_padding.xml @@ -0,0 +1,85 @@ + + + + + +

+ This test checks the borders and the like for instream-foreign-object. +

+
+ + + + + + + + + + + Before + inside the container + after + + + BC + inside the container + AC + + + In both blocks we have a setting of border-width="5pt 10pt 20pt 15pt" padding="15pt 20pt 10pt 5pt" on the i-f-o. + In the first block the i-f-o determines the height of the line in the 2nd block the font is bigger than the i-f-o. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline-level_id.xml b/test/layoutengine/standard-testcases/inline-level_id.xml new file mode 100644 index 000000000..9b6d22596 --- /dev/null +++ b/test/layoutengine/standard-testcases/inline-level_id.xml @@ -0,0 +1,79 @@ + + + + + +

+ This test checks IDs on inline-level FOs. +

+

+ TODO: + Test inline-container, bidi-override once implemented. +

+

+ Notes: + The following FOs cannot be tested this way: + wrapper, initial-property-set. +

+
+ + + + + + + + + + textinlinetext + textwrappertext + texttext + texttext + texttext + texttext + texttext + texttext + textlinktext + text + + + + + + + text + texttext + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline_alignment-adjust_1.xml b/test/layoutengine/standard-testcases/inline_alignment-adjust_1.xml new file mode 100755 index 000000000..ca2cfde50 --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_alignment-adjust_1.xml @@ -0,0 +1,91 @@ + + + + + +

+ This test checks inline level alignment-adjust. +

+
+ + + + + + + + + + + Before alignment-adjust not specified After + + + Before alignment-adjust="auto" After + + + Before alignment-adjust="baseline" After + + + Before alignment-adjust="before-edge" After + + + Before alignment-adjust="text-before-edge" After + + + Before alignment-adjust="central" After + + + Before alignment-adjust="middle" After + + + Before alignment-adjust="after-edge" After + + + Before alignment-adjust="text-after-edge" After + + + Before alignment-adjust="ideographic" After + + + Before alignment-adjust="alphabetic" After + + + Before alignment-adjust="hanging" After + + + Before alignment-adjust="mathematical" After + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline_alignment-adjust_2.xml b/test/layoutengine/standard-testcases/inline_alignment-adjust_2.xml new file mode 100755 index 000000000..d8d766e50 --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_alignment-adjust_2.xml @@ -0,0 +1,98 @@ + + + + + +

+ This test checks inline level alignment-adjust. +

+
+ + + + + + + + + + + Before alignment-adjust="0pt" After + + + Before alignment-adjust="0%" After + + + Before alignment-adjust="3pt" After + + + Before alignment-adjust="-3pt" After + + + Before alignment-adjust="30%" After + + + Before alignment-adjust="-30%" After + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline_alignment-baseline_1.xml b/test/layoutengine/standard-testcases/inline_alignment-baseline_1.xml new file mode 100755 index 000000000..0e1ae430d --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_alignment-baseline_1.xml @@ -0,0 +1,91 @@ + + + + + +

+ This test checks inline level alignment-baseline. +

+
+ + + + + + + + + + + Before alignment-baseline not specified After + + + Before alignment-baseline="auto" After + + + Before alignment-baseline="baseline" After + + + Before alignment-baseline="before-edge" After + + + Before alignment-baseline="text-before-edge" After + + + Before alignment-baseline="central" After + + + Before alignment-baseline="middle" After + + + Before alignment-baseline="after-edge" After + + + Before alignment-baseline="text-after-edge" After + + + Before alignment-baseline="ideographic" After + + + Before alignment-baseline="alphabetic" After + + + Before alignment-baseline="hanging" After + + + Before alignment-baseline="mathematical" After + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline_alignment-baseline_2.xml b/test/layoutengine/standard-testcases/inline_alignment-baseline_2.xml new file mode 100755 index 000000000..2fc852a76 --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_alignment-baseline_2.xml @@ -0,0 +1,116 @@ + + + + + +

+ This test checks inline level alignment-baseline. +

+
+ + + + + + + + + + + Before alignment-baseline not specified After + + + Before alignment-baseline="auto" After + + + Before alignment-baseline="baseline" After + + + Before alignment-baseline="before-edge" After + + + Before alignment-baseline="text-before-edge" After + + + Before alignment-baseline="central" After + + + Before alignment-baseline="middle" After + + + Before alignment-baseline="after-edge" After + + + Before alignment-baseline="text-after-edge" After + + + Before alignment-baseline="ideographic" After + + + Before alignment-baseline="alphabetic" After + + + Before alignment-baseline="hanging" After + + + Before alignment-baseline="mathematical" After + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline_alignment-baseline_3.xml b/test/layoutengine/standard-testcases/inline_alignment-baseline_3.xml new file mode 100755 index 000000000..3359f862d --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_alignment-baseline_3.xml @@ -0,0 +1,91 @@ + + + + + +

+ This test checks inline level alignment-baseline. +

+
+ + + + + + + + + + + Before alignment-baseline not specified After + + + Before alignment-baseline="auto" After + + + Before alignment-baseline="baseline" After + + + Before alignment-baseline="before-edge" After + + + Before alignment-baseline="text-before-edge" After + + + Before alignment-baseline="central" After + + + Before alignment-baseline="middle" After + + + Before alignment-baseline="after-edge" After + + + Before alignment-baseline="text-after-edge" After + + + Before alignment-baseline="ideographic" After + + + Before alignment-baseline="alphabetic" After + + + Before alignment-baseline="hanging" After + + + Before alignment-baseline="mathematical" After + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline_alignment-baseline_4.xml b/test/layoutengine/standard-testcases/inline_alignment-baseline_4.xml new file mode 100755 index 000000000..4268c1239 --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_alignment-baseline_4.xml @@ -0,0 +1,231 @@ + + + + + +

+ This test checks inline level alignment-baseline for nested inlines. +

+
+ + + + + + + + + + Big + alphabetic + alphabetic + + Big Baseline table unchanged + + Big + alphabetic + alphabetic + + Big Baseline table changed + + Big + hanging + middle + + Big Baseline table unchanged + + Big + hanging + middle + + Big Baseline table changed + + Big + text-before-edge + after-edge + + Big Baseline table unchanged + + Big + text-before-edge + after-edge + + Big Baseline table changed + + Big + central + text-before-edge + alphabetic + + + Big Baseline table unchanged + + Big + central + text-before-edge + alphabetic + + + Big Baseline table changed + + Big + central + text-before-edge + alphabetic + + + Big Baseline table changed twice + + Big + before-edge + after-edge + + Big This is over constraint + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline_background-color.xml b/test/layoutengine/standard-testcases/inline_background-color.xml new file mode 100755 index 000000000..ee56f58ed --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_background-color.xml @@ -0,0 +1,132 @@ + + + + + +

+ This test checks fo:inline with background-color properties. +

+
+ + + + + + + + + + + To emphasize a phrase highlight it. + + + To emphasize a phrase highlight it with text-align="end". + + + To emphasize a phrase highlight it with text-align="justify". + + + To emphasize a phrase highlight it with text-align="center". + + + This demonstrates a long inline + which stretches over multiple lines to + show how the highlight extends from line to line while + correctly honouring the text-align (not specified) property + back to normal + + + This demonstrates a long inline + which stretches over multiple lines to + show how the highlight extends from line to line while + correctly honouring the text-align="end" property + back to normal + + + This demonstrates a long inline + which stretches over multiple lines to + show how the highlight extends from line to line while + correctly honouring the text-align="justify" property + back to normal + + + This demonstrates a long inline + which stretches over multiple lines to + show how the highlight extends from line to line while + correctly honouring the text-align="center" property + back to normal + + + Nested inline highlights + this is 10pt text + nested within is 14pt text + followed by 10pt text + back to normal + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline_background-image.xml b/test/layoutengine/standard-testcases/inline_background-image.xml new file mode 100644 index 000000000..570be1d8d --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_background-image.xml @@ -0,0 +1,48 @@ + + + + + +

+ This test checks background image on a fo:inline. +

+
+ + ../../resources/images/bgimg300dpi.jpg + + + + + + + + + + + + Why is FOP so cool? + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline_baseline-shift_1.xml b/test/layoutengine/standard-testcases/inline_baseline-shift_1.xml new file mode 100755 index 000000000..591e33756 --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_baseline-shift_1.xml @@ -0,0 +1,164 @@ + + + + + +

+ This test checks inline level baseline-shift. +

+
+ + + + + + + + + + + Before + baseline-shift="baseline" + After + + + Before + baseline-shift="sub" + After + + + Before + baseline-shift="super" + After + + + Before + baseline-shift="0pt" + After + + + Before + baseline-shift="0%" + After + + + Before + baseline-shift="3pt" + After + + + Before + baseline-shift="-3pt" + After + + + Before + baseline-shift="30%" + After + + + Before + baseline-shift="-30%" + After + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline_baseline-shift_2.xml b/test/layoutengine/standard-testcases/inline_baseline-shift_2.xml new file mode 100755 index 000000000..5e7b276b7 --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_baseline-shift_2.xml @@ -0,0 +1,172 @@ + + + + + +

+ This test checks inline level baseline-shift. +

+
+ + + + + + + + + + + Before + sub + sub + sub + + After + + + Before + sub + super + sub + + After + + + Before + super + super + super + + After + + + Before + super + sub + super + + After + + + Before + 30% + -50% + 30% + + After + + + Before + super + sub + super + sub + super + + After + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ diff --git a/test/layoutengine/standard-testcases/inline_baseline-shift_3.xml b/test/layoutengine/standard-testcases/inline_baseline-shift_3.xml new file mode 100755 index 000000000..10f745a18 --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_baseline-shift_3.xml @@ -0,0 +1,210 @@ + + + + + +

+ This test checks inline level baseline-shift. +

+
+ + + + + + + + + + + Before + middle + sub + middle + + After Baseline table changed + + + Before + middle + super + middle + + After Baseline table changed + + + Before + text-after-edge + 30% + text-after-edge + + After Baseline table changed + + + Before + text-before-edge + -50% + text-before-edge + + After Baseline table changed + + + Before + middle + sub + middle + + After Baseline table unchanged + + + Before + middle + super + middle + + After Baseline table unchanged + + + Before + text-after-edge + 30% + text-after-edge + + After Baseline table unchanged + + + Before + text-before-edge + -50% + text-before-edge + + After Baseline table unchanged + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline_baseline-shift_4.xml b/test/layoutengine/standard-testcases/inline_baseline-shift_4.xml new file mode 100755 index 000000000..c0ade7fbe --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_baseline-shift_4.xml @@ -0,0 +1,184 @@ + + + + + +

+ This test checks inline level baseline-shift. +

+
+ + + + + + + + + + + Before + 6pt central + + central + + After + + + Before + -6pt central + + central + + After + + + Before + sub + text-before-edge + Baseline unchanged + central + + After + + + Before + super + text-after-edge + Baseline unchanged + central + + After + + + Before + sub + text-before-edge + Baseline changed + central + + After + + + Before + super + text-after-edge + Baseline changed + central + + After + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline_block_nested_1.xml b/test/layoutengine/standard-testcases/inline_block_nested_1.xml new file mode 100644 index 000000000..f64ebe37e --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_block_nested_1.xml @@ -0,0 +1,48 @@ + + + + + +

+ This test checks fo:inline and nested nodes. +

+
+ + + + + + + + + + part1part2 + + + + + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/inline_block_nested_2.xml b/test/layoutengine/standard-testcases/inline_block_nested_2.xml new file mode 100644 index 000000000..e0f77824b --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_block_nested_2.xml @@ -0,0 +1,99 @@ + + + + + +

+ This test checks block content in fo:inline. It stresses the nesting by letting the fo:inline have a background color. +

+
+ + + + + + + + + + + + The appropriate values of the parameters can be obtained from the following equations: + + w1 + w2 + w3 = W, + + + y1 + y2 + y3 = Y, + where W and Y follow from the previous rule. This completes our argument. + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline_block_nested_3.xml b/test/layoutengine/standard-testcases/inline_block_nested_3.xml new file mode 100644 index 000000000..60bdea9f1 --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_block_nested_3.xml @@ -0,0 +1,89 @@ + + + + + +

+ This test checks block content in fo:inline. It stresses the nesting by letting the fo:inline have a background color. +

+
+ + + + + + + + + + + + The appropriate values of the parameters can be obtained from the following table: + + + + + + + + w1 + w2 + w3 + + + W + + + + + y1 + y2 + y3 + + + Y + + + + + where W and Y follow from the previous rule. This completes our argument. + + + + + + + + + + + + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/inline_block_nested_4.xml b/test/layoutengine/standard-testcases/inline_block_nested_4.xml new file mode 100644 index 000000000..8def85e10 --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_block_nested_4.xml @@ -0,0 +1,93 @@ + + + + + +

+ This test checks block content in fo:inline. It tests the + case when an fo:inline starts a block after some + text in the parent fo. +

+
+ + + + + + + + + + + Before inline + starting with a block + after block + After inline + + + Before inline + starting with a block + after block + After inline + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline_block_nested_bug36248.xml b/test/layoutengine/standard-testcases/inline_block_nested_bug36248.xml new file mode 100644 index 000000000..d25247a0b --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_block_nested_bug36248.xml @@ -0,0 +1,59 @@ + + + + + +

+ This test checks fo:inline and nested nodes. Regression test for Bugzilla #36248. +

+
+ + + + + + + + + + normalnormal + normalnormal + normalnormal + normalnormal + normal + + + + + + + +normal + normalnormal + normalwrappednormal + normalTODO: bidi-override is missing herenormal + normalnested inlinenormal + normalblabla? yawn.normal + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline_border_padding.xml b/test/layoutengine/standard-testcases/inline_border_padding.xml new file mode 100644 index 000000000..609a09625 --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_border_padding.xml @@ -0,0 +1,140 @@ + + + + + +

+ This test checks inlines with border and padding properties. +

+
+ + + + + + + + + + + To emphasize a word we give it a 1pt border and a background. + + + Demonstrates a big border inline with border="solid 5pt red" padding="5pt" extending over the small allocation rectangle to the top and bottom. + + + Demonstrates unsymmetric borders and padding but the baselines should align. + + + Big border with a smaller font but the baselines should align. + + + This demonstrates correct line breaking of a fo:inline because it does fit nicely.. + This demonstrates correct line breaking of a fo:inline because it does fit nicely.. + Not really as we started a fo:inline with border/padding just before the word "nicely" which forces it to the next line. + + + Demonstrates nested + inlines + finishing together + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline_border_padding_block_nested_1.xml b/test/layoutengine/standard-testcases/inline_border_padding_block_nested_1.xml new file mode 100755 index 000000000..fc26c2b8f --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_border_padding_block_nested_1.xml @@ -0,0 +1,126 @@ + + + + + +

+ This test checks fo:inlines with border and padding properties and nested inner blocks. +

+
+ + + + + + + + + + + Before inline + starting with a block + after block + After inline + + + Before inline + before block + having a block at the end of an inline + After inline + + + Before inline + before block + As far as the laws of mathematics refer to reality, they are not certain, + and as far as they are certain, they do not refer to reality - Albert Einstein + after block + After inline + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline_border_padding_block_nested_2.xml b/test/layoutengine/standard-testcases/inline_border_padding_block_nested_2.xml new file mode 100755 index 000000000..345a2c4c3 --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_border_padding_block_nested_2.xml @@ -0,0 +1,168 @@ + + + + + +

+ This test checks fo:inlines with border and padding properties and nested inner blocks. +

+
+ + + + + + + + + + + Before inline + starting with a block + after block + After inline with conditionality="retain" + + + Before inline + before block + having a block at the end of an inline + After inline with conditionality="retain" + + + Before inline + before block + As far as the laws of mathematics refer to reality, they are not certain, + and as far as they are certain, they do not refer to reality - Albert Einstein + after block + After inline with conditionality="retain" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline_border_padding_conditionality_1.xml b/test/layoutengine/standard-testcases/inline_border_padding_conditionality_1.xml new file mode 100755 index 000000000..86284f868 --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_border_padding_conditionality_1.xml @@ -0,0 +1,398 @@ + + + + + +

+ This test checks fo:inlines with border and padding properties and conditionality. +

+
+ + + + + + + + + + + Multi-line fo:inline + As far as the laws of mathematics refer to reality, they are not certain, + and as far as they are certain, they do not refer to reality - Albert Einstein + text-align not set .conditionality="retain". + + + Multi-line fo:inline + As far as the laws of mathematics refer to reality, they are not certain, + and as far as they are certain, they do not refer to reality - Albert Einstein + text-align="end" .conditionality="retain". + + + Multi-line fo:inline + As far as the laws of mathematics refer to reality, they are not certain, + and as far as they are certain, they do not refer to reality - Albert Einstein + text-align="justify" .conditionality="retain". + + + Multi-line fo:inline + As far as the laws of mathematics refer to reality, they are not certain, + and as far as they are certain, they do not refer to reality - Albert Einstein + text-align="center" .conditionality="retain". + + + Multi-line fo:inline + As far as the laws of mathematics refer to reality, they are not certain, + and as far as they are certain, they do not refer to reality - Albert Einstein + text-align not set .conditionality="discard". + + + Multi-line fo:inline + As far as the laws of mathematics refer to reality, they are not certain, + and as far as they are certain, they do not refer to reality - Albert Einstein + text-align="end" .conditionality="discard". + + + Multi-line fo:inline + As far as the laws of mathematics refer to reality, they are not certain, + and as far as they are certain, they do not refer to reality - Albert Einstein + text-align="justify" .conditionality="discard". + + + Multi-line fo:inline + As far as the laws of mathematics refer to reality, they are not certain, + and as far as they are certain, they do not refer to reality - Albert Einstein + text-align="center" .conditionality="discard". + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline_border_padding_conditionality_2.xml b/test/layoutengine/standard-testcases/inline_border_padding_conditionality_2.xml new file mode 100755 index 000000000..3e2d4a9b9 --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_border_padding_conditionality_2.xml @@ -0,0 +1,311 @@ + + + + + +

+ This test checks fo:inlines with border and padding properties and conditionality retain. +

+
+ + + + + + + + + + + Multi-line fo:inline + As far as the laws of mathematics refer to reality, they are not certain, + and as far as they are certain, they do not refer to reality - Albert Einstein + text-align not set padding .conditionality="retain". + + + Multi-line fo:inline + As far as the laws of mathematics refer to reality, they are not certain, + and as far as they are certain, they do not refer to reality - Albert Einstein + text-align="end" padding .conditionality="retain". + + + Multi-line fo:inline + As far as the laws of mathematics refer to reality, they are not certain, + and as far as they are certain, they do not refer to reality - Albert Einstein + text-align="justify" padding .conditionality="retain". + + + Multi-line fo:inline + As far as the laws of mathematics refer to reality, they are not certain, + and as far as they are certain, they do not refer to reality - Albert Einstein + text-align="center" padding .conditionality="retain". + + + Multi-line fo:inline + As far as the laws of mathematics refer to reality, + they are not certain, and as far as they are certain, + they do not refer to reality - Albert Einstein + text-align="center" .conditionality="retain" linefeed-treatment="preserve". + + + Multi-line fo:inline + As far as the laws of mathematics refer to reality, + they are not certain, and as far as they are certain, + they do not refer to reality - Albert Einstein + text-align="center" .conditionality="discard" linefeed-treatment="preserve". + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline_dominant-baseline_1.xml b/test/layoutengine/standard-testcases/inline_dominant-baseline_1.xml new file mode 100755 index 000000000..e812bc387 --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_dominant-baseline_1.xml @@ -0,0 +1,128 @@ + + + + + +

+ This test checks inline level dominant-baseline. +

+
+ + + + + + + + + + + Before dominant-baseline="auto" After + + + Before dominant-baseline="no-change" After + + + Before dominant-baseline="ideographic" After + + + Before dominant-baseline="alphabetic" After + + + Before dominant-baseline="hanging" After + + + Before dominant-baseline="mathematical" After + + + Before dominant-baseline="central" After + + + Before dominant-baseline="middle" After + + + Before dominant-baseline="text-after-edge" After + + + Before dominant-baseline="text-before-edge" After + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline_dominant-baseline_2.xml b/test/layoutengine/standard-testcases/inline_dominant-baseline_2.xml new file mode 100755 index 000000000..f382e8aa3 --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_dominant-baseline_2.xml @@ -0,0 +1,128 @@ + + + + + +

+ This test checks inline level dominant-baseline. +

+
+ + + + + + + + + + + Before dominant-baseline="auto" After + + + Before dominant-baseline="no-change" After + + + Before dominant-baseline="ideographic" After + + + Before dominant-baseline="alphabetic" After + + + Before dominant-baseline="hanging" After + + + Before dominant-baseline="mathematical" After + + + Before dominant-baseline="central" After + + + Before dominant-baseline="middle" After + + + Before dominant-baseline="text-after-edge" After + + + Before dominant-baseline="text-before-edge" After + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline_dominant-baseline_3.xml b/test/layoutengine/standard-testcases/inline_dominant-baseline_3.xml new file mode 100755 index 000000000..4d09ad57b --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_dominant-baseline_3.xml @@ -0,0 +1,115 @@ + + + + + +

+ This test checks inline level dominant-baseline. +

+
+ + + + + + + + + + + Before + central + Baseline changed + + After + + + Before + text-before-edge + Baseline changed + + After + + + Before + text-after-edge + Baseline changed + + After + + + Before + middle + hanging + Baseline changed + + + + After + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline_letter-spacing.xml b/test/layoutengine/standard-testcases/inline_letter-spacing.xml new file mode 100644 index 000000000..1c0ca3d6e --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_letter-spacing.xml @@ -0,0 +1,58 @@ + + + + + +

+ This test checks inline level letter-spacing. +

+
+ + + + + + + + + + In all the following tests the <fo:inline> is wrappped around the + first and last characters of the block and this section of text: + glyph-areas stacked with no extra space between the allocation-rectangles + Next inline has letter-spacing="normal": + Default space between characters is defined to be 0pt, i.e., + glyph-areas stacked with no extra space between the allocation-rectangles + of the glyph-areas. + Next inline has letter-spacing="0pt": + Default space between characters is defined to be 0pt, i.e., + glyph-areas stacked with no extra space between the allocation-rectangles + of the glyph-areas. + Next inline has letter-spacing="2pt": + Default space between characters is defined to be 0pt, i.e., + glyph-areas stacked with no extra space between the allocation-rectangles + of the glyph-areas. + Next inline has letter-spacing.optimum="2pt" letter-spacing.minimum="0pt" letter-spacing.maximum="4pt": + Default space between characters is defined to be 0pt, i.e., + glyph-areas stacked with no extra space between the allocation-rectangles + of the glyph-areas. + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline_vertical-align_1.xml b/test/layoutengine/standard-testcases/inline_vertical-align_1.xml new file mode 100755 index 000000000..457b4a898 --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_vertical-align_1.xml @@ -0,0 +1,148 @@ + + + + + +

+ This test checks inline level vertical align. +

+
+ + + + + + + + + + + Before vertical-align not specified After + + + Before vertical-align="baseline" After + + + Before vertical-align="top" After + + + Before vertical-align="text-top" After + + + Before vertical-align="middle" After + + + Before vertical-align="text-bottom" After + + + Before vertical-align="bottom" After + + + Before vertical-align="super" After + + + Before vertical-align="sub" After + + + Before vertical-align="super" After + + + Before vertical-align="sub" After + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline_vertical-align_2.xml b/test/layoutengine/standard-testcases/inline_vertical-align_2.xml new file mode 100755 index 000000000..64d401957 --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_vertical-align_2.xml @@ -0,0 +1,121 @@ + + + + + +

+ This test checks inline level vertical align. + This example is taken from the spec section 7.13. +

+
+ + + + + + + + + + + This is a longer line that provides a context for the line with images aligned on it. + Before edge , + after edge , + middle , + none . + And this is a line of text that follows the line with the objects aligned on it. + + + This is a longer line that provides a context for the line with images aligned on it. + Before edge , + after edge , + middle . + And this is a line of text that follows the line with the objects aligned on it. + + + This is a longer line that provides a context for the line with images aligned on it. + Before edge , + after edge . + And this is a line of text that follows the line with the objects aligned on it. + + + This is a longer line that provides a context for the line with images aligned on it. + Before edge , + after edge . + And this is a line of text that follows the line with the objects aligned on it. + + + This is a longer line that provides a context for the line with images aligned on it. + Before edge , + after edge , + middle . + And this is a line of text that follows the line with the objects aligned on it. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/inline_word-spacing.xml b/test/layoutengine/standard-testcases/inline_word-spacing.xml new file mode 100644 index 000000000..80585fbfa --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_word-spacing.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/standard-testcases/inline_word-spacing_text-align_justify.xml b/test/layoutengine/standard-testcases/inline_word-spacing_text-align_justify.xml new file mode 100644 index 000000000..43a8292da --- /dev/null +++ b/test/layoutengine/standard-testcases/inline_word-spacing_text-align_justify.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". + + + + + + +
diff --git a/test/layoutengine/standard-testcases/instream-foreign-object_basic.xml b/test/layoutengine/standard-testcases/instream-foreign-object_basic.xml new file mode 100644 index 000000000..1661aa6d6 --- /dev/null +++ b/test/layoutengine/standard-testcases/instream-foreign-object_basic.xml @@ -0,0 +1,56 @@ + + + + + +

+ This test checks the basics for instream-foreign-object. +

+
+ + + + + + + + + + start + + + + + + + + + end + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/instream-foreign-object_border_padding.xml b/test/layoutengine/standard-testcases/instream-foreign-object_border_padding.xml new file mode 100644 index 000000000..16d89eb22 --- /dev/null +++ b/test/layoutengine/standard-testcases/instream-foreign-object_border_padding.xml @@ -0,0 +1,95 @@ + + + + + +

+ This test checks the borders and the like for instream-foreign-object. +

+
+ + + + + + + + + + + + + + + + + + Normal font + + + + + + + + + + FOP + + + In both blocks we have a setting of border-width="5pt 10pt 20pt 15pt" padding="15pt 20pt 10pt 5pt" on the i-f-o. + In the first block the i-f-o determines the height of the line in the 2nd block the font is bigger than the i-f-o. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/instream-foreign-object_display-align.xml b/test/layoutengine/standard-testcases/instream-foreign-object_display-align.xml new file mode 100644 index 000000000..a113ccc54 --- /dev/null +++ b/test/layoutengine/standard-testcases/instream-foreign-object_display-align.xml @@ -0,0 +1,120 @@ + + + + + +

+ This test checks instream-foreign-object with display-align. +

+
+ + + + + + + + + + plain instream-foreign-object + + + + + + + + + End + + instream-foreign-object with display-align="auto" + + + + + + + + + End + + instream-foreign-object with display-align="before" + + + + + + + + + End + + instream-foreign-object with display-align="center" + + + + + + + + + End + + instream-foreign-object with display-align="after" + + + + + + + + + End + + EOF + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/leader-alignment.xml b/test/layoutengine/standard-testcases/leader-alignment.xml new file mode 100644 index 000000000..c8257ab48 --- /dev/null +++ b/test/layoutengine/standard-testcases/leader-alignment.xml @@ -0,0 +1,67 @@ + + + + + +

+ This test checks leaders +

+
+ + + + + + + + + + + margin="0pt" padding-left="10mm" + + + padding-left="10mm" + + + + leader-alignment="page" + + + + leader-alignment="page" + + + + leader-alignment="reference-area" + + leader-alignment="reference-area" Leader-pattern is aligned as if it began on the current reference-area's content-rectangle start-edge. + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/leader_alignment-baseline.xml b/test/layoutengine/standard-testcases/leader_alignment-baseline.xml new file mode 100755 index 000000000..630d40e88 --- /dev/null +++ b/test/layoutengine/standard-testcases/leader_alignment-baseline.xml @@ -0,0 +1,170 @@ + + + + + +

+ This test checks fo:leader with different alignment-baseline values. +

+
+ + + + + + + + + + + + dots baseline + + + + rule solid baseline + + + + rule double baseline + + + + + + + dots before-edge + + + + rule solid before-edge + + + + rule double before-edge + + + + + + + dots middle + + + + rule solid middle + + + + rule double middle + + + + + + + dots after-edge + + + + rule solid after-edge + + + + rule double after-edge + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/leader_background-color.xml b/test/layoutengine/standard-testcases/leader_background-color.xml new file mode 100755 index 000000000..05dd381a7 --- /dev/null +++ b/test/layoutengine/standard-testcases/leader_background-color.xml @@ -0,0 +1,81 @@ + + + + + +

+ This test checks fo:leader with background-color +

+
+ + + + + + + + + + + + dots yellow background + + + + rule solid yellow background + + + + rule double yellow background + + + + space yellow background + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/leader_border_padding.xml b/test/layoutengine/standard-testcases/leader_border_padding.xml new file mode 100755 index 000000000..aa89bcbfa --- /dev/null +++ b/test/layoutengine/standard-testcases/leader_border_padding.xml @@ -0,0 +1,256 @@ + + + + + +

+ This test checks fo:leader with border and padding +

+
+ + + + + + + + + + + + dots solid 1pt red border + + + + rule solid solid 1pt red border + + + + rule double solid 1pt red border + + + + space solid 1pt red border + + + + + + + dots solid 5pt red border 5pt padding + + + + rule solid solid 5pt red border 5pt padding + + + + rule double solid 5pt red border 5pt padding + + + + space solid 5pt red border 5pt padding + + + + + + + dots uneven border and padding + + + + rule solid uneven border and padding + + + + rule double uneven border and padding + + + + space uneven border and padding + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/leader_leader-pattern_dots.xml b/test/layoutengine/standard-testcases/leader_leader-pattern_dots.xml new file mode 100644 index 000000000..55af7c317 --- /dev/null +++ b/test/layoutengine/standard-testcases/leader_leader-pattern_dots.xml @@ -0,0 +1,90 @@ + + + + + +

+ This test checks leaders with leader-pattern="dots" +

+
+ + + + + + + + + + + + Default dots pattern + + + + leader-pattern-width="use-font-metrics" + + + + leader-length="20mm" leader-pattern-width="5mm" + + + + leader-length="20%" leader-pattern-width="5mm" + + + + leader-pattern-width="1pt" + + + + leader-length="20%" leader-pattern-width="5%" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/leader_leader-pattern_rule.xml b/test/layoutengine/standard-testcases/leader_leader-pattern_rule.xml new file mode 100644 index 000000000..bfba5ea26 --- /dev/null +++ b/test/layoutengine/standard-testcases/leader_leader-pattern_rule.xml @@ -0,0 +1,176 @@ + + + + + +

+ This test checks leaders with leader-patter="rule" +

+
+ + + + + + + + + + + + No rule-style given + + + + rule-style="none" + + + + rule-style="dotted" + + + + rule-style="dashed" + + + + rule-style="solid" + + + + rule-style="double" + + + + rule-style="groove" + + + + rule-style="ridge" + + + + rule-style="dotted" rule-thickness="3pt" + + + + rule-style="dashed" rule-thickness="3pt" + + + + rule-style="solid" rule-thickness="3pt" + + + + rule-style="double" rule-thickness="3pt" + + + + rule-style="groove" rule-thickness="3pt" + + + + rule-style="ridge" rule-thickness="3pt" + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/leader_leader-pattern_space.xml b/test/layoutengine/standard-testcases/leader_leader-pattern_space.xml new file mode 100644 index 000000000..61ee71e7d --- /dev/null +++ b/test/layoutengine/standard-testcases/leader_leader-pattern_space.xml @@ -0,0 +1,60 @@ + + + + + +

+ This test checks leaders with leader-pattern="space" +

+
+ + + + + + + + + + + + Default space pattern + + + + leader-length="0.5in" + + + + leader-length="5%" + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/leader_leader-pattern_use-content.xml b/test/layoutengine/standard-testcases/leader_leader-pattern_use-content.xml new file mode 100644 index 000000000..11287f058 --- /dev/null +++ b/test/layoutengine/standard-testcases/leader_leader-pattern_use-content.xml @@ -0,0 +1,130 @@ + + + + + +

+ This test checks leaders with leader-pattern="use-content" +

+
+ + + + + + + + + + + x + Content is "x" + + + => + Content is "=>" with background + + + ~ + Content is "~" with leader-pattern-width="12pt" + + + * + Content is "*" with leader-pattern-width="12pt" and border + + + ++ + Content is "++" with l-p-w="12pt" and border small font + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/leader_toc.xml b/test/layoutengine/standard-testcases/leader_toc.xml new file mode 100755 index 000000000..c8b85ce1b --- /dev/null +++ b/test/layoutengine/standard-testcases/leader_toc.xml @@ -0,0 +1,153 @@ + + + + + +

+ This test checks fo:leader in a typical table of content scenario. + This example is taken from the spec section 6.6.1.1.4 +

+
+ + + + + + + + + + + 1. Chapter + + + + + + + 1.1 Section + + + + + + + 1.2 Section + + + + + + + 2. Chapter + + + + + + + 2.1 Section + + + + + + + 2.2 Section + + + + + + + 1. Chapter + + + Text + + + 1.1 Section + + + Text + + + 1.2 Section + + + Text + + + 2. Chapter + + + Text + + + 2.1 Section + + + Text + + + 2.2 Section + + + Text + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/list-block_background-image.xml b/test/layoutengine/standard-testcases/list-block_background-image.xml new file mode 100644 index 000000000..e4b81b117 --- /dev/null +++ b/test/layoutengine/standard-testcases/list-block_background-image.xml @@ -0,0 +1,83 @@ + + + + + +

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

+
+ + ../../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/standard-testcases/list-block_basic.xml b/test/layoutengine/standard-testcases/list-block_basic.xml new file mode 100644 index 000000000..f6789e4f0 --- /dev/null +++ b/test/layoutengine/standard-testcases/list-block_basic.xml @@ -0,0 +1,163 @@ + + + + + +

+ This test checks lists. +

+
+ + + + + + + + + + + + + label + + + value + + + + + label + + + value + + + + + label + + + value + + + + + + + label + + + value + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/list-block_border_padding.xml b/test/layoutengine/standard-testcases/list-block_border_padding.xml new file mode 100644 index 000000000..c26d2a2bc --- /dev/null +++ b/test/layoutengine/standard-testcases/list-block_border_padding.xml @@ -0,0 +1,189 @@ + + + + + +

+ This test checks lists with borders and padding. +

+
+ + + + + + + + + + before list-block + + + + label + + + value + + + + + label + + + value + + + + + label + + + value + + + + after list-block + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/list-block_keep-together.xml b/test/layoutengine/standard-testcases/list-block_keep-together.xml new file mode 100644 index 000000000..0192d3a19 --- /dev/null +++ b/test/layoutengine/standard-testcases/list-block_keep-together.xml @@ -0,0 +1,134 @@ + + + + + +

+ This test checks keep-together with lists. +

+
+ + + + + + + + + + block1 + + + + label1 + + + item1 + + + + + label2 + + + item2 + + + + block2 + + + + label1 + + + item1 + item1 + + + + + label2 + + + item2 + + + + block3 + + + + label1 + + + item1 + item1 + + + + + label2 + + + item2 + + + + block4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/list-block_keep-with-next.xml b/test/layoutengine/standard-testcases/list-block_keep-with-next.xml new file mode 100644 index 000000000..00f3f8294 --- /dev/null +++ b/test/layoutengine/standard-testcases/list-block_keep-with-next.xml @@ -0,0 +1,106 @@ + + + + + +

+ This test checks keep-with-next with lists. +

+
+ + + + + + + + + + block1 + + + + label1 + + + item1 + + + + + label2 + + + item2 + + + + block2 + + + + label1 + + + item1 + item1 + + + + + label2 + + + item2 + + + + block3 + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/list-block_keep-with-previous.xml b/test/layoutengine/standard-testcases/list-block_keep-with-previous.xml new file mode 100644 index 000000000..db02c67d9 --- /dev/null +++ b/test/layoutengine/standard-testcases/list-block_keep-with-previous.xml @@ -0,0 +1,135 @@ + + + + + +

+ This test checks keep-with-previous with lists. +

+
+ + + + + + + + + + block1 + + + + label1 + + + item1 + + + + + label2 + + + item2 + + + + block2 + + + + label1 + + + item1 + item1 + + + + + label2 + + + item2 + + + + block3 + + + + label1 + + + item1 + + + + + label2 + + + item2 + + + + block4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/list-block_padding_percentages.xml b/test/layoutengine/standard-testcases/list-block_padding_percentages.xml new file mode 100644 index 000000000..2b49e5dc7 --- /dev/null +++ b/test/layoutengine/standard-testcases/list-block_padding_percentages.xml @@ -0,0 +1,75 @@ + + + + + +

+ This test checks relative padding on lists (list-block). +

+
+ + + + + + + + + + + + + label 1 + + + + body 1: The whole list should have a 5% padding shown in yellow. + + + + + + label 2 + + + + body 2: The whole list should have a 5% padding shown in yellow. + + + + + + label 3 + + + + body 3: The whole list should have a 5% padding shown in yellow. + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/list-block_simple-page-master_margin.xml b/test/layoutengine/standard-testcases/list-block_simple-page-master_margin.xml new file mode 100644 index 000000000..696b03e2b --- /dev/null +++ b/test/layoutengine/standard-testcases/list-block_simple-page-master_margin.xml @@ -0,0 +1,65 @@ + + + + + +

+ This test checks lists. It is a regression test. list-block tested the indenting fine, but here there's + a page margin that can result in wrong values if the reference area block ipd isn't reported correctly. +

+
+ + + + + + + + + + + + + label 1) + + + + here is text in the list item body + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/list-block_space-before_space-after_1.xml b/test/layoutengine/standard-testcases/list-block_space-before_space-after_1.xml new file mode 100644 index 000000000..82af9d20d --- /dev/null +++ b/test/layoutengine/standard-testcases/list-block_space-before_space-after_1.xml @@ -0,0 +1,221 @@ + + + + + +

+ This test checks spaces on tables. +

+
+ + + + + + + + + + + + + • + + + +In olden times when wishing still helped one, there lived a king whose daughters +were all beautiful; and the youngest was so beautiful that the sun itself, which +has seen so much, was astonished whenever it shone in her face. Close by the king's +castle lay a great dark forest, and under an old lime-tree in the forest was a well, +and when the day was very warm, the king's child went out into the forest and sat +down by the side of the cool fountain; and when she was bored she took a golden ball, +and threw it up on high and caught it; and this ball was her favorite plaything. + + + + + + • + + + here is text in the list item body + + + + +Two blocks, testing conditionality="retain". + + + + + + + + + • + + + +In olden times when wishing still helped one, there lived a king whose daughters +were all beautiful; and the youngest was so beautiful that the sun itself, which +has seen so much, was astonished whenever it shone in her face. Close by the king's +castle lay a great dark forest, and under an old lime-tree in the forest was a well, +and when the day was very warm, the king's child went out into the forest and sat +down by the side of the cool fountain; and when she was bored she took a golden ball, +and threw it up on high and caught it; and this ball was her favorite plaything. + + + + + + • + + + here is text in the list item body + + + + +Two blocks, testing conditionality="discard". + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 8 + 8 + 8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/list-block_space-before_space-after_2.xml b/test/layoutengine/standard-testcases/list-block_space-before_space-after_2.xml new file mode 100644 index 000000000..293faebd8 --- /dev/null +++ b/test/layoutengine/standard-testcases/list-block_space-before_space-after_2.xml @@ -0,0 +1,114 @@ + + + + + +

+ This test checks lists. Checks space-before and space-after on list-block. +

+
+ + + + + + + + + + test + + + + • + + + here is text in the list item body + + + + + • + + + here is text in the list item body + + + + + • + + + here is text in the list item body + + + + + • + + + here is text in the list item body + + + + + • + + + here is text in the list item body + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/list-item_background-image.xml b/test/layoutengine/standard-testcases/list-item_background-image.xml new file mode 100644 index 000000000..fe0feac81 --- /dev/null +++ b/test/layoutengine/standard-testcases/list-item_background-image.xml @@ -0,0 +1,83 @@ + + + + + +

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

+
+ + ../../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: 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. + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/list-item_block_keep-with-next.xml b/test/layoutengine/standard-testcases/list-item_block_keep-with-next.xml new file mode 100644 index 000000000..ea6ea83da --- /dev/null +++ b/test/layoutengine/standard-testcases/list-item_block_keep-with-next.xml @@ -0,0 +1,108 @@ + + + + + +

+ This test checks keep-with-next on content in lists. +

+
+ + + + + + + + + + block1 + + + + label1 + + + item1 + item2 + + + + + label2 + + + item2 + + + + block2 + + + + label1 + + + item1 + item2 + + + + + label2 + + + item2 + + + + block3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/list-item_block_keep-with-previous.xml b/test/layoutengine/standard-testcases/list-item_block_keep-with-previous.xml new file mode 100644 index 000000000..8f0916748 --- /dev/null +++ b/test/layoutengine/standard-testcases/list-item_block_keep-with-previous.xml @@ -0,0 +1,108 @@ + + + + + +

+ This test checks keep-with-previous on content in lists. +

+
+ + + + + + + + + + block1 + + + + label1 + + + item1 + item2 + + + + + label2 + + + item2 + + + + block2 + + + + label1 + + + item1 + item2 + + + + + label2 + + + item2 + + + + block3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/list-item_padding_percentages.xml b/test/layoutengine/standard-testcases/list-item_padding_percentages.xml new file mode 100644 index 000000000..1c56ac9b9 --- /dev/null +++ b/test/layoutengine/standard-testcases/list-item_padding_percentages.xml @@ -0,0 +1,78 @@ + + + + + +

+ This test checks relative padding widths on lists (list-item). +

+
+ + ../../resources/images/bgimg300dpi.jpg + + + + + + + + + + + + + + label 1 + + + + body 1: We should have 5% padding around this whole yellow list item. + + + + + + label 2 + + + + body 2: We should have no padding around this whole list item. + + + + + + label 3 + + + + body 3: We should have no padding around this whole list item. + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/list-item_space-before_space-after_1.xml b/test/layoutengine/standard-testcases/list-item_space-before_space-after_1.xml new file mode 100644 index 000000000..6e55cf008 --- /dev/null +++ b/test/layoutengine/standard-testcases/list-item_space-before_space-after_1.xml @@ -0,0 +1,114 @@ + + + + + +

+ This test checks lists. Checks for the presence of space-before and space-after on list-items. +

+
+ + + + + + + + + + test + + + + • + + + here is text in the list item body + + + + + • + + + here is text in the list item body + + + + + • + + + here is text in the list item body + + + + + • + + + here is text in the list item body + + + + + • + + + here is text in the list item body + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/list-item_space-before_space-after_2.xml b/test/layoutengine/standard-testcases/list-item_space-before_space-after_2.xml new file mode 100644 index 000000000..15e501324 --- /dev/null +++ b/test/layoutengine/standard-testcases/list-item_space-before_space-after_2.xml @@ -0,0 +1,126 @@ + + + + + +

+ This test checks lists. Checks for the presence of space-before and space-after + on list-items. In this case, min/opt/max don't have the same value. +

+
+ + + + + + + + + + test + + + + • + + + here is text in the list item body + + + + + • + + + here is text in the list item body + + + + + • + + + here is text in the list item body + + + + + • + + + here is text in the list item body + + + + + • + + + here is text in the list item body + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/list-item_space-before_space-after_3.xml b/test/layoutengine/standard-testcases/list-item_space-before_space-after_3.xml new file mode 100644 index 000000000..6b8a81a65 --- /dev/null +++ b/test/layoutengine/standard-testcases/list-item_space-before_space-after_3.xml @@ -0,0 +1,73 @@ + + + + + +

+ This test checks lists. Checks spaces inside list-item content. +

+

+ Some additional code is notify the LMs about the effective spaces, otherwise discardable spaces don't get discarded. +

+
+ + + + + + + + + + + + + • + + + here is text in the list item body + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/markers_1.xml b/test/layoutengine/standard-testcases/markers_1.xml new file mode 100644 index 000000000..757e0859b --- /dev/null +++ b/test/layoutengine/standard-testcases/markers_1.xml @@ -0,0 +1,105 @@ + + + + + +

+ This test checks markers. +

+
+ + + + + + + + + + + + + page + + + + + + + + + + + + + + + + + block1block1 + + + + block2block2 + + + + block3block3 + + + + block4block4 + + + + block5block5 + + + + block6block6 + + + + block7block7 + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/markers_2.xml b/test/layoutengine/standard-testcases/markers_2.xml new file mode 100644 index 000000000..b430e5709 --- /dev/null +++ b/test/layoutengine/standard-testcases/markers_2.xml @@ -0,0 +1,125 @@ + + + + + +

+ This test checks markers (especially first-including-carryover). +

+
+ + + + + + + + + + + + + page + + + + + + + + + + + + + + + + + + + + + + + 1 + + Part 1 + text1 + text1 + text1 + text1 + text1 + text1 + text1 + + + + 2 + + Part 2 + text2 + text2 + text2 + text2 + + + + 3 + + Part 3 + text3 + text3 + text3 + text3 + text3 + text3 + text3 + text3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/markers_3.xml b/test/layoutengine/standard-testcases/markers_3.xml new file mode 100644 index 000000000..3c16f1eee --- /dev/null +++ b/test/layoutengine/standard-testcases/markers_3.xml @@ -0,0 +1,138 @@ + + + + + +

+ This test checks markers (especially retrieve-boundary). +

+
+ + + + + + + + + + + + + page + + + + + + + + + + + + + + + + + + + + + + + [PAGE] + [PS] + [DOC] + Part 1 + + text1 + text1 + text1 + text1 + text1 + text1 + text1 + + + + + + + page + + + + + + + + + + + + + + + + + + + + + + sometext + sometext + sometext + sometext + sometext + sometext + sometext + sometext + sometext + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/markers_4.xml b/test/layoutengine/standard-testcases/markers_4.xml new file mode 100644 index 000000000..6ab5ff5bd --- /dev/null +++ b/test/layoutengine/standard-testcases/markers_4.xml @@ -0,0 +1,99 @@ + + + + + +

+ This test checks markers. Regression test which tests a special case. +

+

+ For this test the block containing the fo:markers must remain empty except for the marker element. Not even a space or carriage return!!! +

+
+ + + + + + + + + + + + + page + + + + + + + + + + + + + + + + + + + 1 + + + 5.50 + + + 05.50 + + + + + 2 + + + 5.50 + + + 5.5011.00 + + + + + 1 + + + 5.50 + + + 11.0016.50 + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/markers_5a.xml b/test/layoutengine/standard-testcases/markers_5a.xml new file mode 100644 index 000000000..615f1a502 --- /dev/null +++ b/test/layoutengine/standard-testcases/markers_5a.xml @@ -0,0 +1,97 @@ + + + + + +

+ This test checks markers, especially the behaviour of block being broken over pages. +

+
+ + + + + + + + + + + + + page + + + + + + + + + + + + + 0.00 + 1.00 + 1: 1.00 + + + 1.00 + 2.00 + 2: 1.00 + + + 2.00 + 3.00 + 3: 1.00 + + + 3.00 + 4.00 + 4: 1.00 + + + 4.00 + 5.00 + 5: 1.00 + + + 5.00 + 6.00 + 6: 1.00 + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/markers_5b.xml b/test/layoutengine/standard-testcases/markers_5b.xml new file mode 100644 index 000000000..13324a5f9 --- /dev/null +++ b/test/layoutengine/standard-testcases/markers_5b.xml @@ -0,0 +1,159 @@ + + + + + +

+ This test checks markers, especially the behaviour of block being broken over pages. This is almost the same + as markers5a except that tables are used instead of plain blocks. +

+
+ + + + + + + + + + + + + page + + + + + + + + + + + + + + + + + + + 1 + + + 1.00 + + + + 0.00 + 1.00 + + + + + + 2 + + + 1.00 + + + + 1.00 + 2.00 + + + + + + 3 + + + 1.00 + + + + 2.00 + 3.00 + + + + + + 4 + + + 1.00 + + + + 3.00 + 4.00 + + + + + + 5 + + + 1.00 + + + + 4.00 + 5.00 + + + + + + 6 + + + 1.00 + + + + 5.00 + 6.00 + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/markers_5c.xml b/test/layoutengine/standard-testcases/markers_5c.xml new file mode 100644 index 000000000..e3a11af28 --- /dev/null +++ b/test/layoutengine/standard-testcases/markers_5c.xml @@ -0,0 +1,96 @@ + + + + + +

+ This test checks markers, especially the behaviour of block being broken over pages. +

+
+ + + + + + + + + + + + + page + + + + + + + + + + + + + 0.00 + 1.00 + 1: 1.00 + + + 1.00 + 2.00 + 2: 1.00 + + + 2.00 + 3.00 + 3: 1.00 + + + 3.00 + 4.00 + 4: This is a special case. It must take two lines. It must take two lines. 1.00 + + + 4.00 + 5.00 + 5: 1.00 + + + 5.00 + 6.00 + 6: 1.00 + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/markers_5d.xml b/test/layoutengine/standard-testcases/markers_5d.xml new file mode 100644 index 000000000..faf46d7df --- /dev/null +++ b/test/layoutengine/standard-testcases/markers_5d.xml @@ -0,0 +1,140 @@ + + + + + +

+ This test checks markers, especially the behaviour of block being broken over pages. This is almost the same + as markers5a except that tables are used instead of plain blocks. +

+
+ + + + + + + + + + + + + page + + + + + + + + + + + + + + + + + + + 0.00 + 1.00 + 1 + + + 1.00 + + + + + + 1.00 + 2.00 + 2 + + + 1.00 + + + + + + 2.00 + 3.00 + 3 + + + 1.00 + + + + + + 3.00 + 4.00 + 4 + + + 1.00 + + + + + + 4.00 + 5.00 + 5 + + + 1.00 + + + + + + 5.00 + 6.00 + 6 + + + 1.00 + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/markers_6a.xml b/test/layoutengine/standard-testcases/markers_6a.xml new file mode 100644 index 000000000..70d8e8c70 --- /dev/null +++ b/test/layoutengine/standard-testcases/markers_6a.xml @@ -0,0 +1,256 @@ + + + + + +

+ This test checks markers, especially the retrieval of markers +belonging to a preceding page. +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + page + + + + + + page + + + + + + + + + + + + + + + + 5 Property Refinement / Resolution + 5 Property Refinement / Resolution5 Property Refinement / Resolution + + + During refinement the set of properties that apply to a +formatting object is transformed into a set of traits that define +constraints on the result of formatting. For many traits there is a +one-to-one correspondence with a property; for other traits the +transformation is more complex. Details on the transformation are +described below. + + + 5.1 Specified, Computed, and Actual Values, and Inheritance5.1 Specified, +Computed, and Actual Values, and Inheritance + + + For every property that is applicable to a given +formatting object, it is necessary to determine the value of the +property. Three variants of the property value are distinguished: the +specified value, the computed value, and the actual value. + + + 5.2 Specified Values5.2 Specified Values + + + The specified value of a property is determined using the +following mechanisms (in order of precedence) + + + If the tree-construction process placed the property on +the formatting object, use the value of that property as the specified +value. This is called "explicit specification". + + + Otherwise, if the property is inheritable, use the value +of that property from the parent formatting object, generally the +computed value (see below). + + + 6 Shorthand Expansion + 6 Shorthand Expansion6 Shorthand Expansion + + + In XSL there are two kinds of shorthand properties; those +originating from CSS, such as "border", and those that arise from +breaking apart and/or combining CSS properties, such as +"page-break-inside". In XSL both types of shorthands are handled in +the same way. + + + 6.1 Actual Values6.1 Actual Values + + + Specified values may be absolute (i.e., they are not +specified relative to another value, as in "red" or "2mm") or relative +(i.e., they are specified relative to another value, as in "auto", +"2em", and "12%"), or they may be expressions. For most absolute +values, no computation is needed to find the computed value. Relative +values, on the other hand, must be transformed into computed values: +percentages must be multiplied by a reference value (each property +defines which value that is), values with a relative unit (em) must be +made absolute by multiplying with the appropriate font size, "auto" +values must be computed by the formulas given with each property, +certain property values ("smaller", "bolder") must be replaced +according to their definitions. The computed value of any property +that controls a border width where the style of the border is "none" +is forced to be "0pt". + + + Some properties have more than one way in which the +property value can be specified. The simplest example of such +properties are those which can be specified either in terms of a +direction relative to the writing-mode (e.g., padding-before) or a +direction in terms of the absolute geometric orientation of the +viewport (e.g., padding-top). These two properties are called the +relative property and the absolute property, +respectively. Collectively, they are called "corresponding +properties". + + + Specifying a value for one property determines both a computed +value for the specified property and a computed value for the +corresponding property. Which relative property corresponds to which +absolute property depends on the writing-mode. For example, if the +"writing-mode" at the top level of a document is "lr-tb", then +"padding-start" corresponds to "padding-left", but if the +"writing-mode" is "rl-tb", then "padding-start" corresponds to +"padding-right". The exact specification of how to compute the values +of corresponding properties is given in [5.3 Computing the Values of +Corresponding Properties]. + + + In most cases, elements inherit computed values. However, +there are some properties whose specified value may be inherited +(e.g., some values for the "line-height" property). In the cases where +child elements do not inherit the computed value, this is described in +the property definition. + + + A computed value is in principle ready to be used, but a +user agent may not be able to make use of the value in a given +environment. For example, a user agent may only be able to render +borders with integer pixel widths and may, therefore, have to adjust +the computed width to an integral number of media pixels. The actual +value is the computed value after any such adjustments have been +applied. + + + Some of the properties applicable to formatting objects +are "inheritable." Such properties are so identified in the property +description. The inheritable properties can be placed on any +formatting object. The inheritable properties are propagated down the +formatting object tree from a parent to each child. (These properties +are given their initial value at the root of the result tree.) For a +given inheritable property, if that property is present on a child, +then that value of the property is used for that child (and its +descendants until explicitly re-set in a lower descendant); otherwise, +the specified value of that property on the child is the computed +value of that property on the parent formatting object. Hence there is +always a specified value defined for every inheritable property for +every formatting object. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/markers_6b.xml b/test/layoutengine/standard-testcases/markers_6b.xml new file mode 100644 index 000000000..a303f121e --- /dev/null +++ b/test/layoutengine/standard-testcases/markers_6b.xml @@ -0,0 +1,299 @@ + + + + + +

+ This test checks markers, especially the retrieval of markers +belonging to a preceding page -- nested areas. +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + page + + + + + + + + + page + + + + + + + + + + + + + + + + + + + + + + + + + 5 Property Refinement / Resolution + 5 Property Refinement / Resolution + +5 Property Refinement / Resolution + + + During refinement the set of properties that apply to a +formatting object is transformed into a set of traits that define +constraints on the result of formatting. For many traits there is a +one-to-one correspondence with a property; for other traits the +transformation is more complex. Details on the transformation are +described below. + + + 5.1 Specified, Computed, and Actual Values, and Inheritance + +5.1 Specified, Computed, and Actual Values, and Inheritance + + + For every property that is applicable to a given +formatting object, it is necessary to determine the value of the +property. Three variants of the property value are distinguished: the +specified value, the computed value, and the actual value. + + + + 5.2 Specified Values + +5.2 Specified Values + + + The specified value of a property is determined using the +following mechanisms (in order of precedence) + + + If the tree-construction process placed the property on +the formatting object, use the value of that property as the specified +value. This is called "explicit specification". + + + Otherwise, if the property is inheritable, use the value +of that property from the parent formatting object, generally the +computed value (see below). + + + + + 6 Shorthand Expansion + 6 Shorthand Expansion + +6 Shorthand Expansion + + + In XSL there are two kinds of shorthand properties; those +originating from CSS, such as "border", and those that arise from +breaking apart and/or combining CSS properties, such as +"page-break-inside". In XSL both types of shorthands are handled in +the same way. + + + 6.1 Actual Values + +6.1 Actual Values + + + Specified values may be absolute (i.e., they are not +specified relative to another value, as in "red" or "2mm") or relative +(i.e., they are specified relative to another value, as in "auto", +"2em", and "12%"), or they may be expressions. For most absolute +values, no computation is needed to find the computed value. Relative +values, on the other hand, must be transformed into computed values: +percentages must be multiplied by a reference value (each property +defines which value that is), values with a relative unit (em) must be +made absolute by multiplying with the appropriate font size, "auto" +values must be computed by the formulas given with each property, +certain property values ("smaller", "bolder") must be replaced +according to their definitions. The computed value of any property +that controls a border width where the style of the border is "none" +is forced to be "0pt". + + + + + + + Some properties have more than one way in which the +property value can be specified. The simplest example of such +properties are those which can be specified either in terms of a +direction relative to the writing-mode (e.g., padding-before) or a +direction in terms of the absolute geometric orientation of the +viewport (e.g., padding-top). These two properties are called the +relative property and the absolute property, +respectively. Collectively, they are called "corresponding +properties". + + + Specifying a value for one property determines both a +computed value for the specified property and a computed value for the +corresponding property. Which relative property corresponds to which +absolute property depends on the writing-mode. For example, if the +"writing-mode" at the top level of a document is "lr-tb", then +"padding-start" corresponds to "padding-left", but if the +"writing-mode" is "rl-tb", then "padding-start" corresponds to +"padding-right". The exact specification of how to compute the values +of corresponding properties is given in [5.3 Computing the Values of +Corresponding Properties]. + + + In most cases, elements inherit computed values. However, +there are some properties whose specified value may be inherited +(e.g., some values for the "line-height" property). In the cases where +child elements do not inherit the computed value, this is described in +the property definition. + + + A computed value is in principle ready to be used, but a +user agent may not be able to make use of the value in a +given environment. For example, a user agent may only be +able to render borders with integer pixel widths and may, +therefore, have to adjust the computed width to an +integral number of media pixels. The actual value is the +computed value after any such adjustments have been +applied. + + + Some of the properties applicable to formatting objects +are "inheritable." Such properties are so identified in the property +description. The inheritable properties can be placed on any +formatting object. The inheritable properties are propagated down the +formatting object tree from a parent to each child. (These properties +are given their initial value at the root of the result tree.) For a +given inheritable property, if that property is present on a child, +then that value of the property is used for that child (and its +descendants until explicitly re-set in a lower descendant); otherwise, +the specified value of that property on the child is the computed +value of that property on the parent formatting object. Hence there is +always a specified value defined for every inheritable property for +every formatting object. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/markers_7.xml b/test/layoutengine/standard-testcases/markers_7.xml new file mode 100644 index 000000000..429b23d11 --- /dev/null +++ b/test/layoutengine/standard-testcases/markers_7.xml @@ -0,0 +1,340 @@ + + + + + +

+ This test checks if all FOs at least add markers (not that they do it right). +

+

+ TODO: Add checks for the rest of the marker-enabled FOs (table-caption etc.) +

+
+ + + + + + + + + + + + + + + + + + + + + + fo:flow + blah + + + + + + + + + + + + + + + + fo:blockblah + + + + + + + + + + + + + + + + fo:block-container + blah + + + + + + + + + + + + + + + + + fo:table + + + blah + + + + + + + + + + + + + + + + + + + + fo:table-body + + blah + + + + + + + + + + + + + + + + + + + + fo:table-header + + header-blah + + + + + blah + + + + + + + + + + + + + + + + + + + + fo:table-footer + + footer-blah + + + + + blah + + + + + + + + + + + + + + + + + + + + + fo:table-cell + blah + + + + + + + + + + + + + + + + + + + fo:list-block + + + label-blah + + + body-blah + + + + + + + + + + + + + + + + + + + + fo:list-item + + label-blah + + + body-blah + + + + + + + + + + + + + + + + + + + + + fo:list-item-label + label-blah + + + body-blah + + + + + + + + + + + + + + + + + + + + + label-blah + + + fo:list-item-body + body-blah + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/markers_8.xml b/test/layoutengine/standard-testcases/markers_8.xml new file mode 100644 index 000000000..82dcb7706 --- /dev/null +++ b/test/layoutengine/standard-testcases/markers_8.xml @@ -0,0 +1,146 @@ + + + + + +

+ This test checks markers on broken tables. +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + table1 + + + + + blah + blah + blah + blah + + + blah + + + + + blah + + + blah + blah + blah + blah + + + + + + table2 + + + + + blah + + + blah + blah + blah + blah + + + + + blah + + + + + + table3 + + + + + blah + + + blah + blah + + + + + blah + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/markers_9.xml b/test/layoutengine/standard-testcases/markers_9.xml new file mode 100644 index 000000000..3ad9a245b --- /dev/null +++ b/test/layoutengine/standard-testcases/markers_9.xml @@ -0,0 +1,219 @@ + + + + + +

+ This test checks markers on broken table-bodies. +

+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + body1 + + + blah + blah + blah + blah + + + blah + + + + + blah + + + blah + blah + blah + blah + + + + + + + + body2 + + + blah + + + blah + blah + blah + blah + + + + + blah + + + + + + + + body3 + + + blah + + + blah + blah + + + + + blah + + + + + body4 + + + blah + + + blah + + + + + + + + body5 + + + blah + + + blah + + + + + body6 + + + blah1 + blah2 + blah3 + blah4 + blah5 + blah6 + blah7 + blah8 + blah9 + blah10 + blah11 + + + blah + + + + + blah + blah + + + + + + body7 + + + blah + + + blah + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/page-breaking_1.xml b/test/layoutengine/standard-testcases/page-breaking_1.xml new file mode 100644 index 000000000..2a15045a2 --- /dev/null +++ b/test/layoutengine/standard-testcases/page-breaking_1.xml @@ -0,0 +1,87 @@ + + + + + +

+ This test checks normal page breaking. +

+
+ + + + + + + + + + block1 + block2 + block3 + block4 + block5 + block6 + block7 + block8 + block9 + + + + + + block1 + block2 + block3 + block4 + block5 + + block6 + block7 + block8 + block9 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/page-breaking_2.xml b/test/layoutengine/standard-testcases/page-breaking_2.xml new file mode 100644 index 000000000..cc1797f84 --- /dev/null +++ b/test/layoutengine/standard-testcases/page-breaking_2.xml @@ -0,0 +1,54 @@ + + + + + +

+ This test checks normal breaking. It is a regression test for a special situation + that causes/caused an ArrayOutOfBoundException when the block was broken over to a second page. +

+
+ + + + + + + + + + + + + + + + + +]]> + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/page-breaking_3.xml b/test/layoutengine/standard-testcases/page-breaking_3.xml new file mode 100644 index 000000000..00f6eb990 --- /dev/null +++ b/test/layoutengine/standard-testcases/page-breaking_3.xml @@ -0,0 +1,56 @@ + + + + + +

+ This test checks normal breaking. It is a regression test for a special situation + that causes/caused an ArrayOutOfBoundException when the block was broken over to a second page. +

+
+ + + + + + + + + + + + + +line1 +line2 +line3 + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/page-breaking_4.xml b/test/layoutengine/standard-testcases/page-breaking_4.xml new file mode 100644 index 000000000..d4a2c207b --- /dev/null +++ b/test/layoutengine/standard-testcases/page-breaking_4.xml @@ -0,0 +1,64 @@ + + + + + +

+ This test checks normal breaking. It checks if lines are properly rearranged (reset) + after a page break, especially when a new page-master becomes active. +

+
+ + + + + + + + + + + + + + + + + +Apache FOP is a great tool to create PDF documents with. +Apache FOP is a great tool to create PDF documents with. +Apache FOP is a great tool to create PDF documents with. +Apache FOP is a great tool to create PDF documents with. +Apache FOP is a great tool to create PDF documents with. + + last line in new block + + + + + + + + "/> + + + + "/> + + + +
diff --git a/test/layoutengine/standard-testcases/page-breaking_4a.xml b/test/layoutengine/standard-testcases/page-breaking_4a.xml new file mode 100644 index 000000000..c0e70ecdb --- /dev/null +++ b/test/layoutengine/standard-testcases/page-breaking_4a.xml @@ -0,0 +1,62 @@ + + + + + +

+ This test checks normal breaking. It checks the available BPD is properly evaluated for + every single page. +

+
+ + + + + + + + + + + + + + + + + + Apache FOP is a great tool to create PDF documents with. +Apache FOP is a great tool to create PDF documents with. +Apache FOP is a great tool to create PDF documents with. +Apache FOP is a great tool to create PDF documents with. +Apache FOP is a great tool to create PDF documents with. +Apache FOP is a great tool to create PDF documents with. + + last line in new block + + + + + + + + + "/> + "/> + +
diff --git a/test/layoutengine/standard-testcases/page-breaking_5.xml b/test/layoutengine/standard-testcases/page-breaking_5.xml new file mode 100644 index 000000000..eaad25a03 --- /dev/null +++ b/test/layoutengine/standard-testcases/page-breaking_5.xml @@ -0,0 +1,61 @@ + + + + + +

+ This test checks normal breaking. It checks whether elements that don't fit on a + page are sent over to the next if that one has more room (indirectly checks + changing available BPD, too). +

+
+ + + + + + + + + + + + + + + + + + Apache FOP is a great tool to create PDF documents with. + Apache FOP is a great tool to create PDF documents with. + Apache FOP is a great tool to create PDF documents with. + Apache FOP is a great tool to create PDF documents with. + last line in new block + + + + + + + + + + "/> + "/> + "/> + +
diff --git a/test/layoutengine/standard-testcases/page-breaking_6.xml b/test/layoutengine/standard-testcases/page-breaking_6.xml new file mode 100644 index 000000000..8ce6da3cd --- /dev/null +++ b/test/layoutengine/standard-testcases/page-breaking_6.xml @@ -0,0 +1,61 @@ + + + + + +

+ This test checks breaking behaviour in environments where there is not much space. +

+
+ + + + + + + + + + + This is some test text! + Bla bla 1234567890. + Bla bla 12345678901234567890. + This is Blah-blah-blah-blah! + This is BLah-blah-blah-blah! + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/page-height_indefinite_simple.xml b/test/layoutengine/standard-testcases/page-height_indefinite_simple.xml new file mode 100644 index 000000000..86b713ea7 --- /dev/null +++ b/test/layoutengine/standard-testcases/page-height_indefinite_simple.xml @@ -0,0 +1,52 @@ + + + + + +

+ Simple test for page-height="indefinite". The page-heights should + correspond to the sum of the line-heights of the laid out blocks. +

+
+ + + + + + + + + + page1 - block1 + page1 - block2 + page1 - block3 + page2 - block1 + page2 - block2 + page2 - block3 + page3 - block3 + page3 - block2 + page3 - block3 + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/page-number-citation_background-color.xml b/test/layoutengine/standard-testcases/page-number-citation_background-color.xml new file mode 100755 index 000000000..2edf06916 --- /dev/null +++ b/test/layoutengine/standard-testcases/page-number-citation_background-color.xml @@ -0,0 +1,43 @@ + + + + + +

+ This test checks fo:page-number-citation with background-color property. +

+
+ + + + + + + + + + + To emphasize a page number citation highlight it. + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/page-number-citation_background-image.xml b/test/layoutengine/standard-testcases/page-number-citation_background-image.xml new file mode 100755 index 000000000..4cbf84105 --- /dev/null +++ b/test/layoutengine/standard-testcases/page-number-citation_background-image.xml @@ -0,0 +1,49 @@ + + + + + +

+ This test checks fo:page-number-citation with background-image property. +

+
+ + ../../resources/images/bgimg300dpi.jpg + + + + + + + + + + + + Page number citation + Page number citation + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/page-number-citation_basic.xml b/test/layoutengine/standard-testcases/page-number-citation_basic.xml new file mode 100644 index 000000000..e481a86ac --- /dev/null +++ b/test/layoutengine/standard-testcases/page-number-citation_basic.xml @@ -0,0 +1,73 @@ + + + + + +

+ This test checks fo:page-number-citation. +

+
+ + + + + + + + + + page: of + page: , bof1 is on page + page: , bof2 is on page + page: + page: + page: + page: of + + + + + + page: of + page: + page: + page: + page: , bof1 is on page + page: , bof2 is on page + page: of + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/page-number-citation_border_padding.xml b/test/layoutengine/standard-testcases/page-number-citation_border_padding.xml new file mode 100755 index 000000000..ed65a507c --- /dev/null +++ b/test/layoutengine/standard-testcases/page-number-citation_border_padding.xml @@ -0,0 +1,98 @@ + + + + + +

+ This test checks fo:page-number-citation with border and padding properties. +

+
+ + + + + + + + + + + Page number citation with a 1pt border. + + + Page number citation with 5pt border and padding. + + + Page number citation with unsymmetric borders and padding. + + + Page number citation with border and padding in a smaller font. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/page-number-citation_complex_1.xml b/test/layoutengine/standard-testcases/page-number-citation_complex_1.xml new file mode 100644 index 000000000..a0642281c --- /dev/null +++ b/test/layoutengine/standard-testcases/page-number-citation_complex_1.xml @@ -0,0 +1,113 @@ + + + + + +

+ This test checks page-number-citations with all combinations of + definition-level and block-level IDs. +

+

+ TODO: + Test table-and-caption and table-caption once implemented. +

+
+ + + + + + + + + + block1 + + + + • + + + here is text in the list item body + + + + + + + + + header + + + + + + + footer + + + + + + + body-content + + + + + + block-container-content + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/page-number-citation_complex_2.xml b/test/layoutengine/standard-testcases/page-number-citation_complex_2.xml new file mode 100644 index 000000000..6d4252bc1 --- /dev/null +++ b/test/layoutengine/standard-testcases/page-number-citation_complex_2.xml @@ -0,0 +1,89 @@ + + + + + +

+ This test checks page-number-citations with all combinations of + inline-level IDs. +

+

+ TODO: + Test inline-container, bidi-override once implemented. +

+
+ + + + + + + + + + textinlinetext + textwrappertext + texttext + texttext + texttext + texttext + texttext + texttext + textlinktext + text + + + + + + + text + texttext + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/page-number-citation_vertical-align.xml b/test/layoutengine/standard-testcases/page-number-citation_vertical-align.xml new file mode 100755 index 000000000..b8f5315a1 --- /dev/null +++ b/test/layoutengine/standard-testcases/page-number-citation_vertical-align.xml @@ -0,0 +1,59 @@ + + + + + +

+ This test checks fo:page-number-citation with vertical-align property. +

+
+ + + + + + + + + + + Page citation vertical-align not specified + + + Page citation vertical-align="baseline" + + + Page citation vertical-align="top" + + + Page citation vertical-align="middle" + + + Page citation vertical-align="bottom" + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/page-number_background-color.xml b/test/layoutengine/standard-testcases/page-number_background-color.xml new file mode 100755 index 000000000..c052bb4c4 --- /dev/null +++ b/test/layoutengine/standard-testcases/page-number_background-color.xml @@ -0,0 +1,43 @@ + + + + + +

+ This test checks fo:page-number with background-color property. +

+
+ + + + + + + + + + + To emphasize a page number highlight it. + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/page-number_background-image.xml b/test/layoutengine/standard-testcases/page-number_background-image.xml new file mode 100755 index 000000000..08d2e1484 --- /dev/null +++ b/test/layoutengine/standard-testcases/page-number_background-image.xml @@ -0,0 +1,48 @@ + + + + + +

+ This test checks fo:page-number with background-image property. +

+
+ + ../../resources/images/bgimg300dpi.jpg + + + + + + + + + + + + Page + Page + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/page-number_basic.xml b/test/layoutengine/standard-testcases/page-number_basic.xml new file mode 100644 index 000000000..46077fa66 --- /dev/null +++ b/test/layoutengine/standard-testcases/page-number_basic.xml @@ -0,0 +1,68 @@ + + + + + +

+ This test checks fo:page-number. +

+
+ + + + + + + + + + page: + page: + page: + page: + page: + page: + page: + + + + + page: + page: + page: + page: + page: + page: + page: + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/page-number_border_padding.xml b/test/layoutengine/standard-testcases/page-number_border_padding.xml new file mode 100755 index 000000000..cffa2eda1 --- /dev/null +++ b/test/layoutengine/standard-testcases/page-number_border_padding.xml @@ -0,0 +1,98 @@ + + + + + +

+ This test checks fo:page-number with border and padding properties. +

+
+ + + + + + + + + + + Page number with a 1pt border. + + + Page number with 5pt border and padding. + + + Page number with unsymmetric borders and padding. + + + Page number with border and padding in a smaller font. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/page-number_initial-page-number_1.xml b/test/layoutengine/standard-testcases/page-number_initial-page-number_1.xml new file mode 100644 index 000000000..365ee1944 --- /dev/null +++ b/test/layoutengine/standard-testcases/page-number_initial-page-number_1.xml @@ -0,0 +1,68 @@ + + + + + +

+ This test checks fo:page-number. +

+
+ + + + + + + + + + page: + page: + page: + page: + page: + page: + page: + + + + + page: + page: + page: + page: + page: + page: + page: + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/page-number_initial-page-number_2.xml b/test/layoutengine/standard-testcases/page-number_initial-page-number_2.xml new file mode 100644 index 000000000..0d4a7e21f --- /dev/null +++ b/test/layoutengine/standard-testcases/page-number_initial-page-number_2.xml @@ -0,0 +1,53 @@ + + + + + +

+ This test checks fo:page-number. +

+
+ + + + + + + + + + 9 10 + page: -><- + page: -><- + page: -><- + page: -><- + page: -><- + page: -><- + page: -><- + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/page-number_vertical-align.xml b/test/layoutengine/standard-testcases/page-number_vertical-align.xml new file mode 100755 index 000000000..a4605027a --- /dev/null +++ b/test/layoutengine/standard-testcases/page-number_vertical-align.xml @@ -0,0 +1,59 @@ + + + + + +

+ This test checks fo:page-number with vertical-align property. +

+
+ + + + + + + + + + + Page vertical-align not specified + + + Page vertical-align="baseline" + + + Page vertical-align="top" + + + Page vertical-align="middle" + + + Page vertical-align="bottom" + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/page-production_empty_block_only.xml b/test/layoutengine/standard-testcases/page-production_empty_block_only.xml new file mode 100644 index 000000000..56cf16638 --- /dev/null +++ b/test/layoutengine/standard-testcases/page-production_empty_block_only.xml @@ -0,0 +1,54 @@ + + + + + +

+ This test checks if FOP produces an empty page for a page-sequence with its only content an empty block. +

+

+ Clarification by the XSL WG. +

+
+ + + + + + + + + + page 1 + + + + + + + + + + page 3 + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/region-body_background-image.xml b/test/layoutengine/standard-testcases/region-body_background-image.xml new file mode 100644 index 000000000..c5dbcd64a --- /dev/null +++ b/test/layoutengine/standard-testcases/region-body_background-image.xml @@ -0,0 +1,51 @@ + + + + + +

+ This test checks background images on a region-body +

+
+ + ../../resources/images/bgimg300dpi.jpg + + + + + + + + + + + + + normal block + normal block + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/region-body_column-count_1.xml b/test/layoutengine/standard-testcases/region-body_column-count_1.xml new file mode 100644 index 000000000..451d7141c --- /dev/null +++ b/test/layoutengine/standard-testcases/region-body_column-count_1.xml @@ -0,0 +1,83 @@ + + + + + +

+ This test checks multi-column documents. +

+
+ + + + + + + + + + line1 + line2 + line3 + line4 + line5 + line6 + line7 + line8 + line9 + line10 + line11 + line12 + line13 + line14 + line15 + line16 + line17 + line18 + line19 + line20 + line21 + line22 + line23 + line24 + line25 + line26 + line27 + line28 + line29 + line30 + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/region-body_column-count_2.xml b/test/layoutengine/standard-testcases/region-body_column-count_2.xml new file mode 100644 index 000000000..3f76f0ed7 --- /dev/null +++ b/test/layoutengine/standard-testcases/region-body_column-count_2.xml @@ -0,0 +1,98 @@ + + + + + +

+ This test checks multi-column documents. Normal multi-column document breaking over more than one page. +

+
+ + + + + + + + + + line1 + line2 + line3 + line4 + line5 + line6 + line7 + line8 + line9 + line10 + line11 + line12 + line13 + line14 + line15 + line16 + line17 + line18 + line19 + line20 + line21 + line22 + line23 + line24 + line25 + line26 + line27 + line28 + line29 + line30 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/region-body_column-count_bug36356.xml b/test/layoutengine/standard-testcases/region-body_column-count_bug36356.xml new file mode 100644 index 000000000..917a6eb0b --- /dev/null +++ b/test/layoutengine/standard-testcases/region-body_column-count_bug36356.xml @@ -0,0 +1,59 @@ + + + + + +

+ This test checks multi-column documents. Checks a problem described in Bugzilla #36356. + The balancing algorithm does not seem to always find the right breaking points. +

+
+ + + + + + + + + + + line1 + line2 + line3 + line4 + line5 + line6 + + + This line is spanned over all columns. + + + line1 + line2 + line3 + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/region-body_column-count_footnote.xml b/test/layoutengine/standard-testcases/region-body_column-count_footnote.xml new file mode 100644 index 000000000..57edcd97e --- /dev/null +++ b/test/layoutengine/standard-testcases/region-body_column-count_footnote.xml @@ -0,0 +1,67 @@ + + + + + +

+ This test checks multi-column documents. This test: footnotes in multi-column documents (no spans). +

+
+ + + + + + + + + + + + + line1 + line2 + line3 + line4 + line5xA footnote + line6 + line7 + line8 + line9 + line10 + line11xAnother footnote on the second column + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/region-body_column-count_span_1.xml b/test/layoutengine/standard-testcases/region-body_column-count_span_1.xml new file mode 100644 index 000000000..5ad931f41 --- /dev/null +++ b/test/layoutengine/standard-testcases/region-body_column-count_span_1.xml @@ -0,0 +1,112 @@ + + + + + +

+ This test checks multi-column documents. +

+
+ + + + + + + + + + + line1 + line2 + line3 + line4 + line5 + line6 + line7 + line8 + line9 + line10 + line11 + line12 + line13 + + + This line is spanned over all columns. + This line is spanned over all columns. + This line is spanned over all columns. + This line is spanned over all columns. + + + line1 + line2 + line3 + line4 + line5 + line6 + line7 + line8 + line9 + line10 + line11 + line12 + line13 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/region-body_column-count_span_2.xml b/test/layoutengine/standard-testcases/region-body_column-count_span_2.xml new file mode 100644 index 000000000..06b372125 --- /dev/null +++ b/test/layoutengine/standard-testcases/region-body_column-count_span_2.xml @@ -0,0 +1,103 @@ + + + + + +

+ This test checks multi-column documents. This test is a special regression test + (a section that is not the first span group, is not spanned, is forced to be + balanced and breaks over a page). +

+
+ + + + + + + + + + + line1 + line2 + line3 + line4 + line5 + line6 + line7 + line8 + line9 + line10 + line11 + line12 + line13 + + + This line is spanned over all columns. + This line is spanned over all columns. + This line is spanned over all columns. + This line is spanned over all columns. + This line is spanned over all columns. + This line is spanned over all columns. + This line is spanned over all columns. + This line is spanned over all columns. + This line is spanned over all columns. + This line is spanned over all columns. + + + line1 + line2 + line3 + line4 + line5 + line6 + line7 + line8 + line9 + line10 + line11 + line12 + line13 + line14 + line15 + line16 + line17 + line18 + line19 + line20 + line21 + line22 + line23 + line24 + line25 + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/region_side_space-resolution.xml b/test/layoutengine/standard-testcases/region_side_space-resolution.xml new file mode 100644 index 000000000..912fa6e16 --- /dev/null +++ b/test/layoutengine/standard-testcases/region_side_space-resolution.xml @@ -0,0 +1,63 @@ + + + + + +

+ This test checks if space resolution works in side regions. +

+
+ + + + + + + + + + + line 1 + line 2 + + + region-body + + + + + + + + + + + + + + + + + 3 + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/simple-page-master_margin_1.xml b/test/layoutengine/standard-testcases/simple-page-master_margin_1.xml new file mode 100644 index 000000000..2e3fe49fe --- /dev/null +++ b/test/layoutengine/standard-testcases/simple-page-master_margin_1.xml @@ -0,0 +1,106 @@ + + + + + +

+ This test checks page-masters (margins part 1). +

+
+ + + + + + + + + + + + + + + + + + + testing margins + + + + + testing margin shorthands (with 1 value) + + + + + testing margin shorthands (with 2 values) + + + + + testing margin shorthands (with 3 values) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/simple-page-master_margin_2.xml b/test/layoutengine/standard-testcases/simple-page-master_margin_2.xml new file mode 100644 index 000000000..8b621ce84 --- /dev/null +++ b/test/layoutengine/standard-testcases/simple-page-master_margin_2.xml @@ -0,0 +1,100 @@ + + + + + +

+ This test checks page-masters (margins part 2). +

+
+ + + + + + + + + + + + + + + + + + + testing margins on region-body + + + + + testing margin shorthands on region-body (with 1 value) + + + + + testing margin shorthands on region-body (with 2 values) + + + + + testing margin shorthands on region-body (with 3 values) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/simple-page-master_margin_region-body_margin_relative.xml b/test/layoutengine/standard-testcases/simple-page-master_margin_region-body_margin_relative.xml new file mode 100644 index 000000000..b1a734133 --- /dev/null +++ b/test/layoutengine/standard-testcases/simple-page-master_margin_region-body_margin_relative.xml @@ -0,0 +1,106 @@ + + + + + +

+ This test checks relative margin on region (region-body). +

+
+ + ../../resources/images/bgimg300dpi.jpg + + + + + + + + + + + + + + + + r e g i o n b e f o r e + + + + + r e g i o n a f t e r + + + + + r e g i o n s t a r t + + + + + r e g i o n e n d + + + + + Demonstrates relative 5% margins on all regions and the page master. + The page size is 5in x 3in. This gives top and bottom margins of 0.25in and + left and right margins 0.15in. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/simple-page-master_reference-orientation.xml b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation.xml new file mode 100644 index 000000000..e64e095fa --- /dev/null +++ b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation.xml @@ -0,0 +1,75 @@ + + + + + +

+ This test checks page-masters (reference orientation). +

+
+ + + + + + + + + + + + + + + region-before + + + testing margins + + + + + region-before1 + region-before2 + region-before3 + + + testing margin with reference-orientation="90" + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_0_region-body_margin_relative.xml b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_0_region-body_margin_relative.xml new file mode 100644 index 000000000..c68c3aa6a --- /dev/null +++ b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_0_region-body_margin_relative.xml @@ -0,0 +1,111 @@ + + + + + +

+ This test checks relative margin on region (region-body). +

+
+ + ../../resources/images/bgimg300dpi.jpg + + + + + + + + + + + + + + + + r e g i o n b e f o r e + + + + + r e g i o n a f t e r + + + + + r e g i o n s t a r t + + + + + r e g i o n e n d + + + + + Demonstrates relative 5% margin on the page master, 10% margin on regions before + and end and 5% margin on regions start and after. Corresponding margins are set + on the region body. The page size is 5in x 3in with the page reference not rotated. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_0_writing-mode_rl_region-body_margin_relative.xml b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_0_writing-mode_rl_region-body_margin_relative.xml new file mode 100644 index 000000000..3269fd9dd --- /dev/null +++ b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_0_writing-mode_rl_region-body_margin_relative.xml @@ -0,0 +1,112 @@ + + + + + +

+ This test checks relative margin on region (region-body). +

+
+ + ../../resources/images/bgimg300dpi.jpg + + + + + + + + + + + + + + + + r e g i o n b e f o r e + + + + + r e g i o n a f t e r + + + + + r e g i o n s t a r t + + + + + r e g i o n e n d + + + + + Demonstrates relative 5% margin on the page master, 10% margin on regions before + and end and 5% margin on regions start and after. Corresponding margins are set + on the region body. The page size is 5in x 3in with the page reference not rotated + and a rl writing-mode. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_180_region-body_margin_relative.xml b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_180_region-body_margin_relative.xml new file mode 100644 index 000000000..363edc6ed --- /dev/null +++ b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_180_region-body_margin_relative.xml @@ -0,0 +1,112 @@ + + + + + +

+ This test checks relative margin on region (region-body). +

+
+ + ../../resources/images/bgimg300dpi.jpg + + + + + + + + + + + + + + + + r e g i o n b e f o r e + + + + + r e g i o n a f t e r + + + + + r e g i o n s t a r t + + + + + r e g i o n e n d + + + + + Demonstrates relative 5% margin on the page master, 10% margin on regions before + and end and 5% margin on regions start and after. Corresponding margins are set + on the region body. The page size is 5in x 3in with the page reference rotated by + 180 degrees. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_180_writing-mode_rl_region-body_margin_relative.xml b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_180_writing-mode_rl_region-body_margin_relative.xml new file mode 100644 index 000000000..f17c83ed1 --- /dev/null +++ b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_180_writing-mode_rl_region-body_margin_relative.xml @@ -0,0 +1,112 @@ + + + + + +

+ This test checks relative margin on region (region-body). +

+
+ + ../../resources/images/bgimg300dpi.jpg + + + + + + + + + + + + + + + + r e g i o n b e f o r e + + + + + r e g i o n a f t e r + + + + + r e g i o n s t a r t + + + + + r e g i o n e n d + + + + + Demonstrates relative 5% margin on the page master, 10% margin on regions before + and end and 5% margin on regions start and after. Corresponding margins are set + on the region body. The page size is 5in x 3in with the page reference rotated by + 180 degrees and a rl writing-mode. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_270_region-body_margin_relative.xml b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_270_region-body_margin_relative.xml new file mode 100644 index 000000000..e6145ac6c --- /dev/null +++ b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_270_region-body_margin_relative.xml @@ -0,0 +1,112 @@ + + + + + +

+ This test checks relative margin on region (region-body). +

+
+ + ../../resources/images/bgimg300dpi.jpg + + + + + + + + + + + + + + + + r e g i o n b e f o r e + + + + + r e g i o n a f t e r + + + + + r e g i o n s t a r t + + + + + r e g i o n e n d + + + + + Demonstrates relative 5% margin on the page master, 10% margin on regions before + and end and 5% margin on regions start and after. Corresponding margins are set + on the region body. The page size is 5in x 3in with the page reference rotated by + 270 degrees. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_270_writing-mode_rl_region-body_margin_relative.xml b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_270_writing-mode_rl_region-body_margin_relative.xml new file mode 100644 index 000000000..b3808fd4f --- /dev/null +++ b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_270_writing-mode_rl_region-body_margin_relative.xml @@ -0,0 +1,112 @@ + + + + + +

+ This test checks relative margin on region (region-body). +

+
+ + ../../resources/images/bgimg300dpi.jpg + + + + + + + + + + + + + + + + r e g i o n b e f o r e + + + + + r e g i o n a f t e r + + + + + r e g i o n s t a r t + + + + + r e g i o n e n d + + + + + Demonstrates relative 5% margin on the page master, 10% margin on regions before + and end and 5% margin on regions start and after. Corresponding margins are set + on the region body. The page size is 5in x 3in with the page reference rotated by + 270 degrees and a rl writing-mode. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_90_region-body_margin_relative.xml b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_90_region-body_margin_relative.xml new file mode 100644 index 000000000..959484c4c --- /dev/null +++ b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_90_region-body_margin_relative.xml @@ -0,0 +1,112 @@ + + + + + +

+ This test checks relative margin on region (region-body). +

+
+ + ../../resources/images/bgimg300dpi.jpg + + + + + + + + + + + + + + + + r e g i o n b e f o r e + + + + + r e g i o n a f t e r + + + + + r e g i o n s t a r t + + + + + r e g i o n e n d + + + + + Demonstrates relative 5% margin on the page master, 10% margin on regions before + and end and 5% margin on regions start and after. Corresponding margins are set + on the region body. The page size is 5in x 3in with the page reference rotated by + 90 degrees. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_90_writing-mode_rl_region-body_margin_relative.xml b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_90_writing-mode_rl_region-body_margin_relative.xml new file mode 100644 index 000000000..ac7635645 --- /dev/null +++ b/test/layoutengine/standard-testcases/simple-page-master_reference-orientation_90_writing-mode_rl_region-body_margin_relative.xml @@ -0,0 +1,112 @@ + + + + + +

+ This test checks relative margin on region (region-body). +

+
+ + ../../resources/images/bgimg300dpi.jpg + + + + + + + + + + + + + + + + r e g i o n b e f o r e + + + + + r e g i o n a f t e r + + + + + r e g i o n s t a r t + + + + + r e g i o n e n d + + + + + Demonstrates relative 5% margin on the page master, 10% margin on regions before + and end and 5% margin on regions start and after. Corresponding margins are set + on the region body. The page size is 5in x 3in with the page reference rotated by + 90 degrees and a rl writing-mode. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/simple-page-master_regions.xml b/test/layoutengine/standard-testcases/simple-page-master_regions.xml new file mode 100644 index 000000000..9a9fbd849 --- /dev/null +++ b/test/layoutengine/standard-testcases/simple-page-master_regions.xml @@ -0,0 +1,114 @@ + + + + + +

+ This test checks page-masters (all regions). The empty block-containers are used to check that all the base widths are set correctly so + length evaluation using percentages is possible. +

+
+ + + + + + + + + + + + + + + + + region-before1 + region-before2 + region-before3 + + + + + + region-after1 with precedence and display-align="after" + + + + + + region-start1 + region-start2 + region-start3 + + + + + + region-end1 + region-end2 + region-end3 + + + + + + testing all-regions1 + testing all-regions2 + testing all-regions3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/simple-page-master_writing-mode_rl_region-body_writing-mode-lr.xml b/test/layoutengine/standard-testcases/simple-page-master_writing-mode_rl_region-body_writing-mode-lr.xml new file mode 100644 index 000000000..b5383093f --- /dev/null +++ b/test/layoutengine/standard-testcases/simple-page-master_writing-mode_rl_region-body_writing-mode-lr.xml @@ -0,0 +1,113 @@ + + + + + +

+ This test checks relative margin on region (region-body). +

+
+ + ../../resources/images/bgimg300dpi.jpg + + + + + + + + + + + + + + + + r e g i o n b e f o r e + + + + + r e g i o n a f t e r + + + + + r e g i o n s t a r t top - bottom + + + + + r e g i o n e n d top - bottom + + + + + Demonstrates relative 5% margin on the page master, 10% margin on regions before + and end and 5% margin on regions start and after. Corresponding margins are set + on the region body. The page size is 5in x 3in with the page reference not rotated + and a rl writing-mode on the page master, a normal writing mode on the region-body + and tb writing mode on start and end regions. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table-body_background-image.xml b/test/layoutengine/standard-testcases/table-body_background-image.xml new file mode 100644 index 000000000..d212685cd --- /dev/null +++ b/test/layoutengine/standard-testcases/table-body_background-image.xml @@ -0,0 +1,109 @@ + + + + + +

+ This test checks background image on a fo:table-body. +

+
+ + ../../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 image on body + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table-body_basic_1.xml b/test/layoutengine/standard-testcases/table-body_basic_1.xml new file mode 100644 index 000000000..815642d7a --- /dev/null +++ b/test/layoutengine/standard-testcases/table-body_basic_1.xml @@ -0,0 +1,86 @@ + + + + + +

+ This test checks element-lists on tables. +

+
+ + + + + + + + + + + + + + + blah + blah + blah + blah + + + blah + + + + + blah + + + blah + blah + blah + blah + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/table-body_basic_2.xml b/test/layoutengine/standard-testcases/table-body_basic_2.xml new file mode 100644 index 000000000..e066308ee --- /dev/null +++ b/test/layoutengine/standard-testcases/table-body_basic_2.xml @@ -0,0 +1,75 @@ + + + + + +

+ This test checks element-lists on tables, particularly a constellation where a single line + from one column might be printed alone while the rest of the content is broken over to + the next part. +

+
+ + + + + + + + + + + + + + + + + + + A + B + + + + Cras et felis faucibus justo fringilla tincidunt. Vivamus vitae wisi ut orci egestas bibendum. Nullam nunc orci, euismod non, pulvinar sit amet, aliquet a, leo. Aliquam dapibus, justo pulvinar euismod fringilla, neque ipsum pretium lorem, eget pharetra eros massa vel nulla. Ut lobortis enim id magna. Pellentesque sagittis. Etiam tristique arcu. Cras eu dolor. Praesent aliquam wisi sit amet enim. Nullam id diam. + + + + + + + + + + + + + + + + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/table-border-separate3.xml b/test/layoutengine/standard-testcases/table-border-separate3.xml new file mode 100644 index 000000000..12d7e85d5 --- /dev/null +++ b/test/layoutengine/standard-testcases/table-border-separate3.xml @@ -0,0 +1,80 @@ + + + + + +

+ This test checks tables, especially table-cells. This test: borders in conjunction with empty-cells. +

+
+ + + + + + + + + + + + + + + + + + + cell2 + + + + + + + + cell4 + + + + + + + + cell6 + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table-cell_background-image.xml b/test/layoutengine/standard-testcases/table-cell_background-image.xml new file mode 100644 index 000000000..f64663990 --- /dev/null +++ b/test/layoutengine/standard-testcases/table-cell_background-image.xml @@ -0,0 +1,130 @@ + + + + + +

+ This test checks relative positioned background images on a fo:table-cell. +

+
+ + ../../resources/images/box1.png + + + + + + + + + + + + + + + + + + image in top right corner + + + image in center right + + + image in bottom right corner + + + + + image in top center + + + image in center + + + image in bottom center + + + + + image in top left + + + image in center left + + + image in bottom left + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table-cell_block_break-before.xml b/test/layoutengine/standard-testcases/table-cell_block_break-before.xml new file mode 100644 index 000000000..e4df0baec --- /dev/null +++ b/test/layoutengine/standard-testcases/table-cell_block_break-before.xml @@ -0,0 +1,73 @@ + + + + + +

+ This test checks breaks on tables: breaks inside table-cell content. +

+
+ + + + + + + + + + + + + + + + cell1 - line 1 + cell1 - line 2 + cell1 - line 3 + + + cell2 - line 1 + cell2 - line 2 + + + + + cell3 + + + cell4 + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table-cell_block_keep-with-next.xml b/test/layoutengine/standard-testcases/table-cell_block_keep-with-next.xml new file mode 100644 index 000000000..055f1cdd2 --- /dev/null +++ b/test/layoutengine/standard-testcases/table-cell_block_keep-with-next.xml @@ -0,0 +1,84 @@ + + + + + +

+ This test checks keep-with-next on content inside tables. +

+
+ + + + + + + + + + block1 + + + + + + + line1 + line2 + + + line1 + + + + + line1 + + + line1 + + + + + block2 + + + + + + + + + + + + + + + + + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/table-cell_block_keep-with-previous.xml b/test/layoutengine/standard-testcases/table-cell_block_keep-with-previous.xml new file mode 100644 index 000000000..0ba566d37 --- /dev/null +++ b/test/layoutengine/standard-testcases/table-cell_block_keep-with-previous.xml @@ -0,0 +1,84 @@ + + + + + +

+ This test checks keep-with-previous on content inside tables. +

+
+ + + + + + + + + + block1 + + + + + + + line1 + line2 + + + line1 + + + + + line1 + + + line1 + + + + + block2 + + + + + + + + + + + + + + + + + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/table-cell_block_margin_percentage.xml b/test/layoutengine/standard-testcases/table-cell_block_margin_percentage.xml new file mode 100644 index 000000000..18a041c20 --- /dev/null +++ b/test/layoutengine/standard-testcases/table-cell_block_margin_percentage.xml @@ -0,0 +1,81 @@ + + + + + +

+ This test checks basic tables with percentages in cells. +

+
+ + + + + + + + + + + + + + + + cell1 + + + cell2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table-cell_border_padding_conditionality.xml b/test/layoutengine/standard-testcases/table-cell_border_padding_conditionality.xml new file mode 100644 index 000000000..f3a189219 --- /dev/null +++ b/test/layoutengine/standard-testcases/table-cell_border_padding_conditionality.xml @@ -0,0 +1,128 @@ + + + + + +

+ This test checks border and padding conditionality on table. +

+
+ + + + + + + + + + + + + + + + cell1 + + + +In olden times when wishing still helped one, there lived a king whose daughters +were all beautiful; and the youngest was so beautiful that the sun itself, which +has seen so much, was astonished whenever it shone in her face. Close by the king's +castle lay a great dark forest, and under an old lime-tree in the forest was a well, +and when the day was very warm, the king's child went out into the forest and sat +down by the side of the cool fountain; and when she was bored she took a golden ball, +and threw it up on high and caught it; and this ball was her favorite plaything. + + + + + + + + + + + + + + + + cell1 + + + +In olden times when wishing still helped one, there lived a king whose daughters +were all beautiful; and the youngest was so beautiful that the sun itself, which +has seen so much, was astonished whenever it shone in her face. Close by the king's +castle lay a great dark forest, and under an old lime-tree in the forest was a well, +and when the day was very warm, the king's child went out into the forest and sat +down by the side of the cool fountain; and when she was bored she took a golden ball, +and threw it up on high and caught it; and this ball was her favorite plaything. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table-cell_column-number.xml b/test/layoutengine/standard-testcases/table-cell_column-number.xml new file mode 100644 index 000000000..39c4af464 --- /dev/null +++ b/test/layoutengine/standard-testcases/table-cell_column-number.xml @@ -0,0 +1,120 @@ + + + + + +

+ This test checks basic table-cells. This test: column-number and gaps (=empty cells) in rows. +

+
+ + + + + + + + + + + + + + + + + + + cell1 + + + cell2 + + + cell3 + + + cell4 + + + cell5 + + + + + cell6 + + + cell7 + + + cell8 + + + + + cell11 + + + cell10 + + + cell9 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table-cell_display-align.xml b/test/layoutengine/standard-testcases/table-cell_display-align.xml new file mode 100644 index 000000000..fc3f3c5f6 --- /dev/null +++ b/test/layoutengine/standard-testcases/table-cell_display-align.xml @@ -0,0 +1,99 @@ + + + + + +

+ This test checks tables, especially table-cells. This test: display-align. +

+
+ + + + + + + + + + + + + + + + cell1 + + + cell2 + + + + + cell3 + + + cell4 + + + + + cell5 + + + cell6 + + + + + cell7 + + + cell8 + + + + + cell9 + + + cell10 + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table-cell_display-align_page-break.xml b/test/layoutengine/standard-testcases/table-cell_display-align_page-break.xml new file mode 100644 index 000000000..e2b922206 --- /dev/null +++ b/test/layoutengine/standard-testcases/table-cell_display-align_page-break.xml @@ -0,0 +1,86 @@ + + + + + +

+ This test checks tables, especially table-cells. This test: display-align with page break. +

+
+ + + + + + + + + + + + + + + + cell1 + + + cell2 + + + + + cell3 + + + + cell4a + cell4b + cell4c + cell4d + cell4e + cell4f + cell4g + + + + + + cell5 + + + cell6 + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table-cell_height.xml b/test/layoutengine/standard-testcases/table-cell_height.xml new file mode 100644 index 000000000..b573106f1 --- /dev/null +++ b/test/layoutengine/standard-testcases/table-cell_height.xml @@ -0,0 +1,169 @@ + + + + + +

+ This test checks tables, especially table-cells. This test: height and block-progression-dimension. +

+
+ + + + + + + + + + + + + + + + cell1 + + + cell2 + + + + + cell3 + + + cell4 + + + + + cell5 + + + cell6 + + + + + cell7 + + + + cell8a + cell8b + cell8c + + + + + + cell9 + + + + cell10a + cell10b + cell10c + + + + + + cell11 + + + + cell12a + cell12b + cell12c + + + + + + cell13 + + + + cell14a + cell14b + cell14c + + + + + + cell15 + + + cell16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table-cell_height_page-break.xml b/test/layoutengine/standard-testcases/table-cell_height_page-break.xml new file mode 100644 index 000000000..e0adfa4d8 --- /dev/null +++ b/test/layoutengine/standard-testcases/table-cell_height_page-break.xml @@ -0,0 +1,87 @@ + + + + + +

+ This test checks tables, especially table-cells. This test: page break. +

+
+ + + + + + + + + + + + + + + + cell1 + + + cell2 + + + + + cell3 + + + + cell4a + cell4b + cell4c + cell4d + cell4e + cell4f + cell4g + + + + + + cell5 + + + cell6 + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table-cell_number-columns-spanned.xml b/test/layoutengine/standard-testcases/table-cell_number-columns-spanned.xml new file mode 100644 index 000000000..f903a2eb4 --- /dev/null +++ b/test/layoutengine/standard-testcases/table-cell_number-columns-spanned.xml @@ -0,0 +1,114 @@ + + + + + +

+ This test checks tables, especially table-cells. This test: simple horizontal spans. +

+
+ + + + + + + + + + + + + + + cell1 + + + cell2 + + + cell3 + + + cell4 + + + cell5 + + + + + cell6a + cell6b + + + cell7a + cell7b + + + cell8a + cell8b + + + + + cell9a + cell9b + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table-cell_number-rows-spanned.xml b/test/layoutengine/standard-testcases/table-cell_number-rows-spanned.xml new file mode 100644 index 000000000..6ab88f664 --- /dev/null +++ b/test/layoutengine/standard-testcases/table-cell_number-rows-spanned.xml @@ -0,0 +1,99 @@ + + + + + +

+ This test checks tables, especially table-body. This test: row span which go beyond the last row. +

+
+ + + + + + + + + + + + + + + cell1 + blah1 + blah2 + blah3 + blah4 + blah5 + blah6 + blah7 + blah8 + + + cell2 + blah + + + + + cell3 + + + + + + + EOT + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/table-cell_padding_percentages.xml b/test/layoutengine/standard-testcases/table-cell_padding_percentages.xml new file mode 100644 index 000000000..b7178c940 --- /dev/null +++ b/test/layoutengine/standard-testcases/table-cell_padding_percentages.xml @@ -0,0 +1,64 @@ + + + + + +

+ This test checks relative padding on a fo:table-cell. +

+
+ + + + + + + + + + + + + + + + + Row 1 Col 1 + + + Row 1 Col 2 + + + Row 1 Col 3 + + + + + Table a yellow cell having 2% padding. + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table-cell_starts-row_ends-row.xml b/test/layoutengine/standard-testcases/table-cell_starts-row_ends-row.xml new file mode 100644 index 000000000..fbf509e7e --- /dev/null +++ b/test/layoutengine/standard-testcases/table-cell_starts-row_ends-row.xml @@ -0,0 +1,126 @@ + + + + + +

+ This test checks tables, especially table-body. This test: conversion of cell lists into rows. +

+
+ + + + + + + + + + + + + + + + + cell1 + + + cell2 + + + cell3 + + + cell4 + + + cell5 + + + cell6 + + + cell7 + + + cell8 + + + cell9 + + + cell10 + + + cell11 + + + cell12 + + + cell13 + + + cell14 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table-cell_various-combinations.xml b/test/layoutengine/standard-testcases/table-cell_various-combinations.xml new file mode 100644 index 000000000..4936798e0 --- /dev/null +++ b/test/layoutengine/standard-testcases/table-cell_various-combinations.xml @@ -0,0 +1,137 @@ + + + + + +

+ This test checks certain aspects of the area tree generation for table-cells. +

+
+ + + + + + + + + + + + + + plain block + + + cell with border + + + cell with padding + + + cell with border and padding + + + cell with border and height + + + cell with padding and height + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + +
diff --git a/test/layoutengine/standard-testcases/table-column_column-number.xml b/test/layoutengine/standard-testcases/table-column_column-number.xml new file mode 100644 index 000000000..c298efb63 --- /dev/null +++ b/test/layoutengine/standard-testcases/table-column_column-number.xml @@ -0,0 +1,71 @@ + + + + + +

+ This test checks tables, especially table-columns. Specifying the column in reverse order using column-number. +

+
+ + + + + + + + + + + + + + + + + cell1 + + + cell2 + + + cell3 + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table-column_column-width.xml b/test/layoutengine/standard-testcases/table-column_column-width.xml new file mode 100644 index 000000000..615181994 --- /dev/null +++ b/test/layoutengine/standard-testcases/table-column_column-width.xml @@ -0,0 +1,95 @@ + + + + + +

+ This test checks tables, especially table-columns. +

+
+ + + + + + + + + + + + + + + + + cell1 + + + cell2 + + + cell3 + + + cell4 + + + cell5 + + + cell6 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table-column_column-width_proportional-column-width.xml b/test/layoutengine/standard-testcases/table-column_column-width_proportional-column-width.xml new file mode 100644 index 000000000..47eb64972 --- /dev/null +++ b/test/layoutengine/standard-testcases/table-column_column-width_proportional-column-width.xml @@ -0,0 +1,98 @@ + + + + + +

+ This test checks tables, especially table-columns. Using proportional-column-width(). +

+
+ + + + + + + + + + + + + + + + + cell1 + + + cell2 + + + cell3 + + + + + + + + + + + + cell4 + + + cell5 + + + cell6 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table-column_first-row-width.xml b/test/layoutengine/standard-testcases/table-column_first-row-width.xml new file mode 100644 index 000000000..21d8dabbc --- /dev/null +++ b/test/layoutengine/standard-testcases/table-column_first-row-width.xml @@ -0,0 +1,70 @@ + + + + + +

+ This test checks tables, especially table-columns. The column widths are specified through + the first row as described in http://www.w3.org/TR/CSS2/tables.html#width-layout. +

+ http://issues.apache.org/bugzilla/show_bug.cgi?id=35656 +
+ + + + + + + + + + + + + + + + + cell1 + + + cell2 + + + cell3 + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table-footer_omit-footer-at-break.xml b/test/layoutengine/standard-testcases/table-footer_omit-footer-at-break.xml new file mode 100644 index 000000000..bf3fbd740 --- /dev/null +++ b/test/layoutengine/standard-testcases/table-footer_omit-footer-at-break.xml @@ -0,0 +1,130 @@ + + + + + +

+ This test checks tables, especially headers and footers. Now with page breaks and omit-footer-at-break. +

+
+ + + + + + + + + + + + + + + header + + + start of page + + + + + + + footer + + + end of page + + + + + + + cell1 + + + cell2 + + + + + cell3 + + + cell4 + + + + + cell5 + + + cell6 + + + + + cell7 + + + cell8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table-header_background-image.xml b/test/layoutengine/standard-testcases/table-header_background-image.xml new file mode 100644 index 000000000..1101b3f95 --- /dev/null +++ b/test/layoutengine/standard-testcases/table-header_background-image.xml @@ -0,0 +1,100 @@ + + + + + +

+ This test checks background image on a fo:table-header and footer. +

+
+ + ../../resources/images/bgimg300dpi.jpg + + + + + + + + + + + + + + + + + + Header Col 1 + + + Header Col 2 + + + Header Col 3 + + + + + + + Footer Col 1 + + + Footer Col 2 + + + Footer 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 + + + + + Table with centered background image in header and footer + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table-header_omit-header-at-break.xml b/test/layoutengine/standard-testcases/table-header_omit-header-at-break.xml new file mode 100644 index 000000000..7f42e710c --- /dev/null +++ b/test/layoutengine/standard-testcases/table-header_omit-header-at-break.xml @@ -0,0 +1,128 @@ + + + + + +

+ This test checks tables, especially headers and footers. Now with page breaks and omit-header-at-break. +

+
+ + + + + + + + + + + + + + + header + + + start of page + + + + + + + footer + + + end of page + + + + + + + cell1 + + + cell2 + + + + + cell3 + + + cell4 + + + + + cell5 + + + cell6 + + + + + cell7 + + + cell8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table-header_table-footer_1.xml b/test/layoutengine/standard-testcases/table-header_table-footer_1.xml new file mode 100644 index 000000000..244c7827c --- /dev/null +++ b/test/layoutengine/standard-testcases/table-header_table-footer_1.xml @@ -0,0 +1,111 @@ + + + + + +

+ This test checks tables, especially headers and footers. +

+
+ + + + + + + + + + + + + + + header1 + + + header2 + + + + + + + footer1 + + + footer2 + + + + + + + cell1 + + + cell2 + + + + + cell3 + + + cell4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table-header_table-footer_2.xml b/test/layoutengine/standard-testcases/table-header_table-footer_2.xml new file mode 100644 index 000000000..e79420f7e --- /dev/null +++ b/test/layoutengine/standard-testcases/table-header_table-footer_2.xml @@ -0,0 +1,135 @@ + + + + + +

+ This test checks tables, especially headers and footers. Now with page breaks. +

+
+ + + + + + + + + + + + + + + header + + + start of page + + + + + + + footer + + + end of page + + + + + + + cell1 + + + cell2 + + + + + cell3 + + + cell4 + + + + + cell5 + + + cell6 + + + + + cell7 + + + cell8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table-row_background-image.xml b/test/layoutengine/standard-testcases/table-row_background-image.xml new file mode 100644 index 000000000..2f05e343a --- /dev/null +++ b/test/layoutengine/standard-testcases/table-row_background-image.xml @@ -0,0 +1,88 @@ + + + + + +

+ This test checks background image on a fo:table-row. +

+
+ + ../../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 + + + + + Table with centered background image on row 1 + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table-row_break-before.xml b/test/layoutengine/standard-testcases/table-row_break-before.xml new file mode 100644 index 000000000..693f27775 --- /dev/null +++ b/test/layoutengine/standard-testcases/table-row_break-before.xml @@ -0,0 +1,63 @@ + + + + + +

+ This test checks breaks on tables. Breaks on table-row during row spanning are ignored + (XSL 1.0, 7.19.1 and 7.19.2). +

+
+ + + + + + + + + + + + + + + + cell1 line 1 + cell1 line 2 + cell1 line 3 + + + cell2 + + + + + cell4 + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table-row_break-before_break-after_1.xml b/test/layoutengine/standard-testcases/table-row_break-before_break-after_1.xml new file mode 100644 index 000000000..ca3357e44 --- /dev/null +++ b/test/layoutengine/standard-testcases/table-row_break-before_break-after_1.xml @@ -0,0 +1,70 @@ + + + + + +

+ This test checks breaks on tables, especially breaks on table-rows in the middle of a table. +

+
+ + + + + + + + + + + + + + + + cell1 + + + cell2 + + + + + cell3 + + + cell4 + + + + + cell5 + + + cell6 + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table-row_break-before_break-after_2.xml b/test/layoutengine/standard-testcases/table-row_break-before_break-after_2.xml new file mode 100644 index 000000000..d939c2599 --- /dev/null +++ b/test/layoutengine/standard-testcases/table-row_break-before_break-after_2.xml @@ -0,0 +1,56 @@ + + + + + +

+ This test checks breaks on tables, especially breaks on the first and last table-rows. +

+
+ + + + + + + + + + before the table + + + + + + + cell3 + + + cell4 + + + + + after the table + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table-row_height.xml b/test/layoutengine/standard-testcases/table-row_height.xml new file mode 100644 index 000000000..693436e41 --- /dev/null +++ b/test/layoutengine/standard-testcases/table-row_height.xml @@ -0,0 +1,106 @@ + + + + + +

+ This test checks tables, especially table-rows. This test: height and block-progression-dimension. +

+
+ + + + + + + + + + + + + + + + cell1 + + + cell2 + + + + + cell3 + + + cell4 + + + + + cell5 + + + cell6 + + + + + cell7 + + + cell8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table-row_keep-together.xml b/test/layoutengine/standard-testcases/table-row_keep-together.xml new file mode 100644 index 000000000..51069ba76 --- /dev/null +++ b/test/layoutengine/standard-testcases/table-row_keep-together.xml @@ -0,0 +1,72 @@ + + + + + +

+ This test checks keep-together on table-rows. +

+
+ + + + + + + + + + block1 + + + + + + + line1 + line2 + + + line1 + + + + + block2 + + + + + + + + + + + + + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/table-row_keep-with-next.xml b/test/layoutengine/standard-testcases/table-row_keep-with-next.xml new file mode 100644 index 000000000..26382587d --- /dev/null +++ b/test/layoutengine/standard-testcases/table-row_keep-with-next.xml @@ -0,0 +1,84 @@ + + + + + +

+ This test checks keep-with-next on table-rows. +

+
+ + + + + + + + + + block1 + + + + + + + line1 + line2 + + + line1 + + + + + line1 + + + line1 + + + + + block2 + + + + + + + + + + + + + + + + + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/table-row_keep-with-previous.xml b/test/layoutengine/standard-testcases/table-row_keep-with-previous.xml new file mode 100644 index 000000000..620780100 --- /dev/null +++ b/test/layoutengine/standard-testcases/table-row_keep-with-previous.xml @@ -0,0 +1,84 @@ + + + + + +

+ This test checks keep-with-previous on table-rows. +

+
+ + + + + + + + + + block1 + + + + + + + line1 + line2 + + + line1 + + + + + line1 + + + line1 + + + + + block2 + + + + + + + + + + + + + + + + + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/table_background-image.xml b/test/layoutengine/standard-testcases/table_background-image.xml new file mode 100644 index 000000000..2a8f1984c --- /dev/null +++ b/test/layoutengine/standard-testcases/table_background-image.xml @@ -0,0 +1,108 @@ + + + + + +

+ This test checks background image on a fo: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 image + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table_basic.xml b/test/layoutengine/standard-testcases/table_basic.xml new file mode 100644 index 000000000..9637febb6 --- /dev/null +++ b/test/layoutengine/standard-testcases/table_basic.xml @@ -0,0 +1,106 @@ + + + + + +

+ This test checks basic tables. +

+
+ + + + + + + + + + + + + + + + cell1 + + + cell2 + + + + + cell3 + + + cell4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table_border-collapse_collapse_1.xml b/test/layoutengine/standard-testcases/table_border-collapse_collapse_1.xml new file mode 100644 index 000000000..515b51346 --- /dev/null +++ b/test/layoutengine/standard-testcases/table_border-collapse_collapse_1.xml @@ -0,0 +1,129 @@ + + + + + +

+ This test checks tables with collapse border model. Simple cell borders to start with. +

+
+ + + + + + + + + + + block before table + + normal border here + + + + + + + + + + + + + cell1 cell1 cell1 cell1 cell1 cell1 cell1 + + + cell2 cell2 cell2 cell2 cell2 cell2 cell2 + + + + + cell3 + + + cell4 + + + + + block after table + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table_border-collapse_collapse_2.xml b/test/layoutengine/standard-testcases/table_border-collapse_collapse_2.xml new file mode 100644 index 000000000..e14a830cc --- /dev/null +++ b/test/layoutengine/standard-testcases/table_border-collapse_collapse_2.xml @@ -0,0 +1,69 @@ + + + + + +

+ This test checks tables with collapse border model. Simple cell borders to start with. +

+
+ + + + + + + + + + block before table + + + + + + + cell1 + + + cell2 + + + + + spanned + + + + + cell4 + + + cell5 + + + + + block after table + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table_border-collapse_separate_1.xml b/test/layoutengine/standard-testcases/table_border-collapse_separate_1.xml new file mode 100644 index 000000000..9d9e97552 --- /dev/null +++ b/test/layoutengine/standard-testcases/table_border-collapse_separate_1.xml @@ -0,0 +1,117 @@ + + + + + +

+ This test checks tables, especially table-cells. This test: simple borders with border-collapse="separate". +

+
+ + + + + + + + + + + + + + + + cell1 + + + cell2 + + + + + cell3 + + + cell4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table_border-collapse_separate_border-spacing.xml b/test/layoutengine/standard-testcases/table_border-collapse_separate_border-spacing.xml new file mode 100644 index 000000000..9b742802d --- /dev/null +++ b/test/layoutengine/standard-testcases/table_border-collapse_separate_border-spacing.xml @@ -0,0 +1,200 @@ + + + + + +

+ This test checks tables, especially table-cells. This test: simple borders with border-collapse="separate", + this time with horizontal border-spacing or border-separation.inline-progression-direction. +

+
+ + + + + + + + + + + + + + + + cell1 + + + cell2 + + + + + cell3 + + + cell4 + + + + + + Reference block + + + + + + + cell1 + + + cell2 + + + + + cell3 + + + cell4 + + + + + + Reference block + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table_border-width_conditionality.xml b/test/layoutengine/standard-testcases/table_border-width_conditionality.xml new file mode 100644 index 000000000..194050e8e --- /dev/null +++ b/test/layoutengine/standard-testcases/table_border-width_conditionality.xml @@ -0,0 +1,195 @@ + + + + + +

+ This test checks painting of borders and border-style. +

+
+ + + + + + + + + + + Following Table has border-width.conditionality="discard" + + + + + + + 1-1 + + + 1-2 + + + + + 2-1 + + + 2-2 + + + + + 3-1 + + + 3-2 + + + + + 4-1 + + + 4-2 + + + + + 5-1 + + + 5-2 + + + + + 6-1 + + + 6-2 + + + + + 7-1 + + + 7-2 + + + + + 8-1 + + + 8-2 + + + + + Next Table has border.conditionality="retain" + + + + + + + 1-1 + + + 1-2 + + + + + 2-1 + + + 2-2 + + + + + 3-1 + + + 3-2 + + + + + 4-1 + + + 4-2 + + + + + 5-1 + + + 5-2 + + + + + 6-1 + + + 6-2 + + + + + 7-1 + + + 7-2 + + + + + 8-1 + + + 8-2 + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table_border_padding.xml b/test/layoutengine/standard-testcases/table_border_padding.xml new file mode 100644 index 000000000..4ee5713ea --- /dev/null +++ b/test/layoutengine/standard-testcases/table_border_padding.xml @@ -0,0 +1,138 @@ + + + + + +

+ This test checks tables with separate border model. Tests borders and padding on table-level. +

+
+ + + + + + + + + + before table + + + + + + + cell1 + + + cell2 + + + + + cell3 + + + cell4 + + + + + after table + + + reference block + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + +
diff --git a/test/layoutengine/standard-testcases/table_border_padding_2.xml b/test/layoutengine/standard-testcases/table_border_padding_2.xml new file mode 100644 index 000000000..cea526998 --- /dev/null +++ b/test/layoutengine/standard-testcases/table_border_padding_2.xml @@ -0,0 +1,203 @@ + + + + + +

+ This test checks border and padding conditionality on table. +

+
+ + + + + + + + + + + + + + + + cell1 + + + +In olden times when wishing still helped one, there lived a king whose daughters +were all beautiful; and the youngest was so beautiful that the sun itself, which +has seen so much, was astonished whenever it shone in her face. Close by the king's +castle lay a great dark forest, and under an old lime-tree in the forest was a well, +and when the day was very warm, the king's child went out into the forest and sat +down by the side of the cool fountain; and when she was bored she took a golden ball, +and threw it up on high and caught it; and this ball was her favorite plaything. + + + + + + + + + + + + + + + + cell1 + + + +In olden times when wishing still helped one, there lived a king whose daughters +were all beautiful; and the youngest was so beautiful that the sun itself, which +has seen so much, was astonished whenever it shone in her face. Close by the king's +castle lay a great dark forest, and under an old lime-tree in the forest was a well, +and when the day was very warm, the king's child went out into the forest and sat +down by the side of the cool fountain; and when she was bored she took a golden ball, +and threw it up on high and caught it; and this ball was her favorite plaything. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 8 + 8 + 8 + 8 + 8 + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table_break-before_break-after.xml b/test/layoutengine/standard-testcases/table_break-before_break-after.xml new file mode 100644 index 000000000..af2df2e0b --- /dev/null +++ b/test/layoutengine/standard-testcases/table_break-before_break-after.xml @@ -0,0 +1,56 @@ + + + + + +

+ This test checks breaks on fo:table. +

+
+ + + + + + + + + + before the table + + + + + + + cell3 + + + cell4 + + + + + after the table + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table_bug36403.xml b/test/layoutengine/standard-testcases/table_bug36403.xml new file mode 100644 index 000000000..e67439213 --- /dev/null +++ b/test/layoutengine/standard-testcases/table_bug36403.xml @@ -0,0 +1,99 @@ + + + + + +

+ This test checks Bugzilla issue 36403. +

+
+ + + + + + + + + + + + + + + + Row 1 Col 1 + + + Row 1 Col 3 + + + + + + + + + + + + + + + + Cell 1/1 + Cell 1/2 + Cell 1/3 + + + Cell 2 + + + + + Cell 3 + + + + + + + + + + + + + + 3 + + + + + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/table_bug37270.xml b/test/layoutengine/standard-testcases/table_bug37270.xml new file mode 100644 index 000000000..c3d8cf6ae --- /dev/null +++ b/test/layoutengine/standard-testcases/table_bug37270.xml @@ -0,0 +1,89 @@ + + + + + +

+ This test checks Bugzilla issue 36403. +

+
+ + + + + + + + + + + + + + + + + + + row 1 col 1 + + + + + + + row 2 col 2 + + + Row 2 col 4 + + + + + row 3 col 2 + + + Row 3 col 4 + + + + + + + + + + + + + + + + + 3 + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table_keep-together.xml b/test/layoutengine/standard-testcases/table_keep-together.xml new file mode 100644 index 000000000..5c0d563ed --- /dev/null +++ b/test/layoutengine/standard-testcases/table_keep-together.xml @@ -0,0 +1,82 @@ + + + + + +

+ This test checks keep-together on tables. +

+
+ + + + + + + + + + block1 + + + + + + + line1 + line2 + + + line1 + + + + + line1 + + + line1 + + + + + block2 + + + + + + + + + + + + + + + + + + + + + + 3 + + +
diff --git a/test/layoutengine/standard-testcases/table_margin_space-before_space-after.xml b/test/layoutengine/standard-testcases/table_margin_space-before_space-after.xml new file mode 100644 index 000000000..ddf51a9f2 --- /dev/null +++ b/test/layoutengine/standard-testcases/table_margin_space-before_space-after.xml @@ -0,0 +1,114 @@ + + + + + +

+ This test checks basic tables. Tests table spaces and margins. +

+
+ + + + + + + + + + before table + + + + + + + cell1 + + + cell2 + + + + + cell3 + + + cell4 + + + + + after table + + + reference block + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table_padding_percentages.xml b/test/layoutengine/standard-testcases/table_padding_percentages.xml new file mode 100644 index 000000000..73345c44a --- /dev/null +++ b/test/layoutengine/standard-testcases/table_padding_percentages.xml @@ -0,0 +1,74 @@ + + + + + +

+ This test checks relative padding on a fo:table. +

+
+ + + + + + + + + + + + + + + + + Header Col 1 + + + Header Col 2 + + + Header Col 3 + + + + + + + Row 1 Col 1 + + + Row 1 Col 2 + + + Row 1 Col 3 + + + + + Table on yellow background with 5% padding + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table_space-before_space-after_1.xml b/test/layoutengine/standard-testcases/table_space-before_space-after_1.xml new file mode 100644 index 000000000..430d8689a --- /dev/null +++ b/test/layoutengine/standard-testcases/table_space-before_space-after_1.xml @@ -0,0 +1,203 @@ + + + + + +

+ This test checks space properties on table. +

+
+ + + + + + + + + + + + + + + + cell1 + + + +In olden times when wishing still helped one, there lived a king whose daughters +were all beautiful; and the youngest was so beautiful that the sun itself, which +has seen so much, was astonished whenever it shone in her face. Close by the king's +castle lay a great dark forest, and under an old lime-tree in the forest was a well, +and when the day was very warm, the king's child went out into the forest and sat +down by the side of the cool fountain; and when she was bored she took a golden ball, +and threw it up on high and caught it; and this ball was her favorite plaything. + + + + + + +Two blocks, testing conditionality="retain". + + + + + + + + + + + + cell1 + + + +In olden times when wishing still helped one, there lived a king whose daughters +were all beautiful; and the youngest was so beautiful that the sun itself, which +has seen so much, was astonished whenever it shone in her face. Close by the king's +castle lay a great dark forest, and under an old lime-tree in the forest was a well, +and when the day was very warm, the king's child went out into the forest and sat +down by the side of the cool fountain; and when she was bored she took a golden ball, +and threw it up on high and caught it; and this ball was her favorite plaything. + + + + + + +Two blocks, testing conditionality="discard". + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 8 + 8 + 8 + 8 + 8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table_space-before_space-after_2.xml b/test/layoutengine/standard-testcases/table_space-before_space-after_2.xml new file mode 100644 index 000000000..310c1135a --- /dev/null +++ b/test/layoutengine/standard-testcases/table_space-before_space-after_2.xml @@ -0,0 +1,104 @@ + + + + + +

+ This test checks space properties on table. Demonstrates that spaces are repeated on every generated area. +

+
+ + + + + + + + + + + + + + + + cell1 + + + line 1 + line 2 + line 3 + line 4 + line 5 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table_table-layout_fixed_1.xml b/test/layoutengine/standard-testcases/table_table-layout_fixed_1.xml new file mode 100644 index 000000000..7d1ebbaad --- /dev/null +++ b/test/layoutengine/standard-testcases/table_table-layout_fixed_1.xml @@ -0,0 +1,109 @@ + + + + + +

+ This test checks tables with table-layout="fixed". +

+
+ + + + + + + + + + + + + + + + cell1 + + + cell2 + + + + + cell3 + + + cell4 + + + + + + + + + + + + cell1 + + + cell2 + + + cell3 + + + + + cell4 + + + cell5 + + + cell6 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table_table-layout_fixed_2.xml b/test/layoutengine/standard-testcases/table_table-layout_fixed_2.xml new file mode 100644 index 000000000..0f9674608 --- /dev/null +++ b/test/layoutengine/standard-testcases/table_table-layout_fixed_2.xml @@ -0,0 +1,65 @@ + + + + + +

+ This test checks tables with table-layout="fixed" with no table-columns specified. +

+

+ Not yet implemented. Please see the comment in ColumnSetup.createColumnsFromFirstRow(). +

+
+ + + + + + + + + + + + + cell1 + + + cell2 + + + cell3 + + + cell4 + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/table_width.xml b/test/layoutengine/standard-testcases/table_width.xml new file mode 100644 index 000000000..8897ab5a1 --- /dev/null +++ b/test/layoutengine/standard-testcases/table_width.xml @@ -0,0 +1,97 @@ + + + + + +

+ This test checks table width in certain situations. +

+
+ + + + + + + + + + + + + + + + + + + cell1 + + + cell2 + + + + + + + + + + + + + + + cell1 + + + cell2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/text-decoration_1.xml b/test/layoutengine/standard-testcases/text-decoration_1.xml new file mode 100644 index 000000000..74c6240bf --- /dev/null +++ b/test/layoutengine/standard-testcases/text-decoration_1.xml @@ -0,0 +1,104 @@ + + + + + +

+ This test checks text-decoration. +

+
+ + + + + + + + + + + underline: normal underline normal + overline: normal overline normal + line-through: normal line-through normal + blink: normal blink normal + + overline/underline: normal over/under normal + overline/underline/line-through: normal over/under/through normal + + full block underlined + underlining a single character: + page-number and citation: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/text-decoration_2.xml b/test/layoutengine/standard-testcases/text-decoration_2.xml new file mode 100644 index 000000000..07f565b39 --- /dev/null +++ b/test/layoutengine/standard-testcases/text-decoration_2.xml @@ -0,0 +1,88 @@ + + + + + +

+ This test checks text-decoration (inheritance and color). +

+
+ + + + + + + + + + + normal under through none under normal + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/wrapper_block.xml b/test/layoutengine/standard-testcases/wrapper_block.xml new file mode 100644 index 000000000..689fba616 --- /dev/null +++ b/test/layoutengine/standard-testcases/wrapper_block.xml @@ -0,0 +1,58 @@ + + + + + +

+ This test checks fo:wrapper with block-level content. +

+
+ + + + + + + + + + block content inlinea block inside the wrapperinline wrapper is finished. + + + + + + + + + + + + + 3 + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/wrapper_inline.xml b/test/layoutengine/standard-testcases/wrapper_inline.xml new file mode 100644 index 000000000..2fdfd9837 --- /dev/null +++ b/test/layoutengine/standard-testcases/wrapper_inline.xml @@ -0,0 +1,48 @@ + + + + + +

+ This test checks fo:wrapper. +

+
+ + + + + + + + + + block content inline-level stuff inside wrapper on page wrapper is finished. + + + + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/wrapper_text-transform_1.xml b/test/layoutengine/standard-testcases/wrapper_text-transform_1.xml new file mode 100644 index 000000000..827113678 --- /dev/null +++ b/test/layoutengine/standard-testcases/wrapper_text-transform_1.xml @@ -0,0 +1,48 @@ + + + + + +

+ This test checks text-transform. +

+
+ + + + + + + + + + none: This tExT is left as-IS. + capitalize: This tExT is capitalized. + uppercase: This tExT is converted to uppercase. Liberté, Égalité, Fraternité und Käse. + lowercase: This tExT is CONVERTED to lowercase. LibertÉ, Égalité, Fraternité und KÄSE. + + + + + + + + + + + +
diff --git a/test/layoutengine/standard-testcases/wrapper_text-transform_2.xml b/test/layoutengine/standard-testcases/wrapper_text-transform_2.xml new file mode 100644 index 000000000..cb82e3f8f --- /dev/null +++ b/test/layoutengine/standard-testcases/wrapper_text-transform_2.xml @@ -0,0 +1,47 @@ + + + + + +

+ This test checks text-transform (especially some mean cases for capitalize). +

+

+ The second block may cause rised eyebrows. An explanation can be found at + http://marc.theaimsgroup.com/?t=111718934800001&r=1&w=2 +

+
+ + + + + + + + + + 1: This tExT is capitalized. + 2: This tExT is capitAliZed. + + + + + + + + +
-- 2.39.5