aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--build.xml60
-rw-r--r--test/java/org/apache/fop/layoutengine/LayoutEngineTestSuite.java6
-rwxr-xr-xtest/layoutengine/hyphenation-testcases/inline_border_padding_hyphenate.xml (renamed from test/layoutengine/testcases/inline_border_padding_hyphenate.xml)0
-rwxr-xr-xtest/layoutengine/hyphenation-testcases/inline_border_padding_hyphenate_de.xml (renamed from test/layoutengine/testcases/inline_border_padding_hyphenate_de.xml)0
-rw-r--r--test/layoutengine/testcases/basic-link_background-image.xml48
-rw-r--r--test/layoutengine/testcases/block-container_absolute-position.xml95
-rw-r--r--test/layoutengine/testcases/block-container_absolute-position_border_padding.xml138
-rw-r--r--test/layoutengine/testcases/block-container_absolute-position_display-align.xml145
-rw-r--r--test/layoutengine/testcases/block-container_absolute-position_fixed.xml80
-rw-r--r--test/layoutengine/testcases/block-container_absolute-position_no-height.xml62
-rw-r--r--test/layoutengine/testcases/block-container_absolute-position_overflow.xml57
-rw-r--r--test/layoutengine/testcases/block-container_absolute-position_reference-orientation.xml128
-rw-r--r--test/layoutengine/testcases/block-container_background-image_background-position-relative.xml117
-rw-r--r--test/layoutengine/testcases/block-container_background-image_background-repeat.xml66
-rw-r--r--test/layoutengine/testcases/block-container_borders.xml145
-rw-r--r--test/layoutengine/testcases/block-container_display-align_space-before.xml128
-rw-r--r--test/layoutengine/testcases/block-container_padding_percentages.xml53
-rw-r--r--test/layoutengine/testcases/block-container_page-breaking.xml65
-rw-r--r--test/layoutengine/testcases/block-container_reference-orientation.xml171
-rw-r--r--test/layoutengine/testcases/block-container_reference-orientation_bug36391.xml106
-rw-r--r--test/layoutengine/testcases/block-container_space-before_space-after_1.xml160
-rw-r--r--test/layoutengine/testcases/block-container_space-before_space-after_2.xml93
-rw-r--r--test/layoutengine/testcases/block-container_space-before_space-after_3.xml126
-rw-r--r--test/layoutengine/testcases/block-container_start-indent.xml73
-rw-r--r--test/layoutengine/testcases/block-container_width_height.xml124
-rw-r--r--test/layoutengine/testcases/block-level_id.xml101
-rw-r--r--test/layoutengine/testcases/block_basic_1.xml52
-rw-r--r--test/layoutengine/testcases/block_basic_2.xml79
-rw-r--r--test/layoutengine/testcases/block_border-style.xml137
-rw-r--r--test/layoutengine/testcases/block_border.xml105
-rw-r--r--test/layoutengine/testcases/block_border_padding.xml154
-rw-r--r--test/layoutengine/testcases/block_border_shorthands.xml128
-rw-r--r--test/layoutengine/testcases/block_break-after.xml65
-rw-r--r--test/layoutengine/testcases/block_break-before.xml65
-rw-r--r--test/layoutengine/testcases/block_font-family.xml51
-rw-r--r--test/layoutengine/testcases/block_font-size_absolute.xml109
-rw-r--r--test/layoutengine/testcases/block_font-size_percentage.xml174
-rw-r--r--test/layoutengine/testcases/block_font-size_relative.xml186
-rw-r--r--test/layoutengine/testcases/block_font-stretch.xml55
-rw-r--r--test/layoutengine/testcases/block_font-style.xml79
-rw-r--r--test/layoutengine/testcases/block_font-weight.xml121
-rw-r--r--test/layoutengine/testcases/block_keep-together.xml143
-rw-r--r--test/layoutengine/testcases/block_keep-with-next.xml95
-rw-r--r--test/layoutengine/testcases/block_keep-with-next_nested.xml65
-rw-r--r--test/layoutengine/testcases/block_keep-with-previous.xml95
-rw-r--r--test/layoutengine/testcases/block_keep-with-previous_nested.xml55
-rw-r--r--test/layoutengine/testcases/block_letter-spacing.xml64
-rw-r--r--test/layoutengine/testcases/block_letter-spacing_text-align_justify.xml70
-rw-r--r--test/layoutengine/testcases/block_line-height.xml123
-rwxr-xr-xtest/layoutengine/testcases/block_line-stacking-strategy_1.xml164
-rwxr-xr-xtest/layoutengine/testcases/block_linefeed-treatment.xml80
-rw-r--r--test/layoutengine/testcases/block_margin.xml74
-rw-r--r--test/layoutengine/testcases/block_margin_inherit.xml76
-rw-r--r--test/layoutengine/testcases/block_margin_percentages.xml76
-rw-r--r--test/layoutengine/testcases/block_margin_shorthands.xml94
-rw-r--r--test/layoutengine/testcases/block_padding.xml103
-rw-r--r--test/layoutengine/testcases/block_padding_2.xml105
-rw-r--r--test/layoutengine/testcases/block_padding_percentages.xml53
-rw-r--r--test/layoutengine/testcases/block_padding_shorthands.xml83
-rw-r--r--test/layoutengine/testcases/block_space-before_space-after_1.xml75
-rw-r--r--test/layoutengine/testcases/block_space-before_space-after_2.xml156
-rw-r--r--test/layoutengine/testcases/block_space-before_space-after_3.xml55
-rw-r--r--test/layoutengine/testcases/block_space-before_space-after_4.xml83
-rw-r--r--test/layoutengine/testcases/block_space-before_space-after_5.xml96
-rw-r--r--test/layoutengine/testcases/block_space-before_space-after_6.xml92
-rw-r--r--test/layoutengine/testcases/block_space-before_space-after_7.xml56
-rw-r--r--test/layoutengine/testcases/block_space-before_space-after_8.xml49
-rw-r--r--test/layoutengine/testcases/block_space-before_space-after_9.xml69
-rw-r--r--test/layoutengine/testcases/block_space-before_space-after_9a.xml90
-rw-r--r--test/layoutengine/testcases/block_start-indent_end-indent.xml55
-rw-r--r--test/layoutengine/testcases/block_text-align_1.xml123
-rw-r--r--test/layoutengine/testcases/block_text-align_2.xml51
-rw-r--r--test/layoutengine/testcases/block_text-indent.xml95
-rwxr-xr-xtest/layoutengine/testcases/block_white-space-collapse_1.xml151
-rwxr-xr-xtest/layoutengine/testcases/block_white-space-collapse_2.xml111
-rwxr-xr-xtest/layoutengine/testcases/block_white-space-treatment_1.xml85
-rwxr-xr-xtest/layoutengine/testcases/block_white-space-treatment_2.xml85
-rw-r--r--test/layoutengine/testcases/block_white-space_1.xml68
-rw-r--r--test/layoutengine/testcases/block_word-spacing.xml59
-rw-r--r--test/layoutengine/testcases/block_word-spacing_text-align_justify.xml59
-rw-r--r--test/layoutengine/testcases/block_wrap-option.xml57
-rwxr-xr-xtest/layoutengine/testcases/character_background-color.xml43
-rw-r--r--test/layoutengine/testcases/character_background-image.xml48
-rwxr-xr-xtest/layoutengine/testcases/character_border_padding.xml98
-rwxr-xr-xtest/layoutengine/testcases/character_vertical-align.xml59
-rw-r--r--test/layoutengine/testcases/external-graphic_basic.xml50
-rw-r--r--test/layoutengine/testcases/external-graphic_bmp.xml56
-rw-r--r--test/layoutengine/testcases/external-graphic_border_padding.xml81
-rw-r--r--test/layoutengine/testcases/external-graphic_content-height_content-width.xml49
-rw-r--r--test/layoutengine/testcases/external-graphic_display-align.xml85
-rw-r--r--test/layoutengine/testcases/external-graphic_emf.xml48
-rw-r--r--test/layoutengine/testcases/external-graphic_eps.xml48
-rw-r--r--test/layoutengine/testcases/external-graphic_gif.xml48
-rw-r--r--test/layoutengine/testcases/external-graphic_jpeg.xml56
-rw-r--r--test/layoutengine/testcases/external-graphic_overflow_hidden.xml62
-rw-r--r--test/layoutengine/testcases/external-graphic_oversized.xml52
-rw-r--r--test/layoutengine/testcases/external-graphic_png.xml57
-rw-r--r--test/layoutengine/testcases/external-graphic_src_uri.xml82
-rw-r--r--test/layoutengine/testcases/external-graphic_svg.xml81
-rw-r--r--test/layoutengine/testcases/external-graphic_tiff.xml64
-rw-r--r--test/layoutengine/testcases/footnote_basic.xml80
-rw-r--r--test/layoutengine/testcases/footnote_footnote-separator.xml111
-rw-r--r--test/layoutengine/testcases/footnote_large.xml158
-rw-r--r--test/layoutengine/testcases/footnote_overflow-to-empty-page.xml81
-rw-r--r--test/layoutengine/testcases/footnote_overflow-to-multiple-pages.xml105
-rw-r--r--test/layoutengine/testcases/footnote_positioning_1.xml97
-rw-r--r--test/layoutengine/testcases/footnote_positioning_2.xml104
-rw-r--r--test/layoutengine/testcases/footnote_positioning_3.xml111
-rw-r--r--test/layoutengine/testcases/footnote_positioning_4.xml127
-rw-r--r--test/layoutengine/testcases/footnote_positioning_5.xml137
-rw-r--r--test/layoutengine/testcases/footnote_space-resolution.xml58
-rw-r--r--test/layoutengine/testcases/inline-block_keep-together.xml62
-rw-r--r--test/layoutengine/testcases/inline-container_block_nested.xml64
-rw-r--r--test/layoutengine/testcases/inline-container_border_padding.xml85
-rw-r--r--test/layoutengine/testcases/inline-level_id.xml79
-rwxr-xr-xtest/layoutengine/testcases/inline_alignment-adjust_1.xml91
-rwxr-xr-xtest/layoutengine/testcases/inline_alignment-adjust_2.xml98
-rwxr-xr-xtest/layoutengine/testcases/inline_alignment-baseline_1.xml91
-rwxr-xr-xtest/layoutengine/testcases/inline_alignment-baseline_2.xml116
-rwxr-xr-xtest/layoutengine/testcases/inline_alignment-baseline_3.xml91
-rwxr-xr-xtest/layoutengine/testcases/inline_alignment-baseline_4.xml231
-rwxr-xr-xtest/layoutengine/testcases/inline_background-color.xml132
-rw-r--r--test/layoutengine/testcases/inline_background-image.xml48
-rwxr-xr-xtest/layoutengine/testcases/inline_baseline-shift_1.xml164
-rwxr-xr-xtest/layoutengine/testcases/inline_baseline-shift_2.xml172
-rwxr-xr-xtest/layoutengine/testcases/inline_baseline-shift_3.xml210
-rwxr-xr-xtest/layoutengine/testcases/inline_baseline-shift_4.xml184
-rw-r--r--test/layoutengine/testcases/inline_block_nested_1.xml48
-rw-r--r--test/layoutengine/testcases/inline_block_nested_2.xml99
-rw-r--r--test/layoutengine/testcases/inline_block_nested_3.xml89
-rw-r--r--test/layoutengine/testcases/inline_block_nested_4.xml93
-rw-r--r--test/layoutengine/testcases/inline_block_nested_bug36248.xml59
-rw-r--r--test/layoutengine/testcases/inline_border_padding.xml140
-rwxr-xr-xtest/layoutengine/testcases/inline_border_padding_block_nested_1.xml126
-rwxr-xr-xtest/layoutengine/testcases/inline_border_padding_block_nested_2.xml168
-rwxr-xr-xtest/layoutengine/testcases/inline_border_padding_conditionality_1.xml398
-rwxr-xr-xtest/layoutengine/testcases/inline_border_padding_conditionality_2.xml311
-rwxr-xr-xtest/layoutengine/testcases/inline_dominant-baseline_1.xml128
-rwxr-xr-xtest/layoutengine/testcases/inline_dominant-baseline_2.xml128
-rwxr-xr-xtest/layoutengine/testcases/inline_dominant-baseline_3.xml115
-rw-r--r--test/layoutengine/testcases/inline_letter-spacing.xml58
-rwxr-xr-xtest/layoutengine/testcases/inline_vertical-align_1.xml148
-rwxr-xr-xtest/layoutengine/testcases/inline_vertical-align_2.xml121
-rw-r--r--test/layoutengine/testcases/inline_word-spacing.xml58
-rw-r--r--test/layoutengine/testcases/inline_word-spacing_text-align_justify.xml58
-rw-r--r--test/layoutengine/testcases/instream-foreign-object_basic.xml56
-rw-r--r--test/layoutengine/testcases/instream-foreign-object_border_padding.xml95
-rw-r--r--test/layoutengine/testcases/instream-foreign-object_display-align.xml120
-rw-r--r--test/layoutengine/testcases/leader-alignment.xml67
-rwxr-xr-xtest/layoutengine/testcases/leader_alignment-baseline.xml170
-rwxr-xr-xtest/layoutengine/testcases/leader_background-color.xml81
-rwxr-xr-xtest/layoutengine/testcases/leader_border_padding.xml256
-rw-r--r--test/layoutengine/testcases/leader_leader-pattern_dots.xml90
-rw-r--r--test/layoutengine/testcases/leader_leader-pattern_rule.xml176
-rw-r--r--test/layoutengine/testcases/leader_leader-pattern_space.xml60
-rw-r--r--test/layoutengine/testcases/leader_leader-pattern_use-content.xml130
-rwxr-xr-xtest/layoutengine/testcases/leader_toc.xml153
-rw-r--r--test/layoutengine/testcases/list-block_background-image.xml83
-rw-r--r--test/layoutengine/testcases/list-block_basic.xml163
-rw-r--r--test/layoutengine/testcases/list-block_border_padding.xml189
-rw-r--r--test/layoutengine/testcases/list-block_keep-together.xml134
-rw-r--r--test/layoutengine/testcases/list-block_keep-with-next.xml106
-rw-r--r--test/layoutengine/testcases/list-block_keep-with-previous.xml135
-rw-r--r--test/layoutengine/testcases/list-block_padding_percentages.xml75
-rw-r--r--test/layoutengine/testcases/list-block_simple-page-master_margin.xml65
-rw-r--r--test/layoutengine/testcases/list-block_space-before_space-after_1.xml221
-rw-r--r--test/layoutengine/testcases/list-block_space-before_space-after_2.xml114
-rw-r--r--test/layoutengine/testcases/list-item_background-image.xml83
-rw-r--r--test/layoutengine/testcases/list-item_block_keep-with-next.xml108
-rw-r--r--test/layoutengine/testcases/list-item_block_keep-with-previous.xml108
-rw-r--r--test/layoutengine/testcases/list-item_padding_percentages.xml78
-rw-r--r--test/layoutengine/testcases/list-item_space-before_space-after_1.xml114
-rw-r--r--test/layoutengine/testcases/list-item_space-before_space-after_2.xml126
-rw-r--r--test/layoutengine/testcases/list-item_space-before_space-after_3.xml73
-rw-r--r--test/layoutengine/testcases/markers_1.xml105
-rw-r--r--test/layoutengine/testcases/markers_2.xml125
-rw-r--r--test/layoutengine/testcases/markers_3.xml138
-rw-r--r--test/layoutengine/testcases/markers_4.xml99
-rw-r--r--test/layoutengine/testcases/markers_5a.xml97
-rw-r--r--test/layoutengine/testcases/markers_5b.xml159
-rw-r--r--test/layoutengine/testcases/markers_5c.xml96
-rw-r--r--test/layoutengine/testcases/markers_5d.xml140
-rw-r--r--test/layoutengine/testcases/markers_6a.xml256
-rw-r--r--test/layoutengine/testcases/markers_6b.xml299
-rw-r--r--test/layoutengine/testcases/markers_7.xml340
-rw-r--r--test/layoutengine/testcases/markers_8.xml146
-rw-r--r--test/layoutengine/testcases/markers_9.xml219
-rw-r--r--test/layoutengine/testcases/page-breaking_1.xml87
-rw-r--r--test/layoutengine/testcases/page-breaking_2.xml54
-rw-r--r--test/layoutengine/testcases/page-breaking_3.xml56
-rw-r--r--test/layoutengine/testcases/page-breaking_4.xml64
-rw-r--r--test/layoutengine/testcases/page-breaking_4a.xml62
-rw-r--r--test/layoutengine/testcases/page-breaking_5.xml61
-rw-r--r--test/layoutengine/testcases/page-breaking_6.xml61
-rw-r--r--test/layoutengine/testcases/page-height_indefinite_simple.xml52
-rwxr-xr-xtest/layoutengine/testcases/page-number-citation_background-color.xml43
-rwxr-xr-xtest/layoutengine/testcases/page-number-citation_background-image.xml49
-rw-r--r--test/layoutengine/testcases/page-number-citation_basic.xml73
-rwxr-xr-xtest/layoutengine/testcases/page-number-citation_border_padding.xml98
-rw-r--r--test/layoutengine/testcases/page-number-citation_complex_1.xml113
-rw-r--r--test/layoutengine/testcases/page-number-citation_complex_2.xml89
-rwxr-xr-xtest/layoutengine/testcases/page-number-citation_vertical-align.xml59
-rwxr-xr-xtest/layoutengine/testcases/page-number_background-color.xml43
-rwxr-xr-xtest/layoutengine/testcases/page-number_background-image.xml48
-rw-r--r--test/layoutengine/testcases/page-number_basic.xml68
-rwxr-xr-xtest/layoutengine/testcases/page-number_border_padding.xml98
-rw-r--r--test/layoutengine/testcases/page-number_initial-page-number_1.xml68
-rw-r--r--test/layoutengine/testcases/page-number_initial-page-number_2.xml53
-rwxr-xr-xtest/layoutengine/testcases/page-number_vertical-align.xml59
-rw-r--r--test/layoutengine/testcases/page-production_empty_block_only.xml54
-rw-r--r--test/layoutengine/testcases/region-body_background-image.xml51
-rw-r--r--test/layoutengine/testcases/region-body_column-count_1.xml83
-rw-r--r--test/layoutengine/testcases/region-body_column-count_2.xml98
-rw-r--r--test/layoutengine/testcases/region-body_column-count_bug36356.xml59
-rw-r--r--test/layoutengine/testcases/region-body_column-count_footnote.xml67
-rw-r--r--test/layoutengine/testcases/region-body_column-count_span_1.xml112
-rw-r--r--test/layoutengine/testcases/region-body_column-count_span_2.xml103
-rw-r--r--test/layoutengine/testcases/region_side_space-resolution.xml63
-rw-r--r--test/layoutengine/testcases/simple-page-master_margin_1.xml106
-rw-r--r--test/layoutengine/testcases/simple-page-master_margin_2.xml100
-rw-r--r--test/layoutengine/testcases/simple-page-master_margin_region-body_margin_relative.xml106
-rw-r--r--test/layoutengine/testcases/simple-page-master_reference-orientation.xml75
-rw-r--r--test/layoutengine/testcases/simple-page-master_reference-orientation_0_region-body_margin_relative.xml111
-rw-r--r--test/layoutengine/testcases/simple-page-master_reference-orientation_0_writing-mode_rl_region-body_margin_relative.xml112
-rw-r--r--test/layoutengine/testcases/simple-page-master_reference-orientation_180_region-body_margin_relative.xml112
-rw-r--r--test/layoutengine/testcases/simple-page-master_reference-orientation_180_writing-mode_rl_region-body_margin_relative.xml112
-rw-r--r--test/layoutengine/testcases/simple-page-master_reference-orientation_270_region-body_margin_relative.xml112
-rw-r--r--test/layoutengine/testcases/simple-page-master_reference-orientation_270_writing-mode_rl_region-body_margin_relative.xml112
-rw-r--r--test/layoutengine/testcases/simple-page-master_reference-orientation_90_region-body_margin_relative.xml112
-rw-r--r--test/layoutengine/testcases/simple-page-master_reference-orientation_90_writing-mode_rl_region-body_margin_relative.xml112
-rw-r--r--test/layoutengine/testcases/simple-page-master_regions.xml114
-rw-r--r--test/layoutengine/testcases/simple-page-master_writing-mode_rl_region-body_writing-mode-lr.xml113
-rw-r--r--test/layoutengine/testcases/table-body_background-image.xml109
-rw-r--r--test/layoutengine/testcases/table-body_basic_1.xml86
-rw-r--r--test/layoutengine/testcases/table-body_basic_2.xml75
-rw-r--r--test/layoutengine/testcases/table-border-separate3.xml80
-rw-r--r--test/layoutengine/testcases/table-cell_background-image.xml130
-rw-r--r--test/layoutengine/testcases/table-cell_block_break-before.xml73
-rw-r--r--test/layoutengine/testcases/table-cell_block_keep-with-next.xml84
-rw-r--r--test/layoutengine/testcases/table-cell_block_keep-with-previous.xml84
-rw-r--r--test/layoutengine/testcases/table-cell_block_margin_percentage.xml81
-rw-r--r--test/layoutengine/testcases/table-cell_border_padding_conditionality.xml128
-rw-r--r--test/layoutengine/testcases/table-cell_column-number.xml120
-rw-r--r--test/layoutengine/testcases/table-cell_display-align.xml99
-rw-r--r--test/layoutengine/testcases/table-cell_display-align_page-break.xml86
-rw-r--r--test/layoutengine/testcases/table-cell_height.xml169
-rw-r--r--test/layoutengine/testcases/table-cell_height_page-break.xml87
-rw-r--r--test/layoutengine/testcases/table-cell_number-columns-spanned.xml114
-rw-r--r--test/layoutengine/testcases/table-cell_number-rows-spanned.xml99
-rw-r--r--test/layoutengine/testcases/table-cell_padding_percentages.xml64
-rw-r--r--test/layoutengine/testcases/table-cell_starts-row_ends-row.xml126
-rw-r--r--test/layoutengine/testcases/table-cell_various-combinations.xml137
-rw-r--r--test/layoutengine/testcases/table-column_column-number.xml71
-rw-r--r--test/layoutengine/testcases/table-column_column-width.xml95
-rw-r--r--test/layoutengine/testcases/table-column_column-width_proportional-column-width.xml98
-rw-r--r--test/layoutengine/testcases/table-column_first-row-width.xml70
-rw-r--r--test/layoutengine/testcases/table-footer_omit-footer-at-break.xml130
-rw-r--r--test/layoutengine/testcases/table-header_background-image.xml100
-rw-r--r--test/layoutengine/testcases/table-header_omit-header-at-break.xml128
-rw-r--r--test/layoutengine/testcases/table-header_table-footer_1.xml111
-rw-r--r--test/layoutengine/testcases/table-header_table-footer_2.xml135
-rw-r--r--test/layoutengine/testcases/table-row_background-image.xml88
-rw-r--r--test/layoutengine/testcases/table-row_break-before.xml63
-rw-r--r--test/layoutengine/testcases/table-row_break-before_break-after_1.xml70
-rw-r--r--test/layoutengine/testcases/table-row_break-before_break-after_2.xml56
-rw-r--r--test/layoutengine/testcases/table-row_height.xml106
-rw-r--r--test/layoutengine/testcases/table-row_keep-together.xml72
-rw-r--r--test/layoutengine/testcases/table-row_keep-with-next.xml84
-rw-r--r--test/layoutengine/testcases/table-row_keep-with-previous.xml84
-rw-r--r--test/layoutengine/testcases/table_background-image.xml108
-rw-r--r--test/layoutengine/testcases/table_basic.xml106
-rw-r--r--test/layoutengine/testcases/table_border-collapse_collapse_1.xml129
-rw-r--r--test/layoutengine/testcases/table_border-collapse_collapse_2.xml69
-rw-r--r--test/layoutengine/testcases/table_border-collapse_separate_1.xml117
-rw-r--r--test/layoutengine/testcases/table_border-collapse_separate_border-spacing.xml200
-rw-r--r--test/layoutengine/testcases/table_border-width_conditionality.xml195
-rw-r--r--test/layoutengine/testcases/table_border_padding.xml138
-rw-r--r--test/layoutengine/testcases/table_border_padding_2.xml203
-rw-r--r--test/layoutengine/testcases/table_break-before_break-after.xml56
-rw-r--r--test/layoutengine/testcases/table_bug36403.xml99
-rw-r--r--test/layoutengine/testcases/table_bug37270.xml89
-rw-r--r--test/layoutengine/testcases/table_keep-together.xml82
-rw-r--r--test/layoutengine/testcases/table_margin_space-before_space-after.xml114
-rw-r--r--test/layoutengine/testcases/table_padding_percentages.xml74
-rw-r--r--test/layoutengine/testcases/table_space-before_space-after_1.xml203
-rw-r--r--test/layoutengine/testcases/table_space-before_space-after_2.xml104
-rw-r--r--test/layoutengine/testcases/table_table-layout_fixed_1.xml109
-rw-r--r--test/layoutengine/testcases/table_table-layout_fixed_2.xml65
-rw-r--r--test/layoutengine/testcases/table_width.xml97
-rw-r--r--test/layoutengine/testcases/text-decoration_1.xml104
-rw-r--r--test/layoutengine/testcases/text-decoration_2.xml88
-rw-r--r--test/layoutengine/testcases/wrapper_block.xml58
-rw-r--r--test/layoutengine/testcases/wrapper_inline.xml48
-rw-r--r--test/layoutengine/testcases/wrapper_text-transform_1.xml48
-rw-r--r--test/layoutengine/testcases/wrapper_text-transform_2.xml47
295 files changed, 56 insertions, 29535 deletions
diff --git a/build.xml b/build.xml
index a027ba667..51683d4bc 100644
--- a/build.xml
+++ b/build.xml
@@ -614,7 +614,7 @@ list of possible build targets.
<target name="junit-transcoder" depends="junit-compile" description="Runs FOP's JUnit transcoder tests" if="junit.present">
<echo message="Running basic functionality tests for fop-transcoder.jar"/>
<mkdir dir="${build.dir}/test-reports/fop-transcoder"/>
- <junit haltonerror="yes" fork="${junit.fork}">
+ <junit haltonerror="no" fork="${junit.fork}">
<sysproperty key="basedir" value="${basedir}"/>
<sysproperty key="jawa.awt.headless" value="true"/>
<formatter type="brief" usefile="false"/>
@@ -639,7 +639,7 @@ list of possible build targets.
JAR needs to be updated.
-->
<mkdir dir="${build.dir}/test-reports/fop-transcoder-allinone"/>
- <junit haltonerror="yes" fork="${junit.fork}">
+ <junit haltonerror="no" fork="${junit.fork}" errorproperty="fop.junit.error" failureproperty="fop.junit.failure">
<sysproperty key="basedir" value="${basedir}"/>
<sysproperty key="jawa.awt.headless" value="true"/>
<formatter type="brief" usefile="false"/>
@@ -665,7 +665,7 @@ list of possible build targets.
<target name="junit-basic" depends="junit-compile" description="Runs FOP's JUnit basic tests" if="junit.present">
<echo message="Running basic functionality tests for fop.jar"/>
<mkdir dir="${build.dir}/test-reports/fop"/>
- <junit haltonerror="yes" fork="${junit.fork}">
+ <junit haltonerror="no" fork="${junit.fork}" errorproperty="fop.junit.error" failureproperty="fop.junit.failure">
<sysproperty key="basedir" value="${basedir}"/>
<sysproperty key="jawa.awt.headless" value="true"/>
<formatter type="brief" usefile="false"/>
@@ -695,7 +695,7 @@ list of possible build targets.
<condition property="hyphenation.message" value="Hyphenation Support PRESENT">
<equals arg1="${hyphenation.present}" arg2="true"/>
</condition>
- <condition property="hyphenation.message" value="Hyphenation Support NOT Present - Some layout tests require hyphenation support">
+ <condition property="hyphenation.message" value="Hyphenation Support NOT Present - Layout tests which require hyphenation are NOT being run!">
<not>
<equals arg1="${hyphenation.present}" arg2="true"/>
</not>
@@ -703,13 +703,14 @@ list of possible build targets.
<echo message="${hyphenation.message}"/>
</target>
- <target name="junit-layout" depends="hyphenation-present, junit-compile" description="Runs FOP's JUnit layout tests" if="hyphenation.present">
- <echo message="Running layout engine tests"/>
+ <target name="junit-layout-standard" depends="junit-compile" description="Runs FOP's standard JUnit layout tests">
+ <echo message="Running standard layout engine tests"/>
<mkdir dir="${build.dir}/test-reports/fop"/>
- <junit haltonerror="yes" fork="${junit.fork}">
+ <junit haltonerror="no" fork="${junit.fork}" errorproperty="fop.junit.error" failureproperty="fop.junit.failure">
<sysproperty key="basedir" value="${basedir}"/>
<sysproperty key="jawa.awt.headless" value="true"/>
<sysproperty key="fop.layoutengine.disabled" value="${layoutengine.disabled}"/>
+ <sysproperty key="fop.layoutengine.testset" value="standard"/>
<formatter type="brief" usefile="false"/>
<classpath>
<pathelement location="${build.dir}/test-classes"/>
@@ -723,9 +724,32 @@ list of possible build targets.
</junit>
</target>
+ <target name="junit-layout-hyphenation" depends="hyphenation-present, junit-compile" description="Runs FOP's JUnit hyphenation layout tests" if="hyphenation.present">
+ <echo message="Running hyphenation layout engine tests"/>
+ <mkdir dir="${build.dir}/test-reports/fop"/>
+ <junit haltonerror="no" fork="${junit.fork}" errorproperty="fop.junit.error" failureproperty="fop.junit.failure">
+ <sysproperty key="basedir" value="${basedir}"/>
+ <sysproperty key="jawa.awt.headless" value="true"/>
+ <sysproperty key="fop.layoutengine.disabled" value="${layoutengine.disabled}"/>
+ <sysproperty key="fop.layoutengine.testset" value="hyphenation"/>
+ <formatter type="brief" usefile="false"/>
+ <classpath>
+ <pathelement location="${build.dir}/test-classes"/>
+ <path refid="libs-run-classpath"/>
+ </classpath>
+ <batchtest todir="${build.dir}/test-reports/fop">
+ <fileset dir="${build.dir}/test-classes">
+ <include name="org/apache/fop/layoutengine/LayoutEngineTestSuite.class"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ </target>
+
+ <target name="junit-layout" depends="junit-layout-standard, junit-layout-hyphenation" description="Runs all FOP's JUnit layout tests" />
+
<target name="junit-fotree" depends="junit-compile" description="Runs FOP's FO tree JUnit tests" if="junit.present">
<echo message="Running fo tree tests"/>
- <junit haltonerror="yes" fork="${junit.fork}">
+ <junit haltonerror="no" fork="${junit.fork}" errorproperty="fop.junit.error" failureproperty="fop.junit.failure">
<sysproperty key="basedir" value="${basedir}"/>
<sysproperty key="jawa.awt.headless" value="true"/>
<sysproperty key="fop.layoutengine.disabled" value="${fotree.disabled}"/>
@@ -745,7 +769,25 @@ list of possible build targets.
</junit>
</target>
- <target name="junit" depends="junit-basic, junit-transcoder, junit-layout, junit-fotree" description="Runs all of FOP's JUnit tests" if="junit.present" />
+ <target name="junit" depends="junit-basic, junit-transcoder, junit-layout, junit-fotree" description="Runs all of FOP's JUnit tests" if="junit.present">
+ <fail>
+ <condition>
+ <or>
+ <isset property="fop.junit.error"/>
+ <isset property="fop.junit.failure"/>
+ <not>
+ <isset property="hyphenation.present"/>
+ </not>
+ </or>
+ </condition>
+NOTE:
+**************************************************************************
+* One or more of the Junit tests had Failures or Errors or were skipped! *
+* Please check the output above for relevant messages. *
+**************************************************************************
+ </fail>
+ <echo>All Junit tests passed!</echo>
+ </target>
<!-- =================================================================== -->
<!-- Creates the API documentation -->
diff --git a/test/java/org/apache/fop/layoutengine/LayoutEngineTestSuite.java b/test/java/org/apache/fop/layoutengine/LayoutEngineTestSuite.java
index 1d96f163d..baae0ce28 100644
--- a/test/java/org/apache/fop/layoutengine/LayoutEngineTestSuite.java
+++ b/test/java/org/apache/fop/layoutengine/LayoutEngineTestSuite.java
@@ -96,7 +96,11 @@ public class LayoutEngineTestSuite {
filter = new SuffixFileFilter(".xml");
filter = decorateWithDisabledList(filter);
}
- Collection files = FileUtils.listFiles(new File(mainDir, "testcases"),
+ String testset = System.getProperty("fop.layoutengine.testset");
+ if (testset == null) {
+ testset = "standard";
+ }
+ Collection files = FileUtils.listFiles(new File(mainDir, testset + "-testcases"),
filter, TrueFileFilter.INSTANCE);
String privateTests = System.getProperty("fop.layoutengine.private");
if ("true".equalsIgnoreCase(privateTests)) {
diff --git a/test/layoutengine/testcases/inline_border_padding_hyphenate.xml b/test/layoutengine/hyphenation-testcases/inline_border_padding_hyphenate.xml
index d55fdc934..d55fdc934 100755
--- a/test/layoutengine/testcases/inline_border_padding_hyphenate.xml
+++ b/test/layoutengine/hyphenation-testcases/inline_border_padding_hyphenate.xml
diff --git a/test/layoutengine/testcases/inline_border_padding_hyphenate_de.xml b/test/layoutengine/hyphenation-testcases/inline_border_padding_hyphenate_de.xml
index 48750c06e..48750c06e 100755
--- a/test/layoutengine/testcases/inline_border_padding_hyphenate_de.xml
+++ b/test/layoutengine/hyphenation-testcases/inline_border_padding_hyphenate_de.xml
diff --git a/test/layoutengine/testcases/basic-link_background-image.xml b/test/layoutengine/testcases/basic-link_background-image.xml
deleted file mode 100644
index 7ec697ffa..000000000
--- a/test/layoutengine/testcases/basic-link_background-image.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks background image on a fo:basic-link.
- </p>
- </info>
- <variables>
- <img>../../resources/images/bgimg300dpi.jpg</img>
- </variables>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- Why is <fo:basic-link external-destination="http://xmlgraphics.apache.org/fop" font-size="96pt" background-color="yellow" background-repeat="no-repeat" background-position-horizontal="center" background-position-vertical="center" background-image="##img">FOP</fo:basic-link> so cool?
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="197376" xpath="//flow/block/lineArea/inlineparent/@ipd"/>
- <eval expected="88800" xpath="//flow/block/lineArea/inlineparent/@bpd"/>
- <eval expected="color=#ffff00,url=../../resources/images/bgimg300dpi.jpg,repeat=no-repeat,horiz=75648,vertical=21360" xpath="//flow/block/lineArea/inlineparent/@background"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block-container_absolute-position.xml b/test/layoutengine/testcases/block-container_absolute-position.xml
deleted file mode 100644
index 10e34f67c..000000000
--- a/test/layoutengine/testcases/block-container_absolute-position.xml
+++ /dev/null
@@ -1,95 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks absolutely positioned block-containers.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block-container left="10pt" top="10pt" width="3in" height="20pt" absolute-position="absolute" background-color="orange">
- <fo:block background-color="yellow">absolutely positioned width/height</fo:block>
- </fo:block-container>
- <fo:block-container left="10pt" top="40pt" right="10pt" bottom="10pt" absolute-position="absolute" background-color="orange">
- <fo:block background-color="yellow">absolutely positioned right/bottom</fo:block>
- </fo:block-container>
- <fo:block color="lightgrey">
- 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.
- <fo:block-container left="100pt" top="100pt" right="100pt" bottom="100pt" absolute-position="absolute" background-color="orange" color="black">
- <fo:block background-color="yellow">absolutely positioned right/bottom (inside a block)</fo:block>
- </fo:block-container>
- This is some background-text.
- This is some background-text.
- This is some background-text.
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- *** first block-container *** -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@is-viewport-area"/>
- <eval expected="absolute" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@positioning"/>
- <eval expected="216000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipd"/>
- <eval expected="216000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipda"/>
- <eval expected="20000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpd"/>
- <eval expected="20000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpda"/>
- <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@left-position"/>
- <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@top-position"/>
- <!-- -> containing block (skipping dummy block)-->
- <eval expected="216000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@ipd"/>
- <eval expected="216000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@ipda"/>
-
- <!-- *** second block-container *** -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@is-viewport-area"/>
- <eval expected="absolute" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@positioning"/>
- <eval expected="340000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipd"/>
- <eval expected="340000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipda"/>
- <eval expected="310000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpd"/>
- <eval expected="310000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpda"/>
- <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@left-position"/>
- <eval expected="40000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@top-position"/>
- <!-- -> containing block (skipping dummy block)-->
- <eval expected="340000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/block[1]/@ipd"/>
- <eval expected="340000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/block[1]/@ipda"/>
-
- <!-- *** third block-container *** -->
- <true xpath="//flow/block[3]/block[1]/@is-viewport-area"/>
- <eval expected="absolute" xpath="//flow/block[3]/block[1]/@positioning"/>
- <eval expected="160000" xpath="//flow/block[3]/block[1]/@ipd"/>
- <eval expected="160000" xpath="//flow/block[3]/block[1]/@ipda"/>
- <eval expected="160000" xpath="//flow/block[3]/block[1]/@bpd"/>
- <eval expected="160000" xpath="//flow/block[3]/block[1]/@bpda"/>
- <eval expected="100000" xpath="//flow/block[3]/block[1]/@left-position"/>
- <eval expected="100000" xpath="//flow/block[3]/block[1]/@top-position"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block-container_absolute-position_border_padding.xml b/test/layoutengine/testcases/block-container_absolute-position_border_padding.xml
deleted file mode 100644
index cf9e88a06..000000000
--- a/test/layoutengine/testcases/block-container_absolute-position_border_padding.xml
+++ /dev/null
@@ -1,138 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks absolutely positioned block-containers with border/padding/indents.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block-container left="20pt" top="10pt" right="20pt" height="50pt" absolute-position="absolute" background-color="orange" border="solid 5pt" padding="5pt">
- <fo:block background-color="yellow">absolutely positioned right/width plus border &amp; padding</fo:block>
- </fo:block-container>
- <fo:block-container left="20pt" top="90pt" right="20pt" height="50pt" absolute-position="absolute" background-color="orange" margin="0pt" border-right="solid 45pt" border="solid 5pt" padding="5pt">
- <fo:block background-color="yellow">absolutely positioned right/width plus border &amp; padding, margin=0pt</fo:block>
- </fo:block-container>
- <fo:block-container left="20pt" top="170pt" right="20pt" height="50pt" absolute-position="absolute" background-color="orange" margin="0pt" border-right="solid 45pt" border="solid 5pt" padding="5pt">
- <fo:block background-color="yellow" start-indent="0pt" end-indent="0pt">absolutely positioned right/width plus border &amp; padding, margin=0pt, start|end-indent=0pt</fo:block>
- </fo:block-container>
- <fo:block-container left="20pt" top="250pt" right="20pt" height="50pt" absolute-position="absolute" background-color="orange" margin="5pt" border-right="solid 45pt" border="solid 5pt" padding="5pt">
- <fo:block background-color="yellow" start-indent="0pt" end-indent="0pt">absolutely positioned right/width plus border &amp; padding, margin=5pt, start|end-indent=0pt</fo:block>
- </fo:block-container>
- <fo:block color="lightgrey">
- 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.
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- *** first block-container *** -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@is-viewport-area"/>
- <eval expected="absolute" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@positioning"/>
- <eval expected="320000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipd"/>
- <eval expected="340000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipda"/>
- <eval expected="50000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpd"/>
- <eval expected="70000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpda"/>
- <eval expected="20000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@left-position"/>
- <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@top-position"/>
- <true xpath="not(/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@start-indent)"/>
- <true xpath="not(/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@end-indent)"/>
- <!-- -> reference area -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@is-reference-area"/>
- <!-- -> containing block -->
- <eval expected="320000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@ipd"/>
- <eval expected="320000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@ipda"/>
- <true xpath="not(/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@start-indent)"/>
- <true xpath="not(/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@end-indent)"/>
-
- <!-- *** second block-container *** -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@is-viewport-area"/>
- <eval expected="absolute" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@positioning"/>
- <eval expected="260000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipd"/>
- <eval expected="320000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipda"/>
- <eval expected="50000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpd"/>
- <eval expected="70000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpda"/>
- <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@start-indent"/>
- <eval expected="50000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@end-indent"/>
- <eval expected="20000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@left-position"/>
- <eval expected="90000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@top-position"/>
- <!-- -> reference area -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/@is-reference-area"/>
- <!-- -> containing block -->
- <eval expected="200000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/block[1]/@ipd"/>
- <eval expected="200000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/block[1]/@ipda"/>
- <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/block[1]/@start-indent"/>
- <eval expected="50000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/block[1]/@end-indent"/>
-
- <!-- *** third block-container *** -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@is-viewport-area"/>
- <eval expected="absolute" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@positioning"/>
- <eval expected="260000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@ipd"/>
- <eval expected="320000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@ipda"/>
- <eval expected="50000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@bpd"/>
- <eval expected="70000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@bpda"/>
- <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@start-indent"/>
- <eval expected="50000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@end-indent"/>
- <eval expected="20000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@left-position"/>
- <eval expected="170000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@top-position"/>
- <!-- -> reference area -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/block[1]/@is-reference-area"/>
- <!-- -> containing block -->
- <eval expected="260000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/block[1]/block[1]/@ipd"/>
- <eval expected="260000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/block[1]/block[1]/@ipda"/>
- <true xpath="not(/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/block[1]/block[1]/@start-indent)"/>
- <true xpath="not(/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/block[1]/block[1]/@end-indent)"/>
-
- <!-- *** third block-container *** -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@is-viewport-area"/>
- <eval expected="absolute" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@positioning"/>
- <eval expected="250000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@ipd"/>
- <eval expected="310000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@ipda"/>
- <eval expected="50000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bpd"/>
- <eval expected="70000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bpda"/>
- <eval expected="15000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@start-indent"/>
- <eval expected="55000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@end-indent"/>
- <eval expected="20000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@left-position"/>
- <eval expected="250000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@top-position"/>
- <!-- -> reference area -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/@is-reference-area"/>
- <!-- -> containing block -->
- <eval expected="250000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/block[1]/@ipd"/>
- <eval expected="250000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/block[1]/@ipda"/>
- <true xpath="not(/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/block[1]/@start-indent)"/>
- <true xpath="not(/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/block[1]/@end-indent)"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block-container_absolute-position_display-align.xml b/test/layoutengine/testcases/block-container_absolute-position_display-align.xml
deleted file mode 100644
index 1d8c2300d..000000000
--- a/test/layoutengine/testcases/block-container_absolute-position_display-align.xml
+++ /dev/null
@@ -1,145 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks display-align on absolutely positioned block-containers.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block-container left="10pt" top="10pt" width="150pt" height="100pt" absolute-position="absolute" background-color="orange" display-align="auto" reference-orientation="0">
- <fo:block background-color="yellow">display-align="auto"</fo:block>
- <fo:block background-color="yellow">reference-orientation="0"</fo:block>
- </fo:block-container>
- <fo:block-container left="190pt" top="10pt" width="150pt" height="100pt" absolute-position="absolute" background-color="orange" display-align="before" reference-orientation="90">
- <fo:block background-color="yellow">display-align="before"</fo:block>
- <fo:block background-color="yellow">reference-orientation="90"</fo:block>
- </fo:block-container>
- <fo:block-container left="10pt" top="190pt" width="150pt" height="100pt" absolute-position="absolute" background-color="orange" display-align="center" reference-orientation="180">
- <fo:block background-color="yellow">display-align="center"</fo:block>
- <fo:block background-color="yellow">reference-orientation="180"</fo:block>
- </fo:block-container>
- <fo:block-container left="190pt" top="190pt" width="150pt" height="100pt" absolute-position="absolute" background-color="orange" display-align="after" reference-orientation="270">
- <fo:block background-color="yellow">display-align="after"</fo:block>
- <fo:block background-color="yellow">reference-orientation="270"</fo:block>
- </fo:block-container>
- <fo:block-container left="30pt" top="150pt" width="150pt" absolute-position="absolute" background-color="orange" display-align="center">
- <fo:block background-color="yellow">display-align="center"</fo:block>
- <fo:block background-color="yellow">no height</fo:block>
- </fo:block-container>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- first block-container -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@is-viewport-area"/>
- <eval expected="[1.0 0.0 0.0 1.0 10000.0 10000.0]" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ctm"/>
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipd"/>
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipda"/>
- <eval expected="100000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpd"/>
- <eval expected="100000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpda"/>
- <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@left-position"/>
- <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@top-position"/>
- <!-- -> reference area -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@is-reference-area"/>
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@ipd"/>
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@ipda"/>
- <eval expected="28800" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@bpd"/>
- <eval expected="28800" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@bpda"/>
-
- <!-- second block-container -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@is-viewport-area"/>
- <eval expected="[0.0 -1.0 1.0 0.0 190000.0 160000.0]" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ctm"/>
- <eval expected="100000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipd"/>
- <eval expected="100000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipda"/>
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpd"/>
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpda"/>
- <eval expected="190000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@left-position"/>
- <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@top-position"/>
- <!-- -> reference area -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/@is-reference-area"/>
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/@ipd"/>
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/@ipda"/>
- <eval expected="28800" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/@bpd"/>
- <eval expected="28800" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/@bpda"/>
-
- <!-- third block-container -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@is-viewport-area"/>
- <eval expected="[-1.0 -0.0 0.0 -1.0 160000.0 290000.0]" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@ctm"/>
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@ipd"/>
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@ipda"/>
- <eval expected="100000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@bpd"/>
- <eval expected="100000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@bpda"/>
- <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@left-position"/>
- <eval expected="190000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@top-position"/>
- <!-- -> reference area -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/block[1]/@is-reference-area"/>
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/block[1]/@ipd"/>
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/block[1]/@ipda"/>
- <eval expected="64400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/block[1]/@bpd"/>
- <eval expected="64400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/block[1]/@bpda"/>
- <eval expected="35600" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/block[1]/block[1]/@bpda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/block[1]/block[2]/@bpda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/block[1]/block[3]/@bpda"/>
-
- <!-- fourth block-container -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@is-viewport-area"/>
- <eval expected="[0.0 1.0 -1.0 0.0 290000.0 190000.0]" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@ctm"/>
- <eval expected="100000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@ipd"/>
- <eval expected="100000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@ipda"/>
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bpd"/>
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bpda"/>
- <eval expected="190000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@left-position"/>
- <eval expected="190000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@top-position"/>
- <!-- -> reference area -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/@is-reference-area"/>
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/@ipd"/>
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/@ipda"/>
- <eval expected="100000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/@bpd"/>
- <eval expected="100000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/@bpda"/>
- <eval expected="71200" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/block[1]/@bpda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/block[2]/@bpda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/block[3]/@bpda"/>
-
- <!-- fifth block-container -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@is-viewport-area"/>
- <eval expected="[1.0 0.0 0.0 1.0 30000.0 150000.0]" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@ctm"/>
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@ipd"/>
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@ipda"/>
- <eval expected="28800" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@bpd"/>
- <eval expected="28800" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@bpda"/>
- <eval expected="30000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@left-position"/>
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@top-position"/>
- <!-- -> reference area -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/block[1]/@is-reference-area"/>
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/block[1]/@ipd"/>
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/block[1]/@ipda"/>
- <eval expected="28800" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/block[1]/@bpd"/>
- <eval expected="28800" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/block[1]/@bpda"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block-container_absolute-position_fixed.xml b/test/layoutengine/testcases/block-container_absolute-position_fixed.xml
deleted file mode 100644
index 9c5850ccd..000000000
--- a/test/layoutengine/testcases/block-container_absolute-position_fixed.xml
+++ /dev/null
@@ -1,80 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks block-containers with absolute-position="fixed".
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="20pt">
- <fo:region-body margin="0pt" background-color="lightgreen"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block-container left="30pt" top="30pt" width="200pt" height="100pt" absolute-position="fixed" background-color="orange">
- <fo:block background-color="yellow">absolute-position="fixed"</fo:block>
- </fo:block-container>
- <fo:block-container left="30pt" top="30pt" width="200pt" height="100pt" absolute-position="absolute" background-color="orange">
- <fo:block background-color="yellow">absolute-position="absolute"</fo:block>
- </fo:block-container>
- <fo:block-container left="1in" top="3in" width="2in" height="1in" absolute-position="absolute" background-color="lightblue">
- <fo:block background-color="lightgray" margin="5pt" text-align="end" color="blue">abs-bc blue</fo:block>
- <fo:block-container left="20pt + 1in" top="20pt + 3in" width="1in" height="40pt" absolute-position="fixed" background-color="blue">
- <fo:block background-color="yellow" margin="5pt">fixed-bc in abs-bc</fo:block>
- </fo:block-container>
- <fo:block background-color="lightgray" margin="5pt" text-align="end" color="red">abs-bc 2 red</fo:block>
- </fo:block-container>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!--
- Can't check a lot here because most of the difference between "absolute" and "fixed" is
- in the renderer, so this needs to be checked mostly visually. -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@is-viewport-area"/>
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@is-viewport-area"/>
- <eval expected="fixed" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@positioning"/>
- <eval expected="absolute" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@positioning"/>
- <eval expected="[1.0 0.0 0.0 1.0 30000.0 30000.0]" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ctm"/>
- <eval expected="[1.0 0.0 0.0 1.0 30000.0 30000.0]" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ctm"/>
- <eval expected="30000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@left-position"/>
- <eval expected="30000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@left-position"/>
- <eval expected="30000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@top-position"/>
- <eval expected="30000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@top-position"/>
- <eval expected="100000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpda"/>
- <eval expected="100000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpda"/>
- <eval expected="100000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpd"/>
- <eval expected="100000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpd"/>
- <eval expected="200000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipda"/>
- <eval expected="200000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipda"/>
- <eval expected="200000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipd"/>
- <eval expected="200000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipd"/>
-
- <!--
- Note: only the first two block-containers are tested. Though they have the same values
- (except for @positioning) the must not be at the same position in a rendered PDF document.
-
- Don't throw out the block-containers below the first two because they are a good test to
- check whether the break-out mechanism works for "fixed" block-containers. -->
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block-container_absolute-position_no-height.xml b/test/layoutengine/testcases/block-container_absolute-position_no-height.xml
deleted file mode 100644
index 931088f54..000000000
--- a/test/layoutengine/testcases/block-container_absolute-position_no-height.xml
+++ /dev/null
@@ -1,62 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks absolutely positioned block-containers where the content-bpd isn't specified.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block-container left="10pt" top="10pt" width="3in" absolute-position="absolute" background-color="orange">
- <fo:block background-color="yellow">absolutely positioned width, no height specified</fo:block>
- </fo:block-container>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- *** first block-container *** -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@is-viewport-area"/>
- <eval expected="absolute" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@positioning"/>
- <eval expected="216000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipd"/>
- <eval expected="216000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipda"/>
- <eval expected="28800" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpd"/>
- <eval expected="28800" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpda"/>
- <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@left-position"/>
- <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@top-position"/>
- <!-- -> reference-area -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@is-reference-area"/>
- <eval expected="216000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@ipd"/>
- <eval expected="216000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@ipda"/>
- <eval expected="28800" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@bpd"/>
- <eval expected="28800" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@bpda"/>
- <!-- -> nested block -->
- <eval expected="216000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@ipd"/>
- <eval expected="216000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@ipda"/>
- <eval expected="28800" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@bpd"/>
- <eval expected="28800" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@bpda"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block-container_absolute-position_overflow.xml b/test/layoutengine/testcases/block-container_absolute-position_overflow.xml
deleted file mode 100644
index d76bfc4b5..000000000
--- a/test/layoutengine/testcases/block-container_absolute-position_overflow.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks clipping on block-containers.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body" orphans="0" widows="0">
- <fo:block-container overflow="auto" left="30pt" top="30pt" width="100pt" height="20pt" absolute-position="absolute" border="solid 5pt" padding="5pt" background-color="orange">
- <fo:block margin="0pt" background-color="yellow">auto overflow overflow overflow overflow overflow</fo:block>
- </fo:block-container>
- <fo:block-container overflow="visible" left="30pt" top="90pt" width="100pt" height="20pt" absolute-position="absolute" border="solid 5pt" padding="5pt" background-color="orange">
- <fo:block margin="0pt" background-color="yellow">visible overflow overflow overflow overflow overflow</fo:block>
- </fo:block-container>
- <fo:block-container overflow="scroll" left="30pt" top="150pt" width="100pt" height="20pt" absolute-position="absolute" border="solid 5pt" padding="5pt" background-color="orange">
- <fo:block margin="0pt" background-color="yellow">scroll overflow overflow overflow overflow overflow</fo:block>
- </fo:block-container>
- <fo:block-container overflow="hidden" left="30pt" top="210pt" width="100pt" height="20pt" absolute-position="absolute" border="solid 5pt" padding="5pt" background-color="orange">
- <fo:block margin="0pt" background-color="yellow">hidden overflow overflow overflow overflow overflow</fo:block>
- </fo:block-container>
- <!-- Note: error-if-overflow will be tested separately. -->
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <true xpath="not(boolean(/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@clipped))"/>
- <true xpath="not(boolean(/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@clipped))"/>
- <true xpath="not(boolean(/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@clipped))"/>
- <eval expected="true" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@clipped"/>
- <!-- Note: That's about all that can be tested here. Actual clipping has to be tested visually for each renderer. -->
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block-container_absolute-position_reference-orientation.xml b/test/layoutengine/testcases/block-container_absolute-position_reference-orientation.xml
deleted file mode 100644
index cbb478f85..000000000
--- a/test/layoutengine/testcases/block-container_absolute-position_reference-orientation.xml
+++ /dev/null
@@ -1,128 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks absolutely positioned block-containers with reference-orientation.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block-container left="10pt" top="10pt" width="150pt" height="100pt" absolute-position="absolute" background-color="orange" margin="0pt" border="solid 5pt" border-top-color="red" reference-orientation="0">
- <fo:block background-color="yellow" start-indent="0pt" end-indent="0pt">ro = 0</fo:block>
- </fo:block-container>
- <fo:block-container left="190pt" top="10pt" width="150pt" height="100pt" absolute-position="absolute" background-color="orange" margin="0pt" border="solid 5pt" border-top-color="red" reference-orientation="90">
- <fo:block background-color="yellow" start-indent="0pt" end-indent="0pt">ro = 90</fo:block>
- </fo:block-container>
- <fo:block-container left="10pt" top="190pt" width="150pt" height="100pt" absolute-position="absolute" background-color="orange" margin="0pt" border="solid 5pt" border-top-color="red" reference-orientation="180">
- <fo:block background-color="yellow" start-indent="0pt" end-indent="0pt">ro = 180</fo:block>
- </fo:block-container>
- <fo:block-container left="190pt" top="190pt" width="150pt" height="100pt" absolute-position="absolute" background-color="orange" margin="0pt" border="solid 5pt" border-top-color="red" reference-orientation="270">
- <fo:block background-color="yellow" start-indent="0pt" end-indent="0pt">ro = 270</fo:block>
- </fo:block-container>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- *** first block-container *** -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@is-viewport-area"/>
- <eval expected="absolute" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@positioning"/>
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipd"/>
- <eval expected="160000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipda"/>
- <eval expected="100000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpd"/>
- <eval expected="110000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpda"/>
- <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@left-position"/>
- <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@top-position"/>
- <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@start-indent"/>
- <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@end-indent"/>
- <!-- -> reference area -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@is-reference-area"/>
- <!-- -> containing block -->
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@ipd"/>
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@ipda"/>
- <true xpath="not(/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@start-indent)"/>
- <true xpath="not(/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@end-indent)"/>
-
- <!-- *** second block-container *** -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@is-viewport-area"/>
- <eval expected="absolute" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@positioning"/>
- <eval expected="100000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipd"/>
- <eval expected="110000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipda"/>
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpd"/>
- <eval expected="160000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpda"/>
- <eval expected="190000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@left-position"/>
- <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@top-position"/>
- <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@start-indent"/>
- <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@end-indent"/>
- <!-- -> reference area -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/@is-reference-area"/>
- <!-- -> containing block -->
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/block[1]/@ipd"/>
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/block[1]/@ipda"/>
- <true xpath="not(/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/block[1]/@start-indent)"/>
- <true xpath="not(/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/block[1]/@end-indent)"/>
-
- <!-- *** third block-container *** -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@is-viewport-area"/>
- <eval expected="absolute" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@positioning"/>
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@ipd"/>
- <eval expected="160000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@ipda"/>
- <eval expected="100000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@bpd"/>
- <eval expected="110000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@bpda"/>
- <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@left-position"/>
- <eval expected="190000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@top-position"/>
- <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@start-indent"/>
- <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@end-indent"/>
- <!-- -> reference area -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/block[1]/@is-reference-area"/>
- <!-- -> containing block -->
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/block[1]/block[1]/@ipd"/>
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/block[1]/block[1]/@ipda"/>
- <true xpath="not(/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/block[1]/block[1]/@start-indent)"/>
- <true xpath="not(/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/block[1]/block[1]/@end-indent)"/>
-
- <!-- *** fourth block-container *** -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@is-viewport-area"/>
- <eval expected="absolute" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@positioning"/>
- <eval expected="100000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@ipd"/>
- <eval expected="110000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@ipda"/>
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bpd"/>
- <eval expected="160000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bpda"/>
- <eval expected="190000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@left-position"/>
- <eval expected="190000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@top-position"/>
- <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@start-indent"/>
- <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@end-indent"/>
- <!-- -> reference area -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/@is-reference-area"/>
- <!-- -> containing block -->
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/block[1]/@ipd"/>
- <eval expected="150000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/block[1]/@ipda"/>
- <true xpath="not(/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/block[1]/@start-indent)"/>
- <true xpath="not(/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/block[1]/@end-indent)"/>
-
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block-container_background-image_background-position-relative.xml b/test/layoutengine/testcases/block-container_background-image_background-position-relative.xml
deleted file mode 100644
index ea09a97d6..000000000
--- a/test/layoutengine/testcases/block-container_background-image_background-position-relative.xml
+++ /dev/null
@@ -1,117 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks relative positioned background images on a fo:block-container.
- </p>
- </info>
- <variables>
- <img>../../resources/images/box1.png</img>
- </variables>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="0pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block-container margin="0pt" padding="5pt 10pt 20pt 15pt" left="0in" top="0in" width="90pt" height="70pt" absolute-position="absolute" background-color="blue"
- background-image="##img"
- background-position-horizontal="right"
- background-repeat="no-repeat">
- <fo:block>image in top right corner</fo:block>
- </fo:block-container>
- <fo:block-container margin="0pt" padding="5pt 10pt 20pt 15pt" left="120pt" top="0in" width="90pt" height="70pt" absolute-position="absolute" background-color="green"
- background-image="##img"
- background-position-horizontal="right"
- background-position-vertical="center"
- background-repeat="no-repeat">
- <fo:block>image in center right</fo:block>
- </fo:block-container>
- <fo:block-container margin="0pt" padding="5pt 10pt 20pt 15pt" left="240pt" top="0in" width="90pt" height="70pt" absolute-position="absolute" background-color="yellow"
- background-image="##img"
- background-position-horizontal="right"
- background-position-vertical="bottom"
- background-repeat="no-repeat">
- <fo:block>image in bottom right corner</fo:block>
- </fo:block-container>
- <fo:block-container margin="0pt" padding="5pt 10pt 20pt 15pt" left="0in" top="100pt" width="90pt" height="70pt" absolute-position="absolute" background-color="yellow"
- background-image="##img"
- background-position-horizontal="center"
- background-repeat="no-repeat">
- <fo:block>image in top center</fo:block>
- </fo:block-container>
- <fo:block-container margin="0pt" padding="5pt 10pt 20pt 15pt" left="120pt" top="100pt" width="90pt" height="70pt" absolute-position="absolute" background-color="blue"
- background-image="##img"
- background-position-horizontal="center"
- background-position-vertical="center"
- background-repeat="no-repeat">
- <fo:block>image in center</fo:block>
- </fo:block-container>
- <fo:block-container margin="0pt" padding="5pt 10pt 20pt 15pt" left="240pt" top="100pt" width="90pt" height="70pt" absolute-position="absolute" background-color="green"
- background-image="##img"
- background-position-horizontal="center"
- background-position-vertical="bottom"
- background-repeat="no-repeat">
- <fo:block>image in bottom center</fo:block>
- </fo:block-container>
- <fo:block-container margin="0pt" padding="5pt 10pt 20pt 15pt" left="0in" top="200pt" width="90pt" height="70pt" absolute-position="absolute" background-color="green"
- background-image="##img"
- background-repeat="no-repeat">
- <fo:block>image in top left</fo:block>
- </fo:block-container>
- <fo:block-container margin="0pt" padding="5pt 10pt 20pt 15pt" left="120pt" top="200pt" width="90pt" height="70pt" absolute-position="absolute" background-color="yellow"
- background-image="##img"
- background-position-vertical="center"
- background-repeat="no-repeat">
- <fo:block>image in center left</fo:block>
- </fo:block-container>
- <fo:block-container margin="0pt" padding="5pt 10pt 20pt 15pt" left="240pt" top="200pt" width="90pt" height="70pt" absolute-position="absolute" background-color="blue"
- background-image="##img"
- background-position-vertical="bottom"
- background-repeat="no-repeat">
- <fo:block>image in bottom left</fo:block>
- </fo:block-container>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- first container in row 1 -->
- <eval expected="color=#0000ff,url=../../resources/images/box1.png,repeat=no-repeat,horiz=74991,vertical=0" xpath="//flow/block[1]/@background"/>
- <!-- second container in row 1 -->
- <eval expected="color=#008000,url=../../resources/images/box1.png,repeat=no-repeat,horiz=74991,vertical=27495" xpath="//flow/block[2]/@background"/>
- <!-- third container in row 1 -->
- <eval expected="color=#ffff00,url=../../resources/images/box1.png,repeat=no-repeat,horiz=74991,vertical=54991" xpath="//flow/block[3]/@background"/>
- <!-- first container in row 2 -->
- <eval expected="color=#ffff00,url=../../resources/images/box1.png,repeat=no-repeat,horiz=37495,vertical=0" xpath="//flow/block[4]/@background"/>
- <!-- second container in row 2 -->
- <eval expected="color=#0000ff,url=../../resources/images/box1.png,repeat=no-repeat,horiz=37495,vertical=27495" xpath="//flow/block[5]/@background"/>
- <!-- third container in row 2 -->
- <eval expected="color=#008000,url=../../resources/images/box1.png,repeat=no-repeat,horiz=37495,vertical=54991" xpath="//flow/block[6]/@background"/>
- <!-- first container in row 3 -->
- <eval expected="color=#008000,url=../../resources/images/box1.png,repeat=no-repeat,horiz=0,vertical=0" xpath="//flow/block[7]/@background"/>
- <!-- second container in row 3 -->
- <eval expected="color=#ffff00,url=../../resources/images/box1.png,repeat=no-repeat,horiz=0,vertical=27495" xpath="//flow/block[8]/@background"/>
- <!-- third container in row 3 -->
- <eval expected="color=#0000ff,url=../../resources/images/box1.png,repeat=no-repeat,horiz=0,vertical=54991" xpath="//flow/block[9]/@background"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block-container_background-image_background-repeat.xml b/test/layoutengine/testcases/block-container_background-image_background-repeat.xml
deleted file mode 100644
index 2ed43b0ce..000000000
--- a/test/layoutengine/testcases/block-container_background-image_background-repeat.xml
+++ /dev/null
@@ -1,66 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks background images in block-containers.
- </p>
- </info>
- <variables>
- <img>../../resources/images/bgimg300dpi.jpg</img>
- </variables>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block-container left="10pt" top="10pt" width="100pt" height="50pt" border="solid 5pt" padding="5pt" absolute-position="absolute" background-color="blue" background-repeat="repeat-x" background-image="##img">
- <fo:block margin="0pt">repeat-x</fo:block>
- </fo:block-container>
- <fo:block-container left="150pt" top="10pt" width="100pt" height="50pt" border="solid 5pt" padding="5pt" absolute-position="absolute" background-color="blue" background-repeat="repeat-y" background-image="##img">
- <fo:block margin="0pt">repeat-y</fo:block>
- </fo:block-container>
- <fo:block-container left="10pt" top="110pt" width="100pt" height="50pt" border="solid 5pt" padding="5pt" absolute-position="absolute" background-color="blue" background-repeat="repeat" background-image="##img">
- <fo:block margin="0pt">repeat</fo:block>
- </fo:block-container>
- <fo:block-container left="150pt" top="110pt" width="100pt" height="50pt" border="solid 5pt" padding="5pt" absolute-position="absolute" background-color="blue" background-repeat="no-repeat" background-image="##img">
- <fo:block margin="0pt">no-repeat</fo:block>
- </fo:block-container>
- <fo:block-container left="10pt" top="210pt" width="100pt" height="50pt" border="solid 5pt" padding="5pt" absolute-position="absolute" background-position-vertical="75%" background-color="blue" background-repeat="repeat-x" background-image="##img">
- <fo:block margin="0pt">repeat-x and vertical: 75%</fo:block>
- </fo:block-container>
- <fo:block-container left="150pt" top="210pt" width="100pt" height="50pt" border="solid 5pt" padding="5pt" absolute-position="absolute" background-position-horizontal="75%" background-color="blue" background-repeat="repeat-y" background-image="##img">
- <fo:block margin="0pt">repeat-y and horizontal: 75%</fo:block>
- </fo:block-container>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="color=#0000ff,url=../../resources/images/bgimg300dpi.jpg,repeat=repeat-x,horiz=0,vertical=0" xpath="//flow/block[1]/@background"/>
- <eval expected="color=#0000ff,url=../../resources/images/bgimg300dpi.jpg,repeat=repeat-y,horiz=0,vertical=0" xpath="//flow/block[2]/@background"/>
- <eval expected="color=#0000ff,url=../../resources/images/bgimg300dpi.jpg,repeat=repeat,horiz=0,vertical=0" xpath="//flow/block[3]/@background"/>
- <eval expected="color=#0000ff,url=../../resources/images/bgimg300dpi.jpg,repeat=no-repeat,horiz=0,vertical=0" xpath="//flow/block[4]/@background"/>
- <eval expected="color=#0000ff,url=../../resources/images/bgimg300dpi.jpg,repeat=repeat-x,horiz=0,vertical=10440" xpath="//flow/block[5]/@background"/>
- <eval expected="color=#0000ff,url=../../resources/images/bgimg300dpi.jpg,repeat=repeat-y,horiz=47940,vertical=0" xpath="//flow/block[6]/@background"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block-container_borders.xml b/test/layoutengine/testcases/block-container_borders.xml
deleted file mode 100644
index d49de6c03..000000000
--- a/test/layoutengine/testcases/block-container_borders.xml
+++ /dev/null
@@ -1,145 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks borders on block-containers.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block-container border-left-style="solid" border-left-width="5pt">
- <fo:block text-align-last="justify" background-color="yellow">left ***</fo:block>
- </fo:block-container>
- <fo:block-container border-start-style="solid" border-start-width="5pt">
- <fo:block text-align-last="justify" background-color="yellow">start ***</fo:block>
- </fo:block-container>
- <fo:block-container border-right-style="solid" border-right-width="5pt">
- <fo:block text-align-last="justify" background-color="yellow">right ***</fo:block>
- </fo:block-container>
- <fo:block-container border-end-style="solid" border-end-width="5pt">
- <fo:block text-align-last="justify" background-color="yellow">end ***</fo:block>
- </fo:block-container>
- <fo:block-container border-top-style="solid" border-top-width="5pt">
- <fo:block text-align-last="justify" background-color="yellow">top ***</fo:block>
- </fo:block-container>
- <fo:block-container border-before-style="solid" border-before-width="5pt">
- <fo:block text-align-last="justify" background-color="yellow">before ***</fo:block>
- </fo:block-container>
- <fo:block-container border-bottom-style="solid" border-bottom-width="5pt">
- <fo:block text-align-last="justify" background-color="yellow">bottom ***</fo:block>
- </fo:block-container>
- <fo:block-container border-after-style="solid" border-after-width="5pt">
- <fo:block text-align-last="justify" background-color="yellow">after ***</fo:block>
- </fo:block-container>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- *** left *** -->
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipd"/>
- <eval expected="365000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpd"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpda"/>
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@is-viewport-area"/>
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@border-start"/>
- <eval expected="5000 0 0 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bap"/>
- <!-- note: BlockContainerLM nests two block before adding the actual block -->
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@bpd"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@bpda"/>
-
- <!-- *** start *** -->
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipd"/>
- <eval expected="365000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpd"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpda"/>
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@is-viewport-area"/>
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@border-start"/>
- <eval expected="5000 0 0 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bap"/>
-
- <!-- *** right *** -->
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@ipd"/>
- <eval expected="365000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@bpd"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@bpda"/>
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@is-viewport-area"/>
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@border-end"/>
- <eval expected="0 5000 0 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@bap"/>
-
- <!-- *** end *** -->
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@ipd"/>
- <eval expected="365000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bpd"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bpda"/>
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@is-viewport-area"/>
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@border-end"/>
- <eval expected="0 5000 0 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bap"/>
-
- <!-- *** top *** -->
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@bpd"/>
- <eval expected="19400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@bpda"/>
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@is-viewport-area"/>
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@border-before"/>
- <eval expected="0 0 5000 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@bap"/>
- <!-- note: BlockContainerLM nests two block before adding the actual block -->
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/block[1]/block[1]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/block[1]/block[1]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/block[1]/block[1]/@bpd"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/block[1]/block[1]/@bpda"/>
-
- <!-- *** before *** -->
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@bpd"/>
- <eval expected="19400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@bpda"/>
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@is-viewport-area"/>
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@border-before"/>
- <eval expected="0 0 5000 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@bap"/>
-
- <!-- *** bottom *** -->
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@bpd"/>
- <eval expected="19400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@bpda"/>
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@is-viewport-area"/>
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@border-after"/>
- <eval expected="0 0 0 5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@bap"/>
-
- <!-- *** after *** -->
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@bpd"/>
- <eval expected="19400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@bpda"/>
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@is-viewport-area"/>
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@border-after"/>
- <eval expected="0 0 0 5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@bap"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block-container_display-align_space-before.xml b/test/layoutengine/testcases/block-container_display-align_space-before.xml
deleted file mode 100644
index b483edbd3..000000000
--- a/test/layoutengine/testcases/block-container_display-align_space-before.xml
+++ /dev/null
@@ -1,128 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks display-align on in-flow block-containers. It also tests space-before|after in conjunction with reference-orientation.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block-container width="120pt" height="80pt" reference-orientation="0" display-align="auto" background-color="yellow">
- <fo:block background-color="orange">display-align = "auto"</fo:block>
- <fo:block background-color="orange">ro = 0</fo:block>
- </fo:block-container>
- <fo:block-container width="80pt" height="120pt" reference-orientation="90" display-align="before" background-color="yellow" space-before="10pt" space-after="10pt">
- <fo:block background-color="orange">display-align = "before"</fo:block>
- <fo:block background-color="orange">ro = 90</fo:block>
- </fo:block-container>
- <fo:block-container width="120pt" height="80pt" reference-orientation="180" display-align="center" background-color="yellow">
- <fo:block background-color="orange">display-align = "center"</fo:block>
- <fo:block background-color="orange">ro = 180</fo:block>
- </fo:block-container>
- <fo:block-container width="80pt" height="120pt" reference-orientation="270" display-align="after" background-color="yellow" space-before="10pt">
- <fo:block background-color="orange">display-align = "after"</fo:block>
- <fo:block background-color="orange">ro = 270</fo:block>
- </fo:block-container>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- first block-container -->
- <true xpath="//flow/block[1]/@is-viewport-area"/>
- <eval expected="[1.0 0.0 0.0 1.0 0.0 0.0]" xpath="//flow/block[1]/@ctm"/>
- <eval expected="120000" xpath="//flow/block[1]/@ipd"/>
- <eval expected="120000" xpath="//flow/block[1]/@ipda"/>
- <eval expected="80000" xpath="//flow/block[1]/@bpd"/>
- <eval expected="80000" xpath="//flow/block[1]/@bpda"/>
- <!-- -> reference area -->
- <true xpath="//flow/block[1]/block[1]/@is-reference-area"/>
- <eval expected="120000" xpath="//flow/block[1]/block[1]/@ipd"/>
- <eval expected="120000" xpath="//flow/block[1]/block[1]/@ipda"/>
- <eval expected="28800" xpath="//flow/block[1]/block[1]/@bpd"/>
- <eval expected="28800" xpath="//flow/block[1]/block[1]/@bpda"/>
-
- <!-- space-before of second block-container -->
- <eval expected="10000" xpath="//flow/block[2]/@space-before"/>
-
- <!-- second block-container -->
- <true xpath="//flow/block[2]/@is-viewport-area"/>
- <eval expected="[0.0 -1.0 1.0 0.0 0.0 80000.0]" xpath="//flow/block[2]/@ctm"/>
- <eval expected="120000" xpath="//flow/block[2]/@ipd"/>
- <eval expected="120000" xpath="//flow/block[2]/@ipda"/>
- <eval expected="80000" xpath="//flow/block[2]/@bpd"/>
- <eval expected="100000" xpath="//flow/block[2]/@bpda"/>
- <!-- -> reference area -->
- <true xpath="//flow/block[2]/block[1]/@is-reference-area"/>
- <eval expected="80000" xpath="//flow/block[2]/block[1]/@ipd"/>
- <eval expected="80000" xpath="//flow/block[2]/block[1]/@ipda"/>
- <eval expected="43200" xpath="//flow/block[2]/block[1]/@bpd"/>
- <eval expected="43200" xpath="//flow/block[2]/block[1]/@bpda"/>
-
- <!-- space-after of second block-container -->
- <eval expected="10000" xpath="//flow/block[2]/@space-after"/>
-
- <!-- third block-container -->
- <true xpath="//flow/block[3]/@is-viewport-area"/>
- <eval expected="[-1.0 -0.0 0.0 -1.0 120000.0 80000.0]" xpath="//flow/block[3]/@ctm"/>
- <eval expected="120000" xpath="//flow/block[3]/@ipd"/>
- <eval expected="120000" xpath="//flow/block[3]/@ipda"/>
- <eval expected="80000" xpath="//flow/block[3]/@bpd"/>
- <eval expected="80000" xpath="//flow/block[3]/@bpda"/>
- <!-- -> reference area -->
- <true xpath="//flow/block[3]/block[1]/@is-reference-area"/>
- <eval expected="120000" xpath="//flow/block[3]/block[1]/@ipd"/>
- <eval expected="120000" xpath="//flow/block[3]/block[1]/@ipda"/>
- <eval expected="61600" xpath="//flow/block[3]/block[1]/@bpd"/>
- <eval expected="61600" xpath="//flow/block[3]/block[1]/@bpda"/>
- <!-- contents (spacer first, then three lines) -->
- <eval expected="18400" xpath="//flow/block[3]/block[1]/block[1]/@bpda"/>
- <eval expected="28800" xpath="//flow/block[3]/block[1]/block[2]/@bpda"/>
- <eval expected="14400" xpath="//flow/block[3]/block[1]/block[3]/@bpda"/>
-
- <!-- space-before of fourth block-container -->
- <eval expected="10000" xpath="//flow/block[4]/@space-before"/>
-
- <!-- fourth block-container -->
- <true xpath="//flow/block[4]/@is-viewport-area"/>
- <eval expected="[0.0 1.0 -1.0 0.0 120000.0 0.0]" xpath="//flow/block[4]/@ctm"/>
- <eval expected="120000" xpath="//flow/block[4]/@ipd"/>
- <eval expected="120000" xpath="//flow/block[4]/@ipda"/>
- <eval expected="80000" xpath="//flow/block[4]/@bpd"/>
- <eval expected="90000" xpath="//flow/block[4]/@bpda"/>
- <!-- -> reference area -->
- <true xpath="//flow/block[4]/block[1]/@is-reference-area"/>
- <eval expected="80000" xpath="//flow/block[4]/block[1]/@ipd"/>
- <eval expected="80000" xpath="//flow/block[4]/block[1]/@ipda"/>
- <eval expected="120000" xpath="//flow/block[4]/block[1]/@bpd"/>
- <eval expected="120000" xpath="//flow/block[4]/block[1]/@bpda"/>
- <!-- contents (spacer first, then three lines) -->
- <eval expected="76800" xpath="//flow/block[4]/block[1]/block[1]/@bpda"/>
- <eval expected="28800" xpath="//flow/block[4]/block[1]/block[2]/@bpda"/>
- <eval expected="14400" xpath="//flow/block[4]/block[1]/block[3]/@bpda"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block-container_padding_percentages.xml b/test/layoutengine/testcases/block-container_padding_percentages.xml
deleted file mode 100644
index ca76d9afe..000000000
--- a/test/layoutengine/testcases/block-container_padding_percentages.xml
+++ /dev/null
@@ -1,53 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks relative padding on block containers.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block-container width="2in" height="1in" background-color="yellow" padding="5%">
- <fo:block>margin not specified padding="5%" on this 2x1in yellow container</fo:block>
- </fo:block-container>
- <fo:block-container width="2in" height="1in" margin="0pt" background-color="blue" padding="5%">
- <fo:block>margin="0pt" padding="5%" on this 2x1in blue container</fo:block>
- </fo:block-container>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="18000 18000 18000 18000" xpath="//flow/block[1]/@bap"/>
- <eval expected="-18000" xpath="//flow/block[1]/@space-start"/>
- <eval expected="-18000" xpath="//flow/block[1]/@space-end"/>
- <eval expected="color=#ffff00" xpath="//flow/block[1]/@background"/>
- <eval expected="18000 18000 18000 18000" xpath="//flow/block[2]/@bap"/>
- <eval expected="18000" xpath="//flow/block[2]/@start-indent"/>
- <eval expected="18000" xpath="//flow/block[2]/@end-indent"/>
- <eval expected="color=#0000ff" xpath="//flow/block[2]/@background"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block-container_page-breaking.xml b/test/layoutengine/testcases/block-container_page-breaking.xml
deleted file mode 100644
index bc6afe052..000000000
--- a/test/layoutengine/testcases/block-container_page-breaking.xml
+++ /dev/null
@@ -1,65 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks normal page breaking for block-containers.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block-container height="2in">
- <fo:block>block1 (in block-container, height="2in")</fo:block>
- </fo:block-container>
- <fo:block>outside block-container</fo:block>
- <fo:block-container height="2in">
- <fo:block>block2 (in block-container, height="2in")</fo:block>
- </fo:block-container>
- <fo:block-container height="2in">
- <fo:block>block3 (in block-container, height="2in")</fo:block>
- </fo:block-container>
- <fo:block-container height="2in">
- <fo:block>block4 (in block-container, height="2in")</fo:block>
- </fo:block-container>
- <fo:block>outside block-container</fo:block>
- <fo:block-container height="2in">
- <fo:block>block5 (in block-container, height="2in")</fo:block>
- </fo:block-container>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <true xpath="starts-with(//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block/block[1]/lineArea, 'block1')"/>
- <eval expected="outside block-container" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea"/>
- <true xpath="starts-with(//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[3]/block/block[1]/lineArea, 'block2')"/>
-
- <true xpath="starts-with(//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block/block[1]/lineArea, 'block3')"/>
- <true xpath="starts-with(//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/block/block[1]/lineArea, 'block4')"/>
- <eval expected="outside block-container" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[3]/lineArea"/>
-
- <true xpath="starts-with(//pageViewport[3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block/block[1]/lineArea, 'block5')"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block-container_reference-orientation.xml b/test/layoutengine/testcases/block-container_reference-orientation.xml
deleted file mode 100644
index c5ea1020e..000000000
--- a/test/layoutengine/testcases/block-container_reference-orientation.xml
+++ /dev/null
@@ -1,171 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks in-flow block-containers with reference orientation.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body column-count="2"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block-container width="120pt" height="80pt" margin="0pt" border="solid 5pt" border-top-color="red" reference-orientation="0">
- <!-- note: start|end-indent="0pt" is needed to reset the start-indent otherwise inherited from the parent. -->
- <fo:block start-indent="0pt" end-indent="0pt" text-align-last="justify" background-color="orange">ro = 0</fo:block>
- </fo:block-container>
- <fo:block-container width="80pt" height="120pt" margin="0pt" border="solid 5pt" border-top-color="red" reference-orientation="90">
- <fo:block start-indent="0pt" end-indent="0pt" text-align-last="justify" background-color="orange">ro = 90</fo:block>
- </fo:block-container>
- <fo:block-container width="120pt" height="80pt" margin="0pt" border="solid 5pt" border-top-color="red" reference-orientation="180">
- <fo:block start-indent="0pt" end-indent="0pt" text-align-last="justify" background-color="orange">ro = 180</fo:block>
- </fo:block-container>
- <fo:block-container width="80pt" height="120pt" margin="0pt" border="solid 5pt" border-top-color="red" reference-orientation="270">
- <fo:block start-indent="0pt" end-indent="0pt" text-align-last="justify" background-color="orange">ro = 270</fo:block>
- </fo:block-container>
- <fo:block-container width="120pt" height="80pt" margin="0pt" border="solid 5pt" border-top-color="red" reference-orientation="0">
- <!-- note: start|end-indent="0pt" is needed to reset the start-indent otherwise inherited from the parent. -->
- <fo:block start-indent="0pt" end-indent="0pt" text-align-last="justify" background-color="orange">ro = 0</fo:block>
- </fo:block-container>
- <fo:block-container width="80pt" height="120pt" margin="0pt" border="solid 5pt" border-top-color="red" reference-orientation="-90">
- <fo:block start-indent="0pt" end-indent="0pt" text-align-last="justify" background-color="orange">ro = -90</fo:block>
- </fo:block-container>
- <fo:block-container width="120pt" height="80pt" margin="0pt" border="solid 5pt" border-top-color="red" reference-orientation="-180">
- <fo:block start-indent="0pt" end-indent="0pt" text-align-last="justify" background-color="orange">ro = -180</fo:block>
- </fo:block-container>
- <fo:block-container width="80pt" height="120pt" margin="0pt" border="solid 5pt" border-top-color="red" reference-orientation="-270">
- <fo:block start-indent="0pt" end-indent="0pt" text-align-last="justify" background-color="orange">ro = -270</fo:block>
- </fo:block-container>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- first block-container -->
- <true xpath="//mainReference/span/flow[1]/block[1]/@is-viewport-area"/>
- <eval expected="120000" xpath="//mainReference/span/flow[1]/block[1]/@ipd"/>
- <eval expected="130000" xpath="//mainReference/span/flow[1]/block[1]/@ipda"/>
- <eval expected="80000" xpath="//mainReference/span/flow[1]/block[1]/@bpd"/>
- <eval expected="90000" xpath="//mainReference/span/flow[1]/block[1]/@bpda"/>
- <eval expected="[1.0 0.0 0.0 1.0 5000.0 5000.0]" xpath="//mainReference/span/flow[1]/block[1]/@ctm"/>
- <!-- -> reference area -->
- <true xpath="//mainReference/span/flow[1]/block[1]/block[1]/@is-reference-area"/>
- <!-- -> containing block -->
- <eval expected="120000" xpath="//mainReference/span/flow[1]/block[1]/block[1]/block[1]/@ipd"/>
- <eval expected="120000" xpath="//mainReference/span/flow[1]/block[1]/block[1]/block[1]/@ipda"/>
- <eval expected="14400" xpath="//mainReference/span/flow[1]/block[1]/block[1]/block[1]/@bpd"/>
- <eval expected="14400" xpath="//mainReference/span/flow[1]/block[1]/block[1]/block[1]/@bpda"/>
-
- <!-- second block-container -->
- <true xpath="//mainReference/span/flow[1]/block[2]/@is-viewport-area"/>
- <eval expected="120000" xpath="//mainReference/span/flow[1]/block[2]/@ipd"/>
- <eval expected="130000" xpath="//mainReference/span/flow[1]/block[2]/@ipda"/>
- <eval expected="80000" xpath="//mainReference/span/flow[1]/block[2]/@bpd"/>
- <eval expected="90000" xpath="//mainReference/span/flow[1]/block[2]/@bpda"/>
- <eval expected="[0.0 -1.0 1.0 0.0 5000.0 85000.0]" xpath="//mainReference/span/flow[1]/block[2]/@ctm"/>
- <!-- -> reference area -->
- <true xpath="//mainReference/span/flow[1]/block[2]/block[1]/@is-reference-area"/>
- <!-- -> containing block -->
- <eval expected="80000" xpath="//mainReference/span/flow[1]/block[2]/block[1]/block[1]/@ipd"/>
- <eval expected="80000" xpath="//mainReference/span/flow[1]/block[2]/block[1]/block[1]/@ipda"/>
- <eval expected="14400" xpath="//mainReference/span/flow[1]/block[2]/block[1]/block[1]/@bpd"/>
- <eval expected="14400" xpath="//mainReference/span/flow[1]/block[2]/block[1]/block[1]/@bpda"/>
-
- <!-- third block-container -->
- <true xpath="//mainReference/span/flow[1]/block[3]/@is-viewport-area"/>
- <eval expected="120000" xpath="//mainReference/span/flow[1]/block[3]/@ipd"/>
- <eval expected="130000" xpath="//mainReference/span/flow[1]/block[3]/@ipda"/>
- <eval expected="80000" xpath="//mainReference/span/flow[1]/block[3]/@bpd"/>
- <eval expected="90000" xpath="//mainReference/span/flow[1]/block[3]/@bpda"/>
- <eval expected="[-1.0 -0.0 0.0 -1.0 125000.0 85000.0]" xpath="//mainReference/span/flow[1]/block[3]/@ctm"/>
- <!-- -> reference area -->
- <true xpath="//mainReference/span/flow[1]/block[3]/block[1]/@is-reference-area"/>
- <!-- -> containing block -->
- <eval expected="120000" xpath="//mainReference/span/flow[1]/block[3]/block[1]/block[1]/@ipd"/>
- <eval expected="120000" xpath="//mainReference/span/flow[1]/block[3]/block[1]/block[1]/@ipda"/>
- <eval expected="14400" xpath="//mainReference/span/flow[1]/block[3]/block[1]/block[1]/@bpd"/>
- <eval expected="14400" xpath="//mainReference/span/flow[1]/block[3]/block[1]/block[1]/@bpda"/>
-
- <!-- fourth block-container -->
- <true xpath="//mainReference/span/flow[1]/block[4]/@is-viewport-area"/>
- <eval expected="120000" xpath="//mainReference/span/flow[1]/block[4]/@ipd"/>
- <eval expected="130000" xpath="//mainReference/span/flow[1]/block[4]/@ipda"/>
- <eval expected="80000" xpath="//mainReference/span/flow[1]/block[4]/@bpd"/>
- <eval expected="90000" xpath="//mainReference/span/flow[1]/block[4]/@bpda"/>
- <eval expected="[0.0 1.0 -1.0 0.0 125000.0 5000.0]" xpath="//mainReference/span/flow[1]/block[4]/@ctm"/>
- <!-- -> reference area -->
- <true xpath="//mainReference/span/flow[1]/block[4]/block[1]/@is-reference-area"/>
- <!-- -> containing block -->
- <eval expected="80000" xpath="//mainReference/span/flow[1]/block[4]/block[1]/block[1]/@ipd"/>
- <eval expected="80000" xpath="//mainReference/span/flow[1]/block[4]/block[1]/block[1]/@ipda"/>
- <eval expected="14400" xpath="//mainReference/span/flow[1]/block[4]/block[1]/block[1]/@bpd"/>
- <eval expected="14400" xpath="//mainReference/span/flow[1]/block[4]/block[1]/block[1]/@bpda"/>
-
- <!-- firth block-container (same as first, no need to check) -->
-
- <!-- sixth block-container (same as fourth) -->
- <true xpath="//mainReference/span/flow[2]/block[2]/@is-viewport-area"/>
- <eval expected="120000" xpath="//mainReference/span/flow[2]/block[2]/@ipd"/>
- <eval expected="130000" xpath="//mainReference/span/flow[2]/block[2]/@ipda"/>
- <eval expected="80000" xpath="//mainReference/span/flow[2]/block[2]/@bpd"/>
- <eval expected="90000" xpath="//mainReference/span/flow[2]/block[2]/@bpda"/>
- <eval expected="[0.0 1.0 -1.0 0.0 125000.0 5000.0]" xpath="//mainReference/span/flow[2]/block[2]/@ctm"/>
- <!-- -> reference area -->
- <true xpath="//mainReference/span/flow[2]/block[2]/block[1]/@is-reference-area"/>
- <!-- -> containing block -->
- <eval expected="80000" xpath="//mainReference/span/flow[2]/block[2]/block[1]/block[1]/@ipd"/>
- <eval expected="80000" xpath="//mainReference/span/flow[2]/block[2]/block[1]/block[1]/@ipda"/>
- <eval expected="14400" xpath="//mainReference/span/flow[2]/block[2]/block[1]/block[1]/@bpd"/>
- <eval expected="14400" xpath="//mainReference/span/flow[2]/block[2]/block[1]/block[1]/@bpda"/>
-
- <!-- seventh block-container (same as third) -->
- <true xpath="//mainReference/span/flow[2]/block[3]/@is-viewport-area"/>
- <eval expected="120000" xpath="//mainReference/span/flow[2]/block[3]/@ipd"/>
- <eval expected="130000" xpath="//mainReference/span/flow[2]/block[3]/@ipda"/>
- <eval expected="80000" xpath="//mainReference/span/flow[2]/block[3]/@bpd"/>
- <eval expected="90000" xpath="//mainReference/span/flow[2]/block[3]/@bpda"/>
- <eval expected="[-1.0 -0.0 0.0 -1.0 125000.0 85000.0]" xpath="//mainReference/span/flow[2]/block[3]/@ctm"/>
- <!-- -> reference area -->
- <true xpath="//mainReference/span/flow[2]/block[3]/block[1]/@is-reference-area"/>
- <!-- -> containing block -->
- <eval expected="120000" xpath="//mainReference/span/flow[2]/block[3]/block[1]/block[1]/@ipd"/>
- <eval expected="120000" xpath="//mainReference/span/flow[2]/block[3]/block[1]/block[1]/@ipda"/>
- <eval expected="14400" xpath="//mainReference/span/flow[2]/block[3]/block[1]/block[1]/@bpd"/>
- <eval expected="14400" xpath="//mainReference/span/flow[2]/block[3]/block[1]/block[1]/@bpda"/>
-
- <!-- eighth block-container (same as second) -->
- <true xpath="//mainReference/span/flow[2]/block[4]/@is-viewport-area"/>
- <eval expected="120000" xpath="//mainReference/span/flow[2]/block[4]/@ipd"/>
- <eval expected="130000" xpath="//mainReference/span/flow[2]/block[4]/@ipda"/>
- <eval expected="80000" xpath="//mainReference/span/flow[2]/block[4]/@bpd"/>
- <eval expected="90000" xpath="//mainReference/span/flow[2]/block[4]/@bpda"/>
- <eval expected="[0.0 -1.0 1.0 0.0 5000.0 85000.0]" xpath="//mainReference/span/flow[2]/block[4]/@ctm"/>
- <!-- -> reference area -->
- <true xpath="//mainReference/span/flow[2]/block[4]/block[1]/@is-reference-area"/>
- <!-- -> containing block -->
- <eval expected="80000" xpath="//mainReference/span/flow[2]/block[4]/block[1]/block[1]/@ipd"/>
- <eval expected="80000" xpath="//mainReference/span/flow[2]/block[4]/block[1]/block[1]/@ipda"/>
- <eval expected="14400" xpath="//mainReference/span/flow[2]/block[4]/block[1]/block[1]/@bpd"/>
- <eval expected="14400" xpath="//mainReference/span/flow[2]/block[4]/block[1]/block[1]/@bpda"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block-container_reference-orientation_bug36391.xml b/test/layoutengine/testcases/block-container_reference-orientation_bug36391.xml
deleted file mode 100644
index 25a851391..000000000
--- a/test/layoutengine/testcases/block-container_reference-orientation_bug36391.xml
+++ /dev/null
@@ -1,106 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks in-flow block-containers with reference orientation.
- Special case with nested block-containers from Bugzilla #36391.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body column-count="2"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>Reference orientation : 0</fo:block>
- <fo:block-container border="dotted 1pt" width="90pt" height="60pt">
- <fo:block-container border="solid 1pt" width="30pt" reference-orientation="0">
- <fo:block>ABC</fo:block>
- </fo:block-container>
- </fo:block-container>
- <fo:block>Reference orientation : 90</fo:block>
- <fo:block-container border="dotted 1pt" width="90pt" height="60pt">
- <fo:block-container border="solid 1pt" width="30pt" reference-orientation="90">
- <fo:block>ABC</fo:block>
- </fo:block-container>
- </fo:block-container>
- <fo:block>Reference orientation : -270</fo:block>
- <fo:block-container border="dotted 1pt" width="90pt" height="60pt">
- <fo:block-container width="30pt" border="solid 1pt" reference-orientation="-270">
- <fo:block>ABC</fo:block>
- </fo:block-container>
- </fo:block-container>
- <fo:block break-before="column">Reference orientation : 180</fo:block>
- <fo:block-container border="dotted 1pt" width="90pt" height="60pt">
- <fo:block-container width="30pt" border="solid 1pt" reference-orientation="180">
- <fo:block>ABC</fo:block>
- </fo:block-container>
- </fo:block-container>
- <fo:block>Reference orientation : -180</fo:block>
- <fo:block-container border="dotted 1pt" width="90pt" height="60pt">
- <fo:block-container width="30pt" border="solid 1pt" reference-orientation="-180">
- <fo:block>ABC</fo:block>
- </fo:block-container>
- </fo:block-container>
- <fo:block>Reference orientation : 270</fo:block>
- <fo:block-container border="dotted 1pt" width="90pt" height="60pt">
- <fo:block-container width="30pt" border="solid 1pt" reference-orientation="270">
- <fo:block>ABC</fo:block>
- </fo:block-container>
- </fo:block-container>
- <fo:block>Reference orientation : -90</fo:block>
- <fo:block-container border="dotted 1pt" width="90pt" height="60pt">
- <fo:block-container width="30pt" border="solid 1pt" reference-orientation="-90">
- <fo:block>ABC</fo:block>
- </fo:block-container>
- </fo:block-container>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- 0 -->
- <eval expected="[1.0 0.0 0.0 1.0 0.0 1000.0]" xpath="//mainReference/span/flow[1]/block[2]/@ctm"/>
- <eval expected="[1.0 0.0 0.0 1.0 0.0 1000.0]" xpath="//mainReference/span/flow[1]/block[2]/block[1]/block[1]/@ctm"/>
- <!-- 90 -->
- <eval expected="[1.0 0.0 0.0 1.0 0.0 1000.0]" xpath="//mainReference/span/flow[1]/block[4]/@ctm"/>
- <eval expected="[0.0 -1.0 1.0 0.0 0.0 31000.0]" xpath="//mainReference/span/flow[1]/block[4]/block[1]/block[1]/@ctm"/>
- <!-- -270 -->
- <eval expected="[1.0 0.0 0.0 1.0 0.0 1000.0]" xpath="//mainReference/span/flow[1]/block[6]/@ctm"/>
- <eval expected="[0.0 -1.0 1.0 0.0 0.0 31000.0]" xpath="//mainReference/span/flow[1]/block[6]/block[1]/block[1]/@ctm"/>
- <!-- 180 -->
- <eval expected="[1.0 0.0 0.0 1.0 0.0 1000.0]" xpath="//mainReference/span/flow[2]/block[2]/@ctm"/>
- <!-- The following currently fails since the BCLM doesn't check the effective content BPD.
- Another problem could probably arise if a BC with this ref-orientation is broken at the page end.
- I'm pretty sure the element list is wrong in this case. It would need to be reversed I think. -->
- <eval expected="[-1.0 -0.0 0.0 -1.0 30000.0 14400.0]" xpath="//mainReference/span/flow[2]/block[2]/block[1]/block[1]/@ctm"/>
- <!-- -180 -->
- <eval expected="[1.0 0.0 0.0 1.0 0.0 1000.0]" xpath="//mainReference/span/flow[2]/block[4]/@ctm"/>
- <eval expected="[-1.0 -0.0 0.0 -1.0 30000.0 14400.0]" xpath="//mainReference/span/flow[2]/block[4]/block[1]/block[1]/@ctm"/>
- <!-- 270 -->
- <eval expected="[1.0 0.0 0.0 1.0 0.0 1000.0]" xpath="//mainReference/span/flow[2]/block[6]/@ctm"/>
- <eval expected="[0.0 1.0 -1.0 0.0 90000.0 1000.0]" xpath="//mainReference/span/flow[2]/block[6]/block[1]/block[1]/@ctm"/>
- <!-- -90 -->
- <eval expected="[1.0 0.0 0.0 1.0 0.0 1000.0]" xpath="//mainReference/span/flow[2]/block[6]/@ctm"/>
- <eval expected="[0.0 1.0 -1.0 0.0 90000.0 1000.0]" xpath="//mainReference/span/flow[2]/block[6]/block[1]/block[1]/@ctm"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block-container_space-before_space-after_1.xml b/test/layoutengine/testcases/block-container_space-before_space-after_1.xml
deleted file mode 100644
index 37b7b87c2..000000000
--- a/test/layoutengine/testcases/block-container_space-before_space-after_1.xml
+++ /dev/null
@@ -1,160 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks space properties on block-container.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" id="retain">
- <fo:flow flow-name="xsl-region-body">
- <fo:block-container space-before.optimum="20pt" space-before.conditionality="retain" space-after.optimum="10pt" space-after.conditionality="retain">
- <fo:block text-align="justify">
-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.
- </fo:block>
- </fo:block-container>
- <fo:block space-before.optimum="10pt" space-before.conditionality="retain" space-after.optimum="20pt" space-after.conditionality="retain">
-Two blocks, testing conditionality="retain".
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal" id="discard">
- <fo:flow flow-name="xsl-region-body">
- <fo:block-container space-before.optimum="20pt" space-before.conditionality="discard" space-after.optimum="10pt" space-after.conditionality="discard">
- <fo:block text-align="justify">
-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.
- </fo:block>
- </fo:block-container>
- <fo:block space-before.optimum="10pt" space-before.conditionality="discard" space-after.optimum="20pt" space-after.conditionality="discard">
-Two blocks, testing conditionality="discard".
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker" id="retain">
- <box w="0"/> <!-- Helper box bearing the SpaceHandlingPosition and making sure the glue gets processed -->
- <penalty w="0" p="INF"/>
- <glue w="20000" y="0" z="20000"/>
-
- <box w="14400"/>
- <box w="14400"/>
-
- <penalty w="0" p="INF"/>
- <glue w="10000" y="0" z="10000"/>
- <penalty w="0" p="0"/>
- <glue w="-30000" y="0" z="-30000"/>
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="20000" y="0" z="20000"/>
-
- <box w="14400"/>
-
- <penalty w="0" p="INF"/>
- <glue w="10000" y="0" z="10000"/>
- <penalty w="0" p="0"/>
- <glue w="-30000" y="0" z="-30000"/>
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="20000" y="0" z="20000"/>
-
- <box w="14400"/>
-
- <!-- skip three more lines -->
- <skip>8</skip>
- <skip>8</skip>
- <skip>8</skip>
-
- <penalty w="0" p="INF"/>
- <glue w="10000" y="0" z="10000"/>
- <penalty w="0" p="0"/>
- <glue w="-30000" y="0" z="-30000"/>
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="20000" y="0" z="20000"/>
-
- <box w="14400"/>
- <box w="14400"/>
-
- <penalty w="0" p="INF" aux="true"/>
- <glue w="10000" aux="true"/>
- <penalty w="0" p="0"/>
- <glue w="-10000" aux="true"/>
-
- <box w="0" aux="true"/>
- <penalty w="0" p="INF" aux="true"/>
- <glue w="10000" aux="true"/>
-
- <box w="14400"/> <!-- second block -->
-
- <box w="0" aux="true"/>
- <penalty w="0" p="INF" aux="true"/>
- <glue w="20000" aux="true"/>
-
- <box w="0" aux="true"/> <!-- This is used to make sure the preceding glue is not cut off -->
-
- <skip>3</skip>
- </element-list>
- <element-list category="breaker" id="discard">
- <box w="0"/> <!-- Helper box used to notify the LM for the addAreas stage about the discarded spaces -->
- <box w="14400"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <glue w="10000"/>
-
- <box w="14400"/> <!-- second block -->
-
- <box w="0"/> <!-- SpaceHandlingPosition-bearing helper box -->
-
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block-container_space-before_space-after_2.xml b/test/layoutengine/testcases/block-container_space-before_space-after_2.xml
deleted file mode 100644
index d742b3e85..000000000
--- a/test/layoutengine/testcases/block-container_space-before_space-after_2.xml
+++ /dev/null
@@ -1,93 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks block-level space properties. Demonstrates that spaces are repeated on every generated area.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="30pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body" line-height="10pt" font-size="9pt">
- <fo:block-container space-before="5pt" space-before.conditionality="retain" background-color="yellow">
- <fo:block>line 1</fo:block>
- <fo:block>line 2</fo:block>
- <fo:block>line 3</fo:block>
- <fo:block>line 4</fo:block>
- <fo:block>line 5</fo:block>
- </fo:block-container>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker">
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="5000"/>
- <box w="10000"/>
- <penalty w="0" p="0"/>
- <glue w="-5000"/>
-
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="5000"/>
- <box w="10000"/>
- <penalty w="0" p="0"/>
- <glue w="-5000"/>
-
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="5000"/>
- <box w="10000"/>
- <penalty w="0" p="0"/>
- <glue w="-5000"/>
-
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="5000"/>
- <box w="10000"/>
- <penalty w="0" p="0"/>
- <glue w="-5000"/>
-
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="5000"/>
- <box w="10000"/>
-
- <skip>3</skip>
- </element-list>
- <eval expected="3" xpath="count(//pageViewport)"/>
- <eval expected="5000" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before"/>
- <eval expected="5000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before"/>
- <eval expected="5000" xpath="//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before"/>
- <eval expected="1" xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block)"/>
- <eval expected="1" xpath="count(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block)"/>
- <eval expected="1" xpath="count(//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block)"/>
- <eval expected="2" xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block)"/>
- <eval expected="2" xpath="count(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block)"/>
- <eval expected="1" xpath="count(//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block)"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block-container_space-before_space-after_3.xml b/test/layoutengine/testcases/block-container_space-before_space-after_3.xml
deleted file mode 100644
index 6e9d607d7..000000000
--- a/test/layoutengine/testcases/block-container_space-before_space-after_3.xml
+++ /dev/null
@@ -1,126 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks space properties on block-containers. The focus is on space properties on content inside the block-containers.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="2in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" id="no-height">
- <fo:flow flow-name="xsl-region-body" line-height="10pt" font-size="9pt">
- <fo:block-container space-before="1em" background-color="yellow" id="page1-bc1">
- <fo:block space-before="1em">line 1</fo:block>
- <fo:block>line 2</fo:block>
- </fo:block-container>
- <fo:block>A block between block-containers.</fo:block>
- <fo:block-container background-color="yellow" id="page1-bc2">
- <!-- ATM, the block-container without height behaves like a block which is wrong. It generates a viewport/reference pair. -->
- <fo:block space-before="1em">line 1</fo:block>
- <fo:block>line 2</fo:block>
- </fo:block-container>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal" id="with-height">
- <fo:flow flow-name="xsl-region-body" line-height="10pt" font-size="9pt">
- <fo:block-container space-before="1em" height="50pt" background-color="yellow" id="page2-bc1">
- <fo:block space-before="1em">line 1</fo:block>
- <fo:block>line 2</fo:block>
- </fo:block-container>
- <fo:block>A block between block-containers.</fo:block>
- <fo:block-container height="50pt" background-color="yellow" id="page2-bc2">
- <fo:block space-before="1em">line 1</fo:block>
- <fo:block>line 2</fo:block>
- </fo:block-container>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker" id="no-height">
- <box w="0"/> <!-- SpaceHandlingPosition -->
-
- <box w="10000"/>
- <penalty w="0" p="0"/>
- <box w="10000"/>
-
- <penalty w="0" p="0"/>
- <box w="10000"/> <!-- block between block-containers -->
- <penalty w="0" p="0"/>
-
- <box w="10000"/>
- <penalty w="0" p="0"/>
- <box w="10000"/>
-
- <skip>3</skip>
- </element-list>
- <element-list category="block-container" id="page1-bc1">
- <box w="0"/> <!-- SpaceHandlingPosition -->
-
- <box w="10000"/>
- <penalty w="0" p="0"/>
- <box w="10000"/>
-
- <skip>3</skip>
- </element-list>
- <element-list category="block-container" id="page1-bc2">
- <box w="0"/> <!-- SpaceHandlingPosition -->
-
- <box w="10000"/>
- <penalty w="0" p="0"/>
- <box w="10000"/>
-
- <skip>3</skip>
- </element-list>
- <element-list category="breaker" id="no-height">
- <box w="0"/> <!-- SpaceHandlingPosition -->
-
- <box w="50000"/>
-
- <penalty w="0" p="0"/>
- <box w="10000"/> <!-- block between block-containers -->
- <penalty w="0" p="0"/>
-
- <box w="50000"/>
-
- <skip>3</skip>
- </element-list>
- <element-list category="block-container" id="page2-bc1">
- <box w="0"/> <!-- SpaceHandlingPosition -->
-
- <box w="10000"/>
- <box w="10000"/>
-
- <skip>3</skip>
- </element-list>
- <element-list category="block-container" id="page2-bc2">
- <box w="0"/> <!-- SpaceHandlingPosition -->
-
- <box w="10000"/>
- <box w="10000"/>
-
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block-container_start-indent.xml b/test/layoutengine/testcases/block-container_start-indent.xml
deleted file mode 100644
index 889d62b09..000000000
--- a/test/layoutengine/testcases/block-container_start-indent.xml
+++ /dev/null
@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks indents on block-containers and especially inheritance of start-indent over a block-container.
- </p>
- <p>
- 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)
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block start-indent="10pt">
- <fo:block background-color="yellow">fo:block|fo:block</fo:block>
- <fo:block-container>
- <fo:block background-color="orange">fo:block|fo:block-container|fo:block</fo:block>
- </fo:block-container>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- Outer block with the start-indent property -->
- <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@start-indent"/>
- <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-start"/>
- <eval expected="350000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipd"/>
- <eval expected="350000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipda"/>
- <!-- yellow block -->
- <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@start-indent"/>
- <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@space-start"/>
- <eval expected="350000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@ipd"/>
- <eval expected="350000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@ipda"/>
- <!-- block-container -->
- <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/@start-indent"/>
- <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/@space-start"/>
- <eval expected="350000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/@ipd"/>
- <eval expected="350000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/@ipda"/>
- <!-- block-container's reference area -->
- <eval expected="350000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/block[1]/@ipd"/>
- <eval expected="350000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/block[1]/@ipda"/>
- <!-- orange block inside the block-container -->
- <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/block[1]/block[1]/@start-indent"/>
- <eval expected="10000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/block[1]/block[1]/@space-start"/>
- <eval expected="340000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/block[1]/block[1]/@ipd"/>
- <eval expected="340000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/block[1]/block[1]/@ipda"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block-container_width_height.xml b/test/layoutengine/testcases/block-container_width_height.xml
deleted file mode 100644
index 2ec7f24fb..000000000
--- a/test/layoutengine/testcases/block-container_width_height.xml
+++ /dev/null
@@ -1,124 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks very basic block-containers.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block-container>
- <fo:block background-color="yellow">naked block-container</fo:block>
- </fo:block-container>
- <fo:block-container width="3in">
- <fo:block text-align="end" background-color="orange">width="3in" specified</fo:block>
- </fo:block-container>
- <fo:block-container inline-progression-dimension="4in">
- <fo:block text-align="end" background-color="orange">inline-progression-dimension="4in" specified</fo:block>
- </fo:block-container>
- <fo:block-container height="20pt" background-color="yellow">
- <fo:block background-color="red">height=20pt</fo:block>
- </fo:block-container>
- <fo:block-container block-progression-dimension="20pt" background-color="yellow">
- <fo:block background-color="red">block-progression-dimension=20pt</fo:block>
- </fo:block-container>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- *** first block-container *** -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@is-viewport-area"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpd"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpda"/>
- <!-- -> reference area -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@is-reference-area"/>
- <!-- -> containing block -->
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@bpd"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@bpda"/>
-
- <!-- *** second block-container (width specified) *** -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@is-viewport-area"/>
- <eval expected="216000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipd"/>
- <eval expected="216000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpd"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpda"/>
- <!-- -> reference area -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/@is-reference-area"/>
- <!-- -> containing block -->
- <eval expected="216000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/block[1]/@ipd"/>
- <eval expected="216000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/block[1]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/block[1]/@bpd"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/block[1]/@bpda"/>
-
- <!-- *** third block-container (inline-progression-dimension specified) *** -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@is-viewport-area"/>
- <eval expected="288000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@ipd"/>
- <eval expected="288000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@bpd"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@bpda"/>
- <!-- -> reference area -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/block[1]/@is-reference-area"/>
- <!-- -> containing block -->
- <eval expected="288000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/block[1]/block[1]/@ipd"/>
- <eval expected="288000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/block[1]/block[1]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/block[1]/block[1]/@bpd"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/block[1]/block[1]/@bpda"/>
-
- <!-- *** fourth block-container (height specified) *** -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@is-viewport-area"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@ipda"/>
- <eval expected="20000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bpd"/>
- <eval expected="20000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bpda"/>
- <!-- -> reference area -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/@is-reference-area"/>
- <!-- -> containing block -->
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/block[1]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/block[1]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/block[1]/@bpd"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/block[1]/block[1]/@bpda"/>
-
- <!-- *** fifth block-container (block-progression-dimension specified) *** -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@is-viewport-area"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@ipda"/>
- <eval expected="20000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@bpd"/>
- <eval expected="20000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@bpda"/>
- <!-- -> reference area -->
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/block[1]/@is-reference-area"/>
- <!-- -> containing block -->
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/block[1]/block[1]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/block[1]/block[1]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/block[1]/block[1]/@bpd"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/block[1]/block[1]/@bpda"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block-level_id.xml b/test/layoutengine/testcases/block-level_id.xml
deleted file mode 100644
index 8d0a6bad2..000000000
--- a/test/layoutengine/testcases/block-level_id.xml
+++ /dev/null
@@ -1,101 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks IDs on block-level FOs.
- </p>
- <p>
- TODO:
- Test table-and-caption and table-caption once implemented.
- </p>
- <p>
- 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.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="2in"
- margin="20pt">
- <fo:region-body background-color="yellow"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence id="page-sequence1" master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block id="block1">block1</fo:block>
- <fo:list-block id="list1" provisional-distance-between-starts="50pt" provisional-label-separation="5pt">
- <fo:list-item id="item1">
- <fo:list-item-label id="item1-label" end-indent="label-end()">
- <fo:block>•</fo:block>
- </fo:list-item-label>
- <fo:list-item-body id="item1-body" start-indent="body-start()">
- <fo:block>here is text in the list item body</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- <fo:table id="table1" table-layout="fixed" border-collapse="separate">
- <fo:table-column column-width="100%"/>
- <fo:table-header id="table-header1">
- <fo:table-row>
- <fo:table-cell>
- <fo:block>header</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-header>
- <fo:table-footer id="table-footer1">
- <fo:table-row>
- <fo:table-cell>
- <fo:block>footer</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-footer>
- <fo:table-body id="table-body1">
- <fo:table-row id="table-row1">
- <fo:table-cell id="table-cell1">
- <fo:block>body-content</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block-container id="block-container1">
- <fo:block>block-container-content</fo:block>
- </fo:block-container>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="block1" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@prod-id"/>
-
- <eval expected="list1" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/@prod-id"/>
- <eval expected="item1" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/@prod-id"/>
- <eval expected="item1-label" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/block[1]/@prod-id"/>
- <eval expected="item1-body" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/block[2]/@prod-id"/>
-
- <eval expected="table1" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[3]/@prod-id"/>
- <!-- table-header1, table-body1, table-footer1, table-row1 don't exist in the area tree and cannot be tested. -->
- <eval expected="table-cell1" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[3]/block[2]/@prod-id"/>
-
- <eval expected="block-container1" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[4]/@prod-id"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_basic_1.xml b/test/layoutengine/testcases/block_basic_1.xml
deleted file mode 100644
index 4ef1e36cb..000000000
--- a/test/layoutengine/testcases/block_basic_1.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks very basic operations.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>test1</fo:block>
- <fo:block>line1<fo:block/>line2</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- Check page -->
- <eval expected="0 0 360000 360000" xpath="/areaTree/pageSequence/pageViewport/@bounds" desc="page size"/>
- <true xpath="/areaTree/pageSequence/pageViewport/page[1]"/>
- <true xpath="not(/areaTree/pageSequence/pageViewport/page[2])"/>
- <eval expected="0 0 360000 360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/@rect" desc="region body area"/>
- <!-- Check for first paragraph -->
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipd"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpd"/>
- <!-- Check for second paragraph -->
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipd"/>
- <eval expected="28800" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpd"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_basic_2.xml b/test/layoutengine/testcases/block_basic_2.xml
deleted file mode 100644
index 84e485e24..000000000
--- a/test/layoutengine/testcases/block_basic_2.xml
+++ /dev/null
@@ -1,79 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks normal line layout. We test the reported heights of various text elements.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="simple" page-height="5in" page-width="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="simple">
- <fo:flow flow-name="xsl-region-body">
- <fo:block id="first">normal text</fo:block>
- <fo:block><fo:page-number/></fo:block>
- <fo:block><fo:page-number-citation ref-id="first"/></fo:block>
- <fo:block><fo:wrapper>wrapped</fo:wrapper></fo:block>
- <fo:block><fo:inline>inlined</fo:inline></fo:block>
- <fo:block><fo:character character="x"/></fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker">
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <skip>3</skip>
- </element-list>
-
- <eval expected="11100" xpath="//flow/block[1]/lineArea/@bpd"/>
- <eval expected="11100" xpath="//flow/block[2]/lineArea/@bpd"/>
- <eval expected="11100" xpath="//flow/block[3]/lineArea/@bpd"/>
- <eval expected="11100" xpath="//flow/block[4]/lineArea/@bpd"/>
- <eval expected="11100" xpath="//flow/block[5]/lineArea/@bpd"/>
- <eval expected="11100" xpath="//flow/block[6]/lineArea/@bpd"/>
-
- <eval expected="0" xpath="//flow/block[1]/lineArea/text/@offset"/>
- <eval expected="8616" xpath="//flow/block[1]/lineArea/text/@baseline"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea/text/@offset"/>
- <eval expected="8616" xpath="//flow/block[2]/lineArea/text/@baseline"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea/text/@offset"/>
- <eval expected="8616" xpath="//flow/block[3]/lineArea/text/@baseline"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea/text/@offset"/>
- <eval expected="8616" xpath="//flow/block[4]/lineArea/text/@baseline"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea/inlineparent/@offset"/>
- <eval expected="8616" xpath="//flow/block[5]/lineArea/inlineparent/text/@baseline"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea/char/@offset"/>
- <eval expected="8616" xpath="//flow/block[6]/lineArea/char/@baseline"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_border-style.xml b/test/layoutengine/testcases/block_border-style.xml
deleted file mode 100644
index d16ea1308..000000000
--- a/test/layoutengine/testcases/block_border-style.xml
+++ /dev/null
@@ -1,137 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks painting of borders and border-style.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed" width="100%" border-collapse="separate">
- <fo:table-column column-width="1in" number-columns-repeated="5"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell border="solid 5pt black" background-color="lightgray">
- <fo:block>solid</fo:block>
- </fo:table-cell>
- <fo:table-cell border="dashed 5pt red">
- <fo:block>dashed</fo:block>
- </fo:table-cell>
- <fo:table-cell border="dotted 5pt green" background-color="lightgray">
- <fo:block>dotted</fo:block>
- </fo:table-cell>
- <fo:table-cell border="double 5pt blue">
- <fo:block>double</fo:block>
- </fo:table-cell>
- <fo:table-cell border="groove 5pt orange" background-color="orange">
- <fo:block>groove</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell border="solid 2pt black" background-color="lightgray">
- <fo:block>solid</fo:block>
- </fo:table-cell>
- <fo:table-cell border="dashed 2pt red">
- <fo:block>dashed</fo:block>
- </fo:table-cell>
- <fo:table-cell border="dotted 2pt green" background-color="lightgray">
- <fo:block>dotted</fo:block>
- </fo:table-cell>
- <fo:table-cell border="double 2pt blue">
- <fo:block>double</fo:block>
- </fo:table-cell>
- <fo:table-cell border="groove 2pt orange" background-color="orange">
- <fo:block>groove</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell border="groove 5pt gray" background-color="gray">
- <fo:block color="white">groove</fo:block>
- </fo:table-cell>
- <fo:table-cell border="ridge 5pt red">
- <fo:block>ridge</fo:block>
- </fo:table-cell>
- <fo:table-cell border="inset 5pt green">
- <fo:block>inset</fo:block>
- </fo:table-cell>
- <fo:table-cell border="outset 5pt blue" background-color="lightgray">
- <fo:block>outset</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell border="groove 2pt gray" background-color="gray">
- <fo:block color="white">groove</fo:block>
- </fo:table-cell>
- <fo:table-cell border="ridge 2pt red">
- <fo:block>ridge</fo:block>
- </fo:table-cell>
- <fo:table-cell border="inset 2pt green">
- <fo:block>inset</fo:block>
- </fo:table-cell>
- <fo:table-cell border="outset 2pt blue" background-color="lightgray">
- <fo:block>outset</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell border="none 5pt yellow" background-color="brown">
- <fo:block>none</fo:block>
- </fo:table-cell>
- <fo:table-cell border="hidden 5pt yellow" background-color="brown">
- <fo:block>hidden</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell border="none 2pt yellow" background-color="brown">
- <fo:block>none</fo:block>
- </fo:table-cell>
- <fo:table-cell border="hidden 2pt yellow" background-color="brown">
- <fo:block>hidden</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="solid" xpath="//flow/block[1]/block[1]/block[1]/lineArea"/>
- <eval expected="72000" xpath="//flow/block[1]/block[1]/@ipda"/>
- <eval expected="62000" xpath="//flow/block[1]/block[1]/@ipd"/>
-
- <!-- border-style="none" -->
- <eval expected="none" xpath="//flow/block[1]/block[19]/block[1]/lineArea"/>
- <eval expected="72000" xpath="//flow/block[1]/block[19]/@ipda"/>
- <eval expected="72000" xpath="//flow/block[1]/block[19]/@ipd"/>
- <eval expected="0 0 0 0" xpath="//flow/block[1]/block[19]/@bap"/>
-
- <!-- border-style="hidden" -->
- <eval expected="hidden" xpath="//flow/block[1]/block[20]/block[1]/lineArea"/>
- <eval expected="72000" xpath="//flow/block[1]/block[20]/@ipda"/>
- <eval expected="72000" xpath="//flow/block[1]/block[20]/@ipd"/>
- <eval expected="0 0 0 0" xpath="//flow/block[1]/block[20]/@bap"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_border.xml b/test/layoutengine/testcases/block_border.xml
deleted file mode 100644
index 7781cd908..000000000
--- a/test/layoutengine/testcases/block_border.xml
+++ /dev/null
@@ -1,105 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks very simple border operations.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <!-- border normal -->
- <fo:block margin="0pt" border-start-style="solid" border-start-width="5pt">start</fo:block>
- <fo:block margin="0pt" border-left-style="solid" border-left-width="5pt">left</fo:block>
- <fo:block margin="0pt" border-end-style="solid" border-end-width="5pt">end</fo:block>
- <fo:block margin="0pt" border-right-style="solid" border-right-width="5pt">right</fo:block>
- <fo:block margin="0pt" border-before-style="solid" border-before-width="5pt">before</fo:block>
- <fo:block margin="0pt" border-top-style="solid" border-top-width="5pt">top</fo:block>
- <fo:block margin="0pt" border-after-style="solid" border-after-width="5pt">after</fo:block>
- <fo:block margin="0pt" border-bottom-style="solid" border-bottom-width="5pt">bottom</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- *** border normal *** -->
- <!-- border-start -->
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@border-start"/>
- <eval expected="5000 0 0 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bap"/>
- <eval expected="355000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpd"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpda"/>
- <!-- border-left -->
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@border-start"/>
- <eval expected="5000 0 0 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bap"/>
- <eval expected="355000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpd"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpda"/>
- <!-- border-end -->
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@border-end"/>
- <eval expected="0 5000 0 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@bap"/>
- <eval expected="355000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@bpd"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@bpda"/>
- <!-- border-right -->
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@border-end"/>
- <eval expected="0 5000 0 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bap"/>
- <eval expected="355000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bpd"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bpda"/>
- <!-- border-before -->
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@border-before"/>
- <eval expected="0 0 5000 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@bap"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@bpd"/>
- <eval expected="19400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@bpda"/>
- <!-- border-top -->
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@border-before"/>
- <eval expected="0 0 5000 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@bap"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@bpd"/>
- <eval expected="19400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@bpda"/>
- <!-- border-after -->
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@border-after"/>
- <eval expected="0 0 0 5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@bap"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@bpd"/>
- <eval expected="19400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@bpda"/>
- <!-- border-bottom -->
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@border-after"/>
- <eval expected="0 0 0 5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@bap"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@bpd"/>
- <eval expected="19400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@bpda"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_border_padding.xml b/test/layoutengine/testcases/block_border_padding.xml
deleted file mode 100644
index caf283542..000000000
--- a/test/layoutengine/testcases/block_border_padding.xml
+++ /dev/null
@@ -1,154 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks nested blocks with border and padding properties.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block border="solid 5pt blue" background-color="silver" margin="0pt">
- <fo:block border="solid 5pt red" background-color="white" margin="0pt" text-align="justify" text-align-last="justify">no gap between red and blue border!</fo:block>
- </fo:block>
- <fo:block border="solid 5pt blue" background-color="silver" margin="0pt" padding="5pt">
- <fo:block border="solid 5pt red" background-color="white" margin="0pt" text-align="justify" text-align-last="justify">padding="5pt" on outer block, gap between borders!</fo:block>
- </fo:block>
- <fo:block border="solid 5pt blue" background-color="silver" margin="5pt">
- <fo:block border="solid 5pt red" background-color="white" margin="0pt" text-align="justify" text-align-last="justify">margin="5pt" on outer block</fo:block>
- </fo:block>
- <fo:block border="solid 5pt blue" background-color="silver" margin="0pt">
- <fo:block border="solid 5pt red" background-color="white" margin="5pt" text-align="justify" text-align-last="justify">margin="5pt" on inner block</fo:block>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- First block, no gap -->
- <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[1]/@border-start"/>
- <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[1]/@border-end"/>
- <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[1]/@border-before"/>
- <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[1]/@border-after"/>
- <eval expected="5000 5000 5000 5000" xpath="//flow/block[1]/@bap"/>
- <eval expected="350000" xpath="//flow/block[1]/@ipd"/>
- <eval expected="360000" xpath="//flow/block[1]/@ipda"/>
- <eval expected="24400" xpath="//flow/block[1]/@bpd"/>
- <eval expected="34400" xpath="//flow/block[1]/@bpda"/>
- <!-- Nested block of first block -->
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[1]/block[1]/@border-start"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[1]/block[1]/@border-end"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[1]/block[1]/@border-before"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[1]/block[1]/@border-after"/>
- <eval expected="5000 5000 5000 5000" xpath="//flow/block[1]/block[1]/@bap"/>
- <eval expected="340000" xpath="//flow/block[1]/block[1]/@ipd"/>
- <eval expected="350000" xpath="//flow/block[1]/block[1]/@ipda"/>
- <eval expected="14400" xpath="//flow/block[1]/block[1]/@bpd"/>
- <eval expected="24400" xpath="//flow/block[1]/block[1]/@bpda"/>
-
- <!-- Second block, 5pt gap -->
- <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[2]/@border-start"/>
- <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[2]/@border-end"/>
- <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[2]/@border-before"/>
- <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[2]/@border-after"/>
- <eval expected="5000" xpath="//flow/block[2]/@padding-start"/>
- <eval expected="5000" xpath="//flow/block[2]/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[2]/@padding-before"/>
- <eval expected="5000" xpath="//flow/block[2]/@padding-after"/>
- <eval expected="10000 10000 10000 10000" xpath="//flow/block[2]/@bap"/>
- <eval expected="340000" xpath="//flow/block[2]/@ipd"/>
- <eval expected="360000" xpath="//flow/block[2]/@ipda"/>
- <eval expected="24400" xpath="//flow/block[2]/@bpd"/>
- <eval expected="44400" xpath="//flow/block[2]/@bpda"/>
- <!-- Nested block of second block -->
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/block[1]/@border-start"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/block[1]/@border-end"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/block[1]/@border-before"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/block[1]/@border-after"/>
- <eval expected="5000 5000 5000 5000" xpath="//flow/block[2]/block[1]/@bap"/>
- <eval expected="330000" xpath="//flow/block[2]/block[1]/@ipd"/>
- <eval expected="340000" xpath="//flow/block[2]/block[1]/@ipda"/>
- <eval expected="14400" xpath="//flow/block[2]/block[1]/@bpd"/>
- <eval expected="24400" xpath="//flow/block[2]/block[1]/@bpda"/>
-
- <!-- third block, no gap between borders but margin around outer block -->
- <!-- space before block -->
- <eval expected="5000" xpath="//flow/block[3]/@space-before"/>
- <!-- actual block -->
- <eval expected="5000" xpath="//flow/block[3]/@space-start"/>
- <eval expected="5000" xpath="//flow/block[3]/@space-end"/>
- <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[3]/@border-start"/>
- <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[3]/@border-end"/>
- <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[3]/@border-before"/>
- <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[3]/@border-after"/>
- <eval expected="5000 5000 5000 5000" xpath="//flow/block[3]/@bap"/>
- <eval expected="340000" xpath="//flow/block[3]/@ipd"/>
- <eval expected="350000" xpath="//flow/block[3]/@ipda"/>
- <eval expected="24400" xpath="//flow/block[3]/@bpd"/>
- <eval expected="44400" xpath="//flow/block[3]/@bpda"/>
- <!-- space after block -->
- <eval expected="5000" xpath="//flow/block[3]/@space-after"/>
-
- <!-- Nested block of third block -->
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[3]/block[1]/@border-start"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[3]/block[1]/@border-end"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[3]/block[1]/@border-before"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[3]/block[1]/@border-after"/>
- <eval expected="5000 5000 5000 5000" xpath="//flow/block[3]/block[1]/@bap"/>
- <eval expected="330000" xpath="//flow/block[3]/block[1]/@ipd"/>
- <eval expected="340000" xpath="//flow/block[3]/block[1]/@ipda"/>
- <eval expected="14400" xpath="//flow/block[3]/block[1]/@bpd"/>
- <eval expected="24400" xpath="//flow/block[3]/block[1]/@bpda"/>
-
- <!-- Fourth block, looks like the second block, but using margin on inner block instead of padding on outer block -->
- <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[4]/@border-start"/>
- <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[4]/@border-end"/>
- <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[4]/@border-before"/>
- <eval expected="(solid,#0000ff,5000)" xpath="//flow/block[4]/@border-after"/>
- <eval expected="5000 5000 5000 5000" xpath="//flow/block[4]/@bap"/>
- <eval expected="350000" xpath="//flow/block[4]/@ipd"/>
- <eval expected="360000" xpath="//flow/block[4]/@ipda"/>
- <eval expected="34400" xpath="//flow/block[4]/@bpd"/>
- <eval expected="44400" xpath="//flow/block[4]/@bpda"/>
- <!-- Nested block of second block -->
- <!-- space before block -->
- <eval expected="5000" xpath="//flow/block[4]/block[1]/@space-before"/>
- <!-- actual block -->
- <eval expected="10000" xpath="//flow/block[4]/block[1]/@space-start"/>
- <eval expected="10000" xpath="//flow/block[4]/block[1]/@space-end"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/block[1]/@border-start"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/block[1]/@border-end"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/block[1]/@border-before"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/block[1]/@border-after"/>
- <eval expected="5000 5000 5000 5000" xpath="//flow/block[4]/block[1]/@bap"/>
- <eval expected="330000" xpath="//flow/block[4]/block[1]/@ipd"/>
- <eval expected="340000" xpath="//flow/block[4]/block[1]/@ipda"/>
- <eval expected="14400" xpath="//flow/block[4]/block[1]/@bpd"/>
- <eval expected="34400" xpath="//flow/block[4]/block[1]/@bpda"/>
- <!-- space after block -->
- <eval expected="5000" xpath="//flow/block[4]/block[1]/@space-after"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_border_shorthands.xml b/test/layoutengine/testcases/block_border_shorthands.xml
deleted file mode 100644
index 9b32a423a..000000000
--- a/test/layoutengine/testcases/block_border_shorthands.xml
+++ /dev/null
@@ -1,128 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks border shorthands.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <!-- border shorthand -->
- <fo:block margin="0pt" border-left="solid 5pt">left</fo:block>
- <fo:block margin="0pt" border-right="solid 5pt">right</fo:block>
- <fo:block margin="0pt" border-top="solid 5pt">top</fo:block>
- <fo:block margin="0pt" border-bottom="solid 5pt">bottom</fo:block>
- <fo:block margin="0pt" border="solid 5pt">all</fo:block>
- <fo:block margin="0pt" border-style="solid" border-width="5pt">all</fo:block>
- <fo:block margin="0pt" border-style="solid" border-width="0pt 5pt">leftright</fo:block>
- <fo:block margin="0pt" border-style="solid" border-width="5pt 0pt">topbottom</fo:block>
- <fo:block margin="0pt" border-style="solid" border-width="1pt 2pt 3pt">three values</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- *** border shorthand *** -->
- <!-- border-left -->
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@border-start"/>
- <eval expected="5000 0 0 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bap"/>
- <eval expected="355000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpd"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpda"/>
- <!-- border-right -->
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@border-end"/>
- <eval expected="0 5000 0 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bap"/>
- <eval expected="355000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpd"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpda"/>
- <!-- border-top -->
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@border-before"/>
- <eval expected="0 0 5000 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@bap"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@bpd"/>
- <eval expected="19400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@bpda"/>
- <!-- border-bottom -->
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@border-after"/>
- <eval expected="0 0 0 5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bap"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bpd"/>
- <eval expected="19400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bpda"/>
- <!-- border -->
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@border-start"/>
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@border-end"/>
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@border-before"/>
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@border-after"/>
- <eval expected="5000 5000 5000 5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@bap"/>
- <eval expected="350000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@bpd"/>
- <eval expected="24400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@bpda"/>
- <!-- border-width 1 value -->
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@border-start"/>
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@border-end"/>
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@border-before"/>
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@border-after"/>
- <eval expected="5000 5000 5000 5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@bap"/>
- <eval expected="350000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@bpd"/>
- <eval expected="24400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@bpda"/>
- <!-- border-width 2 values left/right -->
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@border-start"/>
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@border-end"/>
- <true xpath="not(/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@border-before)"/>
- <true xpath="not(/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@border-after)"/>
- <eval expected="5000 5000 0 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@bap"/>
- <eval expected="350000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@bpd"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@bpda"/>
- <!-- border-width 2 values top/bottom -->
- <true xpath="not(/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@border-start)"/>
- <true xpath="not(/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@border-end)"/>
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@border-before"/>
- <eval expected="(solid,#000000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@border-after"/>
- <eval expected="0 0 5000 5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@bap"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@bpd"/>
- <eval expected="24400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@bpda"/>
- <!-- border-width 3 values -->
- <eval expected="(solid,#000000,2000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[9]/@border-start"/>
- <eval expected="(solid,#000000,2000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[9]/@border-end"/>
- <eval expected="(solid,#000000,1000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[9]/@border-before"/>
- <eval expected="(solid,#000000,3000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[9]/@border-after"/>
- <eval expected="2000 2000 1000 3000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[9]/@bap"/>
- <eval expected="356000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[9]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[9]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[9]/@bpd"/>
- <eval expected="18400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[9]/@bpda"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_break-after.xml b/test/layoutengine/testcases/block_break-after.xml
deleted file mode 100644
index beab46358..000000000
--- a/test/layoutengine/testcases/block_break-after.xml
+++ /dev/null
@@ -1,65 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks basic breaks.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block break-after="column">line1</fo:block>
- <fo:block>line2, last block had break-after="column"</fo:block>
- <fo:block break-after="page">line3</fo:block>
- <fo:block>line4, last block had break-after="page"</fo:block>
- <fo:block break-after="even-page">line5</fo:block>
- <fo:block>line6, last block had break-after="even-page"</fo:block>
- <fo:block break-after="even-page">line7</fo:block>
- <fo:block>line8, last block had break-after="even-page"</fo:block>
- <fo:block break-after="odd-page">line9</fo:block>
- <fo:block>line10, last block had break-after="odd-page"</fo:block>
- <fo:block break-after="odd-page">line11</fo:block>
- <fo:block>line12, last block had break-after="odd-page"</fo:block>
- <fo:block>line13</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="1" xpath="//lineArea[starts-with(., 'line1')]/ancestor::pageViewport/@nr"/>
- <eval expected="2" xpath="//lineArea[starts-with(., 'line2')]/ancestor::pageViewport/@nr"/>
- <eval expected="2" xpath="//lineArea[starts-with(., 'line3')]/ancestor::pageViewport/@nr"/>
- <eval expected="3" xpath="//lineArea[starts-with(., 'line4')]/ancestor::pageViewport/@nr"/>
- <eval expected="3" xpath="//lineArea[starts-with(., 'line5')]/ancestor::pageViewport/@nr"/>
- <eval expected="4" xpath="//lineArea[starts-with(., 'line6')]/ancestor::pageViewport/@nr"/>
- <eval expected="4" xpath="//lineArea[starts-with(., 'line7')]/ancestor::pageViewport/@nr"/>
- <eval expected="6" xpath="//lineArea[starts-with(., 'line8')]/ancestor::pageViewport/@nr"/>
- <eval expected="6" xpath="//lineArea[starts-with(., 'line9')]/ancestor::pageViewport/@nr"/>
- <eval expected="7" xpath="//lineArea[starts-with(., 'line10')]/ancestor::pageViewport/@nr"/>
- <eval expected="7" xpath="//lineArea[starts-with(., 'line11')]/ancestor::pageViewport/@nr"/>
- <eval expected="9" xpath="//lineArea[starts-with(., 'line12')]/ancestor::pageViewport/@nr"/>
- <eval expected="9" xpath="//lineArea[starts-with(., 'line13')]/ancestor::pageViewport/@nr"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_break-before.xml b/test/layoutengine/testcases/block_break-before.xml
deleted file mode 100644
index 760e0697e..000000000
--- a/test/layoutengine/testcases/block_break-before.xml
+++ /dev/null
@@ -1,65 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks basic breaks.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>line1</fo:block>
- <fo:block break-before="column">line2 break-before="column"</fo:block>
- <fo:block>line3</fo:block>
- <fo:block break-before="page">line4 break-before="page"</fo:block>
- <fo:block>line5</fo:block>
- <fo:block break-before="even-page">line6 break-before="even-page"</fo:block>
- <fo:block>line7</fo:block>
- <fo:block break-before="even-page">line8 break-before="even-page"</fo:block>
- <fo:block>line9</fo:block>
- <fo:block break-before="odd-page">line10 break-before="odd-page"</fo:block>
- <fo:block>line11</fo:block>
- <fo:block break-before="odd-page">line12 break-before="odd-page"</fo:block>
- <fo:block>line13</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="1" xpath="//lineArea[starts-with(., 'line1')]/ancestor::pageViewport/@nr"/>
- <eval expected="2" xpath="//lineArea[starts-with(., 'line2')]/ancestor::pageViewport/@nr"/>
- <eval expected="2" xpath="//lineArea[starts-with(., 'line3')]/ancestor::pageViewport/@nr"/>
- <eval expected="3" xpath="//lineArea[starts-with(., 'line4')]/ancestor::pageViewport/@nr"/>
- <eval expected="3" xpath="//lineArea[starts-with(., 'line5')]/ancestor::pageViewport/@nr"/>
- <eval expected="4" xpath="//lineArea[starts-with(., 'line6')]/ancestor::pageViewport/@nr"/>
- <eval expected="4" xpath="//lineArea[starts-with(., 'line7')]/ancestor::pageViewport/@nr"/>
- <eval expected="6" xpath="//lineArea[starts-with(., 'line8')]/ancestor::pageViewport/@nr"/>
- <eval expected="6" xpath="//lineArea[starts-with(., 'line9')]/ancestor::pageViewport/@nr"/>
- <eval expected="7" xpath="//lineArea[starts-with(., 'line10')]/ancestor::pageViewport/@nr"/>
- <eval expected="7" xpath="//lineArea[starts-with(., 'line11')]/ancestor::pageViewport/@nr"/>
- <eval expected="9" xpath="//lineArea[starts-with(., 'line12')]/ancestor::pageViewport/@nr"/>
- <eval expected="9" xpath="//lineArea[starts-with(., 'line13')]/ancestor::pageViewport/@nr"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_font-family.xml b/test/layoutengine/testcases/block_font-family.xml
deleted file mode 100644
index 2f7bb6a0e..000000000
--- a/test/layoutengine/testcases/block_font-family.xml
+++ /dev/null
@@ -1,51 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks the generic font families.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="210mm" page-height="297mm">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>font-family not given</fo:block>
- <fo:block font-family="serif">font-family="serif"</fo:block>
- <fo:block font-family="sans-serif">font-family="sans-serif"</fo:block>
- <fo:block font-family="cursive">font-family="cursive"</fo:block>
- <fo:block font-family="fantasy">font-family="fantasy"</fo:block>
- <fo:block font-family="monospace">font-family="monospace"</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="Helvetica" xpath="//flow/block[1]/lineArea/text/@font-name"/>
- <eval expected="Times-Roman" xpath="//flow/block[2]/lineArea/text/@font-name"/>
- <eval expected="Helvetica" xpath="//flow/block[3]/lineArea/text/@font-name"/>
- <eval expected="Times-Roman" xpath="//flow/block[4]/lineArea/text/@font-name"/>
- <eval expected="Times-Roman" xpath="//flow/block[5]/lineArea/text/@font-name"/>
- <eval expected="Courier" xpath="//flow/block[6]/lineArea/text/@font-name"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_font-size_absolute.xml b/test/layoutengine/testcases/block_font-size_absolute.xml
deleted file mode 100644
index d5af4c49d..000000000
--- a/test/layoutengine/testcases/block_font-size_absolute.xml
+++ /dev/null
@@ -1,109 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks absolute font sizes.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="210mm" page-height="297mm">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block font-family="serif" font-size="xx-small"> font-family="serif" font-size="xx-small"</fo:block>
- <fo:block font-family="serif" font-size="x-small"> font-family="serif" font-size="x-small"</fo:block>
- <fo:block font-family="serif" font-size="small"> font-family="serif" font-size="small"</fo:block>
- <fo:block font-family="serif" font-size="medium"> font-family="serif" font-size="medium"</fo:block>
- <fo:block font-family="serif" font-size="large"> font-family="serif" font-size="large"</fo:block>
- <fo:block font-family="serif" font-size="x-large"> font-family="serif" font-size="x-large"</fo:block>
- <fo:block font-family="serif" font-size="xx-large"> font-family="serif" font-size="xx-large"</fo:block>
- <fo:block font-family="sans-serif" font-size="xx-small"> font-family="sans-serif" font-size="xx-small"</fo:block>
- <fo:block font-family="sans-serif" font-size="x-small"> font-family="sans-serif" font-size="x-small"</fo:block>
- <fo:block font-family="sans-serif" font-size="small"> font-family="sans-serif" font-size="small"</fo:block>
- <fo:block font-family="sans-serif" font-size="medium"> font-family="sans-serif" font-size="medium"</fo:block>
- <fo:block font-family="sans-serif" font-size="large"> font-family="sans-serif" font-size="large"</fo:block>
- <fo:block font-family="sans-serif" font-size="x-large"> font-family="sans-serif" font-size="x-large"</fo:block>
- <fo:block font-family="sans-serif" font-size="xx-large"> font-family="sans-serif" font-size="xx-large"</fo:block>
- <fo:block font-family="monospace" font-size="xx-small"> font-family="monospace" font-size="xx-small"</fo:block>
- <fo:block font-family="monospace" font-size="x-small"> font-family="monospace" font-size="x-small"</fo:block>
- <fo:block font-family="monospace" font-size="small"> font-family="monospace" font-size="small"</fo:block>
- <fo:block font-family="monospace" font-size="medium"> font-family="monospace" font-size="medium"</fo:block>
- <fo:block font-family="monospace" font-size="large"> font-family="monospace" font-size="large"</fo:block>
- <fo:block font-family="monospace" font-size="x-large"> font-family="monospace" font-size="x-large"</fo:block>
- <fo:block font-family="monospace" font-size="xx-large"> font-family="monospace" font-size="xx-large"</fo:block>
- <fo:block font-family="cursive" font-size="xx-small"> font-family="cursive" font-size="xx-small"</fo:block>
- <fo:block font-family="cursive" font-size="x-small"> font-family="cursive" font-size="x-small"</fo:block>
- <fo:block font-family="cursive" font-size="small"> font-family="cursive" font-size="small"</fo:block>
- <fo:block font-family="cursive" font-size="medium"> font-family="cursive" font-size="medium"</fo:block>
- <fo:block font-family="cursive" font-size="large"> font-family="cursive" font-size="large"</fo:block>
- <fo:block font-family="cursive" font-size="x-large"> font-family="cursive" font-size="x-large"</fo:block>
- <fo:block font-family="cursive" font-size="xx-large"> font-family="cursive" font-size="xx-large"</fo:block>
- <fo:block font-family="fantasy" font-size="xx-small"> font-family="fantasy" font-size="xx-small"</fo:block>
- <fo:block font-family="fantasy" font-size="x-small"> font-family="fantasy" font-size="x-small"</fo:block>
- <fo:block font-family="fantasy" font-size="small"> font-family="fantasy" font-size="small"</fo:block>
- <fo:block font-family="fantasy" font-size="medium"> font-family="fantasy" font-size="medium"</fo:block>
- <fo:block font-family="fantasy" font-size="large"> font-family="fantasy" font-size="large"</fo:block>
- <fo:block font-family="fantasy" font-size="x-large"> font-family="fantasy" font-size="x-large"</fo:block>
- <fo:block font-family="fantasy" font-size="xx-large"> font-family="fantasy" font-size="xx-large"</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="6944" xpath="//flow/block[1]/lineArea/text/@font-size"/>
- <eval expected="8333" xpath="//flow/block[2]/lineArea/text/@font-size"/>
- <eval expected="10000" xpath="//flow/block[3]/lineArea/text/@font-size"/>
- <eval expected="12000" xpath="//flow/block[4]/lineArea/text/@font-size"/>
- <eval expected="14400" xpath="//flow/block[5]/lineArea/text/@font-size"/>
- <eval expected="17280" xpath="//flow/block[6]/lineArea/text/@font-size"/>
- <eval expected="20736" xpath="//flow/block[7]/lineArea/text/@font-size"/>
- <eval expected="6944" xpath="//flow/block[8]/lineArea/text/@font-size"/>
- <eval expected="8333" xpath="//flow/block[9]/lineArea/text/@font-size"/>
- <eval expected="10000" xpath="//flow/block[10]/lineArea/text/@font-size"/>
- <eval expected="12000" xpath="//flow/block[11]/lineArea/text/@font-size"/>
- <eval expected="14400" xpath="//flow/block[12]/lineArea/text/@font-size"/>
- <eval expected="17280" xpath="//flow/block[13]/lineArea/text/@font-size"/>
- <eval expected="20736" xpath="//flow/block[14]/lineArea/text/@font-size"/>
- <eval expected="6944" xpath="//flow/block[15]/lineArea/text/@font-size"/>
- <eval expected="8333" xpath="//flow/block[16]/lineArea/text/@font-size"/>
- <eval expected="10000" xpath="//flow/block[17]/lineArea/text/@font-size"/>
- <eval expected="12000" xpath="//flow/block[18]/lineArea/text/@font-size"/>
- <eval expected="14400" xpath="//flow/block[19]/lineArea/text/@font-size"/>
- <eval expected="17280" xpath="//flow/block[20]/lineArea/text/@font-size"/>
- <eval expected="20736" xpath="//flow/block[21]/lineArea/text/@font-size"/>
- <eval expected="6944" xpath="//flow/block[22]/lineArea/text/@font-size"/>
- <eval expected="8333" xpath="//flow/block[23]/lineArea/text/@font-size"/>
- <eval expected="10000" xpath="//flow/block[24]/lineArea/text/@font-size"/>
- <eval expected="12000" xpath="//flow/block[25]/lineArea/text/@font-size"/>
- <eval expected="14400" xpath="//flow/block[26]/lineArea/text/@font-size"/>
- <eval expected="17280" xpath="//flow/block[27]/lineArea/text/@font-size"/>
- <eval expected="20736" xpath="//flow/block[28]/lineArea/text/@font-size"/>
- <eval expected="6944" xpath="//flow/block[29]/lineArea/text/@font-size"/>
- <eval expected="8333" xpath="//flow/block[30]/lineArea/text/@font-size"/>
- <eval expected="10000" xpath="//flow/block[31]/lineArea/text/@font-size"/>
- <eval expected="12000" xpath="//flow/block[32]/lineArea/text/@font-size"/>
- <eval expected="14400" xpath="//flow/block[33]/lineArea/text/@font-size"/>
- <eval expected="17280" xpath="//flow/block[34]/lineArea/text/@font-size"/>
- <eval expected="20736" xpath="//flow/block[35]/lineArea/text/@font-size"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_font-size_percentage.xml b/test/layoutengine/testcases/block_font-size_percentage.xml
deleted file mode 100644
index dc906e249..000000000
--- a/test/layoutengine/testcases/block_font-size_percentage.xml
+++ /dev/null
@@ -1,174 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks percentage font sizes.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="210mm" page-height="297mm">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block font-family="serif" font-size="24pt"> font-family="serif" font-size="24pt"
- <fo:block font-family="serif" font-size="83%"> font-family="serif" font-size="83%"
- <fo:block font-family="serif" font-size="83%"> font-family="serif" font-size="83%"
- <fo:block font-family="serif" font-size="83%"> font-family="serif" font-size="83%"
- <fo:block font-family="serif" font-size="83%"> font-family="serif" font-size="83%"
- <fo:block font-family="serif" font-size="83%"> font-family="serif" font-size="83%"
- <fo:block font-family="serif" font-size="83%"> font-family="serif" font-size="83%"
- <fo:block font-family="serif" font-size="83%"> font-family="serif" font-size="83%"
- <fo:block font-family="serif" font-size="120%"> font-family="serif" font-size="120%"
- <fo:block font-family="serif" font-size="120%"> font-family="serif" font-size="120%"
- <fo:block font-family="serif" font-size="120%"> font-family="serif" font-size="120%"
- <fo:block font-family="serif" font-size="120%"> font-family="serif" font-size="120%"
- <fo:block font-family="serif" font-size="120%"> font-family="serif" font-size="120%"
- <fo:block font-family="serif" font-size="120%"> font-family="serif" font-size="120%"
- <fo:block font-family="serif" font-size="120%"> font-family="serif" font-size="120%"
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- <fo:block font-family="sans-serif" font-size="24pt"> font-family="sans-serif" font-size="24pt"
- <fo:block font-family="sans-serif" font-size="83%"> font-family="sans-serif" font-size="83%"
- <fo:block font-family="sans-serif" font-size="83%"> font-family="sans-serif" font-size="83%"
- <fo:block font-family="sans-serif" font-size="83%"> font-family="sans-serif" font-size="83%"
- <fo:block font-family="sans-serif" font-size="83%"> font-family="sans-serif" font-size="83%"
- <fo:block font-family="sans-serif" font-size="83%"> font-family="sans-serif" font-size="83%"
- <fo:block font-family="sans-serif" font-size="83%"> font-family="sans-serif" font-size="83%"
- <fo:block font-family="sans-serif" font-size="83%"> font-family="sans-serif" font-size="83%"
- <fo:block font-family="sans-serif" font-size="120%"> font-family="sans-serif" font-size="120%"
- <fo:block font-family="sans-serif" font-size="120%"> font-family="sans-serif" font-size="120%"
- <fo:block font-family="sans-serif" font-size="120%"> font-family="sans-serif" font-size="120%"
- <fo:block font-family="sans-serif" font-size="120%"> font-family="sans-serif" font-size="120%"
- <fo:block font-family="sans-serif" font-size="120%"> font-family="sans-serif" font-size="120%"
- <fo:block font-family="sans-serif" font-size="120%"> font-family="sans-serif" font-size="120%"
- <fo:block font-family="sans-serif" font-size="120%"> font-family="sans-serif" font-size="120%"
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- <fo:block font-family="monospace" font-size="24pt"> font-family="monospace" font-size="24pt"
- <fo:block font-family="monospace" font-size="83%"> font-family="monospace" font-size="83%"
- <fo:block font-family="monospace" font-size="83%"> font-family="monospace" font-size="83%"
- <fo:block font-family="monospace" font-size="83%"> font-family="monospace" font-size="83%"
- <fo:block font-family="monospace" font-size="83%"> font-family="monospace" font-size="83%"
- <fo:block font-family="monospace" font-size="83%"> font-family="monospace" font-size="83%"
- <fo:block font-family="monospace" font-size="83%"> font-family="monospace" font-size="83%"
- <fo:block font-family="monospace" font-size="83%"> font-family="monospace" font-size="83%"
- <fo:block font-family="monospace" font-size="120%"> font-family="monospace" font-size="120%"
- <fo:block font-family="monospace" font-size="120%"> font-family="monospace" font-size="120%"
- <fo:block font-family="monospace" font-size="120%"> font-family="monospace" font-size="120%"
- <fo:block font-family="monospace" font-size="120%"> font-family="monospace" font-size="120%"
- <fo:block font-family="monospace" font-size="120%"> font-family="monospace" font-size="120%"
- <fo:block font-family="monospace" font-size="120%"> font-family="monospace" font-size="120%"
- <fo:block font-family="monospace" font-size="120%"> font-family="monospace" font-size="120%"
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="24000" xpath="//flow/block[1]/lineArea/text/@font-size"/>
- <eval expected="19920" xpath="//flow/block[1]/block/lineArea/text/@font-size"/>
- <eval expected="16533" xpath="//flow/block[1]/block/block/lineArea/text/@font-size"/>
- <eval expected="13722" xpath="//flow/block[1]/block/block/block/lineArea/text/@font-size"/>
- <eval expected="11389" xpath="//flow/block[1]/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="9452" xpath="//flow/block[1]/block/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="7845" xpath="//flow/block[1]/block/block/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="6511" xpath="//flow/block[1]/block/block/block/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="7813" xpath="//flow/block[1]/block/block/block/block/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="9375" xpath="//flow/block[1]/block/block/block/block/block/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="11250" xpath="//flow/block[1]/block/block/block/block/block/block/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="13500" xpath="//flow/block[1]/block/block/block/block/block/block/block/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="16200" xpath="//flow/block[1]/block/block/block/block/block/block/block/block/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="19440" xpath="//flow/block[1]/block/block/block/block/block/block/block/block/block/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="23328" xpath="//flow/block[1]/block/block/block/block/block/block/block/block/block/block/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="24000" xpath="//flow/block[2]/lineArea/text/@font-size"/>
- <eval expected="19920" xpath="//flow/block[2]/block/lineArea/text/@font-size"/>
- <eval expected="16533" xpath="//flow/block[2]/block/block/lineArea/text/@font-size"/>
- <eval expected="13722" xpath="//flow/block[2]/block/block/block/lineArea/text/@font-size"/>
- <eval expected="11389" xpath="//flow/block[2]/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="9452" xpath="//flow/block[2]/block/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="7845" xpath="//flow/block[2]/block/block/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="6511" xpath="//flow/block[2]/block/block/block/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="7813" xpath="//flow/block[2]/block/block/block/block/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="9375" xpath="//flow/block[2]/block/block/block/block/block/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="11250" xpath="//flow/block[2]/block/block/block/block/block/block/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="13500" xpath="//flow/block[2]/block/block/block/block/block/block/block/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="16200" xpath="//flow/block[2]/block/block/block/block/block/block/block/block/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="19440" xpath="//flow/block[2]/block/block/block/block/block/block/block/block/block/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="23328" xpath="//flow/block[2]/block/block/block/block/block/block/block/block/block/block/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="24000" xpath="//flow/block[3]/lineArea/text/@font-size"/>
- <eval expected="19920" xpath="//flow/block[3]/block/lineArea/text/@font-size"/>
- <eval expected="16533" xpath="//flow/block[3]/block/block/lineArea/text/@font-size"/>
- <eval expected="13722" xpath="//flow/block[3]/block/block/block/lineArea/text/@font-size"/>
- <eval expected="11389" xpath="//flow/block[3]/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="9452" xpath="//flow/block[3]/block/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="7845" xpath="//flow/block[3]/block/block/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="6511" xpath="//flow/block[3]/block/block/block/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="7813" xpath="//flow/block[3]/block/block/block/block/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="9375" xpath="//flow/block[3]/block/block/block/block/block/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="11250" xpath="//flow/block[3]/block/block/block/block/block/block/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="13500" xpath="//flow/block[3]/block/block/block/block/block/block/block/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="16200" xpath="//flow/block[3]/block/block/block/block/block/block/block/block/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="19440" xpath="//flow/block[3]/block/block/block/block/block/block/block/block/block/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="23328" xpath="//flow/block[3]/block/block/block/block/block/block/block/block/block/block/block/block/block/block/lineArea/text/@font-size"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_font-size_relative.xml b/test/layoutengine/testcases/block_font-size_relative.xml
deleted file mode 100644
index d12ebfe07..000000000
--- a/test/layoutengine/testcases/block_font-size_relative.xml
+++ /dev/null
@@ -1,186 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks relative font sizes.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="210mm" page-height="500mm">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block font-size="36pt">font-size="36pt"
- <fo:block font-size="smaller">font-size="smaller"
- <fo:block font-size="smaller">font-size="smaller"
- <fo:block font-size="larger">font-size="larger"
- <fo:block font-size="larger">font-size="larger"
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- <fo:block font-size="24pt">font-size="24pt"
- <fo:block font-size="smaller">font-size="smaller"
- <fo:block font-size="smaller">font-size="smaller"
- <fo:block font-size="larger">font-size="larger"
- <fo:block font-size="larger">font-size="larger"
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- <fo:block font-size="12pt">font-size="12pt"
- <fo:block font-size="smaller">font-size="smaller"
- <fo:block font-size="smaller">font-size="smaller"
- <fo:block font-size="larger">font-size="larger"
- <fo:block font-size="larger">font-size="larger"
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- <fo:block font-size="6pt">font-size="6pt"
- <fo:block font-size="smaller">font-size="smaller"
- <fo:block font-size="smaller">font-size="smaller"
- <fo:block font-size="larger">font-size="larger"
- <fo:block font-size="larger">font-size="larger"
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- <fo:block font-size="6pt">font-size="6pt"
- <fo:block font-size="larger">font-size="larger"
- <fo:block font-size="larger">font-size="larger"
- <fo:block font-size="smaller">font-size="smaller"
- <fo:block font-size="smaller">font-size="smaller"
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- <fo:block font-size="12pt">font-size="12pt"
- <fo:block font-size="larger">font-size="larger"
- <fo:block font-size="larger">font-size="larger"
- <fo:block font-size="smaller">font-size="smaller"
- <fo:block font-size="smaller">font-size="smaller"
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- <fo:block font-size="24pt">font-size="24pt"
- <fo:block font-size="larger">font-size="larger"
- <fo:block font-size="larger">font-size="larger"
- <fo:block font-size="smaller">font-size="smaller"
- <fo:block font-size="smaller">font-size="smaller"
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- <fo:block font-size="36pt">font-size="36pt"
- <fo:block font-size="larger">font-size="larger"
- <fo:block font-size="larger">font-size="larger"
- <fo:block font-size="smaller">font-size="smaller"
- <fo:block font-size="smaller">font-size="smaller"
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- <fo:block font-size="larger">font-size="larger"
- <fo:block font-size="larger">font-size="larger"
- <fo:block font-size="smaller">font-size="smaller"
- <fo:block font-size="smaller">font-size="smaller"
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- <fo:block font-size="36pt">font-size="36pt"
- <fo:block font-size="0.5em">font-size="0.5em"
- <fo:block font-size="0.5em">font-size="0.5em"
- <fo:block font-size="2em">font-size="2em"
- <fo:block font-size="2em">font-size="2em"
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="36000" xpath="//flow/block[1]/lineArea/text/@font-size"/>
- <eval expected="29860" xpath="//flow/block[1]/block/lineArea/text/@font-size"/>
- <eval expected="24883" xpath="//flow/block[1]/block/block/lineArea/text/@font-size"/>
- <eval expected="29860" xpath="//flow/block[1]/block/block/block/lineArea/text/@font-size"/>
- <eval expected="35832" xpath="//flow/block[1]/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="24000" xpath="//flow/block[2]/lineArea/text/@font-size"/>
- <eval expected="20736" xpath="//flow/block[2]/block/lineArea/text/@font-size"/>
- <eval expected="17280" xpath="//flow/block[2]/block/block/lineArea/text/@font-size"/>
- <eval expected="20736" xpath="//flow/block[2]/block/block/block/lineArea/text/@font-size"/>
- <eval expected="24883" xpath="//flow/block[2]/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="12000" xpath="//flow/block[3]/lineArea/text/@font-size"/>
- <eval expected="10000" xpath="//flow/block[3]/block/lineArea/text/@font-size"/>
- <eval expected="8333" xpath="//flow/block[3]/block/block/lineArea/text/@font-size"/>
- <eval expected="10000" xpath="//flow/block[3]/block/block/block/lineArea/text/@font-size"/>
- <eval expected="12000" xpath="//flow/block[3]/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="6000" xpath="//flow/block[4]/lineArea/text/@font-size"/>
- <eval expected="4823" xpath="//flow/block[4]/block/lineArea/text/@font-size"/>
- <eval expected="4019" xpath="//flow/block[4]/block/block/lineArea/text/@font-size"/>
- <eval expected="4823" xpath="//flow/block[4]/block/block/block/lineArea/text/@font-size"/>
- <eval expected="5788" xpath="//flow/block[4]/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="6000" xpath="//flow/block[5]/lineArea/text/@font-size"/>
- <eval expected="6944" xpath="//flow/block[5]/block/lineArea/text/@font-size"/>
- <eval expected="8333" xpath="//flow/block[5]/block/block/lineArea/text/@font-size"/>
- <eval expected="6944" xpath="//flow/block[5]/block/block/block/lineArea/text/@font-size"/>
- <eval expected="5787" xpath="//flow/block[5]/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="12000" xpath="//flow/block[6]/lineArea/text/@font-size"/>
- <eval expected="14400" xpath="//flow/block[6]/block/lineArea/text/@font-size"/>
- <eval expected="17280" xpath="//flow/block[6]/block/block/lineArea/text/@font-size"/>
- <eval expected="14400" xpath="//flow/block[6]/block/block/block/lineArea/text/@font-size"/>
- <eval expected="12000" xpath="//flow/block[6]/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="24000" xpath="//flow/block[7]/lineArea/text/@font-size"/>
- <eval expected="29860" xpath="//flow/block[7]/block/lineArea/text/@font-size"/>
- <eval expected="35832" xpath="//flow/block[7]/block/block/lineArea/text/@font-size"/>
- <eval expected="29860" xpath="//flow/block[7]/block/block/block/lineArea/text/@font-size"/>
- <eval expected="24883" xpath="//flow/block[7]/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="36000" xpath="//flow/block[8]/lineArea/text/@font-size"/>
- <eval expected="42998" xpath="//flow/block[8]/block/lineArea/text/@font-size"/>
- <eval expected="51598" xpath="//flow/block[8]/block/block/lineArea/text/@font-size"/>
- <eval expected="42998" xpath="//flow/block[8]/block/block/block/lineArea/text/@font-size"/>
- <eval expected="35832" xpath="//flow/block[8]/block/block/block/block/lineArea/text/@font-size"/>
- <eval expected="14400" xpath="//flow/block[9]/lineArea/text/@font-size"/>
- <eval expected="17280" xpath="//flow/block[9]/block/lineArea/text/@font-size"/>
- <eval expected="14400" xpath="//flow/block[9]/block/block/lineArea/text/@font-size"/>
- <eval expected="12000" xpath="//flow/block[9]/block/block/block/lineArea/text/@font-size"/>
- <eval expected="36000" xpath="//flow/block[10]/lineArea/text/@font-size"/>
- <eval expected="18000" xpath="//flow/block[10]/block/lineArea/text/@font-size"/>
- <eval expected="9000" xpath="//flow/block[10]/block/block/lineArea/text/@font-size"/>
- <eval expected="18000" xpath="//flow/block[10]/block/block/block/lineArea/text/@font-size"/>
- <eval expected="36000" xpath="//flow/block[10]/block/block/block/block/lineArea/text/@font-size"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_font-stretch.xml b/test/layoutengine/testcases/block_font-stretch.xml
deleted file mode 100644
index 07d7ab7cf..000000000
--- a/test/layoutengine/testcases/block_font-stretch.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks font stretches.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="210mm" page-height="297mm">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block font-family="serif">font-family="serif" font-stretch not given</fo:block>
- <fo:block font-family="serif" font-stretch="ultra-condensed">font-family="serif" font-stretch="ultra-condensed"
- <fo:block font-family="serif" font-stretch="narrower">font-family="serif" font-stretch="narrower"</fo:block>
- </fo:block>
- <fo:block font-family="serif" font-stretch="extra-condensed">font-family="serif" font-stretch="extra-condensed"</fo:block>
- <fo:block font-family="serif" font-stretch="condensed">font-family="serif" font-stretch="condensed"</fo:block>
- <fo:block font-family="serif" font-stretch="semi-condensed">font-family="serif" font-stretch="semi-condensed"</fo:block>
- <fo:block font-family="serif" font-stretch="normal">font-family="serif" font-stretch="normal"</fo:block>
- <fo:block font-family="serif" font-stretch="semi-expanded">font-family="serif" font-stretch="semi-expanded"</fo:block>
- <fo:block font-family="serif" font-stretch="expanded">font-family="serif" font-stretch="expanded"</fo:block>
- <fo:block font-family="serif" font-stretch="extra-expanded">font-family="serif" font-stretch="extra-expanded"</fo:block>
- <fo:block font-family="serif" font-stretch="ultra-expanded">font-family="serif" font-stretch="ultra-expanded"
- <fo:block font-family="serif" font-stretch="wider">font-family="serif" font-stretch="wider"</fo:block>
- </fo:block>
- <fo:block font-family="serif" font-stretch="narrower">font-family="serif" font-stretch="narrower"</fo:block>
- <fo:block font-family="serif" font-stretch="wider">font-family="serif" font-stretch="wider"</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_font-style.xml b/test/layoutengine/testcases/block_font-style.xml
deleted file mode 100644
index 326664717..000000000
--- a/test/layoutengine/testcases/block_font-style.xml
+++ /dev/null
@@ -1,79 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks font syles.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="210mm" page-height="297mm">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block font-family="serif">font-family="serif" font-style not given</fo:block>
- <fo:block font-family="serif" font-style="normal">font-family="serif" font-style="normal"</fo:block>
- <fo:block font-family="serif" font-style="italic">font-family="serif" font-style="italic"</fo:block>
- <fo:block font-family="serif" font-style="oblique">font-family="serif" font-style="oblique"</fo:block>
- <fo:block font-family="serif" font-style="backslant">font-family="serif" font-style="backslant"</fo:block>
- <fo:block font-family="serif" font-style="obscure">font-family="serif" font-style="obscure"</fo:block>
-
- <fo:block font-family="sans-serif">font-family="sans-serif" font-style not given</fo:block>
- <fo:block font-family="sans-serif" font-style="normal">font-family="sans-serif" font-style="normal"</fo:block>
- <fo:block font-family="sans-serif" font-style="italic">font-family="sans-serif" font-style="italic"</fo:block>
- <fo:block font-family="sans-serif" font-style="oblique">font-family="sans-serif" font-style="oblique"</fo:block>
- <fo:block font-family="sans-serif" font-style="backslant">font-family="sans-serif" font-style="backslant"</fo:block>
- <fo:block font-family="sans-serif" font-style="obscure">font-family="serif" font-style="obscure"</fo:block>
-
- <fo:block font-family="monospace">font-family="monospace" font-style not given</fo:block>
- <fo:block font-family="monospace" font-style="normal">font-family="monospace" font-style="normal"</fo:block>
- <fo:block font-family="monospace" font-style="italic">font-family="monospace" font-style="italic"</fo:block>
- <fo:block font-family="monospace" font-style="oblique">font-family="monospace" font-style="oblique"</fo:block>
- <fo:block font-family="monospace" font-style="backslant">font-family="monospace" font-style="backslant"</fo:block>
- <fo:block font-family="monospace" font-style="obscure">font-family="serif" font-style="obscure"</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="normal" xpath="//flow/block[1]/lineArea/text/@font-style"/>
- <eval expected="normal" xpath="//flow/block[2]/lineArea/text/@font-style"/>
- <eval expected="italic" xpath="//flow/block[3]/lineArea/text/@font-style"/>
- <eval expected="italic" xpath="//flow/block[4]/lineArea/text/@font-style"/>
- <eval expected="normal" xpath="//flow/block[5]/lineArea/text/@font-style"/>
- <eval expected="normal" xpath="//flow/block[6]/lineArea/text/@font-style"/>
-
- <eval expected="normal" xpath="//flow/block[7]/lineArea/text/@font-style"/>
- <eval expected="normal" xpath="//flow/block[8]/lineArea/text/@font-style"/>
- <eval expected="italic" xpath="//flow/block[9]/lineArea/text/@font-style"/>
- <eval expected="italic" xpath="//flow/block[10]/lineArea/text/@font-style"/>
- <eval expected="normal" xpath="//flow/block[11]/lineArea/text/@font-style"/>
- <eval expected="normal" xpath="//flow/block[12]/lineArea/text/@font-style"/>
-
- <eval expected="normal" xpath="//flow/block[13]/lineArea/text/@font-style"/>
- <eval expected="normal" xpath="//flow/block[14]/lineArea/text/@font-style"/>
- <eval expected="italic" xpath="//flow/block[15]/lineArea/text/@font-style"/>
- <eval expected="italic" xpath="//flow/block[16]/lineArea/text/@font-style"/>
- <eval expected="normal" xpath="//flow/block[17]/lineArea/text/@font-style"/>
- <eval expected="normal" xpath="//flow/block[18]/lineArea/text/@font-style"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_font-weight.xml b/test/layoutengine/testcases/block_font-weight.xml
deleted file mode 100644
index 70827a7a9..000000000
--- a/test/layoutengine/testcases/block_font-weight.xml
+++ /dev/null
@@ -1,121 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks font weights.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="210mm" page-height="297mm">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>font-weight not specified</fo:block>
- <fo:block font-weight="normal">font-weight="normal"</fo:block>
- <fo:block font-weight="bold">font-weight="bold"</fo:block>
- <fo:block font-weight="100">font-weight="100"</fo:block>
- <fo:block font-weight="200">font-weight="200"</fo:block>
- <fo:block font-weight="300">font-weight="300"</fo:block>
- <fo:block font-weight="400">font-weight="400"</fo:block>
- <fo:block font-weight="500">font-weight="500"</fo:block>
- <fo:block font-weight="600">font-weight="600"</fo:block>
- <fo:block font-weight="700">font-weight="700"</fo:block>
- <fo:block font-weight="800">font-weight="800"</fo:block>
- <fo:block font-weight="900">font-weight="900"
- <fo:block font-weight="lighter">font-weight="lighter"
- <fo:block font-weight="lighter">font-weight="lighter"
- <fo:block font-weight="lighter">font-weight="lighter"
- <fo:block font-weight="lighter">font-weight="lighter"
- <fo:block font-weight="lighter">font-weight="lighter"
- <fo:block font-weight="lighter">font-weight="lighter"
- <fo:block font-weight="lighter">font-weight="lighter"
- <fo:block font-weight="lighter">font-weight="lighter"
- <fo:block font-weight="lighter">font-weight="lighter"
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- <fo:block font-weight="100">font-weight="100"
- <fo:block font-weight="bolder">font-weight="bolder"
- <fo:block font-weight="bolder">font-weight="bolder"
- <fo:block font-weight="bolder">font-weight="bolder"
- <fo:block font-weight="bolder">font-weight="bolder"
- <fo:block font-weight="bolder">font-weight="bolder"
- <fo:block font-weight="bolder">font-weight="bolder"
- <fo:block font-weight="bolder">font-weight="bolder"
- <fo:block font-weight="bolder">font-weight="bolder"
- <fo:block font-weight="bolder">font-weight="bolder"
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks><!-- feature not properly implemented, checks are against current implementation -->
- <eval expected="400" xpath="//flow/block[1]/lineArea/text/@font-weight"/>
- <eval expected="400" xpath="//flow/block[2]/lineArea/text/@font-weight"/>
- <eval expected="700" xpath="//flow/block[3]/lineArea/text/@font-weight"/>
- <eval expected="400" xpath="//flow/block[4]/lineArea/text/@font-weight"/>
- <eval expected="400" xpath="//flow/block[5]/lineArea/text/@font-weight"/>
- <eval expected="400" xpath="//flow/block[6]/lineArea/text/@font-weight"/>
- <eval expected="400" xpath="//flow/block[7]/lineArea/text/@font-weight"/>
- <eval expected="400" xpath="//flow/block[8]/lineArea/text/@font-weight"/>
- <eval expected="700" xpath="//flow/block[9]/lineArea/text/@font-weight"/>
- <eval expected="700" xpath="//flow/block[10]/lineArea/text/@font-weight"/>
- <eval expected="700" xpath="//flow/block[11]/lineArea/text/@font-weight"/>
- <eval expected="700" xpath="//flow/block[12]/lineArea/text/@font-weight"/>
- <eval expected="400" xpath="//flow/block[13]/block/lineArea/text/@font-weight"/>
- <eval expected="400" xpath="//flow/block[13]/block/block/lineArea/text/@font-weight"/>
- <eval expected="400" xpath="//flow/block[13]/block/block/block/lineArea/text/@font-weight"/>
- <eval expected="400" xpath="//flow/block[13]/block/block/block/block/lineArea/text/@font-weight"/>
- <eval expected="400" xpath="//flow/block[13]/block/block/block/block/block/lineArea/text/@font-weight"/>
- <eval expected="400" xpath="//flow/block[13]/block/block/block/block/block/block/lineArea/text/@font-weight"/>
- <eval expected="400" xpath="//flow/block[13]/block/block/block/block/block/block/block/lineArea/text/@font-weight"/>
- <eval expected="400" xpath="//flow/block[13]/block/block/block/block/block/block/block/block/lineArea/text/@font-weight"/>
- <eval expected="400" xpath="//flow/block[13]/block/block/block/block/block/block/block/block/block/lineArea/text/@font-weight"/>
- <eval expected="400" xpath="//flow/block[13]/lineArea/text/@font-weight"/>
- <eval expected="400" xpath="//flow/block[13]/block/lineArea/text/@font-weight"/>
- <eval expected="400" xpath="//flow/block[13]/block/block/lineArea/text/@font-weight"/>
- <eval expected="400" xpath="//flow/block[13]/block/block/block/lineArea/text/@font-weight"/>
- <eval expected="400" xpath="//flow/block[13]/block/block/block/block/lineArea/text/@font-weight"/>
- <eval expected="400" xpath="//flow/block[13]/block/block/block/block/block/lineArea/text/@font-weight"/>
- <eval expected="400" xpath="//flow/block[13]/block/block/block/block/block/block/lineArea/text/@font-weight"/>
- <eval expected="400" xpath="//flow/block[13]/block/block/block/block/block/block/block/lineArea/text/@font-weight"/>
- <eval expected="400" xpath="//flow/block[13]/block/block/block/block/block/block/block/block/lineArea/text/@font-weight"/>
- <eval expected="400" xpath="//flow/block[13]/block/block/block/block/block/block/block/block/block/lineArea/text/@font-weight"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_keep-together.xml b/test/layoutengine/testcases/block_keep-together.xml
deleted file mode 100644
index aa3c8085d..000000000
--- a/test/layoutengine/testcases/block_keep-together.xml
+++ /dev/null
@@ -1,143 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks keep-together.
- </p>
- <p>
- Widows and Orphans are disabled in this test to avoid side-effects.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg" white-space-collapse="true" widows="0" orphans="0">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="4.5 * 14.4pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>block1</fo:block>
- <fo:block>block2</fo:block>
- <fo:block keep-together.within-page="always">block3
- <fo:inline font-style="italic">
- 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.
- </fo:inline>
- </fo:block>
- <fo:block>block4</fo:block>
- <fo:block>block5</fo:block>
- <fo:block keep-together.within-page="always">
- <fo:block>block6</fo:block>
- <fo:block>block7</fo:block>
- <fo:block>block8</fo:block>
- <fo:block>block9</fo:block>
- </fo:block>
- <fo:block>block10</fo:block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>block11</fo:block>
- <fo:block>block12</fo:block>
- <fo:block keep-together.within-column="always">block13
- <fo:inline font-style="italic">
- 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.
- </fo:inline>
- </fo:block>
- <fo:block>block14</fo:block>
- <fo:block>block15</fo:block>
- <fo:block keep-together.within-column="always">
- <fo:block>block16</fo:block>
- <fo:block>block17</fo:block>
- <fo:block>block18</fo:block>
- <fo:block>block19</fo:block>
- </fo:block>
- <fo:block>block20</fo:block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>block21</fo:block>
- <fo:block>block22</fo:block>
- <fo:block-container keep-together.within-page="always">
- <fo:block>block23</fo:block>
- <fo:block>block24</fo:block>
- <fo:block>block25</fo:block>
- </fo:block-container>
- <fo:block>block26</fo:block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>block31</fo:block>
- <fo:block>block32</fo:block>
- <fo:block keep-together.within-page="always">
- <fo:block-container>
- <fo:block>block33</fo:block>
- </fo:block-container>
- <fo:block>block34</fo:block>
- <fo:block>block35</fo:block>
- </fo:block>
- <fo:block>block36</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="1" xpath="//lineArea[starts-with(., 'block1')]/ancestor::pageViewport/@nr"/>
- <eval expected="1" xpath="//lineArea[starts-with(., 'block2')]/ancestor::pageViewport/@nr"/>
- <eval expected="2" xpath="//lineArea[starts-with(., 'block3')]/ancestor::pageViewport/@nr"/>
- <eval expected="2" xpath="//lineArea[starts-with(., 'block4')]/ancestor::pageViewport/@nr"/>
- <eval expected="3" xpath="//lineArea[starts-with(., 'block5')]/ancestor::pageViewport/@nr"/>
- <eval expected="4" xpath="//lineArea[starts-with(., 'block6')]/ancestor::pageViewport/@nr"/>
- <eval expected="4" xpath="//lineArea[starts-with(., 'block7')]/ancestor::pageViewport/@nr"/>
- <eval expected="4" xpath="//lineArea[starts-with(., 'block8')]/ancestor::pageViewport/@nr"/>
- <eval expected="4" xpath="//lineArea[starts-with(., 'block9')]/ancestor::pageViewport/@nr"/>
- <eval expected="5" xpath="//lineArea[starts-with(., 'block10')]/ancestor::pageViewport/@nr"/>
-
- <eval expected="6" xpath="//lineArea[starts-with(., 'block11')]/ancestor::pageViewport/@nr"/>
- <eval expected="6" xpath="//lineArea[starts-with(., 'block12')]/ancestor::pageViewport/@nr"/>
- <eval expected="7" xpath="//lineArea[starts-with(., 'block13')]/ancestor::pageViewport/@nr"/>
- <eval expected="7" xpath="//lineArea[starts-with(., 'block14')]/ancestor::pageViewport/@nr"/>
- <eval expected="8" xpath="//lineArea[starts-with(., 'block15')]/ancestor::pageViewport/@nr"/>
- <eval expected="9" xpath="//lineArea[starts-with(., 'block16')]/ancestor::pageViewport/@nr"/>
- <eval expected="9" xpath="//lineArea[starts-with(., 'block17')]/ancestor::pageViewport/@nr"/>
- <eval expected="9" xpath="//lineArea[starts-with(., 'block18')]/ancestor::pageViewport/@nr"/>
- <eval expected="9" xpath="//lineArea[starts-with(., 'block19')]/ancestor::pageViewport/@nr"/>
- <eval expected="10" xpath="//lineArea[starts-with(., 'block20')]/ancestor::pageViewport/@nr"/>
-
- <eval expected="11" xpath="//lineArea[starts-with(., 'block21')]/ancestor::pageViewport/@nr"/>
- <eval expected="11" xpath="//lineArea[starts-with(., 'block22')]/ancestor::pageViewport/@nr"/>
- <eval expected="12" xpath="//lineArea[starts-with(., 'block23')]/ancestor::pageViewport/@nr"/>
- <eval expected="12" xpath="//lineArea[starts-with(., 'block24')]/ancestor::pageViewport/@nr"/>
- <eval expected="12" xpath="//lineArea[starts-with(., 'block25')]/ancestor::pageViewport/@nr"/>
- <eval expected="12" xpath="//lineArea[starts-with(., 'block26')]/ancestor::pageViewport/@nr"/>
-
- <eval expected="13" xpath="//lineArea[starts-with(., 'block31')]/ancestor::pageViewport/@nr"/>
- <eval expected="13" xpath="//lineArea[starts-with(., 'block32')]/ancestor::pageViewport/@nr"/>
- <eval expected="14" xpath="//lineArea[starts-with(., 'block33')]/ancestor::pageViewport/@nr"/>
- <eval expected="14" xpath="//lineArea[starts-with(., 'block34')]/ancestor::pageViewport/@nr"/>
- <eval expected="14" xpath="//lineArea[starts-with(., 'block35')]/ancestor::pageViewport/@nr"/>
- <eval expected="14" xpath="//lineArea[starts-with(., 'block36')]/ancestor::pageViewport/@nr"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_keep-with-next.xml b/test/layoutengine/testcases/block_keep-with-next.xml
deleted file mode 100644
index 120c2c806..000000000
--- a/test/layoutengine/testcases/block_keep-with-next.xml
+++ /dev/null
@@ -1,95 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks keep-with-next.
- </p>
- <p>
- Widows and Orphans are disabled in this test to avoid side-effects.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg" white-space-collapse="true" widows="0" orphans="0">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="4.5 * 14.4pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>block1</fo:block>
- <fo:block>block2</fo:block>
- <fo:block keep-with-next.within-page="always">block3</fo:block>
- <fo:block keep-with-next.within-page="always">block4</fo:block>
- <fo:block>block5</fo:block>
- <fo:block keep-with-next.within-page="always">
- <fo:block>block6</fo:block>
- <fo:block>block7</fo:block>
- <fo:block>block8</fo:block>
- <fo:block>block9</fo:block>
- <fo:block>block10</fo:block>
- </fo:block>
- <fo:block>block11</fo:block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>block21</fo:block>
- <fo:block>block22</fo:block>
- <fo:block keep-with-next.within-column="always">block23</fo:block>
- <fo:block keep-with-next.within-column="always">block24</fo:block>
- <fo:block>block25</fo:block>
- <fo:block keep-with-next.within-column="always">
- <fo:block>block26</fo:block>
- <fo:block>block27</fo:block>
- <fo:block>block28</fo:block>
- <fo:block>block29</fo:block>
- <fo:block>block30</fo:block>
- </fo:block>
- <fo:block>block31</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="1" xpath="//lineArea[starts-with(., 'block1')]/ancestor::pageViewport/@nr"/>
- <eval expected="1" xpath="//lineArea[starts-with(., 'block2')]/ancestor::pageViewport/@nr"/>
- <eval expected="2" xpath="//lineArea[starts-with(., 'block3')]/ancestor::pageViewport/@nr"/>
- <eval expected="2" xpath="//lineArea[starts-with(., 'block4')]/ancestor::pageViewport/@nr"/>
- <eval expected="2" xpath="//lineArea[starts-with(., 'block5')]/ancestor::pageViewport/@nr"/>
- <eval expected="2" xpath="//lineArea[starts-with(., 'block6')]/ancestor::pageViewport/@nr"/>
- <eval expected="3" xpath="//lineArea[starts-with(., 'block7')]/ancestor::pageViewport/@nr"/>
- <eval expected="3" xpath="//lineArea[starts-with(., 'block8')]/ancestor::pageViewport/@nr"/>
- <eval expected="3" xpath="//lineArea[starts-with(., 'block9')]/ancestor::pageViewport/@nr"/>
- <eval expected="4" xpath="//lineArea[starts-with(., 'block10')]/ancestor::pageViewport/@nr"/>
- <eval expected="4" xpath="//lineArea[starts-with(., 'block11')]/ancestor::pageViewport/@nr"/>
-
- <eval expected="5" xpath="//lineArea[starts-with(., 'block21')]/ancestor::pageViewport/@nr"/>
- <eval expected="5" xpath="//lineArea[starts-with(., 'block22')]/ancestor::pageViewport/@nr"/>
- <eval expected="6" xpath="//lineArea[starts-with(., 'block23')]/ancestor::pageViewport/@nr"/>
- <eval expected="6" xpath="//lineArea[starts-with(., 'block24')]/ancestor::pageViewport/@nr"/>
- <eval expected="6" xpath="//lineArea[starts-with(., 'block25')]/ancestor::pageViewport/@nr"/>
- <eval expected="6" xpath="//lineArea[starts-with(., 'block26')]/ancestor::pageViewport/@nr"/>
- <eval expected="7" xpath="//lineArea[starts-with(., 'block27')]/ancestor::pageViewport/@nr"/>
- <eval expected="7" xpath="//lineArea[starts-with(., 'block28')]/ancestor::pageViewport/@nr"/>
- <eval expected="7" xpath="//lineArea[starts-with(., 'block29')]/ancestor::pageViewport/@nr"/>
- <eval expected="8" xpath="//lineArea[starts-with(., 'block30')]/ancestor::pageViewport/@nr"/>
- <eval expected="8" xpath="//lineArea[starts-with(., 'block31')]/ancestor::pageViewport/@nr"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_keep-with-next_nested.xml b/test/layoutengine/testcases/block_keep-with-next_nested.xml
deleted file mode 100644
index 42351f58f..000000000
--- a/test/layoutengine/testcases/block_keep-with-next_nested.xml
+++ /dev/null
@@ -1,65 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks keep-with-next. Special case: keep defined on lower level FO.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg" white-space-collapse="true" widows="0" orphans="0">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="4.5 * 14.4pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- <fo:block>block1</fo:block>
- <fo:block>block2</fo:block>
- <fo:block keep-with-next.within-page="always">block3</fo:block>
- <fo:block keep-with-next.within-page="always">block4</fo:block>
- </fo:block>
- <fo:block>block5</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker">
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <box w="14400"/>
- <skip>3</skip>
- </element-list>
-
- <eval expected="1" xpath="//lineArea[starts-with(., 'block1')]/ancestor::pageViewport/@nr"/>
- <eval expected="1" xpath="//lineArea[starts-with(., 'block2')]/ancestor::pageViewport/@nr"/>
- <eval expected="2" xpath="//lineArea[starts-with(., 'block3')]/ancestor::pageViewport/@nr"/>
- <eval expected="2" xpath="//lineArea[starts-with(., 'block4')]/ancestor::pageViewport/@nr"/>
- <eval expected="2" xpath="//lineArea[starts-with(., 'block5')]/ancestor::pageViewport/@nr"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_keep-with-previous.xml b/test/layoutengine/testcases/block_keep-with-previous.xml
deleted file mode 100644
index 8dd297802..000000000
--- a/test/layoutengine/testcases/block_keep-with-previous.xml
+++ /dev/null
@@ -1,95 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks keep-with-previous.
- </p>
- <p>
- Widows and Orphans are disabled in this test to avoid side-effects.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg" white-space-collapse="true" widows="0" orphans="0">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="4.5 * 14.4pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>block1</fo:block>
- <fo:block>block2</fo:block>
- <fo:block>block3</fo:block>
- <fo:block keep-with-previous.within-page="always">block4</fo:block>
- <fo:block keep-with-previous.within-page="always">block5</fo:block>
- <fo:block>
- <fo:block>block6</fo:block>
- <fo:block>block7</fo:block>
- <fo:block>block8</fo:block>
- <fo:block>block9</fo:block>
- <fo:block>block10</fo:block>
- </fo:block>
- <fo:block keep-with-previous.within-page="always">block11</fo:block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>block21</fo:block>
- <fo:block>block22</fo:block>
- <fo:block>block23</fo:block>
- <fo:block keep-with-previous.within-column="always">block24</fo:block>
- <fo:block keep-with-previous.within-column="always">block25</fo:block>
- <fo:block>
- <fo:block>block26</fo:block>
- <fo:block>block27</fo:block>
- <fo:block>block28</fo:block>
- <fo:block>block29</fo:block>
- <fo:block>block30</fo:block>
- </fo:block>
- <fo:block keep-with-previous.within-column="always">block31</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="1" xpath="//lineArea[starts-with(., 'block1')]/ancestor::pageViewport/@nr"/>
- <eval expected="1" xpath="//lineArea[starts-with(., 'block2')]/ancestor::pageViewport/@nr"/>
- <eval expected="2" xpath="//lineArea[starts-with(., 'block3')]/ancestor::pageViewport/@nr"/>
- <eval expected="2" xpath="//lineArea[starts-with(., 'block4')]/ancestor::pageViewport/@nr"/>
- <eval expected="2" xpath="//lineArea[starts-with(., 'block5')]/ancestor::pageViewport/@nr"/>
- <eval expected="2" xpath="//lineArea[starts-with(., 'block6')]/ancestor::pageViewport/@nr"/>
- <eval expected="3" xpath="//lineArea[starts-with(., 'block7')]/ancestor::pageViewport/@nr"/>
- <eval expected="3" xpath="//lineArea[starts-with(., 'block8')]/ancestor::pageViewport/@nr"/>
- <eval expected="3" xpath="//lineArea[starts-with(., 'block9')]/ancestor::pageViewport/@nr"/>
- <eval expected="4" xpath="//lineArea[starts-with(., 'block10')]/ancestor::pageViewport/@nr"/>
- <eval expected="4" xpath="//lineArea[starts-with(., 'block11')]/ancestor::pageViewport/@nr"/>
-
- <eval expected="5" xpath="//lineArea[starts-with(., 'block21')]/ancestor::pageViewport/@nr"/>
- <eval expected="5" xpath="//lineArea[starts-with(., 'block22')]/ancestor::pageViewport/@nr"/>
- <eval expected="6" xpath="//lineArea[starts-with(., 'block23')]/ancestor::pageViewport/@nr"/>
- <eval expected="6" xpath="//lineArea[starts-with(., 'block24')]/ancestor::pageViewport/@nr"/>
- <eval expected="6" xpath="//lineArea[starts-with(., 'block25')]/ancestor::pageViewport/@nr"/>
- <eval expected="6" xpath="//lineArea[starts-with(., 'block26')]/ancestor::pageViewport/@nr"/>
- <eval expected="7" xpath="//lineArea[starts-with(., 'block27')]/ancestor::pageViewport/@nr"/>
- <eval expected="7" xpath="//lineArea[starts-with(., 'block28')]/ancestor::pageViewport/@nr"/>
- <eval expected="7" xpath="//lineArea[starts-with(., 'block29')]/ancestor::pageViewport/@nr"/>
- <eval expected="8" xpath="//lineArea[starts-with(., 'block30')]/ancestor::pageViewport/@nr"/>
- <eval expected="8" xpath="//lineArea[starts-with(., 'block31')]/ancestor::pageViewport/@nr"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_keep-with-previous_nested.xml b/test/layoutengine/testcases/block_keep-with-previous_nested.xml
deleted file mode 100644
index 6784a061c..000000000
--- a/test/layoutengine/testcases/block_keep-with-previous_nested.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks keep-with-previous. Special case: keep defined on lower level FO.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg" white-space-collapse="true" widows="0" orphans="0">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="4.5 * 14.4pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>block1</fo:block>
- <fo:block>
- <fo:block keep-with-previous.within-page="always">block2</fo:block>
- <fo:block keep-with-previous.within-page="always">block3</fo:block>
- <fo:block>block4</fo:block>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker">
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_letter-spacing.xml b/test/layoutengine/testcases/block_letter-spacing.xml
deleted file mode 100644
index 37bece008..000000000
--- a/test/layoutengine/testcases/block_letter-spacing.xml
+++ /dev/null
@@ -1,64 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks block level letter-spacing.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>Next block has no letter-spacing property:</fo:block>
- <fo:block>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.</fo:block>
- <fo:block>Next block has letter-spacing="normal":</fo:block>
- <fo:block 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.</fo:block>
- <fo:block>Next block has letter-spacing="0pt":</fo:block>
- <fo:block 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.</fo:block>
- <fo:block>Next block has letter-spacing="2pt":</fo:block>
- <fo:block 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.</fo:block>
- <fo:block>Next block has letter-spacing.optimum="2pt" letter-spacing.minimum="0pt" letter-spacing.maximum="4pt":</fo:block>
- <fo:block 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.</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <true xpath="not(//flow/block[1]/lineArea/text/@tlsadjust)"/>
- <eval expected="2000" xpath="//flow/block[8]/lineArea[1]/text/@tlsadjust"/>
- <eval expected="2000" xpath="//flow/block[8]/lineArea[2]/text/@tlsadjust"/>
- <eval expected="2000" xpath="//flow/block[8]/lineArea[3]/text/@tlsadjust"/>
- <eval expected="2000" xpath="//flow/block[8]/lineArea[4]/text/@tlsadjust"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_letter-spacing_text-align_justify.xml b/test/layoutengine/testcases/block_letter-spacing_text-align_justify.xml
deleted file mode 100644
index 90f8f1098..000000000
--- a/test/layoutengine/testcases/block_letter-spacing_text-align_justify.xml
+++ /dev/null
@@ -1,70 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks block level letter-spacing on justified blocks.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>Next block has no letter-spacing property:</fo:block>
- <fo:block text-align="justify">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.</fo:block>
- <fo:block>Next block has letter-spacing="normal":</fo:block>
- <fo:block text-align="justify" 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.</fo:block>
- <fo:block>Next block has letter-spacing="0pt":</fo:block>
- <fo:block text-align="justify" 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.</fo:block>
- <fo:block>Next block has letter-spacing="2pt":</fo:block>
- <fo:block text-align="justify" 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.</fo:block>
- <fo:block>Next block has letter-spacing.optimum="2pt" letter-spacing.minimum="0pt" letter-spacing.maximum="4pt":</fo:block>
- <fo:block text-align="justify" 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.</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <true xpath="not(//flow/block[1]/lineArea/text/@tlsadjust)"/>
- <true xpath="//flow/block[2]/lineArea/text/@twsadjust"/>
- <eval expected="2000" xpath="//flow/block[8]/lineArea[1]/text/@tlsadjust"/>
- <true xpath="//flow/block[8]/lineArea[1]/text/@twsadjust"/>
- <eval expected="2000" xpath="//flow/block[8]/lineArea[2]/text/@tlsadjust"/>
- <true xpath="//flow/block[8]/lineArea[2]/text/@twsadjust"/>
- <eval expected="2000" xpath="//flow/block[8]/lineArea[3]/text/@tlsadjust"/>
- <true xpath="//flow/block[8]/lineArea[3]/text/@twsadjust"/>
- <eval expected="2000" xpath="//flow/block[8]/lineArea[4]/text/@tlsadjust"/>
- <!-- text-align doesnt apply to last line Area -->
- <true xpath="not(//flow/block[8]/lineArea[4]/text/@twsadjust)"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_line-height.xml b/test/layoutengine/testcases/block_line-height.xml
deleted file mode 100644
index 65a27ed61..000000000
--- a/test/layoutengine/testcases/block_line-height.xml
+++ /dev/null
@@ -1,123 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks line height and its special inheritance behaviour
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block line-height="normal" background-color="yellow">line-height="normal"
- <fo:block font-size="larger" margin-left="10pt" background-color="blue">font-size="larger" - line height grows</fo:block>
- <fo:block font-size="smaller" margin-left="10pt" background-color="red">font-size="smaller" - line height shrinks</fo:block>
- </fo:block>
- <fo:block line-height="150%" background-color="yellow">line-height="150%"
- <fo:block font-size="larger" margin-left="10pt" background-color="blue">font-size="larger" - line height same as above</fo:block>
- <fo:block font-size="smaller" margin-left="10pt" background-color="red">font-size="smaller" - line height same as above</fo:block>
- </fo:block>
- <fo:block line-height="20pt" background-color="yellow">line-height="20pt"
- <fo:block font-size="larger" margin-left="10pt" background-color="blue">font-size="larger" - line height same as above</fo:block>
- <fo:block font-size="smaller" margin-left="10pt" background-color="red">font-size="smaller" - line height same as above</fo:block>
- </fo:block>
- <fo:block line-height="1.5" background-color="yellow">line-height="1.5"
- <fo:block font-size="larger" margin-left="10pt" background-color="blue">font-size="larger" - line height grows</fo:block>
- <fo:block font-size="smaller" margin-left="10pt" background-color="red">font-size="smaller" - line height shrinks</fo:block>
- </fo:block>
- <fo:block line-height="150% - 5pt" background-color="yellow">line-height="150% - 5pt"
- <fo:block font-size="larger" margin-left="10pt" background-color="blue">font-size="larger" - line height same as above</fo:block>
- <fo:block font-size="smaller" margin-left="10pt" background-color="red">font-size="smaller" - line height same as above</fo:block>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="11100" xpath="//flow/block[1]/lineArea/@bpd"/>
- <eval expected="14400" xpath="//flow/block[1]/lineArea/@bpda"/>
- <eval expected="1650" xpath="//flow/block[1]/lineArea/@space-before"/>
- <eval expected="1650" xpath="//flow/block[1]/lineArea/@space-after"/>
- <eval expected="13319" xpath="//flow/block[1]/block[1]/lineArea/@bpd"/>
- <eval expected="17280" xpath="//flow/block[1]/block[1]/lineArea/@bpda"/>
- <eval expected="1980" xpath="//flow/block[1]/block[1]/lineArea/@space-before"/>
- <eval expected="1981" xpath="//flow/block[1]/block[1]/lineArea/@space-after"/>
- <eval expected="9250" xpath="//flow/block[1]/block[2]/lineArea/@bpd"/>
- <eval expected="12000" xpath="//flow/block[1]/block[2]/lineArea/@bpda"/>
- <eval expected="1375" xpath="//flow/block[1]/block[2]/lineArea/@space-before"/>
- <eval expected="1375" xpath="//flow/block[1]/block[2]/lineArea/@space-after"/>
-
- <eval expected="11100" xpath="//flow/block[2]/lineArea/@bpd"/>
- <eval expected="18000" xpath="//flow/block[2]/lineArea/@bpda"/>
- <eval expected="3450" xpath="//flow/block[2]/lineArea/@space-before"/>
- <eval expected="3450" xpath="//flow/block[2]/lineArea/@space-after"/>
- <eval expected="13319" xpath="//flow/block[2]/block[1]/lineArea/@bpd"/>
- <eval expected="18000" xpath="//flow/block[2]/block[1]/lineArea/@bpda"/>
- <eval expected="2340" xpath="//flow/block[2]/block[1]/lineArea/@space-before"/>
- <eval expected="2341" xpath="//flow/block[2]/block[1]/lineArea/@space-after"/>
- <eval expected="9250" xpath="//flow/block[2]/block[2]/lineArea/@bpd"/>
- <eval expected="18000" xpath="//flow/block[2]/block[2]/lineArea/@bpda"/>
- <eval expected="4375" xpath="//flow/block[2]/block[2]/lineArea/@space-before"/>
- <eval expected="4375" xpath="//flow/block[2]/block[2]/lineArea/@space-after"/>
-
- <eval expected="11100" xpath="//flow/block[3]/lineArea/@bpd"/>
- <eval expected="20000" xpath="//flow/block[3]/lineArea/@bpda"/>
- <eval expected="4450" xpath="//flow/block[3]/lineArea/@space-before"/>
- <eval expected="4450" xpath="//flow/block[3]/lineArea/@space-after"/>
- <eval expected="13319" xpath="//flow/block[3]/block[1]/lineArea/@bpd"/>
- <eval expected="20000" xpath="//flow/block[3]/block[1]/lineArea/@bpda"/>
- <eval expected="3340" xpath="//flow/block[3]/block[1]/lineArea/@space-before"/>
- <eval expected="3341" xpath="//flow/block[3]/block[1]/lineArea/@space-after"/>
- <eval expected="9250" xpath="//flow/block[3]/block[2]/lineArea/@bpd"/>
- <eval expected="20000" xpath="//flow/block[3]/block[2]/lineArea/@bpda"/>
- <eval expected="5375" xpath="//flow/block[3]/block[2]/lineArea/@space-before"/>
- <eval expected="5375" xpath="//flow/block[3]/block[2]/lineArea/@space-after"/>
-
- <eval expected="11100" xpath="//flow/block[4]/lineArea/@bpd"/>
- <eval expected="18000" xpath="//flow/block[4]/lineArea/@bpda"/>
- <eval expected="3450" xpath="//flow/block[4]/lineArea/@space-before"/>
- <eval expected="3450" xpath="//flow/block[4]/lineArea/@space-after"/>
- <eval expected="13319" xpath="//flow/block[4]/block[1]/lineArea/@bpd"/>
- <eval expected="21600" xpath="//flow/block[4]/block[1]/lineArea/@bpda"/>
- <eval expected="4140" xpath="//flow/block[4]/block[1]/lineArea/@space-before"/>
- <eval expected="4141" xpath="//flow/block[4]/block[1]/lineArea/@space-after"/>
- <eval expected="9250" xpath="//flow/block[4]/block[2]/lineArea/@bpd"/>
- <eval expected="15000" xpath="//flow/block[4]/block[2]/lineArea/@bpda"/>
- <eval expected="2875" xpath="//flow/block[4]/block[2]/lineArea/@space-before"/>
- <eval expected="2875" xpath="//flow/block[4]/block[2]/lineArea/@space-after"/>
-
- <eval expected="11100" xpath="//flow/block[5]/lineArea/@bpd"/>
- <eval expected="13000" xpath="//flow/block[5]/lineArea/@bpda"/>
- <eval expected="950" xpath="//flow/block[5]/lineArea/@space-before"/>
- <eval expected="950" xpath="//flow/block[5]/lineArea/@space-after"/>
- <eval expected="13319" xpath="//flow/block[5]/block[1]/lineArea/@bpd"/>
- <eval expected="13000" xpath="//flow/block[5]/block[1]/lineArea/@bpda"/>
- <eval expected="-159" xpath="//flow/block[5]/block[1]/lineArea/@space-before"/>
- <eval expected="-160" xpath="//flow/block[5]/block[1]/lineArea/@space-after"/>
- <eval expected="9250" xpath="//flow/block[5]/block[2]/lineArea/@bpd"/>
- <eval expected="13000" xpath="//flow/block[5]/block[2]/lineArea/@bpda"/>
- <eval expected="1875" xpath="//flow/block[5]/block[2]/lineArea/@space-before"/>
- <eval expected="1875" xpath="//flow/block[5]/block[2]/lineArea/@space-after"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_line-stacking-strategy_1.xml b/test/layoutengine/testcases/block_line-stacking-strategy_1.xml
deleted file mode 100755
index 8de776c30..000000000
--- a/test/layoutengine/testcases/block_line-stacking-strategy_1.xml
+++ /dev/null
@@ -1,164 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks line-stacking-strategy font-height against inlines of different sizes.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block line-stacking-strategy="font-height" background-color="silver" margin="5pt 0pt 5pt 0pt" font-size="14pt">
- Before
- <fo:inline font-size="20pt"
- background-color="yellow">bigger
- </fo:inline>
- After
- </fo:block>
- <fo:block line-stacking-strategy="font-height" background-color="silver" margin="5pt 0pt 5pt 0pt" font-size="14pt">
- Before
- <fo:inline font-size="20pt"
- border="solid 2pt red"
- padding="3pt"
- background-color="yellow">bigger with b &amp; p
- </fo:inline>
- After
- </fo:block>
- <fo:block line-stacking-strategy="font-height" background-color="silver" margin="5pt 0pt 5pt 0pt" font-size="14pt">
- Before
- <fo:inline font-size="10pt"
- baseline-shift="sub"
- background-color="yellow">sub
- <fo:inline font-size="8pt"
- baseline-shift="sub"
- background-color="red">sub
- </fo:inline>sub
- </fo:inline>
- After
- </fo:block>
- <fo:block line-stacking-strategy="font-height" background-color="silver" margin="5pt 0pt 5pt 0pt" font-size="14pt">
- Before
- <fo:inline font-size="10pt"
- baseline-shift="super"
- background-color="yellow">super
- <fo:inline font-size="8pt"
- baseline-shift="super"
- background-color="red">super
- </fo:inline>super
- </fo:inline>
- After
- </fo:block>
- <fo:block line-stacking-strategy="font-height" background-color="silver" margin="5pt 0pt 5pt 0pt" font-size="14pt">
- Before
- <fo:inline font-size="18pt"
- baseline-shift="super"
- background-color="yellow">super
- <fo:inline font-size="24pt"
- baseline-shift="sub"
- background-color="red">sub
- <fo:inline font-size="30pt"
- baseline-shift="super"
- background-color="green">super
- </fo:inline>sub
- </fo:inline>super
- </fo:inline>
- After
- </fo:block>
- <fo:block line-stacking-strategy="font-height" background-color="silver" margin="5pt 0pt 5pt 0pt" font-size="14pt">
- Before
- <fo:inline font-size="18pt"
- baseline-shift="sub"
- background-color="yellow">sub
- <fo:inline font-size="24pt"
- baseline-shift="super"
- background-color="red">super
- <fo:inline font-size="36pt"
- baseline-shift="sub"
- background-color="green">sub
- </fo:inline>super
- </fo:inline>sub
- </fo:inline>
- After
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="12950" xpath="//flow/block[1]/lineArea[1]/@bpd"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[1]/@offset"/>
- <eval expected="-4308" xpath="//flow/block[1]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[2]/lineArea[1]/@bpd"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[1]/@offset"/>
- <eval expected="-4308" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[3]/lineArea[1]/@bpd"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/text[1]/@offset"/>
- <eval expected="5487" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="3528" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/text[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[4]/lineArea[1]/@bpd"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[1]/@offset"/>
- <eval expected="-4450" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="-3794" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/text[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[5]/lineArea[1]/@bpd"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[1]/@offset"/>
- <eval expected="-10194" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="1968" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/text[1]/@offset"/>
- <eval expected="-16860" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/text[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/text[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[6]/lineArea[1]/@bpd"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/text[1]/@offset"/>
- <eval expected="1835" xpath="//flow/block[6]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="-13722" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/text[1]/@offset"/>
- <eval expected="798" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/text[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/text[2]/@offset"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_linefeed-treatment.xml b/test/layoutengine/testcases/block_linefeed-treatment.xml
deleted file mode 100755
index 3dc540562..000000000
--- a/test/layoutengine/testcases/block_linefeed-treatment.xml
+++ /dev/null
@@ -1,80 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- 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
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block linefeed-treatment="treat-as-space" background-color="silver" margin="1pt 0pt 1pt 0pt">
-treat-as-space
-all<fo:character character="&#xa;"/>linefeeds
-</fo:block>
- <fo:block linefeed-treatment="ignore" background-color="silver" margin="1pt 0pt 1pt 0pt">
-ignore
-all<fo:character character="&#xa;"/>linefeeds
-</fo:block>
- <fo:block linefeed-treatment="preserve" background-color="silver" margin="1pt 0pt 1pt 0pt">
-preserve
-all<fo:character character="&#xa;"/>linefeeds
-</fo:block>
- <fo:block linefeed-treatment="treat-as-zero-width-space" background-color="silver" margin="1pt 0pt 1pt 0pt">
-treat-as-zero-width-space
-all<fo:character character="&#xa;"/>linefeeds
-</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="2" xpath="count(//flow/block[1]/lineArea[1]/text[1]/word)"/>
- <eval expected="1" xpath="count(//flow/block[1]/lineArea[1]/text[1]/space)"/>
- <eval expected="1" xpath="count(//flow/block[1]/lineArea[1]/char)"/>
- <eval expected="1" xpath="count(//flow/block[1]/lineArea[1]/text[2]/word)"/>
- <eval expected="0" xpath="count(//flow/block[1]/lineArea[1]/text[2]/space)"/>
-
- <eval expected="1" xpath="count(//flow/block[2]/lineArea[1]/text[1]/word)"/>
- <eval expected="0" xpath="count(//flow/block[2]/lineArea[1]/text[1]/space)"/>
- <eval expected="1" xpath="count(//flow/block[2]/lineArea[1]/text[2]/word)"/>
- <eval expected="0" xpath="count(//flow/block[2]/lineArea[1]/text[2]/space)"/>
-
- <eval expected="0" xpath="count(//flow/block[3]/lineArea[1]/text)"/>
- <eval expected="1" xpath="count(//flow/block[3]/lineArea[2]/text/word)"/>
- <eval expected="0" xpath="count(//flow/block[3]/lineArea[2]/text/space)"/>
- <eval expected="1" xpath="count(//flow/block[3]/lineArea[3]/text/word)"/>
- <eval expected="0" xpath="count(//flow/block[3]/lineArea[3]/text/space)"/>
- <eval expected="1" xpath="count(//flow/block[3]/lineArea[4]/text/word)"/>
- <eval expected="0" xpath="count(//flow/block[3]/lineArea[4]/text/space)"/>
-
- <eval expected="1" xpath="count(//flow/block[4]/lineArea[1]/text/word)"/>
- <eval expected="0" xpath="count(//flow/block[4]/lineArea[1]/text/space)"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_margin.xml b/test/layoutengine/testcases/block_margin.xml
deleted file mode 100644
index 3723e5da0..000000000
--- a/test/layoutengine/testcases/block_margin.xml
+++ /dev/null
@@ -1,74 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks very simple margin operations.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block margin-left="5pt">left</fo:block>
- <fo:block margin-right="5pt" text-align="end">right</fo:block>
- <fo:block margin-top="5pt">top</fo:block>
- <fo:block margin-bottom="5pt">bottom</fo:block>
- <fo:block>EOF</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- margin-left -->
- <eval expected="5000" xpath="//flow/block[1]/@space-start"/>
- <eval expected="0 0 0 0" xpath="//flow/block[1]/@bap"/>
- <eval expected="355000" xpath="//flow/block[1]/@ipd"/>
- <eval expected="355000" xpath="//flow/block[1]/@ipda"/>
- <eval expected="14400" xpath="//flow/block[1]/@bpd"/>
- <eval expected="14400" xpath="//flow/block[1]/@bpda"/>
- <!-- margin-right -->
- <eval expected="5000" xpath="//flow/block[2]/@space-end"/>
- <eval expected="0 0 0 0" xpath="//flow/block[2]/@bap"/>
- <eval expected="355000" xpath="//flow/block[2]/@ipd"/>
- <eval expected="355000" xpath="//flow/block[2]/@ipda"/>
- <eval expected="14400" xpath="//flow/block[2]/@bpd"/>
- <eval expected="14400" xpath="//flow/block[2]/@bpda"/>
- <!-- margin-top -->
- <!-- space before block -->
- <eval expected="5000" xpath="//flow/block[3]/@space-before"/>
- <!-- actual block -->
- <eval expected="0 0 0 0" xpath="//flow/block[3]/@bap"/>
- <eval expected="360000" xpath="//flow/block[3]/@ipda"/>
- <eval expected="14400" xpath="//flow/block[3]/@bpd"/>
- <eval expected="19400" xpath="//flow/block[3]/@bpda"/>
- <!-- margin-bottom -->
- <!-- actual block -->
- <eval expected="0 0 0 0" xpath="//flow/block[4]/@bap"/>
- <eval expected="360000" xpath="//flow/block[4]/@ipda"/>
- <eval expected="14400" xpath="//flow/block[4]/@bpd"/>
- <eval expected="19400" xpath="//flow/block[4]/@bpda"/>
- <!-- space after block -->
- <eval expected="5000" xpath="//flow/block[4]/@space-after"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_margin_inherit.xml b/test/layoutengine/testcases/block_margin_inherit.xml
deleted file mode 100644
index ea43a11cd..000000000
--- a/test/layoutengine/testcases/block_margin_inherit.xml
+++ /dev/null
@@ -1,76 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks margin percentages on fo:block with explict inheritance.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block margin="5%" background-color="yellow">
- <fo:block margin="inherit" background-color="blue">
- margin="inherit" - should have the same margin as the enclosing block
- </fo:block>
- </fo:block>
- <fo:block>Yellow block has margin="5%" - 18pt margin based on 5in page width</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker">
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="18000" y="0" z="0"/>
- <box w="14400"/>
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <glue w="18000" y="0" z="0"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <box w="14400"/>
- <skip>3</skip>
- </element-list>
-
- <true xpath="not(boolean(//flow/block[1]/@space-before))"/> <!-- space collapsed under space resolution rules -->
- <eval expected="324000" xpath="//flow/block[1]/@ipd"/>
- <eval expected="18000" xpath="//flow/block[1]/@start-indent"/>
- <eval expected="18000" xpath="//flow/block[1]/@end-indent"/>
- <eval expected="18000" xpath="//flow/block[1]/@space-start"/>
- <eval expected="18000" xpath="//flow/block[1]/@space-end"/>
-
- <eval expected="18000" xpath="//flow/block[1]/block[1]/@space-before"/>
- <eval expected="288000" xpath="//flow/block[1]/block[1]/@ipd"/>
- <eval expected="36000" xpath="//flow/block[1]/block[1]/@start-indent"/>
- <eval expected="36000" xpath="//flow/block[1]/block[1]/@end-indent"/>
- <eval expected="36000" xpath="//flow/block[1]/block[1]/@space-start"/>
- <eval expected="36000" xpath="//flow/block[1]/block[1]/@space-end"/>
- <true xpath="not(boolean(//flow/block[1]/block[1]/@space-after))"/> <!-- space collapsed under space resolution rules -->
- <true xpath="not(boolean(//flow/block[1]/block[2]))"/>
-
- <eval expected="18000" xpath="//flow/block[1]/@space-after"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_margin_percentages.xml b/test/layoutengine/testcases/block_margin_percentages.xml
deleted file mode 100644
index c84a816c5..000000000
--- a/test/layoutengine/testcases/block_margin_percentages.xml
+++ /dev/null
@@ -1,76 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks margin percentages on fo:block.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block margin="5%" background-color="yellow">
- <fo:block margin="5%" background-color="blue">
- margin="5%" - should have the slightly smaller margin than the enclosing block
- </fo:block>
- </fo:block>
- <fo:block>Yellow block has margin="5%" - 18pt margin based on 5in page width</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker">
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="18000" y="0" z="0"/>
- <box w="14400"/>
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <glue w="18000" y="0" z="0"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <box w="14400"/>
- <skip>3</skip>
- </element-list>
-
- <eval expected="18000" xpath="//flow/block[1]/@space-before"/>
- <eval expected="324000" xpath="//flow/block[1]/@ipd"/>
- <eval expected="18000" xpath="//flow/block[1]/@start-indent"/>
- <eval expected="18000" xpath="//flow/block[1]/@end-indent"/>
- <eval expected="18000" xpath="//flow/block[1]/@space-start"/>
- <eval expected="18000" xpath="//flow/block[1]/@space-end"/>
-
- <true xpath="not(boolean(//flow/block[1]/block[1]/@space-before))"/> <!-- space collapsed under space resolution rules -->
- <eval expected="291600" xpath="//flow/block[1]/block[1]/@ipd"/>
- <eval expected="34200" xpath="//flow/block[1]/block[1]/@start-indent"/>
- <eval expected="34200" xpath="//flow/block[1]/block[1]/@end-indent"/>
- <eval expected="34200" xpath="//flow/block[1]/block[1]/@space-start"/>
- <eval expected="34200" xpath="//flow/block[1]/block[1]/@space-end"/>
- <true xpath="not(boolean(//flow/block[1]/block[1]/@space-after))"/> <!-- space collapsed under space resolution rules -->
- <true xpath="not(boolean(//flow/block[1]/block[2]))"/>
-
- <eval expected="18000" xpath="//flow/block[1]/@space-after"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_margin_shorthands.xml b/test/layoutengine/testcases/block_margin_shorthands.xml
deleted file mode 100644
index 25ac7d553..000000000
--- a/test/layoutengine/testcases/block_margin_shorthands.xml
+++ /dev/null
@@ -1,94 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks margin shorthands.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block border-before-style="solid" border-before-width="1pt"/> <!-- These are to avoid stacking constraints between tests -->
- <fo:block margin="5pt">all</fo:block>
- <fo:block border-before-style="solid" border-before-width="1pt"/>
- <fo:block margin="0pt 5pt">left/right</fo:block>
- <fo:block border-before-style="solid" border-before-width="1pt"/>
- <fo:block margin="5pt 0pt">top/bottom</fo:block>
- <fo:block border-before-style="solid" border-before-width="1pt"/>
- <fo:block margin="1pt 2pt 3pt">three values</fo:block>
- <fo:block border-before-style="solid" border-before-width="1pt"/>
- <fo:block>EOF</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- *** all *** -->
- <!-- space before block -->
- <eval expected="5000" xpath="//flow/block[2]/@space-before"/>
- <!-- actual block -->
- <eval expected="5000" xpath="//flow/block[2]/@space-start"/>
- <eval expected="5000" xpath="//flow/block[2]/@space-end"/>
- <eval expected="0 0 0 0" xpath="//flow/block[2]/@bap"/>
- <eval expected="350000" xpath="//flow/block[2]/@ipda"/>
- <eval expected="14400" xpath="//flow/block[2]/@bpd"/>
- <eval expected="24400" xpath="//flow/block[2]/@bpda"/>
- <!-- space after block -->
- <eval expected="5000" xpath="//flow/block[2]/@space-after"/>
-
- <!-- *** left/right *** -->
- <eval expected="5000" xpath="//flow/block[4]/@space-start"/>
- <eval expected="5000" xpath="//flow/block[4]/@space-end"/>
- <eval expected="0 0 0 0" xpath="//flow/block[4]/@bap"/>
- <eval expected="350000" xpath="//flow/block[4]/@ipda"/>
- <eval expected="14400" xpath="//flow/block[4]/@bpda"/>
-
- <!-- *** top/bottom *** -->
- <!-- space before block -->
- <eval expected="5000" xpath="//flow/block[6]/@space-before"/>
- <!-- actual block -->
- <true xpath="not(//flow/block[6]/@space-start)"/>
- <true xpath="not(//flow/block[6]/@space-end)"/>
- <eval expected="0 0 0 0" xpath="//flow/block[6]/@bap"/>
- <eval expected="360000" xpath="//flow/block[6]/@ipda"/>
- <eval expected="14400" xpath="//flow/block[6]/@bpd"/>
- <eval expected="24400" xpath="//flow/block[6]/@bpda"/>
- <!-- space after block -->
- <eval expected="5000" xpath="//flow/block[6]/@space-after"/>
-
- <!-- *** three values *** -->
- <!-- space before block -->
- <eval expected="1000" xpath="//flow/block[8]/@space-before"/>
- <!-- actual block -->
- <eval expected="2000" xpath="//flow/block[8]/@space-start"/>
- <eval expected="2000" xpath="//flow/block[8]/@space-end"/>
- <eval expected="0 0 0 0" xpath="//flow/block[8]/@bap"/>
- <eval expected="356000" xpath="//flow/block[8]/@ipda"/>
- <eval expected="14400" xpath="//flow/block[8]/@bpd"/>
- <eval expected="18400" xpath="//flow/block[8]/@bpda"/>
- <!-- space after block -->
- <eval expected="3000" xpath="//flow/block[8]/@space-after"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_padding.xml b/test/layoutengine/testcases/block_padding.xml
deleted file mode 100644
index caac2429a..000000000
--- a/test/layoutengine/testcases/block_padding.xml
+++ /dev/null
@@ -1,103 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks very simple padding operations.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block margin="0pt" padding-start="5pt">start</fo:block>
- <fo:block margin="0pt" padding-left="5pt">left</fo:block>
- <fo:block margin="0pt" padding-end="5pt">end</fo:block>
- <fo:block margin="0pt" padding-right="5pt">right</fo:block>
- <fo:block margin="0pt" padding-before="5pt">before</fo:block>
- <fo:block margin="0pt" padding-top="5pt">top</fo:block>
- <fo:block margin="0pt" padding-after="5pt">after</fo:block>
- <fo:block margin="0pt" padding-bottom="5pt">bottom</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- padding-start -->
- <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@padding-start"/>
- <eval expected="5000 0 0 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bap" desc="border and padding check"/>
- <eval expected="355000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpd"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpda"/>
- <!-- padding-left -->
- <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@padding-start"/>
- <eval expected="5000 0 0 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bap" desc="border and padding check"/>
- <eval expected="355000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpd"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpda"/>
- <!-- padding-end -->
- <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@padding-end"/>
- <eval expected="0 5000 0 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@bap" desc="border and padding check"/>
- <eval expected="355000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@bpd"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@bpda"/>
- <!-- padding-right -->
- <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@padding-end"/>
- <eval expected="0 5000 0 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bap" desc="border and padding check"/>
- <eval expected="355000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bpd"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bpda"/>
- <!-- padding-before -->
- <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@padding-before"/>
- <eval expected="0 0 5000 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@bap" desc="border and padding check"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@bpd"/>
- <eval expected="19400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[5]/@bpda"/>
- <!-- padding-top -->
- <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@padding-before"/>
- <eval expected="0 0 5000 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@bap" desc="border and padding check"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@bpd"/>
- <eval expected="19400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[6]/@bpda"/>
- <!-- padding-after -->
- <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@padding-after"/>
- <eval expected="0 0 0 5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@bap" desc="border and padding check"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@bpd"/>
- <eval expected="19400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[7]/@bpda"/>
- <!-- padding-bottom -->
- <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@padding-after"/>
- <eval expected="0 0 0 5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@bap" desc="border and padding check"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@bpd"/>
- <eval expected="19400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[8]/@bpda"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_padding_2.xml b/test/layoutengine/testcases/block_padding_2.xml
deleted file mode 100644
index e64750785..000000000
--- a/test/layoutengine/testcases/block_padding_2.xml
+++ /dev/null
@@ -1,105 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks non-conditional before- and after-padding in break-situations.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="3in" page-height="2in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="lightgray" padding-before="30pt" padding-before.conditionality="retain" padding-after="30pt" padding-after.conditionality="retain">
- <fo:block background-color="yellow">line1</fo:block>
- <fo:block background-color="orange">line2</fo:block>
- <fo:block background-color="yellow">line3</fo:block>
- <fo:block background-color="orange">line4</fo:block>
- <fo:block background-color="yellow">line5</fo:block>
- <fo:block background-color="orange">line6</fo:block>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker">
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="30000" aux="true"/>
-
- <box w="14400"/>
-
- <glue w="30000" aux="true"/> <!-- w="30000" is for the padding-after -->
- <penalty w="0" p="0"/>
- <glue w="-60000" aux="true"/> <!-- difference between break and no-break situation -->
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="30000" aux="true"/> <!-- w="30000" is for the padding-before -->
-
- <box w="14400"/>
-
- <glue w="30000" aux="true"/>
- <penalty w="0" p="0"/>
- <glue w="-60000" aux="true"/>
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="30000" aux="true"/>
-
- <box w="14400"/>
-
- <glue w="30000" aux="true"/>
- <penalty w="0" p="0"/>
- <glue w="-60000" aux="true"/>
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="30000" aux="true"/>
-
- <box w="14400"/>
-
- <glue w="30000" aux="true"/>
- <penalty w="0" p="0"/>
- <glue w="-60000" aux="true"/>
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="30000" aux="true"/>
-
- <box w="14400"/>
-
- <glue w="30000" aux="true"/>
- <penalty w="0" p="0"/>
- <glue w="-60000" aux="true"/>
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="30000" aux="true"/>
-
- <box w="14400"/>
-
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="30000" aux="true"/>
-
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_padding_percentages.xml b/test/layoutengine/testcases/block_padding_percentages.xml
deleted file mode 100644
index 45856b7cf..000000000
--- a/test/layoutengine/testcases/block_padding_percentages.xml
+++ /dev/null
@@ -1,53 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks relative padding on blocks.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="yellow" padding="5%">
- margin not specified padding="5%"
- </fo:block>
- <fo:block margin="0pt" background-color="yellow" padding="5%">
- margin="0pt" padding="5%"
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="18000 18000 18000 18000" xpath="//flow/block[1]/@bap"/>
- <eval expected="-18000" xpath="//flow/block[1]/@space-start"/>
- <eval expected="-18000" xpath="//flow/block[1]/@space-end"/>
- <eval expected="color=#ffff00" xpath="//flow/block[1]/@background"/>
- <eval expected="18000 18000 18000 18000" xpath="//flow/block[2]/@bap"/>
- <eval expected="18000" xpath="//flow/block[2]/@start-indent"/>
- <eval expected="18000" xpath="//flow/block[2]/@end-indent"/>
- <eval expected="color=#ffff00" xpath="//flow/block[2]/@background"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_padding_shorthands.xml b/test/layoutengine/testcases/block_padding_shorthands.xml
deleted file mode 100644
index 250b1938e..000000000
--- a/test/layoutengine/testcases/block_padding_shorthands.xml
+++ /dev/null
@@ -1,83 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks shorthand padding operations.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block margin="0pt" padding="5pt" background-color="yellow">all</fo:block>
- <fo:block margin="0pt" padding="0pt 5pt" background-color="orange">leftright</fo:block>
- <fo:block margin="0pt" padding="5pt 0pt" background-color="red">topbottom</fo:block>
- <fo:block margin="0pt" padding="1pt 2pt 3pt" background-color="brown">three values</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- all -->
- <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@padding-start"/>
- <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@padding-end"/>
- <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@padding-before"/>
- <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@padding-after"/>
- <eval expected="5000 5000 5000 5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bap" desc="border and padding check"/>
- <eval expected="350000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpd"/>
- <eval expected="24400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpda"/>
- <!-- leftright -->
- <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@padding-start"/>
- <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@padding-end"/>
- <true xpath="not(/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@padding-before)"/>
- <true xpath="not(/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@padding-after)"/>
- <eval expected="5000 5000 0 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bap" desc="border and padding check"/>
- <eval expected="350000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpd"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpda"/>
- <!-- topbottom -->
- <true xpath="not(/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@padding-start)"/>
- <true xpath="not(/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@padding-end)"/>
- <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@padding-before"/>
- <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@padding-after"/>
- <eval expected="0 0 5000 5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@bap" desc="border and padding check"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@bpd"/>
- <eval expected="24400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[3]/@bpda"/>
- <!-- leftrightbottom -->
- <eval expected="2000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@padding-start"/>
- <eval expected="2000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@padding-end"/>
- <eval expected="1000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@padding-before"/>
- <eval expected="3000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@padding-after"/>
- <eval expected="2000 2000 1000 3000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bap" desc="border and padding check"/>
- <eval expected="356000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bpd"/>
- <eval expected="18400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bpda"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_space-before_space-after_1.xml b/test/layoutengine/testcases/block_space-before_space-after_1.xml
deleted file mode 100644
index 9c462b29c..000000000
--- a/test/layoutengine/testcases/block_space-before_space-after_1.xml
+++ /dev/null
@@ -1,75 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks block-level space properties.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block space-after="-8pt">overlapping block1, negative space-after</fo:block>
- <fo:block background-color="orange">normal block1</fo:block>
- <fo:block space-before="5pt">spaced block1</fo:block>
- <fo:block space-after="5pt">spaced block2</fo:block>
- <fo:block background-color="orange">normal block2</fo:block>
- <fo:block space-before="-8pt">overlapping block2, negative space-before</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- overlapping block1 -->
- <eval expected="360000" xpath="//flow/block[1]/@ipda"/>
- <eval expected="14400" xpath="//flow/block[1]/@bpd"/>
- <eval expected="6400" xpath="//flow/block[1]/@bpda"/>
- <!-- space after overlapping block1 -->
- <eval expected="-8000" xpath="//flow/block[1]/@space-after"/>
- <!-- normal block1 -->
- <eval expected="360000" xpath="//flow/block[2]/@ipda"/>
- <eval expected="14400" xpath="//flow/block[2]/@bpda"/>
- <!-- space before spaced block1 -->
- <eval expected="5000" xpath="//flow/block[3]/@space-before"/>
- <!-- spaced block1 -->
- <eval expected="360000" xpath="//flow/block[3]/@ipda"/>
- <eval expected="14400" xpath="//flow/block[3]/@bpd"/>
- <eval expected="19400" xpath="//flow/block[3]/@bpda"/>
- <!-- spaced block2 -->
- <eval expected="360000" xpath="//flow/block[4]/@ipda"/>
- <eval expected="14400" xpath="//flow/block[4]/@bpd"/>
- <eval expected="19400" xpath="//flow/block[4]/@bpda"/>
- <!-- space after spaced block2 -->
- <eval expected="5000" xpath="//flow/block[4]/@space-after"/>
- <!-- normal block2 -->
- <eval expected="360000" xpath="//flow/block[5]/@ipda"/>
- <eval expected="14400" xpath="//flow/block[5]/@bpda"/>
- <!-- space before overlapping block2 -->
- <eval expected="-8000" xpath="//flow/block[6]/@space-before"/>
- <!-- overlapping block2 -->
- <eval expected="360000" xpath="//flow/block[6]/@ipda"/>
- <eval expected="14400" xpath="//flow/block[6]/@bpd"/>
- <eval expected="6400" xpath="//flow/block[6]/@bpda"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_space-before_space-after_2.xml b/test/layoutengine/testcases/block_space-before_space-after_2.xml
deleted file mode 100644
index 0676277f9..000000000
--- a/test/layoutengine/testcases/block_space-before_space-after_2.xml
+++ /dev/null
@@ -1,156 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks block-level space properties.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" id="retain">
- <fo:flow flow-name="xsl-region-body">
- <fo:block space-before.optimum="20pt" space-before.conditionality="retain" space-after.optimum="10pt" space-after.conditionality="retain" text-align="justify">
-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.
- </fo:block>
- <fo:block space-before.optimum="10pt" space-before.conditionality="retain" space-after.optimum="20pt" space-after.conditionality="retain">
-Two blocks, testing conditionality="retain".
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal" id="discard">
- <fo:flow flow-name="xsl-region-body">
- <fo:block space-before.optimum="20pt" space-before.conditionality="discard" space-after.optimum="10pt" space-after.conditionality="discard" text-align="justify">
-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.
- </fo:block>
- <fo:block space-before.optimum="10pt" space-before.conditionality="discard" space-after.optimum="20pt" space-after.conditionality="discard">
-Two blocks, testing conditionality="discard".
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker" id="retain">
- <box w="0"/> <!-- Helper box bearing the SpaceHandlingPosition and making sure the glue gets processed -->
- <penalty w="0" p="INF"/>
- <glue w="20000" y="0" z="20000"/>
-
- <box w="14400"/>
- <box w="14400"/>
-
- <penalty w="0" p="INF"/>
- <glue w="10000" y="0" z="10000"/>
- <penalty w="0" p="0"/>
- <glue w="-30000" y="0" z="-30000"/>
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="20000" y="0" z="20000"/>
-
- <box w="14400"/>
-
- <penalty w="0" p="INF"/>
- <glue w="10000" y="0" z="10000"/>
- <penalty w="0" p="0"/>
- <glue w="-30000" y="0" z="-30000"/>
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="20000" y="0" z="20000"/>
-
- <box w="14400"/>
-
- <!-- skip three more lines -->
- <skip>8</skip>
- <skip>8</skip>
- <skip>8</skip>
-
- <penalty w="0" p="INF"/>
- <glue w="10000" y="0" z="10000"/>
- <penalty w="0" p="0"/>
- <glue w="-30000" y="0" z="-30000"/>
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="20000" y="0" z="20000"/>
-
- <box w="14400"/>
- <box w="14400"/>
-
- <penalty w="0" p="INF" aux="true"/>
- <glue w="10000" aux="true"/>
- <penalty w="0" p="0"/>
- <glue w="-10000" aux="true"/>
-
- <box w="0" aux="true"/>
- <penalty w="0" p="INF" aux="true"/>
- <glue w="10000" aux="true"/>
-
- <box w="14400"/> <!-- second block -->
-
- <box w="0" aux="true"/>
- <penalty w="0" p="INF" aux="true"/>
- <glue w="20000" aux="true"/>
-
- <box w="0" aux="true"/> <!-- This is used to make sure the preceding glue is not cut off -->
-
- <skip>3</skip>
- </element-list>
- <element-list category="breaker" id="discard">
- <box w="0"/> <!-- Helper box used to notify the LM for the addAreas stage about the discarded spaces -->
- <box w="14400"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <glue w="10000"/>
-
- <box w="14400"/> <!-- second block -->
-
- <box w="0"/> <!-- SpaceHandlingPosition-bearing helper box -->
-
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_space-before_space-after_3.xml b/test/layoutengine/testcases/block_space-before_space-after_3.xml
deleted file mode 100644
index 0c59ec68f..000000000
--- a/test/layoutengine/testcases/block_space-before_space-after_3.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks block-level space properties. This is the space-resolution example in "4.3.1 Space-resolution Rules".
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body background-color="lightgray"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block space-before="10pt" background-color="yellow">
- <fo:block space-before="4pt" space-before.conditionality="retain">
- <fo:block space-before="5pt" background-color="orange">
- In olden times when wishing still helped one, there lived a king whose daughters
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- Only the third space (5pt, discard) survives the space-resolution. -->
- <element-list category="breaker">
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="5000"/>
- <box w="14400"/>
- <box w="14400"/>
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_space-before_space-after_4.xml b/test/layoutengine/testcases/block_space-before_space-after_4.xml
deleted file mode 100644
index 3d4fb9f58..000000000
--- a/test/layoutengine/testcases/block_space-before_space-after_4.xml
+++ /dev/null
@@ -1,83 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks block-level space properties. Demonstrates that spaces are repeated on every generated area.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="30pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body" line-height="10pt" font-size="9pt">
- <fo:block space-before="5pt" space-before.conditionality="retain" background-color="yellow">
- <fo:block>line 1</fo:block>
- <fo:block>line 2</fo:block>
- <fo:block>line 3</fo:block>
- <fo:block>line 4</fo:block>
- <fo:block>line 5</fo:block>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker">
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="5000"/>
- <box w="10000"/>
- <penalty w="0" p="0"/>
- <glue w="-5000"/>
-
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="5000"/>
- <box w="10000"/>
- <penalty w="0" p="0"/>
- <glue w="-5000"/>
-
- <!-- skip two more lines -->
- <skip>6</skip>
- <skip>6</skip>
-
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="5000"/>
- <box w="10000"/>
-
- <skip>3</skip>
- </element-list>
- <eval expected="3" xpath="count(//pageViewport)"/>
- <eval expected="5000" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before"/>
- <eval expected="5000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before"/>
- <eval expected="5000" xpath="//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before"/>
- <eval expected="1" xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block)"/>
- <eval expected="1" xpath="count(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block)"/>
- <eval expected="1" xpath="count(//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block)"/>
- <eval expected="2" xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block)"/>
- <eval expected="2" xpath="count(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block)"/>
- <eval expected="1" xpath="count(//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block)"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_space-before_space-after_5.xml b/test/layoutengine/testcases/block_space-before_space-after_5.xml
deleted file mode 100644
index 5a7beac8e..000000000
--- a/test/layoutengine/testcases/block_space-before_space-after_5.xml
+++ /dev/null
@@ -1,96 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks block-level space properties. These here are the
- <a href="http://wiki.apache.org/xmlgraphics-fop/SpaceResolution/Examples">examples 3 to 5 on the Wiki</a>.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="1in">
- <fo:region-body background-color="lightgray"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" id="cond-cond">
- <fo:flow flow-name="xsl-region-body">
- <fo:block space-after="11pt">block 1: space-after conditional</fo:block>
- <fo:block space-before="12pt">block 2: space-before conditional</fo:block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal" id="retain-cond">
- <fo:flow flow-name="xsl-region-body">
- <fo:block space-after="11pt" space-after.conditionality="retain">block 1: space-after retained</fo:block>
- <fo:block space-before="12pt">block 2: space-before: conditional</fo:block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal" id="retain-cond-2">
- <fo:flow flow-name="xsl-region-body">
- <fo:block space-after="10pt" space-after.conditionality="retain">block 1: space-after retained</fo:block>
- <fo:block space-before="10pt">block 2: space-before: conditional</fo:block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal" id="retain-retain">
- <fo:flow flow-name="xsl-region-body">
- <fo:block space-after="11pt" space-after.conditionality="retain">block 1: space-after retained</fo:block>
- <fo:block space-before="12pt" space-before.conditionality="retain">block 2: space-before retained</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker" id="cond-cond">
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <glue w="12000"/>
- <box w="14400"/>
- <skip>3</skip>
- </element-list>
- <element-list category="breaker" id="retain-cond">
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <glue w="11000"/>
- <penalty w="0" p="0"/>
- <glue w="1000"/>
- <box w="14400"/>
- <skip>3</skip>
- </element-list>
- <element-list category="breaker" id="retain-cond-2">
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <glue w="10000"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <skip>3</skip>
- </element-list>
- <element-list category="breaker" id="retain-retain">
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <glue w="11000"/>
- <penalty w="0" p="0"/>
- <glue w="-11000"/>
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="12000"/>
- <box w="14400"/>
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_space-before_space-after_6.xml b/test/layoutengine/testcases/block_space-before_space-after_6.xml
deleted file mode 100644
index 7b6737252..000000000
--- a/test/layoutengine/testcases/block_space-before_space-after_6.xml
+++ /dev/null
@@ -1,92 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks block-level space properties. These here are the
- <a href="http://wiki.apache.org/xmlgraphics-fop/SpaceResolution/Examples">examples 1 and 2 on the Wiki</a>.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="1in">
- <fo:region-body background-color="lightgray"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" id="ex1">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>first line</fo:block>
- <fo:block space-before="10pt">
- <fo:block>before break</fo:block>
- <fo:block>after break</fo:block>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal" id="ex2">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>first line</fo:block>
- <fo:block space-before="10pt" space-before.conditionality="retain">
- <fo:block>before break</fo:block>
- <fo:block>after break</fo:block>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker" id="ex1">
- <box w="14400"/>
-
- <penalty w="0" p="0"/>
-
- <glue w="10000"/>
- <box w="14400"/>
-
- <penalty w="0" p="0"/>
-
- <box w="14400"/>
-
- <skip>3</skip>
- </element-list>
-
- <element-list category="breaker" id="ex2">
- <box w="14400"/>
-
- <penalty w="0" p="0"/>
-
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="10000"/>
-
- <box w="14400"/>
-
- <penalty w="0" p="0"/>
-
- <glue w="-10000"/>
-
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="10000"/>
-
- <box w="14400"/>
-
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_space-before_space-after_7.xml b/test/layoutengine/testcases/block_space-before_space-after_7.xml
deleted file mode 100644
index 4387626f2..000000000
--- a/test/layoutengine/testcases/block_space-before_space-after_7.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks block-level space properties. These here are the
- <a href="http://wiki.apache.org/xmlgraphics-fop/SpaceResolution/Examples">examples 1 and 2 on the Wiki</a>.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="1in">
- <fo:region-body background-color="lightgray"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" id="ex8">
- <fo:flow flow-name="xsl-region-body">
- <fo:block space-before="10pt" padding-before="5pt" border-before-style="solid" border-before-width="2pt">
- first line
- <fo:block space-before="6pt">second line</fo:block>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker" id="ex8">
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="7000"/>
- <box w="14400"/>
-
- <penalty w="0" p="0"/>
-
- <glue w="6000"/>
- <box w="14400"/>
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_space-before_space-after_8.xml b/test/layoutengine/testcases/block_space-before_space-after_8.xml
deleted file mode 100644
index 6a960077f..000000000
--- a/test/layoutengine/testcases/block_space-before_space-after_8.xml
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- 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.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="1in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" id="ex8">
- <fo:flow flow-name="xsl-region-body">
- <fo:block space-after="10pt">
- first line
- </fo:block>
- <fo:block id="empty-block"/>
- <fo:block space-before="10pt">
- second line
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <true xpath="not(boolean(//flow/block[1]/@space-after))"/>
- <eval expected="10000" xpath="//flow/block[2]/@space-before"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_space-before_space-after_9.xml b/test/layoutengine/testcases/block_space-before_space-after_9.xml
deleted file mode 100644
index 4df459117..000000000
--- a/test/layoutengine/testcases/block_space-before_space-after_9.xml
+++ /dev/null
@@ -1,69 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- 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.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="1in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block space-before="11pt" space-after="11pt">
- <fo:block space-before="12pt" space-after="12pt">
- <fo:block space-before="13pt" space-after="13pt" border="solid 1pt">
- Apache FOP!
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker">
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="1000"/>
-
- <box w="14400"/>
-
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="1000"/>
-
- <box w="0"/>
- <skip>3</skip>
- </element-list>
- <true xpath="not(boolean(//flow/block[1]/@space-before))"/>
- <true xpath="not(boolean(//flow/block[1]/@space-after))"/>
- <true xpath="not(boolean(//flow/block[1]/block[1]/@space-before))"/>
- <true xpath="not(boolean(//flow/block[1]/block[1]/@space-after))"/>
- <true xpath="not(boolean(//flow/block[1]/block[1]/block[1]/@space-before))"/>
- <true xpath="not(boolean(//flow/block[1]/block[1]/block[1]/@space-after))"/>
- <eval expected="1000 1000 1000 1000" xpath="//flow/block[1]/block[1]/block[1]/@bap"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_space-before_space-after_9a.xml b/test/layoutengine/testcases/block_space-before_space-after_9a.xml
deleted file mode 100644
index 07f378368..000000000
--- a/test/layoutengine/testcases/block_space-before_space-after_9a.xml
+++ /dev/null
@@ -1,90 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- 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.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="1in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block space-before="11pt" space-after="11pt">
- <fo:block space-before="12pt" space-after="12pt">
- <fo:block space-before="13pt" space-after="13pt" border="solid 1pt">
- Apache FOP!
- <fo:block break-before="page"/>
- Apache FOP!!!
- </fo:block>
- </fo:block>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker" index="0">
- <box w="0"/> <!-- SpaceHandlingPosition -->
- <penalty w="0" p="INF"/>
- <glue w="1000"/>
-
- <box w="14400"/>
-
- <skip>3</skip> <!-- the last of the three holds a SpaceHandlingBreakPosition -->
- </element-list>
- <element-list category="breaker" index="1">
- <box w="0"/> <!-- SpaceHandlingPosition -->
-
- <box w="0"/> <!-- empty block used to cause the break-before -->
- <penalty w="0" p="0"/>
-
- <box w="14400"/>
-
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="1000"/>
- <box w="0"/> <!-- SpaceHandlingPosition -->
-
- <skip>3</skip>
- </element-list>
-
- <true xpath="not(boolean(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before))"/>
- <true xpath="not(boolean(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-after))"/>
- <true xpath="not(boolean(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@space-before))"/>
- <true xpath="not(boolean(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@space-after))"/>
- <true xpath="not(boolean(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@space-before))"/>
- <true xpath="not(boolean(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@space-after))"/>
- <eval expected="1000 1000 1000 0" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@bap"/>
-
- <true xpath="not(boolean(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before))"/>
- <true xpath="not(boolean(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-after))"/>
- <true xpath="not(boolean(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@space-before))"/>
- <true xpath="not(boolean(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@space-after))"/>
- <true xpath="not(boolean(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@space-before))"/>
- <true xpath="not(boolean(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@space-after))"/>
- <eval expected="1000 1000 0 1000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/@bap"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_start-indent_end-indent.xml b/test/layoutengine/testcases/block_start-indent_end-indent.xml
deleted file mode 100644
index db0e9fc11..000000000
--- a/test/layoutengine/testcases/block_start-indent_end-indent.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks very simple indent operations.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block start-indent="5pt">start-indent</fo:block>
- <fo:block end-indent="5pt" text-align="end">end-indent</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- padding-left -->
- <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-start"/>
- <eval expected="0 0 0 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bap"/>
- <eval expected="355000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipd"/>
- <eval expected="355000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpd"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpda"/>
- <!-- padding-right -->
- <eval expected="5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@space-end"/>
- <eval expected="0 0 0 0" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bap"/>
- <eval expected="355000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipd"/>
- <eval expected="355000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpd"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpda"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_text-align_1.xml b/test/layoutengine/testcases/block_text-align_1.xml
deleted file mode 100644
index 563c83711..000000000
--- a/test/layoutengine/testcases/block_text-align_1.xml
+++ /dev/null
@@ -1,123 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks text-align and text-align-last.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="simple" page-height="10in" page-width="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="simple">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>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.</fo:block>
- <fo:block text-align="start" background-color="yellow">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.</fo:block>
- <fo:block text-align="justify">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.</fo:block>
- <fo:block text-align="center" background-color="yellow">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.</fo:block>
- <fo:block text-align="end">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.</fo:block>
- <fo:block text-align="justify" text-align-last="center" background-color="yellow">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.</fo:block>
- <fo:block text-align="justify" text-align-last="end">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.</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- default settings for text-align -->
- <true xpath="not(boolean(//flow/block[1]/lineArea[1]/@start-indent))"/>
- <true xpath="not(boolean(//flow/block[1]/lineArea[2]/@start-indent))"/>
- <true xpath="not(boolean(//flow/block[1]/lineArea[3]/@start-indent))"/>
- <true xpath="//flow/block[1]/lineArea[1]/text/@ipd != //flow/block[1]/lineArea[2]/text/@ipd"/>
- <true xpath="//flow/block[1]/lineArea[2]/text/@ipd != //flow/block[1]/lineArea[3]/text/@ipd"/>
-
- <!-- text-align="start" -->
- <true xpath="not(boolean(//flow/block[2]/lineArea[1]/@start-indent))"/>
- <true xpath="not(boolean(//flow/block[2]/lineArea[2]/@start-indent))"/>
- <true xpath="not(boolean(//flow/block[2]/lineArea[3]/@start-indent))"/>
- <true xpath="//flow/block[2]/lineArea[1]/text/@ipd != //flow/block[2]/lineArea[2]/text/@ipd"/>
- <true xpath="//flow/block[2]/lineArea[2]/text/@ipd != //flow/block[2]/lineArea[3]/text/@ipd"/>
-
- <!-- block 1 and 2 must have the same result -->
- <true xpath="//flow/block[1]/lineArea[1]/text/@ipd = //flow/block[2]/lineArea[1]/text/@ipd"/>
- <true xpath="//flow/block[1]/lineArea[2]/text/@ipd = //flow/block[2]/lineArea[2]/text/@ipd"/>
- <true xpath="//flow/block[1]/lineArea[3]/text/@ipd = //flow/block[2]/lineArea[3]/text/@ipd"/>
-
- <!-- text-align="justify" -->
- <true xpath="not(boolean(//flow/block[3]/lineArea[1]/@start-indent))"/>
- <true xpath="not(boolean(//flow/block[3]/lineArea[2]/@start-indent))"/>
- <true xpath="not(boolean(//flow/block[3]/lineArea[3]/@start-indent))"/>
- <!-- Some tolerance seems to be necessary here. Why is that exactly? -->
- <true xpath="(360000 - //flow/block[3]/lineArea[1]/text/@ipd) &lt; 3000"/>
- <true xpath="(360000 - //flow/block[3]/lineArea[1]/text/@ipd) &gt; -3000"/>
- <true xpath="(360000 - //flow/block[3]/lineArea[2]/text/@ipd) &lt; 3000"/>
- <true xpath="(360000 - //flow/block[3]/lineArea[2]/text/@ipd) &gt; -3000"/>
- <true xpath="//flow/block[3]/lineArea[3]/text/@ipd &lt; 350000"/>
-
- <!-- text-align="center" -->
- <true xpath="//flow/block[4]/lineArea[1]/@start-indent &gt; 10000"/>
- <true xpath="//flow/block[4]/lineArea[2]/@start-indent &gt; 10000"/>
- <true xpath="//flow/block[4]/lineArea[3]/@start-indent &gt; 10000"/>
- <!-- Some tolerance seems to be necessary here. Why is that exactly? -->
- <true xpath="(360000 - //flow/block[4]/lineArea[1]/text/@ipd - (2 * //flow/block[4]/lineArea[1]/@start-indent)) &lt; 4000"/>
- <true xpath="(360000 - //flow/block[4]/lineArea[1]/text/@ipd - (2 * //flow/block[4]/lineArea[1]/@start-indent)) &gt; -4000"/>
- <true xpath="(360000 - //flow/block[4]/lineArea[2]/text/@ipd - (2 * //flow/block[4]/lineArea[2]/@start-indent)) &lt; 4000"/>
- <true xpath="(360000 - //flow/block[4]/lineArea[2]/text/@ipd - (2 * //flow/block[4]/lineArea[2]/@start-indent)) &gt; -4000"/>
- <true xpath="(360000 - //flow/block[4]/lineArea[3]/text/@ipd - (2 * //flow/block[4]/lineArea[3]/@start-indent)) &lt; 4000"/>
- <true xpath="(360000 - //flow/block[4]/lineArea[3]/text/@ipd - (2 * //flow/block[4]/lineArea[3]/@start-indent)) &gt; -4000"/>
-
- <!-- text-align="end" -->
- <true xpath="//flow/block[5]/lineArea[1]/@start-indent &gt; 10000"/>
- <true xpath="//flow/block[5]/lineArea[2]/@start-indent &gt; 10000"/>
- <true xpath="//flow/block[5]/lineArea[3]/@start-indent &gt; 10000"/>
- <!-- Some tolerance seems to be necessary here. Why is that exactly? -->
- <true xpath="(360000 - //flow/block[5]/lineArea[1]/text/@ipd - //flow/block[5]/lineArea[1]/@start-indent) &lt; 4000"/>
- <true xpath="(360000 - //flow/block[5]/lineArea[1]/text/@ipd - //flow/block[5]/lineArea[1]/@start-indent) &gt; -4000"/>
- <true xpath="(360000 - //flow/block[5]/lineArea[2]/text/@ipd - //flow/block[5]/lineArea[2]/@start-indent) &lt; 4000"/>
- <true xpath="(360000 - //flow/block[5]/lineArea[2]/text/@ipd - //flow/block[5]/lineArea[2]/@start-indent) &gt; -4000"/>
- <true xpath="(360000 - //flow/block[5]/lineArea[3]/text/@ipd - //flow/block[5]/lineArea[3]/@start-indent) &lt; 4000"/>
- <true xpath="(360000 - //flow/block[5]/lineArea[3]/text/@ipd - //flow/block[5]/lineArea[3]/@start-indent) &gt; -4000"/>
-
- <!-- text-align="justify" text-align-last="center" -->
- <true xpath="not(boolean(//flow/block[6]/lineArea[1]/@start-indent))"/>
- <true xpath="not(boolean(//flow/block[6]/lineArea[2]/@start-indent))"/>
- <true xpath="//flow/block[6]/lineArea[3]/@start-indent &gt; 10000"/>
- <true xpath="(360000 - //flow/block[6]/lineArea[1]/text/@ipd) &lt; 3000"/>
- <true xpath="(360000 - //flow/block[6]/lineArea[1]/text/@ipd) &gt; -3000"/>
- <true xpath="(360000 - //flow/block[6]/lineArea[2]/text/@ipd) &lt; 3000"/>
- <true xpath="(360000 - //flow/block[6]/lineArea[2]/text/@ipd) &gt; -3000"/>
- <true xpath="(360000 - //flow/block[6]/lineArea[3]/text/@ipd - (2 * //flow/block[6]/lineArea[3]/@start-indent)) &lt; 4000"/>
- <true xpath="(360000 - //flow/block[6]/lineArea[3]/text/@ipd - (2 * //flow/block[6]/lineArea[3]/@start-indent)) &gt; -4000"/>
-
- <!-- text-align="justify" text-align-last="end" -->
- <true xpath="not(boolean(//flow/block[7]/lineArea[1]/@start-indent))"/>
- <true xpath="not(boolean(//flow/block[7]/lineArea[2]/@start-indent))"/>
- <true xpath="//flow/block[7]/lineArea[3]/@start-indent &gt; 10000"/>
- <true xpath="(360000 - //flow/block[7]/lineArea[1]/text/@ipd) &lt; 3000"/>
- <true xpath="(360000 - //flow/block[7]/lineArea[1]/text/@ipd) &gt; -3000"/>
- <true xpath="(360000 - //flow/block[7]/lineArea[2]/text/@ipd) &lt; 3000"/>
- <true xpath="(360000 - //flow/block[7]/lineArea[2]/text/@ipd) &gt; -3000"/>
- <true xpath="(360000 - //flow/block[7]/lineArea[3]/text/@ipd - //flow/block[7]/lineArea[3]/@start-indent) &lt; 4000"/>
- <true xpath="(360000 - //flow/block[7]/lineArea[3]/text/@ipd - //flow/block[7]/lineArea[3]/@start-indent) &gt; -4000"/>
-
- <!-- TODO Check element list -->
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_text-align_2.xml b/test/layoutengine/testcases/block_text-align_2.xml
deleted file mode 100644
index e6fdd55cd..000000000
--- a/test/layoutengine/testcases/block_text-align_2.xml
+++ /dev/null
@@ -1,51 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks text-align and text-align-last in special conditions.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="simple" page-height="10in" page-width="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="simple" id="bla1">
- <fo:flow flow-name="xsl-region-body">
- <fo:block text-align-last="justify">Lorem ipsum dolor sit amet, consectetuer adipiscing elit.</fo:block>
- <!-- The next block is pretty much like the previous but there is a linefeed that is converted to a space which is then
- removed by LineLM.removeElementsForTrailingSpaces(). There used to be a ClassCastException here. -->
- <fo:block text-align-last="justify" background-color="yellow">Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
- </fo:block>
- <fo:block text-align="justify">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- all three blocks must be identical -->
- <true xpath="not(boolean(//flow/block[1]/lineArea[1]/@start-indent))"/>
- <true xpath="not(boolean(//flow/block[2]/lineArea[1]/@start-indent))"/>
- <true xpath="not(boolean(//flow/block[3]/lineArea[1]/@start-indent))"/>
- <true xpath="//flow/block[1]/lineArea[1]/text/@ipd = //flow/block[2]/lineArea[1]/text/@ipd"/>
- <true xpath="//flow/block[1]/lineArea[1]/text/@ipd &gt; //flow/block[3]/lineArea[1]/text/@ipd"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_text-indent.xml b/test/layoutengine/testcases/block_text-indent.xml
deleted file mode 100644
index 1f1eaceb1..000000000
--- a/test/layoutengine/testcases/block_text-indent.xml
+++ /dev/null
@@ -1,95 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks the text-indent property.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block text-indent="20pt">
-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.
- </fo:block>
- <fo:block text-indent="20pt" text-align="justify">
-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.
- </fo:block>
- <fo:block text-indent="20pt" text-align="justify">
-This is just for testing purpose and this line will be indented.
-
- <fo:block>This is the nested block.</fo:block>
-
-The text following the nested block should be indented as well. The text following
-the nested block should be indented as well.
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="20000" xpath="//flow/block[1]/lineArea[1]/@start-indent"/>
- <true xpath="boolean(not(//flow/block[1]/lineArea[2]/@start-indent))"/>
- <eval expected="11" xpath="count(//flow/block[1]/lineArea[1]/text/word)"/>
- <eval expected="10" xpath="count(//flow/block[1]/lineArea[2]/text/word)"/>
- <eval expected="12" xpath="count(//flow/block[1]/lineArea[3]/text/word)"/>
- <eval expected="12" xpath="count(//flow/block[1]/lineArea[4]/text/word)"/>
- <eval expected="14" xpath="count(//flow/block[1]/lineArea[5]/text/word)"/>
- <eval expected="14" xpath="count(//flow/block[1]/lineArea[6]/text/word)"/>
- <eval expected="14" xpath="count(//flow/block[1]/lineArea[7]/text/word)"/>
- <eval expected="15" xpath="count(//flow/block[1]/lineArea[8]/text/word)"/>
- <eval expected="10" xpath="count(//flow/block[1]/lineArea[9]/text/word)"/>
- <true xpath="boolean(not(//flow/block[1]/lineArea[9]/@start-indent))"/>
-
- <eval expected="20000" xpath="//flow/block[2]/lineArea[1]/@start-indent"/>
- <true xpath="boolean(not(//flow/block[2]/lineArea[2]/@start-indent))"/>
- <eval expected="11" xpath="count(//flow/block[2]/lineArea[1]/text/word)"/>
- <eval expected="11" xpath="count(//flow/block[2]/lineArea[2]/text/word)"/>
- <eval expected="12" xpath="count(//flow/block[2]/lineArea[3]/text/word)"/>
- <eval expected="14" xpath="count(//flow/block[2]/lineArea[4]/text/word)"/>
- <eval expected="14" xpath="count(//flow/block[2]/lineArea[5]/text/word)"/>
- <eval expected="14" xpath="count(//flow/block[2]/lineArea[6]/text/word)"/>
- <eval expected="14" xpath="count(//flow/block[2]/lineArea[7]/text/word)"/>
- <eval expected="15" xpath="count(//flow/block[2]/lineArea[8]/text/word)"/>
- <eval expected="7" xpath="count(//flow/block[2]/lineArea[9]/text/word)"/>
- <true xpath="boolean(not(//flow/block[2]/lineArea[9]/@start-indent))"/>
-
- <eval expected="20000" xpath="//flow/block[3]/child::*[1]/@start-indent"/>
- <eval expected="20000" xpath="//flow/block[3]/child::*[2]/lineArea[1]/@start-indent"/>
- <eval expected="20000" xpath="//flow/block[3]/child::*[3]/@start-indent"/>
- <true xpath="boolean(not(//flow/block[3]/child::*[4]/@start-indent))"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_white-space-collapse_1.xml b/test/layoutengine/testcases/block_white-space-collapse_1.xml
deleted file mode 100755
index a935401ad..000000000
--- a/test/layoutengine/testcases/block_white-space-collapse_1.xml
+++ /dev/null
@@ -1,151 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks basic white space handling for white-space-collapse="true".
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt">
- spaces
- before
- and
- after
- each
- word <fo:character character="&#xa;" />
-<fo:character character=" " /><fo:character character=" " /> and
- linefeeds<fo:character character=" " /><fo:character character=" " />
- everywhere <fo:character character=" " />
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt">
- <fo:block background-color="orange">
- nested block level
- </fo:block>
- <fo:block background-color="red">
- nested block level
- </fo:block>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt">
- <fo:inline background-color="orange">
- inline level
- </fo:inline>
- <fo:inline background-color="red">
- inline level
- </fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt">
- block level
- <fo:inline background-color="orange">
- inline level
- </fo:inline>
- block
- <fo:inline background-color="red">
- inline level
- </fo:inline>
- block level
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt">
- <fo:inline background-color="orange">
- inline level
- <fo:inline background-color="red">
- nested inline level
- </fo:inline>
- </fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt">
- <fo:inline background-color="orange">
- <fo:inline background-color="red">
- nested inline level
- </fo:inline>
- inline level
- </fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt">
- block level
- <fo:inline background-color="orange">
- <fo:inline background-color="red">
- nested inline level
- </fo:inline>
- inline level
- </fo:inline>
- block level
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="6" xpath="count(//flow/block[1]/lineArea[1]/text[1]/word)"/>
- <eval expected="6" xpath="count(//flow/block[1]/lineArea[1]/text[1]/space)"/>
- <eval expected="2" xpath="count(//flow/block[1]/lineArea[1]/text[2]/word)"/>
- <eval expected="1" xpath="count(//flow/block[1]/lineArea[1]/text[2]/space)"/>
- <eval expected="1" xpath="count(//flow/block[1]/lineArea[1]/text[3]/word)"/>
- <eval expected="1" xpath="count(//flow/block[1]/lineArea[1]/char)"/>
-
- <eval expected="3" xpath="count(//flow/block[2]/block[1]/lineArea[1]/text/word)"/>
- <eval expected="2" xpath="count(//flow/block[2]/block[1]/lineArea[1]/text/space)"/>
- <eval expected="3" xpath="count(//flow/block[2]/block[2]/lineArea[1]/text/word)"/>
- <eval expected="2" xpath="count(//flow/block[2]/block[2]/lineArea[1]/text/space)"/>
-
- <eval expected="2" xpath="count(//flow/block[3]/lineArea[1]/inlineparent[1]/text/word)"/>
- <eval expected="2" xpath="count(//flow/block[3]/lineArea[1]/inlineparent[1]/text/space)"/>
- <eval expected="1" xpath="count(//flow/block[3]/lineArea[1]/text[1]/space)"/>
- <eval expected="2" xpath="count(//flow/block[3]/lineArea[1]/inlineparent[2]/text/word)"/>
- <eval expected="2" xpath="count(//flow/block[3]/lineArea[1]/inlineparent[2]/text/space)"/>
-
- <eval expected="2" xpath="count(//flow/block[4]/lineArea[1]/text[1]/word)"/>
- <eval expected="2" xpath="count(//flow/block[4]/lineArea[1]/text[1]/space)"/>
- <eval expected="2" xpath="count(//flow/block[4]/lineArea[1]/inlineparent[1]/text/word)"/>
- <eval expected="3" xpath="count(//flow/block[4]/lineArea[1]/inlineparent[1]/text/space)"/>
- <eval expected="1" xpath="count(//flow/block[4]/lineArea[1]/text[2]/word)"/>
- <eval expected="2" xpath="count(//flow/block[4]/lineArea[1]/text[2]/space)"/>
- <eval expected="2" xpath="count(//flow/block[4]/lineArea[1]/inlineparent[2]/text/word)"/>
- <eval expected="3" xpath="count(//flow/block[4]/lineArea[1]/inlineparent[2]/text/space)"/>
- <eval expected="2" xpath="count(//flow/block[4]/lineArea[1]/text[3]/word)"/>
- <eval expected="2" xpath="count(//flow/block[4]/lineArea[1]/text[3]/space)"/>
-
- <eval expected="2" xpath="count(//flow/block[5]/lineArea[1]/inlineparent[1]/text/word)"/>
- <eval expected="2" xpath="count(//flow/block[5]/lineArea[1]/inlineparent[1]/text/space)"/>
- <eval expected="3" xpath="count(//flow/block[5]/lineArea[1]/inlineparent[1]/inlineparent[1]/text/word)"/>
- <eval expected="3" xpath="count(//flow/block[5]/lineArea[1]/inlineparent[1]/inlineparent[1]/text/space)"/>
-
- <eval expected="3" xpath="count(//flow/block[6]/lineArea[1]/inlineparent[1]/inlineparent[1]/text/word)"/>
- <eval expected="3" xpath="count(//flow/block[6]/lineArea[1]/inlineparent[1]/inlineparent[1]/text/space)"/>
- <eval expected="2" xpath="count(//flow/block[6]/lineArea[1]/inlineparent[1]/text/word)"/>
- <eval expected="2" xpath="count(//flow/block[6]/lineArea[1]/inlineparent[1]/text/space)"/>
-
- <eval expected="2" xpath="count(//flow/block[7]/lineArea[1]/text[1]/word)"/>
- <eval expected="2" xpath="count(//flow/block[7]/lineArea[1]/text[1]/space)"/>
- <eval expected="1" xpath="count(//flow/block[7]/lineArea[1]/inlineparent[1]/text[1]/space)"/>
- <eval expected="3" xpath="count(//flow/block[7]/lineArea[1]/inlineparent[1]/inlineparent[1]/text/word)"/>
- <eval expected="4" xpath="count(//flow/block[7]/lineArea[1]/inlineparent[1]/inlineparent[1]/text/space)"/>
- <eval expected="2" xpath="count(//flow/block[7]/lineArea[1]/inlineparent[1]/text[2]/word)"/>
- <eval expected="3" xpath="count(//flow/block[7]/lineArea[1]/inlineparent[1]/text[2]/space)"/>
- <eval expected="2" xpath="count(//flow/block[7]/lineArea[1]/text[2]/word)"/>
- <eval expected="2" xpath="count(//flow/block[7]/lineArea[1]/text[2]/space)"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_white-space-collapse_2.xml b/test/layoutengine/testcases/block_white-space-collapse_2.xml
deleted file mode 100755
index 4f72ba7b9..000000000
--- a/test/layoutengine/testcases/block_white-space-collapse_2.xml
+++ /dev/null
@@ -1,111 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- 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.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="false">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt">
- spaces
- before
- and
- after
- each
- word <fo:character character="&#xa;" />
-<fo:character character=" " /><fo:character character=" " /> and
- linefeeds<fo:character character=" " /><fo:character character=" " />
- everywhere<fo:character character=" " />
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt">
- <fo:block background-color="orange">
- nested block level
- </fo:block>
- <fo:block background-color="red">
- nested block level
- </fo:block>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt">
- <fo:inline background-color="orange">
- inline level
- </fo:inline>
- <fo:inline background-color="red">
- inline level
- </fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt">
- block level
- <fo:inline background-color="orange">
- inline level
- </fo:inline>
- block
- <fo:inline background-color="red">
- inline level
- </fo:inline>
- block level
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt">
- <fo:inline background-color="orange">
- inline level
- <fo:inline background-color="red">
- nested inline level
- </fo:inline>
- </fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt">
- <fo:inline background-color="orange">
- <fo:inline background-color="red">
- nested inline level
- </fo:inline>
- inline level
- </fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt">
- block level
- <fo:inline background-color="orange">
- <fo:inline background-color="red">
- nested inline level
- </fo:inline>
- inline level
- </fo:inline>
- block level
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- The tests are currently incomplete but enough to fail -->
- <eval expected="8" xpath="count(//flow/block[1]/lineArea[1]/text/word)"/>
- <eval expected="35" xpath="count(//flow/block[1]/lineArea[1]/text/space)"/>
- <eval expected="1" xpath="count(//flow/block[1]/lineArea[2]/text/word)"/>
- <eval expected="0" xpath="count(//flow/block[1]/lineArea[2]/text/space)"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_white-space-treatment_1.xml b/test/layoutengine/testcases/block_white-space-treatment_1.xml
deleted file mode 100755
index a8d48107f..000000000
--- a/test/layoutengine/testcases/block_white-space-treatment_1.xml
+++ /dev/null
@@ -1,85 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- 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.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block white-space-treatment="ignore-if-surrounding-linefeed" background-color="silver" margin="1pt 0pt 1pt 0pt">
- ignore-if-surrounding-linefeed
- all
- spaces
-</fo:block>
- <fo:block white-space-treatment="ignore" background-color="silver" margin="1pt 0pt 1pt 0pt">
- ignore
- all
- spaces
-</fo:block>
- <fo:block white-space-treatment="preserve" background-color="silver" margin="1pt 0pt 1pt 0pt">
- preserve
- all
- spaces
-</fo:block>
- <fo:block white-space-treatment="ignore-if-before-linefeed" background-color="silver" margin="1pt 0pt 1pt 0pt">
- ignore-if-before-linefeed
- all
- spaces
-</fo:block>
- <fo:block white-space-treatment="ignore-if-after-linefeed" background-color="silver" margin="1pt 0pt 1pt 0pt">
- ignore-if-after-linefeed
- all
- spaces
-</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- The tests are currently incomplete but enough to fail -->
- <eval expected="3" xpath="count(//flow/block[1]/lineArea[1]/text/word)"/>
- <eval expected="2" xpath="count(//flow/block[1]/lineArea[1]/text/space)"/>
-
- <eval expected="1" xpath="count(//flow/block[2]/lineArea[1]/text/word)"/>
- <eval expected="0" xpath="count(//flow/block[2]/lineArea[1]/text/space)"/>
-
- <eval expected="0" xpath="count(//flow/block[3]/lineArea[1]/text)"/>
- <eval expected="1" xpath="count(//flow/block[3]/lineArea[2]/text/word)"/>
- <eval expected="0" xpath="count(//flow/block[3]/lineArea[2]/text/space)"/>
- <eval expected="1" xpath="count(//flow/block[3]/lineArea[3]/text/word)"/>
- <eval expected="0" xpath="count(//flow/block[3]/lineArea[3]/text/space)"/>
- <eval expected="1" xpath="count(//flow/block[3]/lineArea[4]/text/word)"/>
- <eval expected="0" xpath="count(//flow/block[3]/lineArea[4]/text/space)"/>
-
- <eval expected="1" xpath="count(//flow/block[4]/lineArea[1]/text/word)"/>
- <eval expected="0" xpath="count(//flow/block[4]/lineArea[1]/text/space)"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_white-space-treatment_2.xml b/test/layoutengine/testcases/block_white-space-treatment_2.xml
deleted file mode 100755
index fbd993d5b..000000000
--- a/test/layoutengine/testcases/block_white-space-treatment_2.xml
+++ /dev/null
@@ -1,85 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- 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.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="false">
- <fo:flow flow-name="xsl-region-body">
- <fo:block white-space-treatment="ignore-if-surrounding-linefeed" background-color="silver" margin="1pt 0pt 1pt 0pt">
- ignore-if-surrounding-linefeed
- all
- spaces
-</fo:block>
- <fo:block white-space-treatment="ignore" background-color="silver" margin="1pt 0pt 1pt 0pt">
- ignore
- all
- spaces
-</fo:block>
- <fo:block white-space-treatment="preserve" background-color="silver" margin="1pt 0pt 1pt 0pt">
- preserve
- all
- spaces
-</fo:block>
- <fo:block white-space-treatment="ignore-if-before-linefeed" background-color="silver" margin="1pt 0pt 1pt 0pt">
- ignore-if-before-linefeed
- all
- spaces
-</fo:block>
- <fo:block white-space-treatment="ignore-if-after-linefeed" background-color="silver" margin="1pt 0pt 1pt 0pt">
- ignore-if-after-linefeed
- all
- spaces
-</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- The tests are currently incomplete but enough to fail -->
- <eval expected="3" xpath="count(//flow/block[1]/lineArea[1]/text/word)"/>
- <eval expected="2" xpath="count(//flow/block[1]/lineArea[1]/text/space)"/>
-
- <eval expected="1" xpath="count(//flow/block[2]/lineArea[1]/text/word)"/>
- <eval expected="0" xpath="count(//flow/block[2]/lineArea[1]/text/space)"/>
-
- <eval expected="0" xpath="count(//flow/block[3]/lineArea[1]/text)"/>
- <eval expected="1" xpath="count(//flow/block[3]/lineArea[2]/text/word)"/>
- <eval expected="0" xpath="count(//flow/block[3]/lineArea[2]/text/space)"/>
- <eval expected="1" xpath="count(//flow/block[3]/lineArea[3]/text/word)"/>
- <eval expected="0" xpath="count(//flow/block[3]/lineArea[3]/text/space)"/>
- <eval expected="1" xpath="count(//flow/block[3]/lineArea[4]/text/word)"/>
- <eval expected="0" xpath="count(//flow/block[3]/lineArea[4]/text/space)"/>
-
- <eval expected="1" xpath="count(//flow/block[4]/lineArea[1]/text/word)"/>
- <eval expected="0" xpath="count(//flow/block[4]/lineArea[1]/text/space)"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_white-space_1.xml b/test/layoutengine/testcases/block_white-space_1.xml
deleted file mode 100644
index c249bcea3..000000000
--- a/test/layoutengine/testcases/block_white-space_1.xml
+++ /dev/null
@@ -1,68 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks normal line layout.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="simple" page-height="5in" page-width="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="simple">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="orange">word1 word2 word3</fo:block>
- <fo:block background-color="yellow">word1
- word2 word3
-</fo:block>
- <fo:block background-color="orange"
- white-space-collapse="false" white-space-treatment="preserve" linefeed-treatment="preserve" wrap-option="no-wrap">line1
-line2
-line3</fo:block>
- <fo:block background-color="yellow"
- white-space-collapse="false" white-space-treatment="preserve" linefeed-treatment="preserve" wrap-option="no-wrap">
-line1
-line2
-
-line3
-</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="word1 word2 word3" xpath="//flow/block[1]/lineArea[1]"/>
- <eval expected="word1 word2 word3" xpath="//flow/block[2]/lineArea[1]"/>
-
- <eval expected="line1" xpath="//flow/block[3]/lineArea[1]"/>
- <eval expected="line2" xpath="//flow/block[3]/lineArea[2]"/>
- <eval expected="line3" xpath="//flow/block[3]/lineArea[3]"/>
-
- <true xpath="boolean(//flow/block[4]/lineArea[1])"/>
- <true xpath="not(boolean(//flow/block[4]/lineArea[1]/text))"/>
- <eval expected="line1" xpath="//flow/block[4]/lineArea[2]"/>
- <eval expected="line2" xpath="//flow/block[4]/lineArea[3]"/>
- <true xpath="boolean(//flow/block[4]/lineArea[4])"/>
- <true xpath="not(boolean(//flow/block[4]/lineArea[4]/text))"/>
- <eval expected="line3" xpath="//flow/block[4]/lineArea[5]"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_word-spacing.xml b/test/layoutengine/testcases/block_word-spacing.xml
deleted file mode 100644
index d8dda0cb7..000000000
--- a/test/layoutengine/testcases/block_word-spacing.xml
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks block level word-spacing.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="6in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>Next block has no word-spacing property:</fo:block>
- <fo:block>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".</fo:block>
- <fo:block>Next block has word-spacing="normal":</fo:block>
- <fo:block 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".</fo:block>
- <fo:block>Next block has word-spacing="0pt":</fo:block>
- <fo:block 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".</fo:block>
- <fo:block>Next block has word-spacing="-2pt":</fo:block>
- <fo:block 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".</fo:block>
- <fo:block>Next block has word-spacing.optimum="6pt" word-spacing.minimum="3pt" word-spacing.maximum="12pt":</fo:block>
- <fo:block 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".</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_word-spacing_text-align_justify.xml b/test/layoutengine/testcases/block_word-spacing_text-align_justify.xml
deleted file mode 100644
index 739d927a6..000000000
--- a/test/layoutengine/testcases/block_word-spacing_text-align_justify.xml
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks block level word-spacing on justified blocks.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="6in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>Next block has no word-spacing property:</fo:block>
- <fo:block text-align="justify">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".</fo:block>
- <fo:block>Next block has word-spacing="normal":</fo:block>
- <fo:block text-align="justify" 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".</fo:block>
- <fo:block>Next block has word-spacing="0pt":</fo:block>
- <fo:block text-align="justify" 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".</fo:block>
- <fo:block>Next block has word-spacing="-2pt":</fo:block>
- <fo:block text-align="justify" 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".</fo:block>
- <fo:block>Next block has word-spacing.optimum="6pt" word-spacing.minimum="3pt" word-spacing.maximum="12pt":</fo:block>
- <fo:block text-align="justify" 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".</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/block_wrap-option.xml b/test/layoutengine/testcases/block_wrap-option.xml
deleted file mode 100644
index 40e64372f..000000000
--- a/test/layoutengine/testcases/block_wrap-option.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks the wrap-option property on fo:block.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="simple" page-height="6cm" page-width="21cm">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="simple">
- <fo:flow flow-name="xsl-region-body">
- <fo:block-container width="5cm" background-color="lightgray">
- <fo:block background-color="yellow">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas et ligula. Suspendisse faucibus. Donec porta risus vitae turpis.</fo:block>
- <fo:block background-color="orange" wrap-option="no-wrap">Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas et ligula. Suspendisse faucibus. Donec porta risus vitae turpis.</fo:block>
- </fo:block-container>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker">
- <box w="14400"/> <!-- first block, first line -->
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <box w="14400"/> <!-- first block, last line -->
- <penalty w="0" p="0"/>
- <box w="14400"/> <!-- second block, same content, not broken -->
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/character_background-color.xml b/test/layoutengine/testcases/character_background-color.xml
deleted file mode 100755
index a95d2cf50..000000000
--- a/test/layoutengine/testcases/character_background-color.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks fo:character with background-color property.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="5pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body" font-size="10pt">
- <fo:block background-color="silver">
- To <fo:character background-color="yellow" character="e" />mphasize a character highlight it.
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="color=#ffff00" xpath="//flow/block[1]/lineArea/char/@background"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/character_background-image.xml b/test/layoutengine/testcases/character_background-image.xml
deleted file mode 100644
index 8dc1f4361..000000000
--- a/test/layoutengine/testcases/character_background-image.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks fo:character with background-image property.
- </p>
- </info>
- <variables>
- <img>../../resources/images/bgimg300dpi.jpg</img>
- </variables>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block font-size="24pt">
- <fo:character font-size="96pt" character="A" background-color="yellow" background-repeat="no-repeat" background-position-horizontal="center" background-position-vertical="center" background-image="##img" />
- <fo:character font-size="48pt" character="g" background-color="yellow" background-repeat="no-repeat" background-position-horizontal="center" background-position-vertical="center" background-image="##img" />
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="color=#ffff00,url=../../resources/images/bgimg300dpi.jpg,repeat=no-repeat,horiz=8976,vertical=21360" xpath="//flow/block[1]/lineArea/char[1]/@background"/>
- <eval expected="color=#ffff00,url=../../resources/images/bgimg300dpi.jpg,repeat=no-repeat,horiz=-9696,vertical=-840" xpath="//flow/block[1]/lineArea/char[2]/@background"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/character_border_padding.xml b/test/layoutengine/testcases/character_border_padding.xml
deleted file mode 100755
index 02c72b118..000000000
--- a/test/layoutengine/testcases/character_border_padding.xml
+++ /dev/null
@@ -1,98 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks fo:character with border and padding properties.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="5pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true" language="en">
- <fo:flow flow-name="xsl-region-body" font-size="10pt">
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt">
- To <fo:character border="solid 1pt red" background-color="yellow" character="e"/>mphasize a letter we give it a 1pt border.
- </fo:block>
- <fo:block background-color="silver" margin="10pt 0pt 10pt 0pt">
- To really <fo:character border="solid 5pt red" padding="5pt" background-color="yellow" character="e"/>mphasize a letter we give it a 5pt border and padding.
- </fo:block>
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt">
- To <fo:character border-style="solid" border-width="1pt 2pt 3pt 4pt" border-color="red" padding="1pt 2pt 3pt 4pt" background-color="yellow" character="c"/>onfuse give it unsymmetric borders and padding.
- </fo:block>
- <fo:block background-color="silver" margin="10pt 0pt 10pt 0pt" font-size="20pt">
- Big <fo:character border="solid 5pt red" padding="5pt" background-color="yellow" font-size="8pt" character="b"/>order but a smaller font.
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="7180" xpath="//flow/block[1]/lineArea/char/@baseline"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea/char/@offset"/>
- <eval expected="5560" xpath="//flow/block[1]/lineArea/char/@ipd"/>
- <eval expected="7560" xpath="//flow/block[1]/lineArea/char/@ipda"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/char/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/char/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/char/@border-end"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/char/@border-start"/>
-
- <eval expected="7180" xpath="//flow/block[2]/lineArea/char/@baseline"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea/char/@offset"/>
- <eval expected="5560" xpath="//flow/block[2]/lineArea/char/@ipd"/>
- <eval expected="25560" xpath="//flow/block[2]/lineArea/char/@ipda"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/char/@border-after"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/char/@border-before"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/char/@border-end"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/char/@border-start"/>
- <eval expected="5000" xpath="//flow/block[2]/lineArea/char/@padding-after"/>
- <eval expected="5000" xpath="//flow/block[2]/lineArea/char/@padding-before"/>
- <eval expected="5000" xpath="//flow/block[2]/lineArea/char/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[2]/lineArea/char/@padding-start"/>
-
- <eval expected="7180" xpath="//flow/block[3]/lineArea/char/@baseline"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea/char/@offset"/>
- <eval expected="5000" xpath="//flow/block[3]/lineArea/char/@ipd"/>
- <eval expected="17000" xpath="//flow/block[3]/lineArea/char/@ipda"/>
- <eval expected="(solid,#ff0000,3000)" xpath="//flow/block[3]/lineArea/char/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea/char/@border-before"/>
- <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[3]/lineArea/char/@border-end"/>
- <eval expected="(solid,#ff0000,4000)" xpath="//flow/block[3]/lineArea/char/@border-start"/>
- <eval expected="3000" xpath="//flow/block[3]/lineArea/char/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[3]/lineArea/char/@padding-before"/>
- <eval expected="2000" xpath="//flow/block[3]/lineArea/char/@padding-end"/>
- <eval expected="4000" xpath="//flow/block[3]/lineArea/char/@padding-start"/>
-
- <eval expected="5744" xpath="//flow/block[4]/lineArea/char/@baseline"/>
- <eval expected="8616" xpath="//flow/block[4]/lineArea/char/@offset"/>
- <eval expected="4448" xpath="//flow/block[4]/lineArea/char/@ipd"/>
- <eval expected="24448" xpath="//flow/block[4]/lineArea/char/@ipda"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/char/@border-after"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/char/@border-before"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/char/@border-end"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/char/@border-start"/>
- <eval expected="5000" xpath="//flow/block[4]/lineArea/char/@padding-after"/>
- <eval expected="5000" xpath="//flow/block[4]/lineArea/char/@padding-before"/>
- <eval expected="5000" xpath="//flow/block[4]/lineArea/char/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[4]/lineArea/char/@padding-start"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/character_vertical-align.xml b/test/layoutengine/testcases/character_vertical-align.xml
deleted file mode 100755
index 125d56fb0..000000000
--- a/test/layoutengine/testcases/character_vertical-align.xml
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks fo:character with vertical-align property.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
- vertical-align<fo:character font-size="10pt" background-color="yellow" character="=" />not specified
- </fo:block>
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
- vertical-align<fo:character font-size="10pt" vertical-align="baseline" background-color="yellow" character="=" />baseline
- </fo:block>
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
- vertical-align<fo:character font-size="10pt" vertical-align="top" background-color="yellow" character="=" />top
- </fo:block>
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
- vertical-align<fo:character font-size="10pt" vertical-align="middle" background-color="yellow" character="=" />middle
- </fo:block>
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
- vertical-align<fo:character font-size="10pt" vertical-align="bottom" background-color="yellow" character="=" />bottom
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="7180" xpath="//flow/block[1]/lineArea/char/@offset"/>
- <eval expected="7180" xpath="//flow/block[2]/lineArea/char/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea/char/@offset"/>
- <eval expected="4565" xpath="//flow/block[4]/lineArea/char/@offset"/>
- <eval expected="9250" xpath="//flow/block[5]/lineArea/char/@offset"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/external-graphic_basic.xml b/test/layoutengine/testcases/external-graphic_basic.xml
deleted file mode 100644
index a4ea4a45a..000000000
--- a/test/layoutengine/testcases/external-graphic_basic.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks external-graphics.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>plain external-graphic</fo:block>
- <fo:block background-color="orange">
- <fo:external-graphic src="../../resources/images/bgimg300dpi.jpg"/>EOG
- </fo:block>
- <fo:block>EOF</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipd"/>
- <eval expected="51864" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpd"/>
- <eval expected="46080" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea/viewport/@ipd"/>
- <eval expected="46080" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea/viewport/@ipda"/>
- <eval expected="46080" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea/viewport/@bpd"/>
- <eval expected="46080" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea/viewport/@bpda"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/external-graphic_bmp.xml b/test/layoutengine/testcases/external-graphic_bmp.xml
deleted file mode 100644
index 56c3ae62b..000000000
--- a/test/layoutengine/testcases/external-graphic_bmp.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks external-graphics.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>BMP external-graphic 300dpi</fo:block>
- <fo:block>
- <fo:external-graphic src="../../resources/images/bgimg300dpi.bmp"/>EOG
- </fo:block>
- <fo:block>BMP external-graphic 72dpi</fo:block>
- <fo:block>
- <fo:external-graphic src="../../resources/images/bgimg72dpi.bmp"/>EOG
- </fo:block>
- <fo:block>EOF</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="46091" xpath="//flow/block[2]/lineArea/viewport/@ipd"/>
- <eval expected="46091" xpath="//flow/block[2]/lineArea/viewport/@ipda"/>
- <eval expected="46091" xpath="//flow/block[2]/lineArea/viewport/@bpd"/>
- <eval expected="46091" xpath="//flow/block[2]/lineArea/viewport/@bpda"/>
- <eval expected="192043" xpath="//flow/block[4]/lineArea/viewport/@ipd"/>
- <eval expected="192043" xpath="//flow/block[4]/lineArea/viewport/@ipda"/>
- <eval expected="192043" xpath="//flow/block[4]/lineArea/viewport/@bpd"/>
- <eval expected="192043" xpath="//flow/block[4]/lineArea/viewport/@bpda"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/external-graphic_border_padding.xml b/test/layoutengine/testcases/external-graphic_border_padding.xml
deleted file mode 100644
index a05c367b9..000000000
--- a/test/layoutengine/testcases/external-graphic_border_padding.xml
+++ /dev/null
@@ -1,81 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks borders and the like on external-graphics.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="orange">
- <fo:external-graphic src="../../resources/images/bgimg300dpi.jpg" border-style="solid" border-width="5pt 10pt 20pt 15pt" padding="15pt 20pt 10pt 5pt" background-color="white"/> Normal font
- </fo:block>
- <fo:block background-color="yellow" font-size="140pt">
- <fo:external-graphic src="../../resources/images/bgimg300dpi.jpg" border-style="solid" border-width="5pt 10pt 20pt 15pt" padding="15pt 20pt 10pt 5pt" background-color="white"/> FO
- </fo:block>
- <fo:block font-size="9pt">
- 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.
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- first e-g -->
- <eval expected="46080" xpath="//flow/block[1]/lineArea/viewport/@ipd"/>
- <eval expected="46080" xpath="//flow/block[1]/lineArea/viewport/@bpd"/>
- <eval expected="96080" xpath="//flow/block[1]/lineArea/viewport/@bpda"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea/viewport/@offset"/>
- <eval expected="20000 30000 20000 30000" xpath="//flow/block[1]/lineArea/viewport/@bap"/>
- <eval expected="color=#ffffff" xpath="//flow/block[1]/lineArea/viewport/@background"/>
- <eval expected="(solid,#000000,5000)" xpath="//flow/block[1]/lineArea/viewport/@border-before"/>
- <eval expected="(solid,#000000,20000)" xpath="//flow/block[1]/lineArea/viewport/@border-after"/>
- <eval expected="(solid,#000000,15000)" xpath="//flow/block[1]/lineArea/viewport/@border-start"/>
- <eval expected="(solid,#000000,10000)" xpath="//flow/block[1]/lineArea/viewport/@border-end"/>
- <eval expected="15000" xpath="//flow/block[1]/lineArea/viewport/@padding-before"/>
- <eval expected="10000" xpath="//flow/block[1]/lineArea/viewport/@padding-after"/>
- <eval expected="5000" xpath="//flow/block[1]/lineArea/viewport/@padding-start"/>
- <eval expected="20000" xpath="//flow/block[1]/lineArea/viewport/@padding-end"/>
- <eval expected="20000 20000 46080 46080" xpath="//flow/block[1]/lineArea/viewport/image/@pos"/>
- <!-- second e-g -->
- <eval expected="46080" xpath="//flow/block[2]/lineArea/viewport/@ipd"/>
- <eval expected="46080" xpath="//flow/block[2]/lineArea/viewport/@bpd"/>
- <eval expected="96080" xpath="//flow/block[2]/lineArea/viewport/@bpda"/>
- <eval expected="4440" xpath="//flow/block[2]/lineArea/viewport/@offset"/>
- <eval expected="20000 30000 20000 30000" xpath="//flow/block[2]/lineArea/viewport/@bap"/>
- <eval expected="color=#ffffff" xpath="//flow/block[2]/lineArea/viewport/@background"/>
- <eval expected="(solid,#000000,5000)" xpath="//flow/block[2]/lineArea/viewport/@border-before"/>
- <eval expected="(solid,#000000,20000)" xpath="//flow/block[2]/lineArea/viewport/@border-after"/>
- <eval expected="(solid,#000000,15000)" xpath="//flow/block[2]/lineArea/viewport/@border-start"/>
- <eval expected="(solid,#000000,10000)" xpath="//flow/block[2]/lineArea/viewport/@border-end"/>
- <eval expected="15000" xpath="//flow/block[2]/lineArea/viewport/@padding-before"/>
- <eval expected="10000" xpath="//flow/block[2]/lineArea/viewport/@padding-after"/>
- <eval expected="5000" xpath="//flow/block[2]/lineArea/viewport/@padding-start"/>
- <eval expected="20000" xpath="//flow/block[2]/lineArea/viewport/@padding-end"/>
- <eval expected="20000 20000 46080 46080" xpath="//flow/block[2]/lineArea/viewport/image/@pos"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/external-graphic_content-height_content-width.xml b/test/layoutengine/testcases/external-graphic_content-height_content-width.xml
deleted file mode 100644
index eec2e7b70..000000000
--- a/test/layoutengine/testcases/external-graphic_content-height_content-width.xml
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks external-graphics with relative content-height
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>plain external-graphic</fo:block>
- <fo:block>
- <fo:external-graphic src="../../resources/images/bgimg300dpi.jpg" content-height="200%" content-width="200%" />EOG
- </fo:block>
- <fo:block>EOF</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="360000" xpath="//flow/block[2]/@ipd"/>
- <eval expected="92160" xpath="//flow/block[2]/lineArea/viewport/@ipd"/>
- <eval expected="92160" xpath="//flow/block[2]/lineArea/viewport/@ipda"/>
- <eval expected="92160" xpath="//flow/block[2]/lineArea/viewport/@bpd"/>
- <eval expected="92160" xpath="//flow/block[2]/lineArea/viewport/@bpda"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/external-graphic_display-align.xml b/test/layoutengine/testcases/external-graphic_display-align.xml
deleted file mode 100644
index 76d74b791..000000000
--- a/test/layoutengine/testcases/external-graphic_display-align.xml
+++ /dev/null
@@ -1,85 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks external-graphics with display-align.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="210mm" page-height="297mm">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>plain external-graphic</fo:block>
- <fo:block>
- <fo:external-graphic src="../../resources/images/bgimg300dpi.jpg" block-progression-dimension="60pt" background-color="yellow"/>EOG
- </fo:block>
- <fo:block>external-graphic with display-align="auto"</fo:block>
- <fo:block>
- <fo:external-graphic src="../../resources/images/bgimg300dpi.jpg" display-align="auto" block-progression-dimension="60pt" background-color="yellow"/>EOG
- </fo:block>
- <fo:block>external-graphic with display-align="before"</fo:block>
- <fo:block>
- <fo:external-graphic src="../../resources/images/bgimg300dpi.jpg" display-align="before" block-progression-dimension="60pt" background-color="yellow"/>EOG
- </fo:block>
- <fo:block>external-graphic with display-align="center"</fo:block>
- <fo:block>
- <fo:external-graphic src="../../resources/images/bgimg300dpi.jpg" display-align="center" block-progression-dimension="60pt" background-color="yellow"/>EOG
- </fo:block>
- <fo:block>external-graphic with display-align="after"</fo:block>
- <fo:block>
- <fo:external-graphic src="../../resources/images/bgimg300dpi.jpg" display-align="after" block-progression-dimension="60pt" background-color="yellow"/>EOG
- </fo:block>
- <fo:block>EOF</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="46080" xpath="//flow/block[2]/lineArea/viewport/@ipd"/>
- <eval expected="46080" xpath="//flow/block[2]/lineArea/viewport/@ipda"/>
- <eval expected="60000" xpath="//flow/block[2]/lineArea/viewport/@bpd"/>
- <eval expected="60000" xpath="//flow/block[2]/lineArea/viewport/@bpda"/>
- <eval expected="0 0 46080 46080" xpath="//flow/block[2]/lineArea/viewport/image/@pos"/>
- <eval expected="46080" xpath="//flow/block[4]/lineArea/viewport/@ipd"/>
- <eval expected="46080" xpath="//flow/block[4]/lineArea/viewport/@ipda"/>
- <eval expected="60000" xpath="//flow/block[4]/lineArea/viewport/@bpd"/>
- <eval expected="60000" xpath="//flow/block[4]/lineArea/viewport/@bpda"/>
- <eval expected="0 0 46080 46080" xpath="//flow/block[4]/lineArea/viewport/image/@pos"/>
- <eval expected="46080" xpath="//flow/block[6]/lineArea/viewport/@ipd"/>
- <eval expected="46080" xpath="//flow/block[6]/lineArea/viewport/@ipda"/>
- <eval expected="60000" xpath="//flow/block[6]/lineArea/viewport/@bpd"/>
- <eval expected="60000" xpath="//flow/block[6]/lineArea/viewport/@bpda"/>
- <eval expected="0 0 46080 46080" xpath="//flow/block[6]/lineArea/viewport/image/@pos"/>
- <eval expected="46080" xpath="//flow/block[8]/lineArea/viewport/@ipd"/>
- <eval expected="46080" xpath="//flow/block[8]/lineArea/viewport/@ipda"/>
- <eval expected="60000" xpath="//flow/block[8]/lineArea/viewport/@bpd"/>
- <eval expected="60000" xpath="//flow/block[8]/lineArea/viewport/@bpda"/>
- <eval expected="0 6960 46080 46080" xpath="//flow/block[8]/lineArea/viewport/image/@pos"/>
- <eval expected="46080" xpath="//flow/block[10]/lineArea/viewport/@ipd"/>
- <eval expected="46080" xpath="//flow/block[10]/lineArea/viewport/@ipda"/>
- <eval expected="60000" xpath="//flow/block[10]/lineArea/viewport/@bpd"/>
- <eval expected="60000" xpath="//flow/block[10]/lineArea/viewport/@bpda"/>
- <eval expected="0 13920 46080 46080" xpath="//flow/block[10]/lineArea/viewport/image/@pos"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/external-graphic_emf.xml b/test/layoutengine/testcases/external-graphic_emf.xml
deleted file mode 100644
index 6cf940530..000000000
--- a/test/layoutengine/testcases/external-graphic_emf.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks external-graphics.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>EMF external-graphic</fo:block>
- <fo:block>
- <fo:external-graphic src="../../resources/images/img.emf"/>EOG
- </fo:block>
- <fo:block>EOF</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="56692" xpath="//flow/block[2]/lineArea/viewport/@ipd"/>
- <eval expected="56692" xpath="//flow/block[2]/lineArea/viewport/@ipda"/>
- <eval expected="56692" xpath="//flow/block[2]/lineArea/viewport/@bpd"/>
- <eval expected="56692" xpath="//flow/block[2]/lineArea/viewport/@bpda"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/external-graphic_eps.xml b/test/layoutengine/testcases/external-graphic_eps.xml
deleted file mode 100644
index 9fedae0bb..000000000
--- a/test/layoutengine/testcases/external-graphic_eps.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks external-graphics.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>EPS external-graphic</fo:block>
- <fo:block>
- <fo:external-graphic src="../../resources/images/barcode.eps"/>EOG
- </fo:block>
- <fo:block>EOF</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="136000" xpath="//flow/block[2]/lineArea/viewport/@ipd"/>
- <eval expected="136000" xpath="//flow/block[2]/lineArea/viewport/@ipda"/>
- <eval expected="43000" xpath="//flow/block[2]/lineArea/viewport/@bpd"/>
- <eval expected="43000" xpath="//flow/block[2]/lineArea/viewport/@bpda"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/external-graphic_gif.xml b/test/layoutengine/testcases/external-graphic_gif.xml
deleted file mode 100644
index a7828aace..000000000
--- a/test/layoutengine/testcases/external-graphic_gif.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks external-graphics.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>GIF external-graphic</fo:block>
- <fo:block>
- <fo:external-graphic src="../../resources/images/bgimg72dpi.gif"/>EOG
- </fo:block>
- <fo:block>EOF</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="192000" xpath="//flow/block[2]/lineArea/viewport/@ipd"/>
- <eval expected="192000" xpath="//flow/block[2]/lineArea/viewport/@ipda"/>
- <eval expected="192000" xpath="//flow/block[2]/lineArea/viewport/@bpd"/>
- <eval expected="192000" xpath="//flow/block[2]/lineArea/viewport/@bpda"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/external-graphic_jpeg.xml b/test/layoutengine/testcases/external-graphic_jpeg.xml
deleted file mode 100644
index 1df417926..000000000
--- a/test/layoutengine/testcases/external-graphic_jpeg.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks external-graphics.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>JPEG external-graphic 300dpi</fo:block>
- <fo:block>
- <fo:external-graphic src="../../resources/images/bgimg300dpi.jpg"/>EOG
- </fo:block>
- <fo:block>JPEG external-graphic 72dpi</fo:block>
- <fo:block>
- <fo:external-graphic src="../../resources/images/bgimg72dpi.jpg"/>EOG
- </fo:block>
- <fo:block>EOF</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="46080" xpath="//flow/block[2]/lineArea/viewport/@ipd"/>
- <eval expected="46080" xpath="//flow/block[2]/lineArea/viewport/@ipda"/>
- <eval expected="46080" xpath="//flow/block[2]/lineArea/viewport/@bpd"/>
- <eval expected="46080" xpath="//flow/block[2]/lineArea/viewport/@bpda"/>
- <eval expected="192000" xpath="//flow/block[4]/lineArea/viewport/@ipd"/>
- <eval expected="192000" xpath="//flow/block[4]/lineArea/viewport/@ipda"/>
- <eval expected="192000" xpath="//flow/block[4]/lineArea/viewport/@bpd"/>
- <eval expected="192000" xpath="//flow/block[4]/lineArea/viewport/@bpda"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/external-graphic_overflow_hidden.xml b/test/layoutengine/testcases/external-graphic_overflow_hidden.xml
deleted file mode 100644
index ae099e6d6..000000000
--- a/test/layoutengine/testcases/external-graphic_overflow_hidden.xml
+++ /dev/null
@@ -1,62 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks external-graphics.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>height="40pt"</fo:block>
- <fo:block>
- <fo:external-graphic overflow="hidden" src="../../resources/images/bgimg300dpi.jpg" height="40pt"/>EOG
- </fo:block>
- <fo:block>width="40pt"</fo:block>
- <fo:block>
- <fo:external-graphic overflow="hidden" src="../../resources/images/bgimg300dpi.jpg" width="40pt"/>EOG
- </fo:block>
- <fo:block>EOF</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- first image -->
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@ipd"/>
- <eval expected="45784" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/@bpd"/>
- <eval expected="46080" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea/viewport/@ipd"/>
- <eval expected="46080" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea/viewport/@ipda"/>
- <eval expected="40000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea/viewport/@bpd"/>
- <eval expected="40000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea/viewport/@bpda"/>
- <!-- second image -->
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@ipd"/>
- <eval expected="51864" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/@bpd"/>
- <eval expected="40000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/lineArea/viewport/@ipd"/>
- <eval expected="40000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/lineArea/viewport/@ipda"/>
- <eval expected="46080" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/lineArea/viewport/@bpd"/>
- <eval expected="46080" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[4]/lineArea/viewport/@bpda"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/external-graphic_oversized.xml b/test/layoutengine/testcases/external-graphic_oversized.xml
deleted file mode 100644
index 3b091a8c0..000000000
--- a/test/layoutengine/testcases/external-graphic_oversized.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks external-graphics. An oversized image is to be squeezed into page using min/opt/max values.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="21cm" page-height="29.7cm" margin="2cm">
- <fo:region-body background-color="yellow"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block font-size="8pt">This first block is only to force an infinite loop if the image is not scaled down.</fo:block>
- <!-- TODO If you remove the above block, the image is placed on the page although it's too big. No warnings. -->
- <fo:block>
- <fo:external-graphic src="../../resources/images/big-image.png"
- inline-progression-dimension.maximum="100%" block-progression-dimension.maximum="100%"
- content-width="scale-to-fit" content-height="scale-to-fit" overflow="hidden"/>
- </fo:block>
- <fo:block>EOF</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="0 0 595275 841889" xpath="//pageViewport/@bounds"/>
- <eval expected="481891" xpath="//regionBody/@ipda"/>
- <eval expected="728505" xpath="//regionBody/@bpda"/>
- <eval expected="481891" xpath="//flow/block[2]/lineArea/viewport/@ipda"/>
- <eval expected="728505" xpath="//flow/block[2]/lineArea/viewport/@bpda + //flow/block[1]/@bpda"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/external-graphic_png.xml b/test/layoutengine/testcases/external-graphic_png.xml
deleted file mode 100644
index 2479c533d..000000000
--- a/test/layoutengine/testcases/external-graphic_png.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks external-graphics.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>PNG external-graphic 300dpi</fo:block>
- <fo:block>
- <fo:external-graphic src="../../resources/images/bgimg300dpi.png"/>EOG
- </fo:block>
- <fo:block>PNG external-graphic 72dpi</fo:block>
- <fo:block>
- <fo:external-graphic src="../../resources/images/bgimg72dpi.png"/>EOG
- </fo:block>
- <fo:block>EOF</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="46080" xpath="//flow/block[2]/lineArea/viewport/@ipd"/>
- <eval expected="46080" xpath="//flow/block[2]/lineArea/viewport/@ipda"/>
- <eval expected="46080" xpath="//flow/block[2]/lineArea/viewport/@bpd"/>
- <eval expected="46080" xpath="//flow/block[2]/lineArea/viewport/@bpda"/>
- <!-- Due to unit computations there is a little difference to the expected 192000 -->
- <eval expected="191975" xpath="//flow/block[4]/lineArea/viewport/@ipd"/>
- <eval expected="191975" xpath="//flow/block[4]/lineArea/viewport/@ipda"/>
- <eval expected="191975" xpath="//flow/block[4]/lineArea/viewport/@bpd"/>
- <eval expected="191975" xpath="//flow/block[4]/lineArea/viewport/@bpda"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/external-graphic_src_uri.xml b/test/layoutengine/testcases/external-graphic_src_uri.xml
deleted file mode 100644
index d299517df..000000000
--- a/test/layoutengine/testcases/external-graphic_src_uri.xml
+++ /dev/null
@@ -1,82 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks URI references to external-graphics.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="210mm" page-height="297mm">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>plain external-graphic (relative URI)</fo:block>
- <fo:block>
- <fo:external-graphic src="../../resources/images/bgimg300dpi.jpg"/>EOG
- </fo:block>
- <fo:block>plain external-graphic (relative URI with scheme)</fo:block>
- <fo:block>
- <fo:external-graphic src="file:../../resources/images/bgimg300dpi.jpg"/>EOG
- </fo:block>
- <!-- Commented out until portable solution found
- <fo:block>plain external-graphic (absolute URI)</fo:block>
- <fo:block>
- <fo:external-graphic src="/home/mm/fop-trunk/test/resources/images/bgimg300dpi.jpg"/>EOG
- </fo:block>
- <fo:block>plain external-graphic (absolute URI with scheme)</fo:block>
- <fo:block>
- <fo:external-graphic src="file:/home/mm/fop-trunk/test/resources/images/bgimg300dpi.jpg"/>EOG
- </fo:block>
- -->
- <fo:block>plain external-graphic (relative URI using url(...) function)</fo:block>
- <fo:block>
- <fo:external-graphic src="url(../../resources/images/bgimg300dpi.jpg)"/>EOG
- </fo:block>
- <fo:block>plain external-graphic (absolute HTTP URI)</fo:block>
- <fo:block>
- <fo:external-graphic src="http://xml.apache.org/fop/images/logo.jpg"/>EOG
- </fo:block>
- <fo:block>EOF</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="46080" xpath="//flow/block[2]/lineArea/viewport/@ipd"/>
- <eval expected="46080" xpath="//flow/block[2]/lineArea/viewport/@ipda"/>
- <eval expected="46080" xpath="//flow/block[2]/lineArea/viewport/@bpd"/>
- <eval expected="46080" xpath="//flow/block[2]/lineArea/viewport/@bpda"/>
- <eval expected="46080" xpath="//flow/block[4]/lineArea/viewport/@ipd"/>
- <eval expected="46080" xpath="//flow/block[4]/lineArea/viewport/@ipda"/>
- <eval expected="46080" xpath="//flow/block[4]/lineArea/viewport/@bpd"/>
- <eval expected="46080" xpath="//flow/block[4]/lineArea/viewport/@bpda"/>
- <eval expected="46080" xpath="//flow/block[6]/lineArea/viewport/@ipd"/>
- <eval expected="46080" xpath="//flow/block[6]/lineArea/viewport/@ipda"/>
- <eval expected="46080" xpath="//flow/block[6]/lineArea/viewport/@bpd"/>
- <eval expected="46080" xpath="//flow/block[6]/lineArea/viewport/@bpda"/>
- <eval expected="120000" xpath="//flow/block[8]/lineArea/viewport/@ipd"/>
- <eval expected="120000" xpath="//flow/block[8]/lineArea/viewport/@ipda"/>
- <eval expected="65000" xpath="//flow/block[8]/lineArea/viewport/@bpd"/>
- <eval expected="65000" xpath="//flow/block[8]/lineArea/viewport/@bpda"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/external-graphic_svg.xml b/test/layoutengine/testcases/external-graphic_svg.xml
deleted file mode 100644
index 5f13dc313..000000000
--- a/test/layoutengine/testcases/external-graphic_svg.xml
+++ /dev/null
@@ -1,81 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks external-graphics.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="10in" page-height="15in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block text-align="left">2 inch wide SVG external-graphic on LHS</fo:block>
- <fo:block text-align="left">
- <fo:external-graphic src="../../resources/images/img.svg" content-width="2in" scaling="uniform" />EOG
- </fo:block>
- <fo:block text-align="right">4 inch wide SVG external-graphic on RHS</fo:block>
- <fo:block text-align="right">
- <fo:external-graphic src="../../resources/images/img.svg" content-width="4in" scaling="uniform" />EOG
- </fo:block>
- <fo:block text-align="center">6 inch wide SVG external-graphic in center, non-uniformly squeezed to a height of 4in.</fo:block>
- <fo:block text-align="center">
- <fo:external-graphic src="../../resources/images/img.svg" content-width="6in" content-height="4in" scaling="non-uniform" />EOG
- </fo:block>
- <fo:block text-align="left">SVG external-graphic with an intrinsic size (16ptx16pt)</fo:block>
- <fo:block text-align="left">
- <fo:external-graphic src="../../resources/images/img-w-size.svg"/>EOG
- </fo:block>
- <fo:block>EOF</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="144000" xpath="//flow/block[2]/lineArea/viewport/@ipd"/>
- <eval expected="144000" xpath="//flow/block[2]/lineArea/viewport/@ipda"/>
- <eval expected="144000" xpath="//flow/block[2]/lineArea/viewport/@bpd"/>
- <eval expected="144000" xpath="//flow/block[2]/lineArea/viewport/@bpda"/>
- <eval expected="0 0 144000 144000" xpath="//flow/block[2]/lineArea/viewport/image/@pos"/>
-
- <eval expected="288000" xpath="//flow/block[4]/lineArea/viewport/@ipd"/>
- <eval expected="288000" xpath="//flow/block[4]/lineArea/viewport/@ipda"/>
- <eval expected="288000" xpath="//flow/block[4]/lineArea/viewport/@bpd"/>
- <eval expected="288000" xpath="//flow/block[4]/lineArea/viewport/@bpda"/>
- <eval expected="0 0 288000 288000" xpath="//flow/block[4]/lineArea/viewport/image/@pos"/>
-
- <eval expected="432000" xpath="//flow/block[6]/lineArea/viewport/@ipd"/>
- <eval expected="432000" xpath="//flow/block[6]/lineArea/viewport/@ipda"/>
- <eval expected="288000" xpath="//flow/block[6]/lineArea/viewport/@bpd"/>
- <eval expected="288000" xpath="//flow/block[6]/lineArea/viewport/@bpda"/>
- <eval expected="0 0 432000 288000" xpath="//flow/block[6]/lineArea/viewport/image/@pos"/>
-
- <!-- TODO: This evaluates nicely to 16000mpt with 72dpi in the FOUserAgent but will result
- in 16080 for 300dpi which is caused by rounding errors because pixels are used internally. -->
- <eval expected="16000" xpath="//flow/block[8]/lineArea/viewport/@ipd"/>
- <eval expected="16000" xpath="//flow/block[8]/lineArea/viewport/@ipda"/>
- <eval expected="16000" xpath="//flow/block[8]/lineArea/viewport/@bpd"/>
- <eval expected="16000" xpath="//flow/block[8]/lineArea/viewport/@bpda"/>
- <eval expected="0 0 16000 16000" xpath="//flow/block[8]/lineArea/viewport/image/@pos"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/external-graphic_tiff.xml b/test/layoutengine/testcases/external-graphic_tiff.xml
deleted file mode 100644
index 1b38504b0..000000000
--- a/test/layoutengine/testcases/external-graphic_tiff.xml
+++ /dev/null
@@ -1,64 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks external-graphics.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="8in" page-height="8in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>TIFF external-graphic 300dpi</fo:block>
- <fo:block>
- <fo:external-graphic src="../../resources/images/bgimg300dpi.tif"/>EOG
- </fo:block>
- <fo:block>TIFF external-graphic 72dpi</fo:block>
- <fo:block>
- <fo:external-graphic src="../../resources/images/bgimg72dpi.tif"/>EOG
- </fo:block>
- <fo:block>TIFF external-graphic (CCITT group 4 encoding)</fo:block>
- <fo:block>
- <fo:external-graphic src="../../resources/images/tiff_group4.tif"/>EOG
- </fo:block>
- <fo:block>EOF</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="46080" xpath="//flow/block[2]/lineArea/viewport/@ipd"/>
- <eval expected="46080" xpath="//flow/block[2]/lineArea/viewport/@ipda"/>
- <eval expected="46080" xpath="//flow/block[2]/lineArea/viewport/@bpd"/>
- <eval expected="46080" xpath="//flow/block[2]/lineArea/viewport/@bpda"/>
- <eval expected="192000" xpath="//flow/block[4]/lineArea/viewport/@ipd"/>
- <eval expected="192000" xpath="//flow/block[4]/lineArea/viewport/@ipda"/>
- <eval expected="192000" xpath="//flow/block[4]/lineArea/viewport/@bpd"/>
- <eval expected="192000" xpath="//flow/block[4]/lineArea/viewport/@bpda"/>
- <eval expected="550588" xpath="//flow/block[6]/lineArea/viewport/@ipd"/>
- <eval expected="550588" xpath="//flow/block[6]/lineArea/viewport/@ipda"/>
- <eval expected="66705" xpath="//flow/block[6]/lineArea/viewport/@bpd"/>
- <eval expected="66705" xpath="//flow/block[6]/lineArea/viewport/@bpda"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/footnote_basic.xml b/test/layoutengine/testcases/footnote_basic.xml
deleted file mode 100644
index 888c0b1c6..000000000
--- a/test/layoutengine/testcases/footnote_basic.xml
+++ /dev/null
@@ -1,80 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks footnotes.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="3in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>This is a block with a footnote<fo:footnote><fo:inline font-size="50%" vertical-align="top">1</fo:inline><fo:footnote-body><fo:block><fo:inline font-size="50%" vertical-align="top">1</fo:inline>I'm a footnote!</fo:block></fo:footnote-body></fo:footnote> in it.</fo:block>
- <fo:block>This is another block without a footnote.</fo:block>
- <fo:block>filling 1...</fo:block>
- <fo:block background-color="yellow">filling 2...</fo:block>
- <fo:block>filling 3...</fo:block>
- <fo:block background-color="yellow">filling 4...</fo:block>
- <fo:block>filling 5...</fo:block>
- <fo:block background-color="yellow">filling 6...</fo:block>
- <fo:block>filling 7...</fo:block>
- <fo:block background-color="yellow">filling 8...</fo:block>
- <fo:block>filling 9...</fo:block>
- <fo:block background-color="yellow">filling 10...</fo:block>
- <fo:block>filling 11...</fo:block>
- <fo:block background-color="yellow">filling 12...</fo:block>
- <fo:block>filling 13...</fo:block>
- <fo:block background-color="yellow">filling 14...</fo:block>
- <fo:block>filling 15...</fo:block>
- <fo:block background-color="yellow">filling 16...</fo:block>
- <fo:block>filling 17...</fo:block>
- <fo:block background-color="yellow">filling 18...</fo:block>
- <fo:block>filling 19...</fo:block>
- <fo:block background-color="yellow">filling 20...</fo:block>
- <fo:block>filling 21...</fo:block>
- <fo:block background-color="yellow">filling 22...</fo:block>
- <fo:block>filling 23...</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="2" xpath="count(//pageViewport)"/>
- <!-- block with footnote -->
- <eval expected="This is a block with a footnote" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea/text[1]"/>
- <eval expected="1" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea/inlineparent/text"/>
- <eval expected="6000" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea/inlineparent/text/@font-size"/>
- <eval expected=" in it." xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea/text[2]"/>
- <!-- the footnote -->
- <eval expected="360000" xpath="//pageViewport[1]/page/regionViewport/regionBody/footnote/block[1]/@ipd"/>
- <eval expected="14400" xpath="//pageViewport[1]/page/regionViewport/regionBody/footnote/block[1]/@bpd"/>
- <eval expected="11100" xpath="//pageViewport[1]/page/regionViewport/regionBody/footnote/block[1]/lineArea/@bpd"/>
- <eval expected="1" xpath="//pageViewport[1]/page/regionViewport/regionBody/footnote/block[1]/lineArea/inlineparent/text"/>
- <eval expected="6000" xpath="//pageViewport[1]/page/regionViewport/regionBody/footnote/block[1]/lineArea/inlineparent/text/@font-size"/>
- <eval expected="I'm a footnote!" xpath="//pageViewport[1]/page/regionViewport/regionBody/footnote/block[1]/lineArea/text[1]"/>
- <!-- page break checks -->
- <eval expected="filling 12..." xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea"/>
- <eval expected="filling 13..." xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/footnote_footnote-separator.xml b/test/layoutengine/testcases/footnote_footnote-separator.xml
deleted file mode 100644
index 4bfdb64e1..000000000
--- a/test/layoutengine/testcases/footnote_footnote-separator.xml
+++ /dev/null
@@ -1,111 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks footnotes including separator.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="3in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-footnote-separator">
- <fo:block font-size="6pt" background-color="orange" border="solid 0.1pt">I'm a block serving as a footnote separator. I'm on page <fo:page-number/>.</fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:block>This is a block with a footnote<fo:footnote><fo:inline font-size="50%" vertical-align="top">1</fo:inline><fo:footnote-body><fo:block><fo:inline font-size="50%" vertical-align="top">1</fo:inline>I'm a footnote!</fo:block></fo:footnote-body></fo:footnote> in it.</fo:block>
- <fo:block>This is a block with another footnote<fo:footnote><fo:inline font-size="50%" vertical-align="top">2</fo:inline><fo:footnote-body><fo:block><fo:inline font-size="50%" vertical-align="top">2</fo:inline>I'm another footnote!</fo:block></fo:footnote-body></fo:footnote>.</fo:block>
- <fo:block>filling 1...</fo:block>
- <fo:block background-color="yellow">filling 2...</fo:block>
- <fo:block>filling 3...</fo:block>
- <fo:block background-color="yellow">filling 4...</fo:block>
- <fo:block>filling 5...</fo:block>
- <fo:block background-color="yellow">filling 6...</fo:block>
- <fo:block>filling 7...</fo:block>
- <fo:block background-color="yellow">filling 8...</fo:block>
- <fo:block>filling 9...</fo:block>
- <fo:block background-color="yellow">filling 10...</fo:block>
- <fo:block>filling 11...</fo:block>
- <fo:block background-color="yellow">filling 12...</fo:block>
- <fo:block>filling 13...</fo:block>
- <fo:block background-color="yellow">filling 14...</fo:block>
- <fo:block>filling 15...</fo:block>
- <fo:block background-color="yellow" break-before="page">filling 16...</fo:block>
- <fo:block>filling 17...</fo:block>
- <fo:block background-color="yellow">filling 18...</fo:block>
- <fo:block>filling 19...</fo:block>
- <fo:block background-color="yellow">filling 20...</fo:block>
- <fo:block>filling 21...</fo:block>
- <fo:block background-color="yellow">filling 22...</fo:block>
- <fo:block>filling 23...</fo:block>
- <fo:block><fo:footnote><fo:inline/><fo:footnote-body><fo:block>I come from an empty block at the end of the flow!</fo:block></fo:footnote-body></fo:footnote></fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="3" xpath="count(//pageViewport)"/>
- <!-- block with footnote -->
- <eval expected="This is a block with a footnote" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea/text[1]"/>
- <eval expected="1" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea/inlineparent/text"/>
- <eval expected="6000" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea/inlineparent/text/@font-size"/>
- <eval expected=" in it." xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea/text[2]"/>
- <!-- block2 with footnote -->
- <eval expected="This is a block with another footnote" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea/text[1]"/>
- <eval expected="2" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea/inlineparent/text"/>
- <eval expected="6000" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea/inlineparent/text/@font-size"/>
- <eval expected="." xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea/text[2]"/>
- <!-- the footnotes on page 1 -->
- <eval expected="360000" xpath="//pageViewport[1]/page/regionViewport/regionBody/footnote/block[1]/@ipd"/>
- <eval expected="3" xpath="count(//pageViewport[1]/page/regionViewport/regionBody/footnote/block)"/>
- <eval expected="7400" xpath="//pageViewport[1]/page/regionViewport/regionBody/footnote/block[1]/@bpd"/>
- <eval expected="5550" xpath="//pageViewport[1]/page/regionViewport/regionBody/footnote/block[1]/block[1]/lineArea/@bpd"/>
- <eval expected="I'm a block serving as a footnote separator. I'm on page 1." xpath="//pageViewport[1]/page/regionViewport/regionBody/footnote/block[1]/block[1]/lineArea"/>
- <eval expected="14400" xpath="//pageViewport[1]/page/regionViewport/regionBody/footnote/block[2]/@bpd"/>
- <eval expected="11100" xpath="//pageViewport[1]/page/regionViewport/regionBody/footnote/block[2]/lineArea/@bpd"/>
- <eval expected="1I'm a footnote!" xpath="//pageViewport[1]/page/regionViewport/regionBody/footnote/block[2]/lineArea"/>
- <eval expected="14400" xpath="//pageViewport[1]/page/regionViewport/regionBody/footnote/block[3]/@bpd"/>
- <eval expected="11100" xpath="//pageViewport[1]/page/regionViewport/regionBody/footnote/block[3]/lineArea/@bpd"/>
- <eval expected="2I'm another footnote!" xpath="//pageViewport[1]/page/regionViewport/regionBody/footnote/block[3]/lineArea"/>
- <!-- page break checks -->
- <eval expected="filling 10..." xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea"/>
- <eval expected="filling 11..." xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea"/>
- <!-- no on page 2 -->
- <eval expected="0" xpath="count(//pageViewport[2]/page/regionViewport/regionBody/footnote/block)"/>
- <!-- page break checks -->
- <eval expected="filling 15..." xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea"/>
- <eval expected="filling 16..." xpath="//pageViewport[3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea"/>
- <!-- last block on page 3 -->
- <eval expected="360000" xpath="//pageViewport[3]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/@ipd"/>
- <eval expected="0" xpath="//pageViewport[3]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/@bpd"/>
- <!-- the footnotes on page 3 -->
- <eval expected="2" xpath="count(//pageViewport[3]/page/regionViewport/regionBody/footnote/block)"/>
- <eval expected="360000" xpath="//pageViewport[3]/page/regionViewport/regionBody/footnote/block[1]/@ipd"/>
- <eval expected="7400" xpath="//pageViewport[3]/page/regionViewport/regionBody/footnote/block[1]/@bpd"/>
- <eval expected="5550" xpath="//pageViewport[3]/page/regionViewport/regionBody/footnote/block[1]/block[1]/lineArea/@bpd"/>
- <eval expected="I'm a block serving as a footnote separator. I'm on page 3." xpath="//pageViewport[3]/page/regionViewport/regionBody/footnote/block[1]/block[1]/lineArea"/>
- <eval expected="14400" xpath="//pageViewport[3]/page/regionViewport/regionBody/footnote/block[2]/@bpd"/>
- <eval expected="11100" xpath="//pageViewport[3]/page/regionViewport/regionBody/footnote/block[2]/lineArea/@bpd"/>
- <eval expected="I come from an empty block at the end of the flow!" xpath="//pageViewport[3]/page/regionViewport/regionBody/footnote/block[2]/lineArea"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/footnote_large.xml b/test/layoutengine/testcases/footnote_large.xml
deleted file mode 100644
index 5870b3d14..000000000
--- a/test/layoutengine/testcases/footnote_large.xml
+++ /dev/null
@@ -1,158 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<testcase>
- <info>
- <p>
- This test checks the positioning of a content line with respect to the footnotes cited in it.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="simple"
- page-height="841.9pt"
- page-width="595.3pt"
- margin-top="112.42pt"
- margin-bottom="69.48pt"
- margin-left="99.88pt"
- margin-right="99.88pt">
- <fo:region-body margin-top="120pt"
- margin-bottom="140pt"
- background-color="lightgrey"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="simple">
- <fo:flow flow-name="xsl-region-body" font-family="Courier">
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 1. The last content line in this page has a</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 2. reference to a huge footnote; the footnote</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 3. is broken, part of it will be placed in the</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 4. second page, together with a content line,</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 5. and the last part will be placed in page three</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 6. together with the remaining content and .</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 7. footnote lines.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 8. ---------+---------+---------+---------+------</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 9.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 10.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 11.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 12.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 13.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 14.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 15.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 16.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 17.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 18.
- <fo:footnote>
- <fo:inline font-size="50%" vertical-align="top">1</fo:inline>
- <fo:footnote-body>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height"><fo:inline font-size="50%" vertical-align="top">1</fo:inline> footnote line 1/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 2/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 3/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 4/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 5/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 6/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 7/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 8/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 9/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 10/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 11/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 12/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 13/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 14/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 15/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 16/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 17/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 18/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 19/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 20/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 21/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 22/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 23/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 24/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 25/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 26/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 27/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 28/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 29/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 30/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 31/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 32/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 33/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 34/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 35/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 36/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 37/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 38/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 39/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 40/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 41/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 42/43.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 43/43.</fo:block>
- </fo:footnote-body>
- </fo:footnote>
- </fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 19.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 20.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 21.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 22.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 23.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 24.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 25.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 26.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 27.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 28.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 29.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 30.</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="4" xpath="count(//pageViewport)"/>
- <!-- last content line in page 1 -->
- <eval expected="line 18. " xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea/text[1]"/>
- <eval expected="1" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea/inlineparent[1]/text[1]"/>
- <!-- last footnote line in page 1 -->
- <eval expected="footnote line 2/43." xpath="//pageViewport[1]/page/regionViewport/regionBody/footnote//block[last()]/lineArea/text[1]"/>
- <!-- first content line in page 2 -->
- <eval expected="line 19." xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea/text[1]"/>
- <!-- last content line in page 2 -->
- <eval expected="line 19." xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea/text[1]"/>
- <!-- first footnote line in page 2 -->
- <eval expected="footnote line 3/43." xpath="//pageViewport[2]/page/regionViewport/regionBody/footnote//block[1]/lineArea/text[1]"/>
- <!-- last footnote line in page 2 -->
- <eval expected="footnote line 21/43." xpath="//pageViewport[2]/page/regionViewport/regionBody/footnote//block[last()]/lineArea/text[1]"/>
- <!-- first content line in page 3 -->
- <eval expected="line 20." xpath="//pageViewport[3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea/text[1]"/>
- <!-- last content line in page 3 -->
- <eval expected="line 20." xpath="//pageViewport[3]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea/text[1]"/>
- <!-- first footnote line in page 3 -->
- <eval expected="footnote line 22/43." xpath="//pageViewport[3]/page/regionViewport/regionBody/footnote//block[1]/lineArea/text[1]"/>
- <!-- last footnote line in page 3 -->
- <eval expected="footnote line 40/43." xpath="//pageViewport[3]/page/regionViewport/regionBody/footnote//block[last()]/lineArea/text[1]"/>
-
-
- <!-- first content line in page 4 -->
- <eval expected="line 21." xpath="//pageViewport[4]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea/text[1]"/>
- <!-- last content line in page 3 -->
- <eval expected="line 30." xpath="//pageViewport[4]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea/text[1]"/>
- <!-- first footnote line in page 3 -->
- <eval expected="footnote line 41/43." xpath="//pageViewport[4]/page/regionViewport/regionBody/footnote//block[1]/lineArea/text[1]"/>
- <!-- last footnote line in page 3 -->
- <eval expected="footnote line 43/43." xpath="//pageViewport[4]/page/regionViewport/regionBody/footnote//block[last()]/lineArea/text[1]"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/footnote_overflow-to-empty-page.xml b/test/layoutengine/testcases/footnote_overflow-to-empty-page.xml
deleted file mode 100644
index ddeea2392..000000000
--- a/test/layoutengine/testcases/footnote_overflow-to-empty-page.xml
+++ /dev/null
@@ -1,81 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<testcase>
- <info>
- <p>
- This test checks the creation of a page containing the remaining of a footnote and no content lines.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="simple"
- page-height="841.9pt"
- page-width="595.3pt"
- margin-top="112.42pt"
- margin-bottom="69.48pt"
- margin-left="99.88pt"
- margin-right="99.88pt">
- <fo:region-body margin-top="120pt"
- margin-bottom="140pt"
- background-color="lightgrey"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="simple">
- <fo:flow flow-name="xsl-region-body" font-family="Courier">
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 1. There is a footnote citation in the last</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 2. content line of this page.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 3. The footnote body does not fit in the</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 4. remaining space so it is broken: the last</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 5. part of it will be placed in a new page</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 6. with no content lines.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 7. ---------+---------+---------+---------+------</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 8.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 9.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 10.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 11.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 12.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 13.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 14.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 15.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 16.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 17.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 18.
- <fo:footnote>
- <fo:inline font-size="50%" vertical-align="top">1</fo:inline>
- <fo:footnote-body>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height"><fo:inline font-size="50%" vertical-align="top">1</fo:inline> footnote line 1/3.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 2/3.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 3/3.</fo:block>
- </fo:footnote-body>
- </fo:footnote>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="2" xpath="count(//pageViewport)"/>
- <!-- last content line in page 1 -->
- <eval expected="line 18. " xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea/text[1]"/>
- <eval expected="1" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea/inlineparent/text[1]"/>
- <!-- last footnote line in page 1 -->
- <eval expected="footnote line 2/3." xpath="//pageViewport[1]/page/regionViewport/regionBody/footnote//block[last()]/lineArea/text[1]"/>
- <!-- first footnote line in page 2 -->
- <eval expected="footnote line 3/3." xpath="//pageViewport[2]/page/regionViewport/regionBody/footnote//block[1]/lineArea/text[1]"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/footnote_overflow-to-multiple-pages.xml b/test/layoutengine/testcases/footnote_overflow-to-multiple-pages.xml
deleted file mode 100644
index abd631e22..000000000
--- a/test/layoutengine/testcases/footnote_overflow-to-multiple-pages.xml
+++ /dev/null
@@ -1,105 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<testcase>
- <info>
- <p>
- This test checks the creation of two pages containing the remaining of a footnote and no content lines.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="simple"
- page-height="841.9pt"
- page-width="595.3pt"
- margin-top="112.42pt"
- margin-bottom="69.48pt"
- margin-left="99.88pt"
- margin-right="99.88pt">
- <fo:region-body margin-top="120pt"
- margin-bottom="140pt"
- background-color="lightgrey"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="simple">
- <fo:flow flow-name="xsl-region-body" font-family="Courier">
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 1. There is a footnote citation in the last</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 2. content line of this page.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 3. The footnote body does not fit in the</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 4. remaining space so it is broken: il will fill</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 5. a page and will end in another one.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 6. ---------+---------+---------+---------+------</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 7.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 8.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 9.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 10.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 11.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 12.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 13.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 14.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 15.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 16.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 17.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 18.
- <fo:footnote>
- <fo:inline font-size="50%" vertical-align="top">1</fo:inline>
- <fo:footnote-body>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height"><fo:inline font-size="50%" vertical-align="top">1</fo:inline> footnote line 1/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 2/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 3/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 4/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 5/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 6/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 7/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 8/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 9/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 10/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 11/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 12/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 13/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 14/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 15/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 16/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 17/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 18/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 19/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 20/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 21/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 22/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 23/23.</fo:block>
- </fo:footnote-body>
- </fo:footnote>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="3" xpath="count(//pageViewport)"/>
- <!-- last content line in page 1 -->
- <eval expected="line 18. " xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea/text[1]"/>
- <eval expected="1" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea/inlineparent/text[1]"/>
- <!-- last footnote line in page 1 -->
- <eval expected="footnote line 2/23." xpath="//pageViewport[1]/page/regionViewport/regionBody/footnote//block[last()]/lineArea/text[1]"/>
- <!-- first footnote line in page 2 -->
- <eval expected="footnote line 3/23." xpath="//pageViewport[2]/page/regionViewport/regionBody/footnote//block[1]/lineArea/text[1]"/>
- <!-- last footnote line in page 2 -->
- <eval expected="footnote line 22/23." xpath="//pageViewport[2]/page/regionViewport/regionBody/footnote//block[last()]/lineArea/text[1]"/>
- <!-- first footnote line in page 3 -->
- <eval expected="footnote line 23/23." xpath="//pageViewport[3]/page/regionViewport/regionBody/footnote//block[1]/lineArea/text[1]"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/footnote_positioning_1.xml b/test/layoutengine/testcases/footnote_positioning_1.xml
deleted file mode 100644
index 854b3ed6e..000000000
--- a/test/layoutengine/testcases/footnote_positioning_1.xml
+++ /dev/null
@@ -1,97 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<testcase>
- <info>
- <p>
- This test checks the positioning of a content line with respect to the footnotes cited in it.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="simple"
- page-height="841.9pt"
- page-width="595.3pt"
- margin-top="112.42pt"
- margin-bottom="69.48pt"
- margin-left="99.88pt"
- margin-right="99.88pt">
- <fo:region-body margin-top="120pt"
- margin-bottom="140pt"
- background-color="lightgrey"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="simple">
- <fo:flow flow-name="xsl-region-body" font-family="Courier">
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 1. There are two footnote citation in the last</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 2. content line of this page.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 3. The first footnote body does not fit in the</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 4. remaining space so it is broken, the second</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 5. one is deferred to the next page.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 6. ---------+---------+---------+---------+------</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 7.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 8.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 9.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 10.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 11.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 12.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 13.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 14.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 15.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 16.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 17.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 18.
- <fo:footnote>
- <fo:inline font-size="50%" vertical-align="top">1</fo:inline>
- <fo:footnote-body>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height"><fo:inline font-size="50%" vertical-align="top">1</fo:inline> footnote line 1/3.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 2/3.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 3/3.</fo:block>
- </fo:footnote-body>
- </fo:footnote>
- <fo:footnote>
- <fo:inline font-size="50%" vertical-align="top">2</fo:inline>
- <fo:footnote-body>
- <fo:block background-color="lightgreen" line-height="20pt" line-stacking-strategy="font-height"><fo:inline font-size="50%" vertical-align="top">2</fo:inline> footnote line 1/2.</fo:block>
- <fo:block background-color="lightgreen" line-height="20pt" line-stacking-strategy="font-height">footnote line 2/2.</fo:block>
- </fo:footnote-body>
- </fo:footnote>
- </fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 19.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 20.</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="2" xpath="count(//pageViewport)"/>
- <!-- last content line in page 1 -->
- <eval expected="line 18. " xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea/text[1]"/>
- <eval expected="1" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea/inlineparent[1]/text[1]"/>
- <eval expected="2" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea/inlineparent[2]/text[1]"/>
- <!-- last footnote line in page 1 -->
- <eval expected="footnote line 2/3." xpath="//pageViewport[1]/page/regionViewport/regionBody/footnote//block[last()]/lineArea/text[1]"/>
- <!-- first content line in page 2 -->
- <eval expected="line 19." xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea/text[1]"/>
- <!-- last content line in page 2 -->
- <eval expected="line 20." xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea/text[1]"/>
- <!-- first footnote line in page 2 -->
- <eval expected="footnote line 3/3." xpath="//pageViewport[2]/page/regionViewport/regionBody/footnote//block[1]/lineArea/text[1]"/>
- <!-- last footnote line in page 2 -->
- <eval expected="footnote line 2/2." xpath="//pageViewport[2]/page/regionViewport/regionBody/footnote//block[last()]/lineArea/text[1]"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/footnote_positioning_2.xml b/test/layoutengine/testcases/footnote_positioning_2.xml
deleted file mode 100644
index 0fb323d5e..000000000
--- a/test/layoutengine/testcases/footnote_positioning_2.xml
+++ /dev/null
@@ -1,104 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<testcase>
- <info>
- <p>
- This test checks the positioning of a content line with respect to the footnotes cited in it.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="simple"
- page-height="841.9pt"
- page-width="595.3pt"
- margin-top="112.42pt"
- margin-bottom="69.48pt"
- margin-left="99.88pt"
- margin-right="99.88pt">
- <fo:region-body margin-top="120pt"
- margin-bottom="140pt"
- background-color="lightgrey"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="simple">
- <fo:flow flow-name="xsl-region-body" font-family="Courier">
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 1. There are three footnote citation in the last</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 2. content line of this page.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 3. The third one does not fit in the remaining</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 4. space so it is deferred to the next page.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 5. ---------+---------+---------+---------+------</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 6.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 7.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 8.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 9.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 10.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 11.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 12.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 13.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 14.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 15.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 16.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 17.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 18.
- <fo:footnote>
- <fo:inline font-size="50%" vertical-align="top">1</fo:inline>
- <fo:footnote-body>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height"><fo:inline font-size="50%" vertical-align="top">1</fo:inline> footnote line 1/1.</fo:block>
- </fo:footnote-body>
- </fo:footnote>
- <fo:footnote>
- <fo:inline font-size="50%" vertical-align="top">2</fo:inline>
- <fo:footnote-body>
- <fo:block background-color="lightgreen" line-height="20pt" line-stacking-strategy="font-height"><fo:inline font-size="50%" vertical-align="top">2</fo:inline> footnote line 1/1.</fo:block>
- </fo:footnote-body>
- </fo:footnote>
- <fo:footnote>
- <fo:inline font-size="50%" vertical-align="top">3</fo:inline>
- <fo:footnote-body>
- <fo:block background-color="lightblue" line-height="20pt" line-stacking-strategy="font-height"><fo:inline font-size="50%" vertical-align="top">3</fo:inline> footnote line 1/2.</fo:block>
- <fo:block background-color="lightblue" line-height="20pt" line-stacking-strategy="font-height">footnote line 2/2.</fo:block>
- </fo:footnote-body>
- </fo:footnote>
- </fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 19.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 20.</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="2" xpath="count(//pageViewport)"/>
- <!-- last content line in page 1 -->
- <eval expected="line 18. " xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea/text[1]"/>
- <eval expected="1" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea/inlineparent[1]/text[1]"/>
- <eval expected="2" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea/inlineparent[2]/text[1]"/>
- <eval expected="3" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea/inlineparent[3]/text[1]"/>
- <!-- last footnote line in page 1 -->
- <eval expected="2" xpath="//pageViewport[1]/page/regionViewport/regionBody/footnote/block[last()]/lineArea/inlineparent[1]/text[1]"/>
- <eval expected=" footnote line 1/1." xpath="//pageViewport[1]/page/regionViewport/regionBody/footnote//block[last()]/lineArea/text[1]"/>
- <!-- first content line in page 2 -->
- <eval expected="line 19." xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea/text[1]"/>
- <!-- last content line in page 2 -->
- <eval expected="line 20." xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea/text[1]"/>
- <!-- first footnote line in page 2 -->
- <eval expected="3" xpath="//pageViewport[2]/page/regionViewport/regionBody/footnote/block[1]/lineArea/inlineparent[1]/text[1]"/>
- <eval expected=" footnote line 1/2." xpath="//pageViewport[2]/page/regionViewport/regionBody/footnote//block[1]/lineArea/text[1]"/>
- <!-- last footnote line in page 2 -->
- <eval expected="footnote line 2/2." xpath="//pageViewport[2]/page/regionViewport/regionBody/footnote//block[last()]/lineArea/text[1]"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/footnote_positioning_3.xml b/test/layoutengine/testcases/footnote_positioning_3.xml
deleted file mode 100644
index e2dee78ed..000000000
--- a/test/layoutengine/testcases/footnote_positioning_3.xml
+++ /dev/null
@@ -1,111 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<testcase>
- <info>
- <p>
- This test checks the positioning of a content line with respect to the footnotes cited in it.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="simple"
- page-height="841.9pt"
- page-width="595.3pt"
- margin-top="112.42pt"
- margin-bottom="69.48pt"
- margin-left="99.88pt"
- margin-right="99.88pt">
- <fo:region-body margin-top="120pt"
- margin-bottom="140pt"
- background-color="lightgrey"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="simple">
- <fo:flow flow-name="xsl-region-body" font-family="Courier">
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 1. There are three footnote citations in the last</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 2. content line that could be placed in this</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 3. page, but there is not enough space to insert</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 4. at least a piece of the first one, so the line</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 5. is deferred to the next page together with all</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 6. its footnotes.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 7. ---------+---------+---------+---------+------</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 8.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 9.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 10.
- <fo:footnote>
- <fo:inline font-size="50%" vertical-align="top">1</fo:inline>
- <fo:footnote-body>
- <fo:block background-color="violet" line-height="20pt" line-stacking-strategy="font-height"><fo:inline font-size="50%" vertical-align="top">1</fo:inline> footnote line 1/1.</fo:block>
- </fo:footnote-body>
- </fo:footnote>
- </fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 11.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 12.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 13.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 14.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 15.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 16.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 17.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 18.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 19.
- <fo:footnote>
- <fo:inline font-size="50%" vertical-align="top">2</fo:inline>
- <fo:footnote-body>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height"><fo:inline font-size="50%" vertical-align="top">2</fo:inline> footnote line 1/1.</fo:block>
- </fo:footnote-body>
- </fo:footnote>
- <fo:footnote>
- <fo:inline font-size="50%" vertical-align="top">3</fo:inline>
- <fo:footnote-body>
- <fo:block background-color="lightgreen" line-height="20pt" line-stacking-strategy="font-height"><fo:inline font-size="50%" vertical-align="top">3</fo:inline> footnote line 1/1.</fo:block>
- </fo:footnote-body>
- </fo:footnote>
- <fo:footnote>
- <fo:inline font-size="50%" vertical-align="top">4</fo:inline>
- <fo:footnote-body>
- <fo:block background-color="lightblue" line-height="20pt" line-stacking-strategy="font-height"><fo:inline font-size="50%" vertical-align="top">4</fo:inline> footnote line 1/2.</fo:block>
- <fo:block background-color="lightblue" line-height="20pt" line-stacking-strategy="font-height">footnote line 2/2.</fo:block>
- </fo:footnote-body>
- </fo:footnote>
- </fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 20.</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="2" xpath="count(//pageViewport)"/>
- <!-- last content line in page 1 -->
- <eval expected="line 18." xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea/text[1]"/>
- <!-- last footnote line in page 1 -->
- <eval expected="1" xpath="//pageViewport[1]/page/regionViewport/regionBody/footnote/block[last()]/lineArea/inlineparent[1]/text[1]"/>
- <eval expected=" footnote line 1/1." xpath="//pageViewport[1]/page/regionViewport/regionBody/footnote//block[last()]/lineArea/text[1]"/>
- <!-- first content line in page 2 -->
- <eval expected="line 19. " xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea/text[1]"/>
- <eval expected="2" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea/inlineparent[1]/text[1]"/>
- <eval expected="3" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea/inlineparent[2]/text[1]"/>
- <eval expected="4" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea/inlineparent[3]/text[1]"/>
- <!-- last content line in page 2 -->
- <eval expected="line 20." xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea/text[1]"/>
- <!-- first footnote line in page 2 -->
- <eval expected="2" xpath="//pageViewport[2]/page/regionViewport/regionBody/footnote/block[1]/lineArea/inlineparent[1]/text[1]"/>
- <eval expected=" footnote line 1/1." xpath="//pageViewport[2]/page/regionViewport/regionBody/footnote//block[1]/lineArea/text[1]"/>
- <!-- last footnote line in page 2 -->
- <eval expected="footnote line 2/2." xpath="//pageViewport[2]/page/regionViewport/regionBody/footnote//block[last()]/lineArea/text[1]"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/footnote_positioning_4.xml b/test/layoutengine/testcases/footnote_positioning_4.xml
deleted file mode 100644
index e8be4b0cf..000000000
--- a/test/layoutengine/testcases/footnote_positioning_4.xml
+++ /dev/null
@@ -1,127 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<testcase>
- <info>
- <p>
- This test checks the positioning of a content line with respect to the footnotes cited in it.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="simple"
- page-height="841.9pt"
- page-width="595.3pt"
- margin-top="112.42pt"
- margin-bottom="69.48pt"
- margin-left="99.88pt"
- margin-right="99.88pt">
- <fo:region-body margin-top="120pt"
- margin-bottom="140pt"
- background-color="lightgrey"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="simple">
- <fo:flow flow-name="xsl-region-body" font-family="Courier">
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 1. The last content line in this page has a</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 2. reference to a huge footnote; the footnote</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 3. is broken, part of it will be placed in the</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 4. second page, together with a content line,</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 5. and the last part will be placed in page three</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 6. together with the remaining content and .</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 7. footnote lines.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 8. ---------+---------+---------+---------+------</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 9.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 10.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 11.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 12.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 13.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 14.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 15.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 16.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 17.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 18.
- <fo:footnote>
- <fo:inline font-size="50%" vertical-align="top">1</fo:inline>
- <fo:footnote-body>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height"><fo:inline font-size="50%" vertical-align="top">1</fo:inline> footnote line 1/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 2/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 3/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 4/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 5/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 6/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 7/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 8/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 9/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 10/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 11/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 12/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 13/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 14/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 15/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 16/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 17/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 18/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 19/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 20/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 21/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 22/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 23/23.</fo:block>
- </fo:footnote-body>
- </fo:footnote>
- </fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 19.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 20.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 21.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 22.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 23.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 24.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 25.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 26.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 27.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 28.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 29.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 30.</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="3" xpath="count(//pageViewport)"/>
- <!-- last content line in page 1 -->
- <eval expected="line 18. " xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea/text[1]"/>
- <eval expected="1" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea/inlineparent[1]/text[1]"/>
- <!-- last footnote line in page 1 -->
- <eval expected="footnote line 2/23." xpath="//pageViewport[1]/page/regionViewport/regionBody/footnote//block[last()]/lineArea/text[1]"/>
- <!-- first content line in page 2 -->
- <eval expected="line 19." xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea/text[1]"/>
- <!-- last content line in page 2 -->
- <eval expected="line 19." xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea/text[1]"/>
- <!-- first footnote line in page 2 -->
- <eval expected="footnote line 3/23." xpath="//pageViewport[2]/page/regionViewport/regionBody/footnote//block[1]/lineArea/text[1]"/>
- <!-- last footnote line in page 2 -->
- <eval expected="footnote line 21/23." xpath="//pageViewport[2]/page/regionViewport/regionBody/footnote//block[last()]/lineArea/text[1]"/>
- <!-- first content line in page 3 -->
- <eval expected="line 20." xpath="//pageViewport[3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea/text[1]"/>
- <!-- last content line in page 3 -->
- <eval expected="line 30." xpath="//pageViewport[3]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea/text[1]"/>
- <!-- first footnote line in page 3 -->
- <eval expected="footnote line 22/23." xpath="//pageViewport[3]/page/regionViewport/regionBody/footnote//block[1]/lineArea/text[1]"/>
- <!-- last footnote line in page 3 -->
- <eval expected="footnote line 23/23." xpath="//pageViewport[3]/page/regionViewport/regionBody/footnote//block[last()]/lineArea/text[1]"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/footnote_positioning_5.xml b/test/layoutengine/testcases/footnote_positioning_5.xml
deleted file mode 100644
index 3b3cea007..000000000
--- a/test/layoutengine/testcases/footnote_positioning_5.xml
+++ /dev/null
@@ -1,137 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<testcase>
- <info>
- <p>
- This test checks the positioning of a content line with respect to the footnotes cited in it.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="simple"
- page-height="841.9pt"
- page-width="595.3pt"
- margin-top="112.42pt"
- margin-bottom="69.48pt"
- margin-left="99.88pt"
- margin-right="99.88pt">
- <fo:region-body margin-top="120pt"
- margin-bottom="140pt"
- background-color="lightgrey"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="simple">
- <fo:flow flow-name="xsl-region-body" font-family="Courier">
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 1. The last content line in this page has a</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 2. reference to a huge footnote; the footnote</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 3. is broken, part of it will be placed in the</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 4. second page, together with a content line,</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 5. and the last part will be placed in page three</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 6. together with the remaining content and </fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 7. footnote lines.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 8. ---------+---------+---------+---------+------</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 9.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 10.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 11.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 12.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 13.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 14.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 15.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 16.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 17.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 18.
- <fo:footnote>
- <fo:inline font-size="50%" vertical-align="top">1</fo:inline>
- <fo:footnote-body>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height"><fo:inline font-size="50%" vertical-align="top">1</fo:inline> footnote line 1/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 2/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 3/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 4/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 5/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 6/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 7/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 8/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 9/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 10/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 11/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 12/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 13/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 14/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 15/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 16/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 17/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 18/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 19/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 20/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 21/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 22/23.</fo:block>
- <fo:block background-color="pink" line-height="20pt" line-stacking-strategy="font-height">footnote line 23/23.</fo:block>
- </fo:footnote-body>
- </fo:footnote>
- </fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 19.
- <fo:footnote>
- <fo:inline font-size="50%" vertical-align="top">2</fo:inline>
- <fo:footnote-body>
- <fo:block background-color="lightgreen" line-height="20pt" line-stacking-strategy="font-height"><fo:inline font-size="50%" vertical-align="top">2</fo:inline> footnote line 1/1.</fo:block>
- </fo:footnote-body>
- </fo:footnote>
- </fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 20.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 21.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 22.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 23.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 24.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 25.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 26.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 27.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 28.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 29.</fo:block>
- <fo:block background-color="white" line-height="20pt" line-stacking-strategy="font-height">line 30.</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="3" xpath="count(//pageViewport)"/>
- <!-- last content line in page 1 -->
- <eval expected="line 18. " xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea/text[1]"/>
- <eval expected="1" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea/inlineparent[1]/text[1]"/>
- <!-- last footnote line in page 1 -->
- <eval expected="footnote line 2/23." xpath="//pageViewport[1]/page/regionViewport/regionBody/footnote//block[last()]/lineArea/text[1]"/>
- <!-- first content line in page 2 -->
- <eval expected="line 19. " xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea/text[1]"/>
- <eval expected="2" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea/inlineparent[1]/text[1]"/>
- <!-- last content line in page 2 -->
- <eval expected="line 19. " xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea/text[1]"/>
- <eval expected="2" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea/inlineparent[1]/text[1]"/>
- <!-- first footnote line in page 2 -->
- <eval expected="footnote line 3/23." xpath="//pageViewport[2]/page/regionViewport/regionBody/footnote//block[1]/lineArea/text[1]"/>
- <!-- last footnote line in page 2 -->
- <eval expected="footnote line 21/23." xpath="//pageViewport[2]/page/regionViewport/regionBody/footnote//block[last()]/lineArea/text[1]"/>
- <!-- first content line in page 3 -->
- <eval expected="line 20." xpath="//pageViewport[3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea/text[1]"/>
- <!-- last content line in page 3 -->
- <eval expected="line 30." xpath="//pageViewport[3]/page/regionViewport/regionBody/mainReference/span/flow/block[last()]/lineArea/text[1]"/>
- <!-- first footnote line in page 3 -->
- <eval expected="footnote line 22/23." xpath="//pageViewport[3]/page/regionViewport/regionBody/footnote//block[1]/lineArea/text[1]"/>
- <!-- last footnote line in page 3 -->
- <eval expected="2" xpath="//pageViewport[3]/page/regionViewport/regionBody/footnote/block[last()]/lineArea/inlineparent[1]/text[1]"/>
- <eval expected=" footnote line 1/1." xpath="//pageViewport[3]/page/regionViewport/regionBody/footnote//block[last()]/lineArea/text[1]"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/footnote_space-resolution.xml b/test/layoutengine/testcases/footnote_space-resolution.xml
deleted file mode 100644
index 151e276b9..000000000
--- a/test/layoutengine/testcases/footnote_space-resolution.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks space-resolution inside the footnotes area.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="3in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>region-body<fo:footnote>
- <fo:inline font-size="50%" vertical-align="super">1</fo:inline>
- <fo:footnote-body>
- <fo:block space-before="1em" space-after="1em">
- <fo:inline font-size="50%" vertical-align="super">1</fo:inline>I'm a footnote!</fo:block>
- </fo:footnote-body>
- </fo:footnote>
- blah<fo:footnote>
- <fo:inline font-size="50%" vertical-align="super">2</fo:inline>
- <fo:footnote-body>
- <fo:block space-before="1em" space-after="1em">
- <fo:inline font-size="50%" vertical-align="super">2</fo:inline>I'm a footnote!</fo:block>
- </fo:footnote-body>
- </fo:footnote>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <true xpath="not(boolean(//footnotes/block[1]/@space-before))"/>
- <true xpath="not(boolean(//footnotes/block[1]/@space-after))"/>
- <eval expected="12000" xpath="//footnotes/block[2]/@space-before"/>
- <true xpath="not(boolean(//footnotes/block[2]/@space-after))"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline-block_keep-together.xml b/test/layoutengine/testcases/inline-block_keep-together.xml
deleted file mode 100644
index 6f04c96f7..000000000
--- a/test/layoutengine/testcases/inline-block_keep-together.xml
+++ /dev/null
@@ -1,62 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks keep-together.within-line.
- </p>
- <p>
- This test builds on the results from normal-breaking6.xml.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="simple" page-height="5in" page-width="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="simple">
- <fo:flow flow-name="xsl-region-body" hyphenate="true">
- <fo:block-container width="100pt" background-color="yellow">
- <fo:block>This is <fo:inline keep-together.within-line="always">BLah-blah-blah-blah!</fo:inline></fo:block>
- <fo:block>This is <fo:inline keep-together.within-line="always">Blah-blah-blah-blah!</fo:inline></fo:block>
- <fo:block>This is <fo:inline>Blah blah blah blah!</fo:inline></fo:block>
- <fo:block>This is <fo:inline keep-together.within-line="always">Blah blah blah blah!</fo:inline></fo:block>
- </fo:block-container>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- The layout engine should warn the user about the overflow in this case. -->
- <eval expected="This is " xpath="//flow/block[1]/block[1]/block[1]/lineArea[1]"/>
- <eval expected="BLah-blah-blah-blah!" xpath="//flow/block[1]/block[1]/block[1]/lineArea[2]"/>
-
- <!-- The layout engine should warn the user about the overflow in this case. -->
- <eval expected="This is " xpath="//flow/block[1]/block[1]/block[2]/lineArea[1]"/>
- <eval expected="Blah-blah-blah-blah!" xpath="//flow/block[1]/block[1]/block[2]/lineArea[2]"/>
-
- <eval expected="This is Blah blah " xpath="//flow/block[1]/block[1]/block[3]/lineArea[1]"/>
- <eval expected="blah blah!" xpath="//flow/block[1]/block[1]/block[3]/lineArea[2]"/>
-
- <!-- The layout engine should warn the user about the overflow in this case. -->
- <eval expected="This is " xpath="//flow/block[1]/block[1]/block[4]/lineArea[1]"/>
- <eval expected="Blah blah blah blah!" xpath="//flow/block[1]/block[1]/block[4]/lineArea[2]"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline-container_block_nested.xml b/test/layoutengine/testcases/inline-container_block_nested.xml
deleted file mode 100644
index 3acf170d3..000000000
--- a/test/layoutengine/testcases/inline-container_block_nested.xml
+++ /dev/null
@@ -1,64 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks nested blocks with inline-containers and indents.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block margin-left="12pt">outer block
- <fo:inline-container start-indent="18pt">
- <fo:block margin-left="13pt">inner block</fo:block>
- </fo:inline-container>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- First block, no gap -->
- <!--eval expected="(133,#0000ff,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@border-start"/>
- <eval expected="(133,#0000ff,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@border-end"/>
- <eval expected="(133,#0000ff,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@border-before"/>
- <eval expected="(133,#0000ff,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@border-after"/>
- <eval expected="5000 5000 5000 5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bap"/>
- <eval expected="350000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipd"/>
- <eval expected="360000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipda"/>
- <eval expected="24400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpd"/>
- <eval expected="34400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpda"/-->
- <!-- Nested block of first block -->
- <!--eval expected="(133,#ff0000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-start"/>
- <eval expected="(133,#ff0000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-end"/>
- <eval expected="(133,#ff0000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-before"/>
- <eval expected="(133,#ff0000,5000)" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-after"/>
- <eval expected="5000 5000 5000 5000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@bap"/>
- <eval expected="340000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@ipd"/>
- <eval expected="350000" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@ipda"/>
- <eval expected="14400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@bpd"/>
- <eval expected="24400" xpath="/areaTree/pageSequence/pageViewport/page[1]/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@bpda"/-->
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline-container_border_padding.xml b/test/layoutengine/testcases/inline-container_border_padding.xml
deleted file mode 100644
index 10ab7b646..000000000
--- a/test/layoutengine/testcases/inline-container_border_padding.xml
+++ /dev/null
@@ -1,85 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks the borders and the like for instream-foreign-object.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="orange">
- Before <fo:inline-container border-style="solid" border-width="5pt 10pt 20pt 15pt" padding="15pt 20pt 10pt 5pt" background-color="white">
- <fo:block>inside the container</fo:block>
- </fo:inline-container> after
- </fo:block>
- <fo:block background-color="yellow" font-size="100pt">
- BC <fo:inline-container border-style="solid" border-width="5pt 10pt 20pt 15pt" padding="15pt 20pt 10pt 5pt" background-color="white">
- <fo:block font-size="12pt">inside the container</fo:block>
- </fo:inline-container> AC
- </fo:block>
- <fo:block font-size="9pt">
- 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.
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- first e-g -->
- <eval expected="20000" xpath="//flow/block[1]/lineArea/viewport/@ipd"/>
- <eval expected="20000" xpath="//flow/block[1]/lineArea/viewport/@bpd"/>
- <eval expected="70000" xpath="//flow/block[1]/lineArea/viewport/@bpda"/>
- <eval expected="1650" xpath="//flow/block[1]/lineArea/viewport/@offset"/>
- <eval expected="20000 30000 20000 30000" xpath="//flow/block[1]/lineArea/viewport/@bap"/>
- <eval expected="color=#ffffff" xpath="//flow/block[1]/lineArea/viewport/@background"/>
- <eval expected="(solid,#000000,5000)" xpath="//flow/block[1]/lineArea/viewport/@border-before"/>
- <eval expected="(solid,#000000,20000)" xpath="//flow/block[1]/lineArea/viewport/@border-after"/>
- <eval expected="(solid,#000000,15000)" xpath="//flow/block[1]/lineArea/viewport/@border-start"/>
- <eval expected="(solid,#000000,10000)" xpath="//flow/block[1]/lineArea/viewport/@border-end"/>
- <eval expected="15000" xpath="//flow/block[1]/lineArea/viewport/@padding-before"/>
- <eval expected="10000" xpath="//flow/block[1]/lineArea/viewport/@padding-after"/>
- <eval expected="5000" xpath="//flow/block[1]/lineArea/viewport/@padding-start"/>
- <eval expected="20000" xpath="//flow/block[1]/lineArea/viewport/@padding-end"/>
- <eval expected="20000 20000 20000 20000" xpath="//flow/block[1]/lineArea/viewport/foreignObject/@pos"/>
- <!-- second e-g -->
- <eval expected="20000" xpath="//flow/block[2]/lineArea/viewport/@ipd"/>
- <eval expected="20000" xpath="//flow/block[2]/lineArea/viewport/@bpd"/>
- <eval expected="70000" xpath="//flow/block[2]/lineArea/viewport/@bpda"/>
- <eval expected="15550" xpath="//flow/block[2]/lineArea/viewport/@offset"/>
- <eval expected="20000 30000 20000 30000" xpath="//flow/block[2]/lineArea/viewport/@bap"/>
- <eval expected="color=#ffffff" xpath="//flow/block[2]/lineArea/viewport/@background"/>
- <eval expected="(solid,#000000,5000)" xpath="//flow/block[2]/lineArea/viewport/@border-before"/>
- <eval expected="(solid,#000000,20000)" xpath="//flow/block[2]/lineArea/viewport/@border-after"/>
- <eval expected="(solid,#000000,15000)" xpath="//flow/block[2]/lineArea/viewport/@border-start"/>
- <eval expected="(solid,#000000,10000)" xpath="//flow/block[2]/lineArea/viewport/@border-end"/>
- <eval expected="15000" xpath="//flow/block[2]/lineArea/viewport/@padding-before"/>
- <eval expected="10000" xpath="//flow/block[2]/lineArea/viewport/@padding-after"/>
- <eval expected="5000" xpath="//flow/block[2]/lineArea/viewport/@padding-start"/>
- <eval expected="20000" xpath="//flow/block[2]/lineArea/viewport/@padding-end"/>
- <eval expected="20000 20000 20000 20000" xpath="//flow/block[2]/lineArea/viewport/foreignObject/@pos"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline-level_id.xml b/test/layoutengine/testcases/inline-level_id.xml
deleted file mode 100644
index 9b6d22596..000000000
--- a/test/layoutengine/testcases/inline-level_id.xml
+++ /dev/null
@@ -1,79 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks IDs on inline-level FOs.
- </p>
- <p>
- TODO:
- Test inline-container, bidi-override once implemented.
- </p>
- <p>
- Notes:
- The following FOs cannot be tested this way:
- wrapper, initial-property-set.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="20in"
- margin="20pt">
- <fo:region-body background-color="yellow"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence id="page-sequence1" master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>text<fo:inline id="inline1">inline</fo:inline>text</fo:block>
- <fo:block>text<fo:wrapper id="wrapper1">wrapper</fo:wrapper>text</fo:block>
- <fo:block>text<!--fo:inline-container id="inline-container1"><fo:block>inline-container</fo:block></fo:inline-container-->text</fo:block>
- <fo:block>text<fo:page-number id="page-number1"/>text</fo:block>
- <fo:block>text<fo:page-number-citation id="page-number-citation1" ref-id="inline1"/>text</fo:block>
- <fo:block>text<fo:leader id="leader1" leader-pattern="dots" leader-length="2cm"/>text</fo:block>
- <fo:block>text<fo:character id="char1" character="X"/>text</fo:block>
- <fo:block>text<!--fo:bidi-override id="bidi1" direction="ltr">bidi-override</fo:bidi-override-->text</fo:block>
- <fo:block>text<fo:basic-link id="link1" internal-destination="page-number1">link</fo:basic-link>text</fo:block>
- <fo:block>text<fo:instream-foreign-object id="ifo1" content-height="12pt">
- <svg:svg viewBox="0 0 20 20">
- <svg:g style="fill:red; stroke:#000000">
- <svg:rect x="0" y="0" width="15" height="15"/>
- <svg:rect x="5" y="5" width="15" height="15"/>
- </svg:g>
- </svg:svg>
- </fo:instream-foreign-object>text</fo:block>
- <fo:block>text<fo:external-graphic id="eg1" src="../../resources/images/bgimg72dpi.jpg" content-height="12pt"/>text</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="inline1" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea/inlineparent/@prod-id"/>
- <!-- wrapper skipped -->
- <!--eval expected="inline-container1" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[3]/lineArea/???/@prod-id"/-->
- <eval expected="page-number1" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[4]/lineArea/text[2]/@prod-id"/>
- <eval expected="page-number-citation1" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[5]/lineArea/text[2]/@prod-id"/>
- <eval expected="leader1" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[6]/lineArea/inlineparent/@prod-id"/>
- <eval expected="char1" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[7]/lineArea/char/@prod-id"/>
- <!--eval expected="bidi1" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[8]/lineArea/???/@prod-id"/-->
- <eval expected="link1" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[9]/lineArea/inlineparent/@prod-id"/>
- <eval expected="ifo1" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[10]/lineArea/viewport/@prod-id"/>
- <eval expected="ifo1" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[10]/lineArea/viewport/foreignObject/@prod-id"/>
- <eval expected="eg1" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[11]/lineArea/viewport/@prod-id"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline_alignment-adjust_1.xml b/test/layoutengine/testcases/inline_alignment-adjust_1.xml
deleted file mode 100755
index ca2cfde50..000000000
--- a/test/layoutengine/testcases/inline_alignment-adjust_1.xml
+++ /dev/null
@@ -1,91 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks inline level alignment-adjust.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" background-color="yellow">alignment-adjust not specified</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-adjust="auto" background-color="yellow">alignment-adjust="auto"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-adjust="baseline" background-color="yellow">alignment-adjust="baseline"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-adjust="before-edge" background-color="yellow">alignment-adjust="before-edge"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-adjust="text-before-edge" background-color="yellow">alignment-adjust="text-before-edge"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-adjust="central" background-color="yellow">alignment-adjust="central"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-adjust="middle" background-color="yellow">alignment-adjust="middle"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-adjust="after-edge" background-color="yellow">alignment-adjust="after-edge"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-adjust="text-after-edge" background-color="yellow">alignment-adjust="text-after-edge"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-adjust="ideographic" background-color="yellow">alignment-adjust="ideographic"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-adjust="alphabetic" background-color="yellow">alignment-adjust="alphabetic"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-adjust="hanging" background-color="yellow">alignment-adjust="hanging"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-adjust="mathematical" background-color="yellow">alignment-adjust="mathematical"</fo:inline> After
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="2872" xpath="//flow/block[1]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="2872" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="2872" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="10052" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="10052" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="5427" xpath="//flow/block[6]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="5487" xpath="//flow/block[7]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="802" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="802" xpath="//flow/block[9]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="802" xpath="//flow/block[10]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="2872" xpath="//flow/block[11]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="8616" xpath="//flow/block[12]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="6462" xpath="//flow/block[13]/lineArea[1]/inlineparent/@offset"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline_alignment-adjust_2.xml b/test/layoutengine/testcases/inline_alignment-adjust_2.xml
deleted file mode 100755
index d8d766e50..000000000
--- a/test/layoutengine/testcases/inline_alignment-adjust_2.xml
+++ /dev/null
@@ -1,98 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks inline level alignment-adjust.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-adjust="0pt" background-color="yellow">alignment-adjust="0pt"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-adjust="0%" background-color="yellow">alignment-adjust="0%"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-adjust="3pt" background-color="yellow">alignment-adjust="3pt"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-adjust="-3pt" background-color="yellow">alignment-adjust="-3pt"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-adjust="30%" background-color="yellow">alignment-adjust="30%"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-adjust="-30%" background-color="yellow">alignment-adjust="-30%"</fo:inline> After
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="12950" xpath="//flow/block[1]/lineArea[1]/@bpd"/>
- <eval expected="1925" xpath="//flow/block[1]/lineArea[1]/@space-before"/>
- <eval expected="1925" xpath="//flow/block[1]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[1]/@offset"/>
- <eval expected="2872" xpath="//flow/block[1]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[2]/lineArea[1]/@bpd"/>
- <eval expected="1925" xpath="//flow/block[2]/lineArea[1]/@space-before"/>
- <eval expected="1925" xpath="//flow/block[2]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[1]/@offset"/>
- <eval expected="2872" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="13078" xpath="//flow/block[3]/lineArea[1]/@bpd"/>
- <eval expected="1925" xpath="//flow/block[3]/lineArea[1]/@space-before"/>
- <eval expected="1925" xpath="//flow/block[3]/lineArea[1]/@space-after"/>
- <eval expected="128" xpath="//flow/block[3]/lineArea[1]/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="128" xpath="//flow/block[3]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="15122" xpath="//flow/block[4]/lineArea[1]/@bpd"/>
- <eval expected="1925" xpath="//flow/block[4]/lineArea[1]/@space-before"/>
- <eval expected="1925" xpath="//flow/block[4]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[1]/@offset"/>
- <eval expected="5872" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="13678" xpath="//flow/block[5]/lineArea[1]/@bpd"/>
- <eval expected="1925" xpath="//flow/block[5]/lineArea[1]/@space-before"/>
- <eval expected="1925" xpath="//flow/block[5]/lineArea[1]/@space-after"/>
- <eval expected="728" xpath="//flow/block[5]/lineArea[1]/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="728" xpath="//flow/block[5]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="15722" xpath="//flow/block[6]/lineArea[1]/@bpd"/>
- <eval expected="1925" xpath="//flow/block[6]/lineArea[1]/@space-before"/>
- <eval expected="1925" xpath="//flow/block[6]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/text[1]/@offset"/>
- <eval expected="6472" xpath="//flow/block[6]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/text[2]/@offset"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline_alignment-baseline_1.xml b/test/layoutengine/testcases/inline_alignment-baseline_1.xml
deleted file mode 100755
index 0e1ae430d..000000000
--- a/test/layoutengine/testcases/inline_alignment-baseline_1.xml
+++ /dev/null
@@ -1,91 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks inline level alignment-baseline.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" background-color="yellow">alignment-baseline not specified</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-baseline="auto" background-color="yellow">alignment-baseline="auto"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-baseline="baseline" background-color="yellow">alignment-baseline="baseline"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-baseline="before-edge" background-color="yellow">alignment-baseline="before-edge"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-baseline="text-before-edge" background-color="yellow">alignment-baseline="text-before-edge"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-baseline="central" background-color="yellow">alignment-baseline="central"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-baseline="middle" background-color="yellow">alignment-baseline="middle"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-baseline="after-edge" background-color="yellow">alignment-baseline="after-edge"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-baseline="text-after-edge" background-color="yellow">alignment-baseline="text-after-edge"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-baseline="ideographic" background-color="yellow">alignment-baseline="ideographic"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-baseline="alphabetic" background-color="yellow">alignment-baseline="alphabetic"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-baseline="hanging" background-color="yellow">alignment-baseline="hanging"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before <fo:inline font-size="10pt" alignment-baseline="mathematical" background-color="yellow">alignment-baseline="mathematical"</fo:inline> After
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="2872" xpath="//flow/block[1]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="2872" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="2872" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="1850" xpath="//flow/block[6]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="1826" xpath="//flow/block[7]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="3700" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="3700" xpath="//flow/block[9]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="3700" xpath="//flow/block[10]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="2872" xpath="//flow/block[11]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="574" xpath="//flow/block[12]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="1436" xpath="//flow/block[13]/lineArea[1]/inlineparent/@offset"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline_alignment-baseline_2.xml b/test/layoutengine/testcases/inline_alignment-baseline_2.xml
deleted file mode 100755
index 2fc852a76..000000000
--- a/test/layoutengine/testcases/inline_alignment-baseline_2.xml
+++ /dev/null
@@ -1,116 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks inline level alignment-baseline.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="10pt">
- Before <fo:inline font-size="14pt" background-color="yellow">alignment-baseline not specified</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="10pt">
- Before <fo:inline font-size="14pt" alignment-baseline="auto" background-color="yellow">alignment-baseline="auto"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="10pt">
- Before <fo:inline font-size="14pt" alignment-baseline="baseline" background-color="yellow">alignment-baseline="baseline"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="10pt">
- Before <fo:inline font-size="14pt" alignment-baseline="before-edge" background-color="yellow">alignment-baseline="before-edge"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="10pt">
- Before <fo:inline font-size="14pt" alignment-baseline="text-before-edge" background-color="yellow">alignment-baseline="text-before-edge"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="10pt">
- Before <fo:inline font-size="14pt" alignment-baseline="central" background-color="yellow">alignment-baseline="central"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="10pt">
- Before <fo:inline font-size="14pt" alignment-baseline="middle" background-color="yellow">alignment-baseline="middle"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="10pt">
- Before <fo:inline font-size="14pt" alignment-baseline="after-edge" background-color="yellow">alignment-baseline="after-edge"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="10pt">
- Before <fo:inline font-size="14pt" alignment-baseline="text-after-edge" background-color="yellow">alignment-baseline="text-after-edge"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="10pt">
- Before <fo:inline font-size="14pt" alignment-baseline="ideographic" background-color="yellow">alignment-baseline="ideographic"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="10pt">
- Before <fo:inline font-size="14pt" alignment-baseline="alphabetic" background-color="yellow">alignment-baseline="alphabetic"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="10pt">
- Before <fo:inline font-size="14pt" alignment-baseline="hanging" background-color="yellow">alignment-baseline="hanging"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="10pt">
- Before <fo:inline font-size="14pt" alignment-baseline="mathematical" background-color="yellow">alignment-baseline="mathematical"</fo:inline> After
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="2872" xpath="//flow/block[1]/lineArea[1]/text[1]/@offset"/>
- <eval expected="2872" xpath="//flow/block[1]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="2872" xpath="//flow/block[2]/lineArea[1]/text[1]/@offset"/>
- <eval expected="2872" xpath="//flow/block[2]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="2872" xpath="//flow/block[3]/lineArea[1]/text[1]/@offset"/>
- <eval expected="2872" xpath="//flow/block[3]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="1850" xpath="//flow/block[6]/lineArea[1]/text[1]/@offset"/>
- <eval expected="1850" xpath="//flow/block[6]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="1826" xpath="//flow/block[7]/lineArea[1]/text[1]/@offset"/>
- <eval expected="1826" xpath="//flow/block[7]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="0" xpath="//flow/block[8]/lineArea[1]/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[8]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="3700" xpath="//flow/block[9]/lineArea[1]/text[1]/@offset"/>
- <eval expected="3700" xpath="//flow/block[9]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="3700" xpath="//flow/block[10]/lineArea[1]/text[1]/@offset"/>
- <eval expected="3700" xpath="//flow/block[10]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="2872" xpath="//flow/block[11]/lineArea[1]/text[1]/@offset"/>
- <eval expected="2872" xpath="//flow/block[11]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="574" xpath="//flow/block[12]/lineArea[1]/text[1]/@offset"/>
- <eval expected="574" xpath="//flow/block[12]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="1436" xpath="//flow/block[13]/lineArea[1]/text[1]/@offset"/>
- <eval expected="1436" xpath="//flow/block[13]/lineArea[1]/text[2]/@offset"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline_alignment-baseline_3.xml b/test/layoutengine/testcases/inline_alignment-baseline_3.xml
deleted file mode 100755
index 3359f862d..000000000
--- a/test/layoutengine/testcases/inline_alignment-baseline_3.xml
+++ /dev/null
@@ -1,91 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks inline level alignment-baseline.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt">
- <fo:inline font-size="14pt">B</fo:inline>efore <fo:inline font-size="10pt" background-color="yellow">alignment-baseline not specified</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt">
- <fo:inline font-size="14pt">B</fo:inline>efore <fo:inline font-size="10pt" alignment-baseline="auto" background-color="yellow">alignment-baseline="auto"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt">
- <fo:inline font-size="14pt">B</fo:inline>efore <fo:inline font-size="10pt" alignment-baseline="baseline" background-color="yellow">alignment-baseline="baseline"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt">
- <fo:inline font-size="14pt">B</fo:inline>efore <fo:inline font-size="10pt" alignment-baseline="before-edge" background-color="yellow">alignment-baseline="before-edge"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt">
- <fo:inline font-size="14pt">B</fo:inline>efore <fo:inline font-size="10pt" alignment-baseline="text-before-edge" background-color="yellow">alignment-baseline="text-before-edge"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt">
- <fo:inline font-size="14pt">B</fo:inline>efore <fo:inline font-size="10pt" alignment-baseline="central" background-color="yellow">alignment-baseline="central"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt">
- <fo:inline font-size="14pt">B</fo:inline>efore <fo:inline font-size="10pt" alignment-baseline="middle" background-color="yellow">alignment-baseline="middle"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt">
- <fo:inline font-size="14pt">B</fo:inline>efore <fo:inline font-size="10pt" alignment-baseline="after-edge" background-color="yellow">alignment-baseline="after-edge"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt">
- <fo:inline font-size="14pt">B</fo:inline>efore <fo:inline font-size="10pt" alignment-baseline="text-after-edge" background-color="yellow">alignment-baseline="text-after-edge"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt">
- <fo:inline font-size="14pt">B</fo:inline>efore <fo:inline font-size="10pt" alignment-baseline="ideographic" background-color="yellow">alignment-baseline="ideographic"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt">
- <fo:inline font-size="14pt">B</fo:inline>efore <fo:inline font-size="10pt" alignment-baseline="alphabetic" background-color="yellow">alignment-baseline="alphabetic"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt">
- <fo:inline font-size="14pt">B</fo:inline>efore <fo:inline font-size="10pt" alignment-baseline="hanging" background-color="yellow">alignment-baseline="hanging"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt">
- <fo:inline font-size="14pt">B</fo:inline>efore <fo:inline font-size="10pt" alignment-baseline="mathematical" background-color="yellow">alignment-baseline="mathematical"</fo:inline> After
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="2872" xpath="//flow/block[1]/lineArea[1]/inlineparent[2]/@offset"/>
- <eval expected="2872" xpath="//flow/block[2]/lineArea[1]/inlineparent[2]/@offset"/>
- <eval expected="2872" xpath="//flow/block[3]/lineArea[1]/inlineparent[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent[2]/@offset"/>
- <eval expected="1436" xpath="//flow/block[5]/lineArea[1]/inlineparent[2]/@offset"/>
- <eval expected="2361" xpath="//flow/block[6]/lineArea[1]/inlineparent[2]/@offset"/>
- <eval expected="2349" xpath="//flow/block[7]/lineArea[1]/inlineparent[2]/@offset"/>
- <eval expected="3700" xpath="//flow/block[8]/lineArea[1]/inlineparent[2]/@offset"/>
- <eval expected="3286" xpath="//flow/block[9]/lineArea[1]/inlineparent[2]/@offset"/>
- <eval expected="3286" xpath="//flow/block[10]/lineArea[1]/inlineparent[2]/@offset"/>
- <eval expected="2872" xpath="//flow/block[11]/lineArea[1]/inlineparent[2]/@offset"/>
- <eval expected="1723" xpath="//flow/block[12]/lineArea[1]/inlineparent[2]/@offset"/>
- <eval expected="2154" xpath="//flow/block[13]/lineArea[1]/inlineparent[2]/@offset"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline_alignment-baseline_4.xml b/test/layoutengine/testcases/inline_alignment-baseline_4.xml
deleted file mode 100755
index 4268c1239..000000000
--- a/test/layoutengine/testcases/inline_alignment-baseline_4.xml
+++ /dev/null
@@ -1,231 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks inline level alignment-baseline for nested inlines.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true" font-family="sans-serif">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="24pt">Big
- <fo:inline font-size="50%"
- background-color="yellow">alphabetic
- <fo:inline font-size="150%" background-color="red">alphabetic</fo:inline>
- </fo:inline>
- Big <fo:inline font-size="8pt">Baseline table unchanged</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="24pt">Big
- <fo:inline font-size="50%"
- dominant-baseline="reset-size"
- background-color="yellow">alphabetic
- <fo:inline font-size="150%" background-color="red">alphabetic</fo:inline>
- </fo:inline>
- Big <fo:inline font-size="8pt">Baseline table changed</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="24pt">Big
- <fo:inline font-size="50%"
- alignment-baseline="hanging"
- background-color="yellow">hanging
- <fo:inline font-size="50%" background-color="red" alignment-baseline="middle">middle</fo:inline>
- </fo:inline>
- Big <fo:inline font-size="8pt">Baseline table unchanged</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="24pt">Big
- <fo:inline font-size="50%"
- dominant-baseline="reset-size"
- alignment-baseline="hanging"
- background-color="yellow">hanging
- <fo:inline font-size="50%" background-color="red" alignment-baseline="middle">middle</fo:inline>
- </fo:inline>
- Big <fo:inline font-size="8pt">Baseline table changed</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="24pt">Big
- <fo:inline font-size="50%"
- alignment-baseline="text-before-edge"
- background-color="yellow">text-before-edge
- <fo:inline font-size="150%" background-color="red" alignment-baseline="after-edge">after-edge</fo:inline>
- </fo:inline>
- Big <fo:inline font-size="8pt">Baseline table unchanged</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="24pt">Big
- <fo:inline font-size="50%"
- dominant-baseline="reset-size"
- alignment-baseline="text-before-edge"
- background-color="yellow">text-before-edge
- <fo:inline font-size="150%" background-color="red" alignment-baseline="after-edge">after-edge</fo:inline>
- </fo:inline>
- Big <fo:inline font-size="8pt">Baseline table changed</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="24pt">Big
- <fo:inline font-size="25%"
- alignment-baseline="central"
- background-color="yellow">central
- <fo:inline font-size="150%"
- alignment-baseline="text-before-edge"
- background-color="red">text-before-edge
- <fo:inline font-size="200%" background-color="green">alphabetic</fo:inline>
- </fo:inline>
- </fo:inline>
- Big <fo:inline font-size="8pt">Baseline table unchanged</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="24pt">Big
- <fo:inline font-size="25%"
- dominant-baseline="reset-size"
- alignment-baseline="central"
- background-color="yellow">central
- <fo:inline font-size="150%"
- alignment-baseline="text-before-edge"
- background-color="red">text-before-edge
- <fo:inline font-size="200%" background-color="green">alphabetic</fo:inline>
- </fo:inline>
- </fo:inline>
- Big <fo:inline font-size="8pt">Baseline table changed</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="24pt">Big
- <fo:inline font-size="25%"
- dominant-baseline="reset-size"
- alignment-baseline="central"
- background-color="yellow">central
- <fo:inline font-size="150%"
- dominant-baseline="reset-size"
- alignment-baseline="text-before-edge"
- background-color="red">text-before-edge
- <fo:inline font-size="200%" background-color="green">alphabetic</fo:inline>
- </fo:inline>
- </fo:inline>
- Big <fo:inline font-size="8pt">Baseline table changed twice</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="24pt">Big
- <fo:inline font-size="50%"
- dominant-baseline="reset-size"
- alignment-baseline="before-edge"
- background-color="yellow">before-edge
- <fo:inline font-size="150%" background-color="red" alignment-baseline="after-edge">after-edge</fo:inline>
- </fo:inline>
- Big <fo:inline font-size="8pt">This is over constraint</fo:inline>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="22200" xpath="//flow/block[1]/lineArea[1]/@bpd"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[1]/@offset"/>
- <eval expected="8616" xpath="//flow/block[1]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="-4308" xpath="//flow/block[1]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/text[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="22200" xpath="//flow/block[2]/lineArea[1]/@bpd"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[1]/@offset"/>
- <eval expected="8616" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="-4308" xpath="//flow/block[2]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/text[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="22200" xpath="//flow/block[3]/lineArea[1]/@bpd"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/text[1]/@offset"/>
- <eval expected="1723" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="6494" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/text[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="22200" xpath="//flow/block[4]/lineArea[1]/@bpd"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[1]/@offset"/>
- <eval expected="1723" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="2739" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/text[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="22200" xpath="//flow/block[5]/lineArea[1]/@bpd"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="5550" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/text[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="27750" xpath="//flow/block[6]/lineArea[1]/@bpd"/>
- <eval expected="5550" xpath="//flow/block[6]/lineArea[1]/text[1]/@offset"/>
- <eval expected="5550" xpath="//flow/block[6]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="-5550" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/text[2]/@offset"/>
- <eval expected="5550" xpath="//flow/block[6]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="22200" xpath="//flow/block[7]/lineArea[1]/@bpd"/>
- <eval expected="0" xpath="//flow/block[7]/lineArea[1]/text[1]/@offset"/>
- <eval expected="8325" xpath="//flow/block[7]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[7]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="-8325" xpath="//flow/block[7]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[7]/lineArea[1]/inlineparent/inlineparent/text[1]/@offset"/>
- <eval expected="4308" xpath="//flow/block[7]/lineArea[1]/inlineparent/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[7]/lineArea[1]/inlineparent/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[7]/lineArea[1]/inlineparent/inlineparent/text[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[7]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="22491" xpath="//flow/block[8]/lineArea[1]/@bpd"/>
- <eval expected="291" xpath="//flow/block[8]/lineArea[1]/text[1]/@offset"/>
- <eval expected="8616" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/text[1]/@offset"/>
- <eval expected="-8616" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/text[2]/@offset"/>
- <eval expected="291" xpath="//flow/block[8]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="22200" xpath="//flow/block[9]/lineArea[1]/@bpd"/>
- <eval expected="0" xpath="//flow/block[9]/lineArea[1]/text[1]/@offset"/>
- <eval expected="8325" xpath="//flow/block[9]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[9]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[9]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[9]/lineArea[1]/inlineparent/inlineparent/text[1]/@offset"/>
- <eval expected="-6462" xpath="//flow/block[9]/lineArea[1]/inlineparent/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[9]/lineArea[1]/inlineparent/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[9]/lineArea[1]/inlineparent/inlineparent/text[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[9]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="27750" xpath="//flow/block[10]/lineArea[1]/@bpd"/>
- <eval expected="5550" xpath="//flow/block[10]/lineArea[1]/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[10]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[10]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="-5550" xpath="//flow/block[10]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[10]/lineArea[1]/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[10]/lineArea[1]/inlineparent/text[2]/@offset"/>
- <eval expected="5550" xpath="//flow/block[10]/lineArea[1]/text[2]/@offset"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline_background-color.xml b/test/layoutengine/testcases/inline_background-color.xml
deleted file mode 100755
index ee56f58ed..000000000
--- a/test/layoutengine/testcases/inline_background-color.xml
+++ /dev/null
@@ -1,132 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks fo:inline with background-color properties.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="5pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body" font-size="10pt">
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt">
- To <fo:inline background-color="yellow">emphasize a phrase</fo:inline> highlight it.
- </fo:block>
- <fo:block background-color="silver" text-align="end" margin="1pt 0pt 1pt 0pt">
- To <fo:inline background-color="yellow">emphasize a phrase</fo:inline> highlight it with text-align="end".
- </fo:block>
- <fo:block background-color="silver" text-align="justify" margin="1pt 0pt 1pt 0pt">
- To <fo:inline background-color="yellow">emphasize a phrase</fo:inline> highlight it with text-align="justify".
- </fo:block>
- <fo:block background-color="silver" text-align="center" margin="1pt 0pt 1pt 0pt">
- To <fo:inline background-color="yellow">emphasize a phrase</fo:inline> highlight it with text-align="center".
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt">
- This demonstrates a long inline
- <fo:inline background-color="yellow">which stretches over multiple lines to
- show how the highlight extends from line to line while
- correctly honouring the text-align (not specified) property</fo:inline>
- back to normal
- </fo:block>
- <fo:block background-color="silver" text-align="end" margin="1pt 0pt 1pt 0pt">
- This demonstrates a long inline
- <fo:inline background-color="yellow">which stretches over multiple lines to
- show how the highlight extends from line to line while
- correctly honouring the text-align="end" property</fo:inline>
- back to normal
- </fo:block>
- <fo:block background-color="silver" text-align="justify" margin="1pt 0pt 1pt 0pt">
- This demonstrates a long inline
- <fo:inline background-color="yellow">which stretches over multiple lines to
- show how the highlight extends from line to line while
- correctly honouring the text-align="justify" property</fo:inline>
- back to normal
- </fo:block>
- <fo:block background-color="silver" text-align="center" margin="1pt 0pt 1pt 0pt">
- This demonstrates a long inline
- <fo:inline background-color="yellow">which stretches over multiple lines to
- show how the highlight extends from line to line while
- correctly honouring the text-align="center" property</fo:inline>
- back to normal
- </fo:block>
- <fo:block background-color="silver" text-align="center" margin="1pt 0pt 1pt 0pt">
- Nested inline highlights
- <fo:inline background-color="yellow" font-size="10pt">this is 10pt text
- <fo:inline font-size="14pt">nested within is 14pt text</fo:inline>
- followed by 10pt text</fo:inline>
- back to normal
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="90040" xpath="//flow/block[1]/lineArea/inlineparent/@ipd"/>
- <eval expected="color=#ffff00" xpath="//flow/block[1]/lineArea/inlineparent/@background"/>
-
- <eval expected="90040" xpath="//flow/block[2]/lineArea/inlineparent/@ipd"/>
- <eval expected="color=#ffff00" xpath="//flow/block[2]/lineArea/inlineparent/@background"/>
-
- <eval expected="90040" xpath="//flow/block[3]/lineArea/inlineparent/@ipd"/>
- <eval expected="color=#ffff00" xpath="//flow/block[3]/lineArea/inlineparent/@background"/>
-
- <eval expected="90040" xpath="//flow/block[4]/lineArea/inlineparent/@ipd"/>
- <eval expected="color=#ffff00" xpath="//flow/block[4]/lineArea/inlineparent/@background"/>
-
- <eval expected="188950" xpath="//flow/block[5]/lineArea[1]/inlineparent/@ipd"/>
- <eval expected="color=#ffff00" xpath="//flow/block[5]/lineArea[1]/inlineparent/@background"/>
- <eval expected="313470" xpath="//flow/block[5]/lineArea[2]/inlineparent/@ipd"/>
- <eval expected="color=#ffff00" xpath="//flow/block[5]/lineArea[2]/inlineparent/@background"/>
- <eval expected="145610" xpath="//flow/block[5]/lineArea[3]/inlineparent/@ipd"/>
- <eval expected="color=#ffff00" xpath="//flow/block[5]/lineArea[3]/inlineparent/@background"/>
-
- <eval expected="188950" xpath="//flow/block[6]/lineArea[1]/inlineparent/@ipd"/>
- <eval expected="color=#ffff00" xpath="//flow/block[6]/lineArea[1]/inlineparent/@background"/>
- <eval expected="313470" xpath="//flow/block[6]/lineArea[2]/inlineparent/@ipd"/>
- <eval expected="color=#ffff00" xpath="//flow/block[6]/lineArea[2]/inlineparent/@background"/>
- <eval expected="109650" xpath="//flow/block[6]/lineArea[3]/inlineparent/@ipd"/>
- <eval expected="color=#ffff00" xpath="//flow/block[6]/lineArea[3]/inlineparent/@background"/>
-
- <eval expected="199793" xpath="//flow/block[7]/lineArea[1]/inlineparent/@ipd"/>
- <eval expected="color=#ffff00" xpath="//flow/block[7]/lineArea[1]/inlineparent/@background"/>
- <eval expected="350000" xpath="//flow/block[7]/lineArea[2]/inlineparent/@ipd"/>
- <eval expected="color=#ffff00" xpath="//flow/block[7]/lineArea[2]/inlineparent/@background"/>
- <eval expected="118530" xpath="//flow/block[7]/lineArea[3]/inlineparent/@ipd"/>
- <eval expected="color=#ffff00" xpath="//flow/block[7]/lineArea[3]/inlineparent/@background"/>
-
- <eval expected="128370" xpath="//flow/block[8]/lineArea[1]/inlineparent/@ipd"/>
- <eval expected="color=#ffff00" xpath="//flow/block[8]/lineArea[1]/inlineparent/@background"/>
- <eval expected="269560" xpath="//flow/block[8]/lineArea[2]/inlineparent/@ipd"/>
- <eval expected="color=#ffff00" xpath="//flow/block[8]/lineArea[2]/inlineparent/@background"/>
- <eval expected="225250" xpath="//flow/block[8]/lineArea[3]/inlineparent/@ipd"/>
- <eval expected="color=#ffff00" xpath="//flow/block[8]/lineArea[3]/inlineparent/@background"/>
-
- <eval expected="151184" xpath="//flow/block[9]/lineArea[1]/inlineparent/@ipd"/>
- <eval expected="color=#ffff00" xpath="//flow/block[9]/lineArea[1]/inlineparent/@background"/>
- <eval expected="81704" xpath="//flow/block[9]/lineArea[1]/inlineparent/inlineparent/@ipd"/>
- <eval expected="161644" xpath="//flow/block[9]/lineArea[2]/inlineparent/@ipd"/>
- <eval expected="color=#ffff00" xpath="//flow/block[9]/lineArea[2]/inlineparent/@background"/>
- <eval expected="67704" xpath="//flow/block[9]/lineArea[2]/inlineparent/inlineparent/@ipd"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline_background-image.xml b/test/layoutengine/testcases/inline_background-image.xml
deleted file mode 100644
index 570be1d8d..000000000
--- a/test/layoutengine/testcases/inline_background-image.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks background image on a fo:inline.
- </p>
- </info>
- <variables>
- <img>../../resources/images/bgimg300dpi.jpg</img>
- </variables>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- Why is <fo:inline font-size="96pt" background-color="yellow" background-repeat="no-repeat" background-position-horizontal="center" background-position-vertical="center" background-image="##img">FOP</fo:inline> so cool?
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="197376" xpath="//flow/block/lineArea/inlineparent/@ipd"/>
- <eval expected="88800" xpath="//flow/block/lineArea/inlineparent/@bpd"/>
- <eval expected="color=#ffff00,url=../../resources/images/bgimg300dpi.jpg,repeat=no-repeat,horiz=75648,vertical=21360" xpath="//flow/block/lineArea/inlineparent/@background"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline_baseline-shift_1.xml b/test/layoutengine/testcases/inline_baseline-shift_1.xml
deleted file mode 100755
index 591e33756..000000000
--- a/test/layoutengine/testcases/inline_baseline-shift_1.xml
+++ /dev/null
@@ -1,164 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks inline level baseline-shift.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before
- <fo:inline font-size="10pt"
- baseline-shift="baseline"
- background-color="yellow">baseline-shift="baseline"</fo:inline>
- After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before
- <fo:inline font-size="10pt"
- baseline-shift="sub"
- background-color="yellow">baseline-shift="sub"</fo:inline>
- After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before
- <fo:inline font-size="10pt"
- baseline-shift="super"
- background-color="yellow">baseline-shift="super"</fo:inline>
- After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before
- <fo:inline font-size="10pt"
- baseline-shift="0pt"
- background-color="yellow">baseline-shift="0pt"</fo:inline>
- After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before
- <fo:inline font-size="10pt"
- baseline-shift="0%"
- background-color="yellow">baseline-shift="0%"</fo:inline>
- After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before
- <fo:inline font-size="10pt"
- baseline-shift="3pt"
- background-color="yellow">baseline-shift="3pt"</fo:inline>
- After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before
- <fo:inline font-size="10pt"
- baseline-shift="-3pt"
- background-color="yellow">baseline-shift="-3pt"</fo:inline>
- After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before
- <fo:inline font-size="10pt"
- baseline-shift="30%"
- background-color="yellow">baseline-shift="30%"</fo:inline>
- After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before
- <fo:inline font-size="10pt"
- baseline-shift="-30%"
- background-color="yellow">baseline-shift="-30%"</fo:inline>
- After
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="12950" xpath="//flow/block[1]/lineArea[1]/@bpd"/>
- <eval expected="1925" xpath="//flow/block[1]/lineArea[1]/@space-before"/>
- <eval expected="1925" xpath="//flow/block[1]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[1]/@offset"/>
- <eval expected="2872" xpath="//flow/block[1]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="14737" xpath="//flow/block[2]/lineArea[1]/@bpd"/>
- <eval expected="1925" xpath="//flow/block[2]/lineArea[1]/@space-before"/>
- <eval expected="1925" xpath="//flow/block[2]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[1]/@offset"/>
- <eval expected="5487" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="17400" xpath="//flow/block[3]/lineArea[1]/@bpd"/>
- <eval expected="1925" xpath="//flow/block[3]/lineArea[1]/@space-before"/>
- <eval expected="1925" xpath="//flow/block[3]/lineArea[1]/@space-after"/>
- <eval expected="4450" xpath="//flow/block[3]/lineArea[1]/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="4450" xpath="//flow/block[3]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[4]/lineArea[1]/@bpd"/>
- <eval expected="1925" xpath="//flow/block[4]/lineArea[1]/@space-before"/>
- <eval expected="1925" xpath="//flow/block[4]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[1]/@offset"/>
- <eval expected="2872" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[5]/lineArea[1]/@bpd"/>
- <eval expected="1925" xpath="//flow/block[5]/lineArea[1]/@space-before"/>
- <eval expected="1925" xpath="//flow/block[5]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[1]/@offset"/>
- <eval expected="2872" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="13078" xpath="//flow/block[6]/lineArea[1]/@bpd"/>
- <eval expected="1925" xpath="//flow/block[6]/lineArea[1]/@space-before"/>
- <eval expected="1925" xpath="//flow/block[6]/lineArea[1]/@space-after"/>
- <eval expected="128" xpath="//flow/block[6]/lineArea[1]/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="128" xpath="//flow/block[6]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="15122" xpath="//flow/block[7]/lineArea[1]/@bpd"/>
- <eval expected="1925" xpath="//flow/block[7]/lineArea[1]/@space-before"/>
- <eval expected="1925" xpath="//flow/block[7]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[7]/lineArea[1]/text[1]/@offset"/>
- <eval expected="5872" xpath="//flow/block[7]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[7]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="15118" xpath="//flow/block[8]/lineArea[1]/@bpd"/>
- <eval expected="1925" xpath="//flow/block[8]/lineArea[1]/@space-before"/>
- <eval expected="1925" xpath="//flow/block[8]/lineArea[1]/@space-after"/>
- <eval expected="2168" xpath="//flow/block[8]/lineArea[1]/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="2168" xpath="//flow/block[8]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="17162" xpath="//flow/block[9]/lineArea[1]/@bpd"/>
- <eval expected="1925" xpath="//flow/block[9]/lineArea[1]/@space-before"/>
- <eval expected="1925" xpath="//flow/block[9]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[9]/lineArea[1]/text[1]/@offset"/>
- <eval expected="7912" xpath="//flow/block[9]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[9]/lineArea[1]/text[2]/@offset"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline_baseline-shift_2.xml b/test/layoutengine/testcases/inline_baseline-shift_2.xml
deleted file mode 100755
index 5e7b276b7..000000000
--- a/test/layoutengine/testcases/inline_baseline-shift_2.xml
+++ /dev/null
@@ -1,172 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks inline level baseline-shift.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before
- <fo:inline font-size="10pt"
- baseline-shift="sub"
- background-color="yellow">sub
- <fo:inline font-size="8pt"
- baseline-shift="sub"
- background-color="red">sub
- </fo:inline>sub
- </fo:inline>
- After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before
- <fo:inline font-size="10pt"
- baseline-shift="sub"
- background-color="yellow">sub
- <fo:inline font-size="8pt"
- baseline-shift="super"
- background-color="red">super
- </fo:inline>sub
- </fo:inline>
- After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before
- <fo:inline font-size="10pt"
- baseline-shift="super"
- background-color="yellow">super
- <fo:inline font-size="8pt"
- baseline-shift="super"
- background-color="red">super
- </fo:inline>super
- </fo:inline>
- After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before
- <fo:inline font-size="10pt"
- baseline-shift="super"
- background-color="yellow">super
- <fo:inline font-size="8pt"
- baseline-shift="sub"
- background-color="red">sub
- </fo:inline>super
- </fo:inline>
- After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before
- <fo:inline font-size="10pt"
- baseline-shift="30%"
- background-color="yellow">30%
- <fo:inline font-size="8pt"
- baseline-shift="-50%"
- background-color="red">-50%
- </fo:inline>30%
- </fo:inline>
- After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before
- <fo:inline font-size="18pt"
- baseline-shift="super"
- background-color="yellow">super
- <fo:inline font-size="24pt"
- baseline-shift="sub"
- background-color="red">sub
- <fo:inline font-size="30pt"
- baseline-shift="super"
- background-color="green">super
- </fo:inline>sub
- </fo:inline>super
- </fo:inline>
- After
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="16415" xpath="//flow/block[1]/lineArea[1]/@bpd"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[1]/@offset"/>
- <eval expected="5487" xpath="//flow/block[1]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="3528" xpath="//flow/block[1]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/text[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="14737" xpath="//flow/block[2]/lineArea[1]/@bpd"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[1]/@offset"/>
- <eval expected="5487" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="-3794" xpath="//flow/block[2]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/text[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="21194" xpath="//flow/block[3]/lineArea[1]/@bpd"/>
- <eval expected="8244" xpath="//flow/block[3]/lineArea[1]/text[1]/@offset"/>
- <eval expected="3794" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="-3794" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/text[2]/@offset"/>
- <eval expected="8244" xpath="//flow/block[3]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="17400" xpath="//flow/block[4]/lineArea[1]/@bpd"/>
- <eval expected="4450" xpath="//flow/block[4]/lineArea[1]/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="3528" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/text[2]/@offset"/>
- <eval expected="4450" xpath="//flow/block[4]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="15118" xpath="//flow/block[5]/lineArea[1]/@bpd"/>
- <eval expected="2168" xpath="//flow/block[5]/lineArea[1]/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="7436" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/text[2]/@offset"/>
- <eval expected="2168" xpath="//flow/block[5]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="39060" xpath="//flow/block[6]/lineArea[1]/@bpd"/>
- <eval expected="25086" xpath="//flow/block[6]/lineArea[1]/text[1]/@offset"/>
- <eval expected="14892" xpath="//flow/block[6]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="1968" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/text[1]/@offset"/>
- <eval expected="-16860" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/text[2]/@offset"/>
- <eval expected="25086" xpath="//flow/block[6]/lineArea[1]/text[2]/@offset"/>
- </checks>
-</testcase>
-
diff --git a/test/layoutengine/testcases/inline_baseline-shift_3.xml b/test/layoutengine/testcases/inline_baseline-shift_3.xml
deleted file mode 100755
index 10f745a18..000000000
--- a/test/layoutengine/testcases/inline_baseline-shift_3.xml
+++ /dev/null
@@ -1,210 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks inline level baseline-shift.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before
- <fo:inline font-size="10pt"
- alignment-baseline="middle"
- dominant-baseline="middle"
- background-color="yellow">middle
- <fo:inline font-size="8pt"
- baseline-shift="sub"
- background-color="red">sub
- </fo:inline>middle
- </fo:inline>
- After <fo:inline font-size="8pt">Baseline table changed</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before
- <fo:inline font-size="10pt"
- alignment-baseline="middle"
- dominant-baseline="middle"
- background-color="yellow">middle
- <fo:inline font-size="8pt"
- baseline-shift="super"
- background-color="red">super
- </fo:inline>middle
- </fo:inline>
- After <fo:inline font-size="8pt">Baseline table changed</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before
- <fo:inline font-size="10pt"
- alignment-baseline="text-after-edge"
- dominant-baseline="text-after-edge"
- background-color="yellow">text-after-edge
- <fo:inline font-size="8pt"
- baseline-shift="30%"
- background-color="red">30%
- </fo:inline>text-after-edge
- </fo:inline>
- After <fo:inline font-size="8pt">Baseline table changed</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before
- <fo:inline font-size="10pt"
- alignment-baseline="text-before-edge"
- dominant-baseline="text-before-edge"
- background-color="yellow">text-before-edge
- <fo:inline font-size="8pt"
- baseline-shift="-50%"
- background-color="red">-50%
- </fo:inline>text-before-edge
- </fo:inline>
- After <fo:inline font-size="8pt">Baseline table changed</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before
- <fo:inline font-size="10pt"
- alignment-baseline="middle"
- background-color="yellow">middle
- <fo:inline font-size="8pt"
- baseline-shift="sub"
- background-color="red">sub
- </fo:inline>middle
- </fo:inline>
- After <fo:inline font-size="8pt">Baseline table unchanged</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before
- <fo:inline font-size="10pt"
- alignment-baseline="middle"
- background-color="yellow">middle
- <fo:inline font-size="8pt"
- baseline-shift="super"
- background-color="red">super
- </fo:inline>middle
- </fo:inline>
- After <fo:inline font-size="8pt">Baseline table unchanged</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before
- <fo:inline font-size="10pt"
- alignment-baseline="text-after-edge"
- background-color="yellow">text-after-edge
- <fo:inline font-size="8pt"
- baseline-shift="30%"
- background-color="red">30%
- </fo:inline>text-after-edge
- </fo:inline>
- After <fo:inline font-size="8pt">Baseline table unchanged</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- Before
- <fo:inline font-size="10pt"
- alignment-baseline="text-before-edge"
- background-color="yellow">text-before-edge
- <fo:inline font-size="8pt"
- baseline-shift="-50%"
- background-color="red">-50%
- </fo:inline>text-before-edge
- </fo:inline>
- After <fo:inline font-size="8pt">Baseline table unchanged</fo:inline>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="14846" xpath="//flow/block[1]/lineArea[1]/@bpd"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[1]/@offset"/>
- <eval expected="1826" xpath="//flow/block[1]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="5620" xpath="//flow/block[1]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/text[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[2]/lineArea[1]/@bpd"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[1]/@offset"/>
- <eval expected="1826" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="-1702" xpath="//flow/block[2]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/text[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[3]/lineArea[1]/@bpd"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/text[1]/@offset"/>
- <eval expected="3700" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="-1750" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/text[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="13400" xpath="//flow/block[4]/lineArea[1]/@bpd"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="6000" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/text[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[5]/lineArea[1]/@bpd"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[1]/@offset"/>
- <eval expected="1826" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="3528" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/text[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="14918" xpath="//flow/block[6]/lineArea[1]/@bpd"/>
- <eval expected="1968" xpath="//flow/block[6]/lineArea[1]/text[1]/@offset"/>
- <eval expected="3794" xpath="//flow/block[6]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="-3794" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/text[2]/@offset"/>
- <eval expected="1968" xpath="//flow/block[6]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[7]/lineArea[1]/@bpd"/>
- <eval expected="0" xpath="//flow/block[7]/lineArea[1]/text[1]/@offset"/>
- <eval expected="3700" xpath="//flow/block[7]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[7]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="-2992" xpath="//flow/block[7]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[7]/lineArea[1]/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[7]/lineArea[1]/inlineparent/text[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[7]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="17708" xpath="//flow/block[8]/lineArea[1]/@bpd"/>
- <eval expected="0" xpath="//flow/block[8]/lineArea[1]/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="10308" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/text[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[8]/lineArea[1]/text[2]/@offset"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline_baseline-shift_4.xml b/test/layoutengine/testcases/inline_baseline-shift_4.xml
deleted file mode 100755
index c0ade7fbe..000000000
--- a/test/layoutengine/testcases/inline_baseline-shift_4.xml
+++ /dev/null
@@ -1,184 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks inline level baseline-shift.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="16pt">
- Before
- <fo:inline font-size="50%"
- alignment-baseline="central"
- baseline-shift="6pt"
- background-color="yellow">6pt central
- </fo:inline>
- <fo:inline font-size="50%"
- alignment-baseline="central"
- background-color="orange">central
- </fo:inline>
- After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="16pt">
- Before
- <fo:inline font-size="50%"
- alignment-baseline="central"
- baseline-shift="-6pt"
- background-color="yellow">-6pt central
- </fo:inline>
- <fo:inline font-size="50%"
- alignment-baseline="central"
- background-color="orange">central
- </fo:inline>
- After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="16pt">
- Before
- <fo:inline font-size="50%"
- alignment-baseline="central"
- baseline-shift="sub"
- background-color="yellow">sub
- <fo:inline font-size="150%"
- alignment-baseline="text-before-edge"
- background-color="red">text-before-edge
- <fo:inline font-size="6pt"
- background-color="green">Baseline unchanged</fo:inline>
- </fo:inline>central
- </fo:inline>
- After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="16pt">
- Before
- <fo:inline font-size="50%"
- alignment-baseline="central"
- baseline-shift="super"
- background-color="yellow">super
- <fo:inline font-size="150%"
- alignment-baseline="text-after-edge"
- background-color="red">text-after-edge
- <fo:inline font-size="6pt"
- background-color="green">Baseline unchanged</fo:inline>
- </fo:inline>central
- </fo:inline>
- After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="16pt">
- Before
- <fo:inline font-size="50%"
- alignment-baseline="central"
- baseline-shift="sub"
- background-color="yellow">sub
- <fo:inline font-size="150%"
- dominant-baseline="text-before-edge"
- background-color="red">text-before-edge
- <fo:inline font-size="6pt"
- background-color="green">Baseline changed</fo:inline>
- </fo:inline>central
- </fo:inline>
- After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="16pt">
- Before
- <fo:inline font-size="50%"
- alignment-baseline="central"
- baseline-shift="super"
- background-color="yellow">super
- <fo:inline font-size="150%"
- dominant-baseline="text-after-edge"
- background-color="red">text-after-edge
- <fo:inline font-size="6pt"
- background-color="green">Baseline changed</fo:inline>
- </fo:inline>central
- </fo:inline>
- After
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="17100" xpath="//flow/block[1]/lineArea[1]/@bpd"/>
- <eval expected="2300" xpath="//flow/block[1]/lineArea[1]/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent[1]/text[1]/@offset"/>
- <eval expected="6000" xpath="//flow/block[1]/lineArea[1]/inlineparent[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent[2]/text[1]/@offset"/>
- <eval expected="2300" xpath="//flow/block[1]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="17100" xpath="//flow/block[2]/lineArea[1]/@bpd"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[1]/@offset"/>
- <eval expected="9700" xpath="//flow/block[2]/lineArea[1]/inlineparent[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent[1]/text[1]/@offset"/>
- <eval expected="3700" xpath="//flow/block[2]/lineArea[1]/inlineparent[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent[2]/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="16892" xpath="//flow/block[3]/lineArea[1]/@bpd"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/text[1]/@offset"/>
- <eval expected="5792" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/text/@offset"/>
- <eval expected="1436" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/text[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="23168" xpath="//flow/block[4]/lineArea[1]/@bpd"/>
- <eval expected="8368" xpath="//flow/block[4]/lineArea[1]/text[1]/@offset"/>
- <eval expected="3700" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="-3700" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/text/@offset"/>
- <eval expected="5136" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/text[2]/@offset"/>
- <eval expected="8368" xpath="//flow/block[4]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="14800" xpath="//flow/block[5]/lineArea[1]/@bpd"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[1]/@offset"/>
- <eval expected="5792" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="-2872" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/text[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="22340" xpath="//flow/block[6]/lineArea[1]/@bpd"/>
- <eval expected="7540" xpath="//flow/block[6]/lineArea[1]/text[1]/@offset"/>
- <eval expected="2872" xpath="//flow/block[6]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="-2872" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/text/@offset"/>
- <eval expected="5550" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/inlineparent/text/@offset"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/text[2]/@offset"/>
- <eval expected="7540" xpath="//flow/block[6]/lineArea[1]/text[2]/@offset"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline_block_nested_1.xml b/test/layoutengine/testcases/inline_block_nested_1.xml
deleted file mode 100644
index f64ebe37e..000000000
--- a/test/layoutengine/testcases/inline_block_nested_1.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks fo:inline and nested nodes.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block><fo:inline>part1<fo:block/>part2</fo:inline></fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker">
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="0" aux="true"/> <!-- this is from the empty block -->
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline_block_nested_2.xml b/test/layoutengine/testcases/inline_block_nested_2.xml
deleted file mode 100644
index e0f77824b..000000000
--- a/test/layoutengine/testcases/inline_block_nested_2.xml
+++ /dev/null
@@ -1,99 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks block content in fo:inline. It stresses the nesting by letting the fo:inline have a background color.
- </p>
- </info>
- <fo>
- <fo:root
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="simpleA4"
- page-height="29.7cm" page-width="21cm"
- margin-top="2cm" margin-bottom="2cm"
- margin-left="2cm" margin-right="2cm">
- <fo:region-body
- margin-top="1.2in" margin-bottom="1in"
- margin-left="1in" margin-right="1in"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
-
- <fo:page-sequence master-reference="simpleA4">
- <fo:flow flow-name="xsl-region-body">
- <fo:block language="en" country="US"
- hyphenate="true" text-align="justify">
- The appropriate values of the parameters can be obtained from <fo:inline background-color="lightgray">the following equations:
- <fo:block>
- w1 + w2 + w3 = W,
- </fo:block>
- <fo:block>
- y1 + y2 + y3 = Y,
- </fo:block>where W and Y follow from the previous rule</fo:inline>. This completes our argument.
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker">
- <box w="14400"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <box w="14400"/>
- <skip>3</skip>
- </element-list>
-
- <!-- the following check sequence verifies background traits caused by the inline element. -->
- <true xpath="not(boolean(//flow/block/@background))"/>
- <true xpath="not(boolean(//flow/block/lineArea[1]/child::*[1]/@background))"/>
-
- <true xpath="boolean(//flow/block/lineArea[2]/inlineparent[1])"/>
- <eval expected="color=#d3d3d3" xpath="//flow/block/lineArea[2]/child::*[1]/@background"/>
-
- <true xpath="boolean(//flow/block/lineArea[3]/inlineblockparent[1])"/>
- <eval expected="color=#d3d3d3" xpath="//flow/block/lineArea[3]/child::*[1]/@background"/>
- <true xpath="not(boolean(//flow/block/lineArea[3]/inlineblockparent[1]/block/@background))"/>
-
- <true xpath="boolean(//flow/block/lineArea[4]/inlineblockparent[1])"/>
- <eval expected="color=#d3d3d3" xpath="//flow/block/lineArea[4]/child::*[1]/@background"/>
- <true xpath="not(boolean(//flow/block/lineArea[4]/inlineblockparent[1]/block/@background))"/>
-
- <eval expected="inlineparent" xpath="local-name(//flow/block/lineArea[5]/child::*[1])"/>
- <eval expected="text" xpath="local-name(//flow/block/lineArea[5]/child::*[2])"/>
- <eval expected="color=#d3d3d3" xpath="//flow/block/lineArea[5]/child::*[1]/@background"/>
-
- <true xpath="not(boolean(//flow/block/lineArea[6]/child::*[1]/@background))"/>
-
- <!-- the following check sequence verifies size traits so the background is actually painted correctly. -->
- <eval expected="86400" xpath="//flow/block/@bpd"/>
- <eval expected="337891" xpath="//flow/block/@ipd"/>
- <eval expected="14400" xpath="//flow/block/lineArea[3]/inlineblockparent[1]/@bpd"/>
- <eval expected="337891" xpath="//flow/block/lineArea[3]/inlineblockparent[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block/lineArea[4]/inlineblockparent[1]/@bpd"/>
- <eval expected="337891" xpath="//flow/block/lineArea[4]/inlineblockparent[1]/@ipd"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline_block_nested_3.xml b/test/layoutengine/testcases/inline_block_nested_3.xml
deleted file mode 100644
index 60bdea9f1..000000000
--- a/test/layoutengine/testcases/inline_block_nested_3.xml
+++ /dev/null
@@ -1,89 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks block content in fo:inline. It stresses the nesting by letting the fo:inline have a background color.
- </p>
- </info>
- <fo>
- <fo:root
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="simpleA4"
- page-height="29.7cm" page-width="21cm"
- margin-top="2cm" margin-bottom="2cm"
- margin-left="2cm" margin-right="2cm">
- <fo:region-body
- margin-top="1.2in" margin-bottom="1in"
- margin-left="1in" margin-right="1in"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
-
- <fo:page-sequence master-reference="simpleA4">
- <fo:flow flow-name="xsl-region-body">
- <fo:block language="en" country="US"
- hyphenate="true" text-align="justify">
- The appropriate values of the parameters can be obtained from <fo:inline background-color="lightgray">the following table:
- <fo:block>
- <fo:table table-layout="fixed" border-collapse="separate" margin="0pt" border="solid 5pt" padding="5pt" width="4in + 10pt + 10pt" background-color="gray">
- <fo:table-column column-width="2in"/>
- <fo:table-column column-width="2in"/>
- <fo:table-body start-indent="0pt" end-indent="0pt">
- <fo:table-row>
- <fo:table-cell>
- <fo:block>w1 + w2 + w3</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="yellow">
- <fo:block>W</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell background-color="orange">
- <fo:block>y1 + y2 + y3</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Y</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:block>where W and Y follow from the previous rule</fo:inline>. This completes our argument.
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker">
- <box w="14400"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="10000" aux="true"/>
- <box w="14400"/>
- <penalty w="20000" p="0"/>
- <box w="14400"/>
- <box w="10000" aux="true"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <box w="14400"/>
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline_block_nested_4.xml b/test/layoutengine/testcases/inline_block_nested_4.xml
deleted file mode 100644
index 8def85e10..000000000
--- a/test/layoutengine/testcases/inline_block_nested_4.xml
+++ /dev/null
@@ -1,93 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- 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.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="5pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true" language="en">
- <fo:flow flow-name="xsl-region-body" font-size="10pt">
- <fo:block>
- Before inline
- <fo:inline background-color="red"><fo:block background-color="yellow">starting with a block</fo:block>
- after block</fo:inline>
- After inline
- </fo:block>
- <fo:block>
- <fo:inline background-color="blue">Before inline
- <fo:inline background-color="red"><fo:block background-color="yellow">starting with a block</fo:block>
- after block</fo:inline>
- After inline</fo:inline>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker">
- <box w="12000"/>
- <penalty w="0" p="0"/>
- <box w="12000"/>
- <penalty w="0" p="0"/>
- <box w="12000"/>
- <penalty w="0" p="0"/>
- <box w="12000"/>
- <penalty w="0" p="0"/>
- <box w="12000"/>
- <penalty w="0" p="0"/>
- <box w="12000"/>
- <penalty w="0" p="1000"/>
- <glue w="0"/>
- <penalty w="0" p="-1000"/>
- </element-list>
-
- <!-- first block -->
- <eval expected="Before inline"
- xpath="//flow/block[1]/lineArea[1]/text[1]"/>
- <true xpath="boolean(//flow/block[1]/lineArea[2]/inlineblockparent[1])"/>
- <eval expected="starting with a block"
- xpath="//flow/block[1]/lineArea[2]/inlineblockparent[1]/block[1]/lineArea[1]/text[1]"/>
- <true xpath="boolean(//flow/block[1]/lineArea[3]/inlineparent[1])"/>
- <eval expected=" After inline"
- xpath="//flow/block[1]/lineArea[3]/text[1]"/>
- <eval expected="after block"
- xpath="//flow/block[1]/lineArea[3]/inlineparent[1]/text[1]"/>
-
- <!-- second block -->
- <eval expected="Before inline"
- xpath="//flow/block[2]/lineArea[1]/inlineparent[1]/text[1]"/>
- <true xpath="boolean(//flow/block[2]/lineArea[2]/inlineparent[1]/inlineblockparent[1])"/>
- <eval expected="starting with a block"
- xpath="//flow/block[2]/lineArea[2]/inlineparent[1]/inlineblockparent[1]/block[1]/lineArea[1]/text[1]"/>
- <true xpath="boolean(//flow/block[2]/lineArea[3]/inlineparent[1]/inlineparent[1])"/>
- <eval expected=" After inline"
- xpath="//flow/block[2]/lineArea[3]/inlineparent[1]/text[1]"/>
- <eval expected="after block"
- xpath="//flow/block[2]/lineArea[3]/inlineparent[1]/inlineparent[1]/text[1]"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline_block_nested_bug36248.xml b/test/layoutengine/testcases/inline_block_nested_bug36248.xml
deleted file mode 100644
index d25247a0b..000000000
--- a/test/layoutengine/testcases/inline_block_nested_bug36248.xml
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks fo:inline and nested nodes. Regression test for Bugzilla #36248.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true" id="ps1">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>normal<fo:inline><fo:page-number/></fo:inline>normal</fo:block>
- <fo:block>normal<fo:inline><fo:page-number-citation ref-id="ps1"/></fo:inline>normal</fo:block>
- <fo:block>normal<fo:inline><fo:character character="x"/></fo:inline>normal</fo:block>
- <fo:block>normal<fo:inline><fo:external-graphic src="../../resources/images/bgimg300dpi.jpg"/></fo:inline>normal</fo:block>
- <fo:block>normal<fo:inline><fo:instream-foreign-object content-width="20pt" content-height="20pt">
- <svg:svg viewBox="0 0 20 20">
- <svg:g style="fill:red; stroke:#000000">
- <svg:rect x="0" y="0" width="15" height="15"/>
- <svg:rect x="5" y="5" width="15" height="15"/>
- </svg:g>
- </svg:svg>
- </fo:instream-foreign-object>
-</fo:inline>normal</fo:block>
- <fo:block>normal<fo:inline><fo:leader/></fo:inline>normal</fo:block>
- <fo:block>normal<fo:inline><fo:wrapper>wrapped</fo:wrapper></fo:inline>normal</fo:block>
- <fo:block>normal<fo:inline>TODO: bidi-override is missing here</fo:inline>normal</fo:block>
- <fo:block>normal<fo:inline><fo:inline>nested inline</fo:inline></fo:inline>normal</fo:block>
- <fo:block>normal<fo:inline><fo:footnote><fo:inline>bla</fo:inline><fo:footnote-body><fo:block>bla? yawn.</fo:block></fo:footnote-body></fo:footnote></fo:inline>normal</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="10" xpath="count(//flow/block)"/>
- <!-- We don't really check all this stuff here, rather we're making sure there are no ClassCastExceptions anymore. -->
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline_border_padding.xml b/test/layoutengine/testcases/inline_border_padding.xml
deleted file mode 100644
index 609a09625..000000000
--- a/test/layoutengine/testcases/inline_border_padding.xml
+++ /dev/null
@@ -1,140 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks inlines with border and padding properties.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="5pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true" language="en">
- <fo:flow flow-name="xsl-region-body" font-size="10pt">
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt">
- To <fo:inline border="solid 1pt red" background-color="yellow">emphasize</fo:inline> a word we give it a 1pt border and a background.
- </fo:block>
- <fo:block background-color="silver" margin="10pt 0pt 10pt 0pt">
- Demonstrates a big border <fo:inline border="solid 5pt red" padding="5pt" background-color="yellow">inline with border="solid 5pt red" padding="5pt"</fo:inline> extending over the small allocation rectangle to the top and bottom.
- </fo:block>
- <fo:block background-color="silver" margin="10pt 0pt 10pt 0pt">
- Demonstrates <fo:inline border-style="solid" border-width="1pt 2pt 3pt 4pt" border-color="red" padding="1pt 2pt 3pt 4pt" background-color="yellow">unsymmetric borders and padding</fo:inline> but the baselines should align.
- </fo:block>
- <fo:block background-color="silver" margin="10pt 0pt 10pt 0pt" font-size="20pt">
- Big border <fo:inline border="solid 5pt red" padding="5pt" background-color="yellow" font-size="8pt">with a smaller font</fo:inline> but the baselines should align.
- </fo:block>
- <fo:block background-color="silver" margin="3pt 0pt 3pt 0pt">
- 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 <fo:inline border="solid 1pt red" padding-start="2pt" padding-end="2pt" background-color="yellow">nicely..
- Not really as we started a fo:inline with border/padding just before the word "nicely" which forces it to the next line.</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="3pt 0pt 3pt 0pt">
- Demonstrates nested
- <fo:inline border="solid 2pt red" padding-start="2pt" padding-end="2pt" background-color="yellow">inlines
- <fo:inline border="solid 1pt green" padding-start="2pt" padding-end="2pt" background-color="orange">finishing together
- </fo:inline>
- </fo:inline>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="48350" xpath="//flow/block[1]/lineArea/inlineparent/@ipd"/>
- <eval expected="50350" xpath="//flow/block[1]/lineArea/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/inlineparent/@border-end"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/inlineparent/@border-start"/>
-
- <eval expected="208190" xpath="//flow/block[2]/lineArea/inlineparent/@ipd"/>
- <eval expected="228190" xpath="//flow/block[2]/lineArea/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/inlineparent/@border-end"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/inlineparent/@border-start"/>
- <eval expected="5000" xpath="//flow/block[2]/lineArea/inlineparent/@padding-after"/>
- <eval expected="5000" xpath="//flow/block[2]/lineArea/inlineparent/@padding-before"/>
- <eval expected="5000" xpath="//flow/block[2]/lineArea/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[2]/lineArea/inlineparent/@padding-start"/>
-
- <eval expected="151170" xpath="//flow/block[3]/lineArea/inlineparent/@ipd"/>
- <eval expected="163170" xpath="//flow/block[3]/lineArea/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,3000)" xpath="//flow/block[3]/lineArea/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[3]/lineArea/inlineparent/@border-end"/>
- <eval expected="(solid,#ff0000,4000)" xpath="//flow/block[3]/lineArea/inlineparent/@border-start"/>
- <eval expected="3000" xpath="//flow/block[3]/lineArea/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[3]/lineArea/inlineparent/@padding-before"/>
- <eval expected="2000" xpath="//flow/block[3]/lineArea/inlineparent/@padding-end"/>
- <eval expected="4000" xpath="//flow/block[3]/lineArea/inlineparent/@padding-start"/>
-
- <eval expected="64464" xpath="//flow/block[4]/lineArea/inlineparent/@ipd"/>
- <eval expected="84464" xpath="//flow/block[4]/lineArea/inlineparent/@ipda"/>
- <eval expected="8616" xpath="//flow/block[4]/lineArea/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/inlineparent/@border-end"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/inlineparent/@border-start"/>
- <eval expected="5000" xpath="//flow/block[4]/lineArea/inlineparent/@padding-after"/>
- <eval expected="5000" xpath="//flow/block[4]/lineArea/inlineparent/@padding-before"/>
- <eval expected="5000" xpath="//flow/block[4]/lineArea/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[4]/lineArea/inlineparent/@padding-start"/>
-
- <eval expected="340710" xpath="//flow/block[5]/lineArea[3]/inlineparent/@ipd"/>
- <eval expected="343710" xpath="//flow/block[5]/lineArea[3]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[3]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[3]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[3]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[3]/inlineparent/@border-start"/>
- <eval expected="2000" xpath="//flow/block[5]/lineArea[3]/inlineparent/@padding-start"/>
- <eval expected="193840" xpath="//flow/block[5]/lineArea[4]/inlineparent/@ipd"/>
- <eval expected="196840" xpath="//flow/block[5]/lineArea[4]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[4]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[4]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[4]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[4]/inlineparent/@border-end"/>
- <eval expected="2000" xpath="//flow/block[5]/lineArea[4]/inlineparent/@padding-end"/>
-
- <eval expected="118830" xpath="//flow/block[6]/lineArea/inlineparent/@ipd"/>
- <eval expected="126830" xpath="//flow/block[6]/lineArea/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[6]/lineArea/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[6]/lineArea/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[6]/lineArea/inlineparent/@border-end"/>
- <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[6]/lineArea/inlineparent/@border-start"/>
- <eval expected="2000" xpath="//flow/block[6]/lineArea/inlineparent/@padding-end"/>
- <eval expected="2000" xpath="//flow/block[6]/lineArea/inlineparent/@padding-start"/>
- <eval expected="78930" xpath="//flow/block[6]/lineArea/inlineparent/inlineparent/@ipd"/>
- <eval expected="84930" xpath="//flow/block[6]/lineArea/inlineparent/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea/inlineparent/inlineparent/@offset"/>
- <eval expected="(solid,#008000,1000)" xpath="//flow/block[6]/lineArea/inlineparent/inlineparent/@border-after"/>
- <eval expected="(solid,#008000,1000)" xpath="//flow/block[6]/lineArea/inlineparent/inlineparent/@border-before"/>
- <eval expected="(solid,#008000,1000)" xpath="//flow/block[6]/lineArea/inlineparent/inlineparent/@border-end"/>
- <eval expected="(solid,#008000,1000)" xpath="//flow/block[6]/lineArea/inlineparent/inlineparent/@border-start"/>
- <eval expected="2000" xpath="//flow/block[6]/lineArea/inlineparent/inlineparent/@padding-end"/>
- <eval expected="2000" xpath="//flow/block[6]/lineArea/inlineparent/inlineparent/@padding-start"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline_border_padding_block_nested_1.xml b/test/layoutengine/testcases/inline_border_padding_block_nested_1.xml
deleted file mode 100755
index fc26c2b8f..000000000
--- a/test/layoutengine/testcases/inline_border_padding_block_nested_1.xml
+++ /dev/null
@@ -1,126 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks fo:inlines with border and padding properties and nested inner blocks.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="5pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true" language="en">
- <fo:flow flow-name="xsl-region-body" font-size="10pt">
- <fo:block background-color="silver" margin="3pt 0pt 3pt 0pt">
- Before inline
- <fo:inline border="solid 1pt red" padding="2pt" background-color="yellow"><fo:block>starting with a block</fo:block>
- after block</fo:inline>
- After inline
- </fo:block>
- <fo:block background-color="silver" margin="3pt 0pt 3pt 0pt">
- Before inline
- <fo:inline border="solid 1pt red" padding="2pt" background-color="yellow">before block
- <fo:block>having a block at the end of an inline</fo:block></fo:inline>
- After inline
- </fo:block>
- <fo:block background-color="silver" margin="3pt 0pt 3pt 0pt">
- Before inline
- <fo:inline
- border="solid 1pt red"
- border-start-width.length="1pt"
- border-end-width.length="1pt"
- padding="1pt"
- padding-start.length="2pt"
- padding-end.length="2pt"
- background-color="yellow">before block
- <fo: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</fo:block>
- after block</fo:inline>
- After inline
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="347000" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@ipd"/>
- <eval expected="350000" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@ipda"/>
- <eval expected="3000" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@border-start"/>
- <eval expected="2000" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@padding-after"/>
- <eval expected="2000" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@padding-before"/>
- <eval expected="2000" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@padding-start"/>
- <eval expected="46130" xpath="//flow/block[1]/lineArea[3]/inlineparent/@ipd"/>
- <eval expected="49130" xpath="//flow/block[1]/lineArea[3]/inlineparent/@ipda"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-end"/>
- <eval expected="2000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-after"/>
- <eval expected="2000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-before"/>
- <eval expected="2000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-end"/>
-
- <eval expected="54470" xpath="//flow/block[2]/lineArea[1]/inlineparent/@ipd"/>
- <eval expected="57470" xpath="//flow/block[2]/lineArea[1]/inlineparent/@ipda"/>
- <eval expected="3000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[1]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[1]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[1]/inlineparent/@border-start"/>
- <eval expected="2000" xpath="//flow/block[2]/lineArea[1]/inlineparent/@padding-after"/>
- <eval expected="2000" xpath="//flow/block[2]/lineArea[1]/inlineparent/@padding-before"/>
- <eval expected="2000" xpath="//flow/block[2]/lineArea[1]/inlineparent/@padding-start"/>
- <eval expected="347000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@ipd"/>
- <eval expected="350000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@ipda"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@border-end"/>
- <eval expected="2000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@padding-after"/>
- <eval expected="2000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@padding-before"/>
- <eval expected="2000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@padding-end"/>
-
- <eval expected="54470" xpath="//flow/block[3]/lineArea[1]/inlineparent/@ipd"/>
- <eval expected="57470" xpath="//flow/block[3]/lineArea[1]/inlineparent/@ipda"/>
- <eval expected="2000" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-start"/>
- <eval expected="1000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-before"/>
- <eval expected="2000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-start"/>
- <eval expected="350000" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@ipd"/>
- <eval expected="350000" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@ipda"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@border-before"/>
- <eval expected="1000" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@padding-before"/>
- <eval expected="46130" xpath="//flow/block[3]/lineArea[3]/inlineparent/@ipd"/>
- <eval expected="49130" xpath="//flow/block[3]/lineArea[3]/inlineparent/@ipda"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-end"/>
- <eval expected="1000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-before"/>
- <eval expected="2000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-end"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline_border_padding_block_nested_2.xml b/test/layoutengine/testcases/inline_border_padding_block_nested_2.xml
deleted file mode 100755
index 345a2c4c3..000000000
--- a/test/layoutengine/testcases/inline_border_padding_block_nested_2.xml
+++ /dev/null
@@ -1,168 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks fo:inlines with border and padding properties and nested inner blocks.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="5pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true" language="en">
- <fo:flow flow-name="xsl-region-body" font-size="10pt">
- <fo:block background-color="silver" margin="3pt 0pt 3pt 0pt">
- Before inline
- <fo:inline
- border="solid 1pt red"
- border-start-width.length="1pt"
- border-start-width.conditionality="retain"
- border-end-width.length="1pt"
- border-end-width.conditionality="retain"
- padding="2pt"
- padding-start.length="2pt"
- padding-start.conditionality="retain"
- padding-end.length="2pt"
- padding-end.conditionality="retain"
- background-color="yellow"><fo:block>starting with a block</fo:block>
- after block</fo:inline>
- After inline with conditionality="retain"
- </fo:block>
- <fo:block background-color="silver" margin="3pt 0pt 3pt 0pt">
- Before inline
- <fo:inline
- border="solid 1pt red"
- border-start-width.length="1pt"
- border-start-width.conditionality="retain"
- border-end-width.length="1pt"
- border-end-width.conditionality="retain"
- padding="2pt"
- padding-start.length="2pt"
- padding-start.conditionality="retain"
- padding-end.length="2pt"
- padding-end.conditionality="retain"
- background-color="yellow">before block
- <fo:block>having a block at the end of an inline</fo:block></fo:inline>
- After inline with conditionality="retain"
- </fo:block>
- <fo:block background-color="silver" margin="3pt 0pt 3pt 0pt">
- Before inline
- <fo:inline
- border="solid 1pt red"
- border-start-width.length="1pt"
- border-start-width.conditionality="retain"
- border-end-width.length="1pt"
- border-end-width.conditionality="retain"
- padding="2pt"
- padding-start.length="2pt"
- padding-start.conditionality="retain"
- padding-end.length="2pt"
- padding-end.conditionality="retain"
- background-color="yellow">before block
- <fo: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</fo:block>
- after block</fo:inline>
- After inline with conditionality="retain"
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="344000" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@ipd"/>
- <eval expected="350000" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@ipda"/>
- <eval expected="3000" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@border-start"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@border-end"/>
- <eval expected="2000" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@padding-after"/>
- <eval expected="2000" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@padding-before"/>
- <eval expected="2000" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@padding-start"/>
- <eval expected="2000" xpath="//flow/block[1]/lineArea[2]/inlineblockparent/@padding-end"/>
- <eval expected="46130" xpath="//flow/block[1]/lineArea[3]/inlineparent/@ipd"/>
- <eval expected="52130" xpath="//flow/block[1]/lineArea[3]/inlineparent/@ipda"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-start"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-end"/>
- <eval expected="2000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-after"/>
- <eval expected="2000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-before"/>
- <eval expected="2000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-start"/>
- <eval expected="2000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-end"/>
-
- <eval expected="54470" xpath="//flow/block[2]/lineArea[1]/inlineparent/@ipd"/>
- <eval expected="60470" xpath="//flow/block[2]/lineArea[1]/inlineparent/@ipda"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[1]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[1]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[1]/inlineparent/@border-start"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[1]/inlineparent/@border-end"/>
- <eval expected="2000" xpath="//flow/block[2]/lineArea[1]/inlineparent/@padding-after"/>
- <eval expected="2000" xpath="//flow/block[2]/lineArea[1]/inlineparent/@padding-before"/>
- <eval expected="2000" xpath="//flow/block[2]/lineArea[1]/inlineparent/@padding-start"/>
- <eval expected="2000" xpath="//flow/block[2]/lineArea[1]/inlineparent/@padding-end"/>
- <eval expected="344000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@ipd"/>
- <eval expected="350000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@ipda"/>
- <eval expected="3000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@border-start"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@border-end"/>
- <eval expected="2000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@padding-after"/>
- <eval expected="2000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@padding-before"/>
- <eval expected="2000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@padding-start"/>
- <eval expected="2000" xpath="//flow/block[2]/lineArea[2]/inlineblockparent/@padding-end"/>
-
- <eval expected="54470" xpath="//flow/block[3]/lineArea[1]/inlineparent/@ipd"/>
- <eval expected="60470" xpath="//flow/block[3]/lineArea[1]/inlineparent/@ipda"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-start"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-end"/>
- <eval expected="2000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-after"/>
- <eval expected="2000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-before"/>
- <eval expected="2000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-start"/>
- <eval expected="2000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-end"/>
- <eval expected="344000" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@ipd"/>
- <eval expected="350000" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@ipda"/>
- <eval expected="3000" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@border-start"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@border-end"/>
- <eval expected="2000" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@padding-after"/>
- <eval expected="2000" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@padding-before"/>
- <eval expected="2000" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@padding-start"/>
- <eval expected="2000" xpath="//flow/block[3]/lineArea[2]/inlineblockparent/@padding-end"/>
- <eval expected="46130" xpath="//flow/block[3]/lineArea[3]/inlineparent/@ipd"/>
- <eval expected="52130" xpath="//flow/block[3]/lineArea[3]/inlineparent/@ipda"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-start"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-end"/>
- <eval expected="2000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-after"/>
- <eval expected="2000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-before"/>
- <eval expected="2000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-start"/>
- <eval expected="2000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-end"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline_border_padding_conditionality_1.xml b/test/layoutengine/testcases/inline_border_padding_conditionality_1.xml
deleted file mode 100755
index 86284f868..000000000
--- a/test/layoutengine/testcases/inline_border_padding_conditionality_1.xml
+++ /dev/null
@@ -1,398 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks fo:inlines with border and padding properties and conditionality.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="5pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true" language="en">
- <fo:flow flow-name="xsl-region-body" font-size="10pt">
- <fo:block background-color="silver" margin="3pt 0pt 3pt 0pt">
- Multi-line fo:inline
- <fo:inline
- border="solid 1pt red"
- border-start-width.length="1pt"
- border-start-width.conditionality="retain"
- border-end-width.length="1pt"
- border-end-width.conditionality="retain"
- padding="1pt"
- padding-start.length="5pt"
- padding-start.conditionality="retain"
- padding-end.length="3pt"
- padding-end.conditionality="retain"
- background-color="yellow">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</fo:inline>
- text-align not set .conditionality="retain".
- </fo:block>
- <fo:block background-color="silver" margin="3pt 0pt 3pt 0pt" text-align="end">
- Multi-line fo:inline
- <fo:inline
- border="solid 1pt red"
- border-start-width.length="1pt"
- border-start-width.conditionality="retain"
- border-end-width.length="1pt"
- border-end-width.conditionality="retain"
- padding="1pt"
- padding-start.length="5pt"
- padding-start.conditionality="retain"
- padding-end.length="3pt"
- padding-end.conditionality="retain"
- background-color="yellow">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</fo:inline>
- text-align="end" .conditionality="retain".
- </fo:block>
- <fo:block background-color="silver" margin="3pt 0pt 3pt 0pt" text-align="justify">
- Multi-line fo:inline
- <fo:inline
- border="solid 1pt red"
- border-start-width.length="1pt"
- border-start-width.conditionality="retain"
- border-end-width.length="1pt"
- border-end-width.conditionality="retain"
- padding="1pt"
- padding-start.length="5pt"
- padding-start.conditionality="retain"
- padding-end.length="3pt"
- padding-end.conditionality="retain"
- background-color="yellow">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</fo:inline>
- text-align="justify" .conditionality="retain".
- </fo:block>
- <fo:block background-color="silver" margin="3pt 0pt 3pt 0pt" text-align="center">
- Multi-line fo:inline
- <fo:inline
- border="solid 1pt red"
- border-start-width.length="1pt"
- border-start-width.conditionality="retain"
- border-end-width.length="1pt"
- border-end-width.conditionality="retain"
- padding="1pt"
- padding-start.length="5pt"
- padding-start.conditionality="retain"
- padding-end.length="3pt"
- padding-end.conditionality="retain"
- background-color="yellow">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</fo:inline>
- text-align="center" .conditionality="retain".
- </fo:block>
- <fo:block background-color="silver" margin="3pt 0pt 3pt 0pt">
- Multi-line fo:inline
- <fo:inline
- border="solid 1pt red"
- border-start-width.length="1pt"
- border-end-width.length="1pt"
- padding="1pt"
- padding-start.length="5pt"
- padding-end.length="3pt"
- background-color="yellow">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</fo:inline>
- text-align not set .conditionality="discard".
- </fo:block>
- <fo:block background-color="silver" margin="3pt 0pt 3pt 0pt" text-align="end">
- Multi-line fo:inline
- <fo:inline
- border="solid 1pt red"
- border-start-width.length="1pt"
- border-end-width.length="1pt"
- padding="1pt"
- padding-start.length="5pt"
- padding-end.length="3pt"
- background-color="yellow">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</fo:inline>
- text-align="end" .conditionality="discard".
- </fo:block>
- <fo:block background-color="silver" margin="3pt 0pt 3pt 0pt" text-align="justify">
- Multi-line fo:inline
- <fo:inline
- border="solid 1pt red"
- border-start-width.length="1pt"
- border-end-width.length="1pt"
- padding="1pt"
- padding-start.length="5pt"
- padding-end.length="3pt"
- background-color="yellow">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</fo:inline>
- text-align="justify" .conditionality="discard".
- </fo:block>
- <fo:block background-color="silver" margin="3pt 0pt 3pt 0pt" text-align="center">
- Multi-line fo:inline
- <fo:inline
- border="solid 1pt red"
- border-start-width.length="1pt"
- border-end-width.length="1pt"
- padding="1pt"
- padding-start.length="5pt"
- padding-end.length="3pt"
- background-color="yellow">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</fo:inline>
- text-align="center" .conditionality="discard".
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="255100" xpath="//flow/block[1]/lineArea[1]/inlineparent/@ipd"/>
- <eval expected="265100" xpath="//flow/block[1]/lineArea[1]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[1]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[1]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[1]/inlineparent/@border-end"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[1]/inlineparent/@border-start"/>
- <eval expected="1000" xpath="//flow/block[1]/lineArea[1]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[1]/lineArea[1]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[1]/lineArea[1]/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[1]/lineArea[1]/inlineparent/@padding-start"/>
- <eval expected="335720" xpath="//flow/block[1]/lineArea[2]/inlineparent/@ipd"/>
- <eval expected="345720" xpath="//flow/block[1]/lineArea[2]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[2]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineparent/@border-end"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineparent/@border-start"/>
- <eval expected="1000" xpath="//flow/block[1]/lineArea[2]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[1]/lineArea[2]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[1]/lineArea[2]/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[1]/lineArea[2]/inlineparent/@padding-start"/>
- <eval expected="35570" xpath="//flow/block[1]/lineArea[3]/inlineparent/@ipd"/>
- <eval expected="45570" xpath="//flow/block[1]/lineArea[3]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[3]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-end"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-start"/>
- <eval expected="1000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-start"/>
-
- <eval expected="255100" xpath="//flow/block[2]/lineArea[1]/inlineparent/@ipd"/>
- <eval expected="265100" xpath="//flow/block[2]/lineArea[1]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[1]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[1]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[1]/inlineparent/@border-end"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[1]/inlineparent/@border-start"/>
- <eval expected="1000" xpath="//flow/block[2]/lineArea[1]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[2]/lineArea[1]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[2]/lineArea[1]/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[2]/lineArea[1]/inlineparent/@padding-start"/>
- <eval expected="335720" xpath="//flow/block[2]/lineArea[2]/inlineparent/@ipd"/>
- <eval expected="345720" xpath="//flow/block[2]/lineArea[2]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[2]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[2]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[2]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[2]/inlineparent/@border-end"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[2]/inlineparent/@border-start"/>
- <eval expected="1000" xpath="//flow/block[2]/lineArea[2]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[2]/lineArea[2]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[2]/lineArea[2]/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[2]/lineArea[2]/inlineparent/@padding-start"/>
- <eval expected="35570" xpath="//flow/block[2]/lineArea[3]/inlineparent/@ipd"/>
- <eval expected="45570" xpath="//flow/block[2]/lineArea[3]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[3]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[3]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[3]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[3]/inlineparent/@border-end"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[3]/inlineparent/@border-start"/>
- <eval expected="1000" xpath="//flow/block[2]/lineArea[3]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[2]/lineArea[3]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[2]/lineArea[3]/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[2]/lineArea[3]/inlineparent/@padding-start"/>
-
- <eval expected="259229" xpath="//flow/block[3]/lineArea[1]/inlineparent/@ipd"/>
- <eval expected="269229" xpath="//flow/block[3]/lineArea[1]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-end"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-start"/>
- <eval expected="1000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-start"/>
- <eval expected="340000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@ipd"/>
- <eval expected="350000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[2]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[2]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[2]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[2]/inlineparent/@border-end"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[2]/inlineparent/@border-start"/>
- <eval expected="1000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@padding-start"/>
- <eval expected="35570" xpath="//flow/block[3]/lineArea[3]/inlineparent/@ipd"/>
- <eval expected="45570" xpath="//flow/block[3]/lineArea[3]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[3]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-end"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-start"/>
- <eval expected="1000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-start"/>
-
- <eval expected="216190" xpath="//flow/block[4]/lineArea[1]/inlineparent/@ipd"/>
- <eval expected="226190" xpath="//flow/block[4]/lineArea[1]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[1]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[1]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[1]/inlineparent/@border-end"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[1]/inlineparent/@border-start"/>
- <eval expected="1000" xpath="//flow/block[4]/lineArea[1]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[4]/lineArea[1]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[4]/lineArea[1]/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[4]/lineArea[1]/inlineparent/@padding-start"/>
- <eval expected="299050" xpath="//flow/block[4]/lineArea[2]/inlineparent/@ipd"/>
- <eval expected="309050" xpath="//flow/block[4]/lineArea[2]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[2]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[2]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[2]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[2]/inlineparent/@border-end"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[2]/inlineparent/@border-start"/>
- <eval expected="1000" xpath="//flow/block[4]/lineArea[2]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[4]/lineArea[2]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[4]/lineArea[2]/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[4]/lineArea[2]/inlineparent/@padding-start"/>
- <eval expected="111150" xpath="//flow/block[4]/lineArea[3]/inlineparent/@ipd"/>
- <eval expected="121150" xpath="//flow/block[4]/lineArea[3]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[3]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[3]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[3]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[3]/inlineparent/@border-end"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[3]/inlineparent/@border-start"/>
- <eval expected="1000" xpath="//flow/block[4]/lineArea[3]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[4]/lineArea[3]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[4]/lineArea[3]/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[4]/lineArea[3]/inlineparent/@padding-start"/>
-
- <eval expected="255100" xpath="//flow/block[5]/lineArea[1]/inlineparent/@ipd"/>
- <eval expected="261100" xpath="//flow/block[5]/lineArea[1]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-start"/>
- <eval expected="1000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-before"/>
- <eval expected="5000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-start"/>
- <eval expected="335720" xpath="//flow/block[5]/lineArea[2]/inlineparent/@ipd"/>
- <eval expected="335720" xpath="//flow/block[5]/lineArea[2]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[2]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[2]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[2]/inlineparent/@border-before"/>
- <eval expected="1000" xpath="//flow/block[5]/lineArea[2]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[5]/lineArea[2]/inlineparent/@padding-before"/>
- <eval expected="35570" xpath="//flow/block[5]/lineArea[3]/inlineparent/@ipd"/>
- <eval expected="39570" xpath="//flow/block[5]/lineArea[3]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[3]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[3]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[3]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[3]/inlineparent/@border-end"/>
- <eval expected="1000" xpath="//flow/block[5]/lineArea[3]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[5]/lineArea[3]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[5]/lineArea[3]/inlineparent/@padding-end"/>
-
- <eval expected="255100" xpath="//flow/block[6]/lineArea[1]/inlineparent/@ipd"/>
- <eval expected="261100" xpath="//flow/block[6]/lineArea[1]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[1]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[1]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[1]/inlineparent/@border-start"/>
- <eval expected="1000" xpath="//flow/block[6]/lineArea[1]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[6]/lineArea[1]/inlineparent/@padding-before"/>
- <eval expected="5000" xpath="//flow/block[6]/lineArea[1]/inlineparent/@padding-start"/>
- <eval expected="335720" xpath="//flow/block[6]/lineArea[2]/inlineparent/@ipd"/>
- <eval expected="335720" xpath="//flow/block[6]/lineArea[2]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[2]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[2]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[2]/inlineparent/@border-before"/>
- <eval expected="1000" xpath="//flow/block[6]/lineArea[2]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[6]/lineArea[2]/inlineparent/@padding-before"/>
- <eval expected="35570" xpath="//flow/block[6]/lineArea[3]/inlineparent/@ipd"/>
- <eval expected="39570" xpath="//flow/block[6]/lineArea[3]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[3]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[3]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[3]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[3]/inlineparent/@border-end"/>
- <eval expected="1000" xpath="//flow/block[6]/lineArea[3]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[6]/lineArea[3]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[6]/lineArea[3]/inlineparent/@padding-end"/>
-
- <eval expected="262613" xpath="//flow/block[7]/lineArea[1]/inlineparent/@ipd"/>
- <eval expected="268613" xpath="//flow/block[7]/lineArea[1]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[7]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[1]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[1]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[1]/inlineparent/@border-start"/>
- <eval expected="1000" xpath="//flow/block[7]/lineArea[1]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[7]/lineArea[1]/inlineparent/@padding-before"/>
- <eval expected="5000" xpath="//flow/block[7]/lineArea[1]/inlineparent/@padding-start"/>
- <eval expected="350000" xpath="//flow/block[7]/lineArea[2]/inlineparent/@ipd"/>
- <eval expected="350000" xpath="//flow/block[7]/lineArea[2]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[7]/lineArea[2]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[2]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[2]/inlineparent/@border-before"/>
- <eval expected="1000" xpath="//flow/block[7]/lineArea[2]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[7]/lineArea[2]/inlineparent/@padding-before"/>
- <eval expected="35570" xpath="//flow/block[7]/lineArea[3]/inlineparent/@ipd"/>
- <eval expected="39570" xpath="//flow/block[7]/lineArea[3]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[7]/lineArea[3]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[3]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[3]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[7]/lineArea[3]/inlineparent/@border-end"/>
- <eval expected="1000" xpath="//flow/block[7]/lineArea[3]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[7]/lineArea[3]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[7]/lineArea[3]/inlineparent/@padding-end"/>
-
- <eval expected="216190" xpath="//flow/block[8]/lineArea[1]/inlineparent/@ipd"/>
- <eval expected="222190" xpath="//flow/block[8]/lineArea[1]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[1]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[1]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[1]/inlineparent/@border-start"/>
- <eval expected="1000" xpath="//flow/block[8]/lineArea[1]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[8]/lineArea[1]/inlineparent/@padding-before"/>
- <eval expected="5000" xpath="//flow/block[8]/lineArea[1]/inlineparent/@padding-start"/>
- <eval expected="310170" xpath="//flow/block[8]/lineArea[2]/inlineparent/@ipd"/>
- <eval expected="310170" xpath="//flow/block[8]/lineArea[2]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[8]/lineArea[2]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[2]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[2]/inlineparent/@border-before"/>
- <eval expected="1000" xpath="//flow/block[8]/lineArea[2]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[8]/lineArea[2]/inlineparent/@padding-before"/>
- <eval expected="100030" xpath="//flow/block[8]/lineArea[3]/inlineparent/@ipd"/>
- <eval expected="104030" xpath="//flow/block[8]/lineArea[3]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[8]/lineArea[3]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[3]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[3]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[8]/lineArea[3]/inlineparent/@border-end"/>
- <eval expected="1000" xpath="//flow/block[8]/lineArea[3]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[8]/lineArea[3]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[8]/lineArea[3]/inlineparent/@padding-end"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline_border_padding_conditionality_2.xml b/test/layoutengine/testcases/inline_border_padding_conditionality_2.xml
deleted file mode 100755
index 3e2d4a9b9..000000000
--- a/test/layoutengine/testcases/inline_border_padding_conditionality_2.xml
+++ /dev/null
@@ -1,311 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks fo:inlines with border and padding properties and conditionality retain.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="5pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true" language="en">
- <fo:flow flow-name="xsl-region-body" font-size="10pt">
- <fo:block background-color="silver" margin="3pt 0pt 3pt 0pt">
- Multi-line fo:inline
- <fo:inline
- border="solid 1pt red"
- border-start-width.length="1pt"
- border-end-width.length="1pt"
- padding="1pt"
- padding-start.length="5pt"
- padding-start.conditionality="retain"
- padding-end.length="3pt"
- padding-end.conditionality="retain"
- background-color="yellow">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</fo:inline>
- text-align not set padding .conditionality="retain".
- </fo:block>
- <fo:block background-color="silver" margin="3pt 0pt 3pt 0pt" text-align="end">
- Multi-line fo:inline
- <fo:inline
- border="solid 1pt red"
- border-start-width.length="1pt"
- border-end-width.length="1pt"
- padding="1pt"
- padding-start.length="5pt"
- padding-start.conditionality="retain"
- padding-end.length="3pt"
- padding-end.conditionality="retain"
- background-color="yellow">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</fo:inline>
- text-align="end" padding .conditionality="retain".
- </fo:block>
- <fo:block background-color="silver" margin="3pt 0pt 3pt 0pt" text-align="justify">
- Multi-line fo:inline
- <fo:inline
- border="solid 1pt red"
- border-start-width.length="1pt"
- border-end-width.length="1pt"
- padding="1pt"
- padding-start.length="5pt"
- padding-start.conditionality="retain"
- padding-end.length="3pt"
- padding-end.conditionality="retain"
- background-color="yellow">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</fo:inline>
- text-align="justify" padding .conditionality="retain".
- </fo:block>
- <fo:block background-color="silver" margin="3pt 0pt 3pt 0pt" text-align="center">
- Multi-line fo:inline
- <fo:inline
- border="solid 1pt red"
- border-start-width.length="1pt"
- border-end-width.length="1pt"
- padding="1pt"
- padding-start.length="5pt"
- padding-start.conditionality="retain"
- padding-end.length="3pt"
- padding-end.conditionality="retain"
- background-color="yellow">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</fo:inline>
- text-align="center" padding .conditionality="retain".
- </fo:block>
- <fo:block background-color="silver" margin="3pt 0pt 3pt 0pt" text-align="center">
- Multi-line fo:inline
- <fo:inline border="solid 1pt red"
- border-start-width.length="1pt"
- border-start-width.conditionality="retain"
- border-end-width.length="1pt"
- border-end-width.conditionality="retain"
- padding="1pt"
- padding-start.length="5pt"
- padding-start.conditionality="retain"
- padding-end.length="3pt"
- padding-end.conditionality="retain"
- background-color="yellow"
- linefeed-treatment="preserve">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</fo:inline>
- text-align="center" .conditionality="retain" linefeed-treatment="preserve".
- </fo:block>
- <fo:block background-color="silver" margin="3pt 0pt 3pt 0pt" text-align="center">
- Multi-line fo:inline
- <fo:inline
- border="solid 1pt red"
- border-start-width.length="1pt"
- border-end-width.length="1pt"
- padding="1pt"
- padding-start.length="5pt"
- padding-end.length="3pt"
- background-color="yellow"
- linefeed-treatment="preserve">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</fo:inline>
- text-align="center" .conditionality="discard" linefeed-treatment="preserve".
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="255100" xpath="//flow/block[1]/lineArea[1]/inlineparent/@ipd"/>
- <eval expected="264100" xpath="//flow/block[1]/lineArea[1]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[1]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[1]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[1]/inlineparent/@border-start"/>
- <eval expected="1000" xpath="//flow/block[1]/lineArea[1]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[1]/lineArea[1]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[1]/lineArea[1]/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[1]/lineArea[1]/inlineparent/@padding-start"/>
- <eval expected="335720" xpath="//flow/block[1]/lineArea[2]/inlineparent/@ipd"/>
- <eval expected="343720" xpath="//flow/block[1]/lineArea[2]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[2]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[2]/inlineparent/@border-before"/>
- <eval expected="1000" xpath="//flow/block[1]/lineArea[2]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[1]/lineArea[2]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[1]/lineArea[2]/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[1]/lineArea[2]/inlineparent/@padding-start"/>
- <eval expected="35570" xpath="//flow/block[1]/lineArea[3]/inlineparent/@ipd"/>
- <eval expected="44570" xpath="//flow/block[1]/lineArea[3]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[3]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea[3]/inlineparent/@border-end"/>
- <eval expected="1000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[1]/lineArea[3]/inlineparent/@padding-start"/>
-
- <eval expected="255100" xpath="//flow/block[2]/lineArea[1]/inlineparent/@ipd"/>
- <eval expected="264100" xpath="//flow/block[2]/lineArea[1]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[1]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[1]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[1]/inlineparent/@border-start"/>
- <eval expected="1000" xpath="//flow/block[2]/lineArea[1]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[2]/lineArea[1]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[2]/lineArea[1]/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[2]/lineArea[1]/inlineparent/@padding-start"/>
- <eval expected="335720" xpath="//flow/block[2]/lineArea[2]/inlineparent/@ipd"/>
- <eval expected="343720" xpath="//flow/block[2]/lineArea[2]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[2]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[2]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[2]/inlineparent/@border-before"/>
- <eval expected="1000" xpath="//flow/block[2]/lineArea[2]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[2]/lineArea[2]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[2]/lineArea[2]/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[2]/lineArea[2]/inlineparent/@padding-start"/>
- <eval expected="35570" xpath="//flow/block[2]/lineArea[3]/inlineparent/@ipd"/>
- <eval expected="44570" xpath="//flow/block[2]/lineArea[3]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[3]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[3]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[3]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea[3]/inlineparent/@border-end"/>
- <eval expected="1000" xpath="//flow/block[2]/lineArea[3]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[2]/lineArea[3]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[2]/lineArea[3]/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[2]/lineArea[3]/inlineparent/@padding-start"/>
-
- <eval expected="260075" xpath="//flow/block[3]/lineArea[1]/inlineparent/@ipd"/>
- <eval expected="269075" xpath="//flow/block[3]/lineArea[1]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[1]/inlineparent/@border-start"/>
- <eval expected="1000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[3]/lineArea[1]/inlineparent/@padding-start"/>
- <eval expected="342000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@ipd"/>
- <eval expected="350000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[2]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[2]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[2]/inlineparent/@border-before"/>
- <eval expected="1000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[3]/lineArea[2]/inlineparent/@padding-start"/>
- <eval expected="35570" xpath="//flow/block[3]/lineArea[3]/inlineparent/@ipd"/>
- <eval expected="44570" xpath="//flow/block[3]/lineArea[3]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[3]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea[3]/inlineparent/@border-end"/>
- <eval expected="1000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[3]/lineArea[3]/inlineparent/@padding-start"/>
-
- <eval expected="237870" xpath="//flow/block[4]/lineArea[1]/inlineparent/@ipd"/>
- <eval expected="246870" xpath="//flow/block[4]/lineArea[1]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[1]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[1]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[1]/inlineparent/@border-start"/>
- <eval expected="1000" xpath="//flow/block[4]/lineArea[1]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[4]/lineArea[1]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[4]/lineArea[1]/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[4]/lineArea[1]/inlineparent/@padding-start"/>
- <eval expected="317940" xpath="//flow/block[4]/lineArea[2]/inlineparent/@ipd"/>
- <eval expected="325940" xpath="//flow/block[4]/lineArea[2]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[2]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[2]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[2]/inlineparent/@border-before"/>
- <eval expected="1000" xpath="//flow/block[4]/lineArea[2]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[4]/lineArea[2]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[4]/lineArea[2]/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[4]/lineArea[2]/inlineparent/@padding-start"/>
- <eval expected="70580" xpath="//flow/block[4]/lineArea[3]/inlineparent/@ipd"/>
- <eval expected="79580" xpath="//flow/block[4]/lineArea[3]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[3]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[3]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[3]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea[3]/inlineparent/@border-end"/>
- <eval expected="1000" xpath="//flow/block[4]/lineArea[3]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[4]/lineArea[3]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[4]/lineArea[3]/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[4]/lineArea[3]/inlineparent/@padding-start"/>
-
- <eval expected="183960" xpath="//flow/block[5]/lineArea[1]/inlineparent/@ipd"/>
- <eval expected="193960" xpath="//flow/block[5]/lineArea[1]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-end"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[1]/inlineparent/@border-start"/>
- <eval expected="1000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[5]/lineArea[1]/inlineparent/@padding-start"/>
- <eval expected="255680" xpath="//flow/block[5]/lineArea[2]/inlineparent/@ipd"/>
- <eval expected="265680" xpath="//flow/block[5]/lineArea[2]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[2]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[2]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[2]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[2]/inlineparent/@border-end"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[2]/inlineparent/@border-start"/>
- <eval expected="1000" xpath="//flow/block[5]/lineArea[2]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[5]/lineArea[2]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[5]/lineArea[2]/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[5]/lineArea[2]/inlineparent/@padding-start"/>
- <eval expected="186750" xpath="//flow/block[5]/lineArea[3]/inlineparent/@ipd"/>
- <eval expected="196750" xpath="//flow/block[5]/lineArea[3]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[3]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[3]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[3]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[3]/inlineparent/@border-end"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[5]/lineArea[3]/inlineparent/@border-start"/>
- <eval expected="1000" xpath="//flow/block[5]/lineArea[3]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[5]/lineArea[3]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[5]/lineArea[3]/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[5]/lineArea[3]/inlineparent/@padding-start"/>
-
- <eval expected="172840" xpath="//flow/block[6]/lineArea[1]/inlineparent/@ipd"/>
- <eval expected="178840" xpath="//flow/block[6]/lineArea[1]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[1]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[1]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[1]/inlineparent/@border-start"/>
- <eval expected="1000" xpath="//flow/block[6]/lineArea[1]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[6]/lineArea[1]/inlineparent/@padding-before"/>
- <eval expected="5000" xpath="//flow/block[6]/lineArea[1]/inlineparent/@padding-start"/>
- <eval expected="266800" xpath="//flow/block[6]/lineArea[2]/inlineparent/@ipd"/>
- <eval expected="266800" xpath="//flow/block[6]/lineArea[2]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[2]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[2]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[2]/inlineparent/@border-before"/>
- <eval expected="1000" xpath="//flow/block[6]/lineArea[2]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[6]/lineArea[2]/inlineparent/@padding-before"/>
- <eval expected="186750" xpath="//flow/block[6]/lineArea[3]/inlineparent/@ipd"/>
- <eval expected="190750" xpath="//flow/block[6]/lineArea[3]/inlineparent/@ipda"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[3]/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[3]/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[3]/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[6]/lineArea[3]/inlineparent/@border-end"/>
- <eval expected="1000" xpath="//flow/block[6]/lineArea[3]/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[6]/lineArea[3]/inlineparent/@padding-before"/>
- <eval expected="3000" xpath="//flow/block[6]/lineArea[3]/inlineparent/@padding-end"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline_dominant-baseline_1.xml b/test/layoutengine/testcases/inline_dominant-baseline_1.xml
deleted file mode 100755
index e812bc387..000000000
--- a/test/layoutengine/testcases/inline_dominant-baseline_1.xml
+++ /dev/null
@@ -1,128 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks inline level dominant-baseline.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- <fo:inline dominant-baseline="auto">Before <fo:inline font-size="10pt" background-color="yellow">dominant-baseline="auto"</fo:inline> After</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- <fo:inline dominant-baseline="no-change">Before <fo:inline font-size="10pt" background-color="yellow">dominant-baseline="no-change"</fo:inline> After</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- <fo:inline dominant-baseline="ideographic">Before <fo:inline font-size="10pt" background-color="yellow">dominant-baseline="ideographic"</fo:inline> After</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- <fo:inline dominant-baseline="alphabetic">Before <fo:inline font-size="10pt" background-color="yellow">dominant-baseline="alphabetic"</fo:inline> After</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- <fo:inline dominant-baseline="hanging">Before <fo:inline font-size="10pt" background-color="yellow">dominant-baseline="hanging"</fo:inline> After</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- <fo:inline dominant-baseline="mathematical">Before <fo:inline font-size="10pt" background-color="yellow">dominant-baseline="mathematical"</fo:inline> After</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- <fo:inline dominant-baseline="central">Before <fo:inline font-size="10pt" background-color="yellow">dominant-baseline="central"</fo:inline> After</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- <fo:inline dominant-baseline="middle">Before <fo:inline font-size="10pt" background-color="yellow">dominant-baseline="middle"</fo:inline> After</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- <fo:inline dominant-baseline="text-after-edge">Before <fo:inline font-size="10pt" background-color="yellow">dominant-baseline="text-after-edge"</fo:inline> After</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="14pt">
- <fo:inline dominant-baseline="text-before-edge">Before <fo:inline font-size="10pt" background-color="yellow">dominant-baseline="text-before-edge"</fo:inline> After</fo:inline>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="12950" xpath="//flow/block[1]/lineArea[1]/@bpd"/>
- <eval expected="1925" xpath="//flow/block[1]/lineArea[1]/@space-before"/>
- <eval expected="1925" xpath="//flow/block[1]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="2872" xpath="//flow/block[1]/lineArea[1]/inlineparent/inlineparent/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[2]/lineArea[1]/@bpd"/>
- <eval expected="1925" xpath="//flow/block[2]/lineArea[1]/@space-before"/>
- <eval expected="1925" xpath="//flow/block[2]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="2872" xpath="//flow/block[2]/lineArea[1]/inlineparent/inlineparent/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[3]/lineArea[1]/@bpd"/>
- <eval expected="1925" xpath="//flow/block[3]/lineArea[1]/@space-before"/>
- <eval expected="1925" xpath="//flow/block[3]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="3700" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[4]/lineArea[1]/@bpd"/>
- <eval expected="1925" xpath="//flow/block[4]/lineArea[1]/@space-before"/>
- <eval expected="1925" xpath="//flow/block[4]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="2872" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[5]/lineArea[1]/@bpd"/>
- <eval expected="1925" xpath="//flow/block[5]/lineArea[1]/@space-before"/>
- <eval expected="1925" xpath="//flow/block[5]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="574" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[6]/lineArea[1]/@bpd"/>
- <eval expected="1925" xpath="//flow/block[6]/lineArea[1]/@space-before"/>
- <eval expected="1925" xpath="//flow/block[6]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="1436" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[7]/lineArea[1]/@bpd"/>
- <eval expected="1925" xpath="//flow/block[7]/lineArea[1]/@space-before"/>
- <eval expected="1925" xpath="//flow/block[7]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[7]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="1850" xpath="//flow/block[7]/lineArea[1]/inlineparent/inlineparent/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[8]/lineArea[1]/@bpd"/>
- <eval expected="1925" xpath="//flow/block[8]/lineArea[1]/@space-before"/>
- <eval expected="1925" xpath="//flow/block[8]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="1826" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[9]/lineArea[1]/@bpd"/>
- <eval expected="1925" xpath="//flow/block[9]/lineArea[1]/@space-before"/>
- <eval expected="1925" xpath="//flow/block[9]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[9]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="3700" xpath="//flow/block[9]/lineArea[1]/inlineparent/inlineparent/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[10]/lineArea[1]/@bpd"/>
- <eval expected="1925" xpath="//flow/block[10]/lineArea[1]/@space-before"/>
- <eval expected="1925" xpath="//flow/block[10]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[10]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[10]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline_dominant-baseline_2.xml b/test/layoutengine/testcases/inline_dominant-baseline_2.xml
deleted file mode 100755
index f382e8aa3..000000000
--- a/test/layoutengine/testcases/inline_dominant-baseline_2.xml
+++ /dev/null
@@ -1,128 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks inline level dominant-baseline.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="10pt">
- <fo:inline dominant-baseline="auto">Before <fo:inline font-size="14pt" background-color="yellow">dominant-baseline="auto"</fo:inline> After</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="10pt">
- <fo:inline dominant-baseline="no-change">Before <fo:inline font-size="14pt" background-color="yellow">dominant-baseline="no-change"</fo:inline> After</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="10pt">
- <fo:inline dominant-baseline="ideographic">Before <fo:inline font-size="14pt" background-color="yellow">dominant-baseline="ideographic"</fo:inline> After</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="10pt">
- <fo:inline dominant-baseline="alphabetic">Before <fo:inline font-size="14pt" background-color="yellow">dominant-baseline="alphabetic"</fo:inline> After</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="10pt">
- <fo:inline dominant-baseline="hanging">Before <fo:inline font-size="14pt" background-color="yellow">dominant-baseline="hanging"</fo:inline> After</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="10pt">
- <fo:inline dominant-baseline="mathematical">Before <fo:inline font-size="14pt" background-color="yellow">dominant-baseline="mathematical"</fo:inline> After</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="10pt">
- <fo:inline dominant-baseline="central">Before <fo:inline font-size="14pt" background-color="yellow">dominant-baseline="central"</fo:inline> After</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="10pt">
- <fo:inline dominant-baseline="middle">Before <fo:inline font-size="14pt" background-color="yellow">dominant-baseline="middle"</fo:inline> After</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="10pt">
- <fo:inline dominant-baseline="text-after-edge">Before <fo:inline font-size="14pt" background-color="yellow">dominant-baseline="text-after-edge"</fo:inline> After</fo:inline>
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="10pt">
- <fo:inline dominant-baseline="text-before-edge">Before <fo:inline font-size="14pt" background-color="yellow">dominant-baseline="text-before-edge"</fo:inline> After</fo:inline>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="12950" xpath="//flow/block[1]/lineArea[1]/@bpd"/>
- <eval expected="1375" xpath="//flow/block[1]/lineArea[1]/@space-before"/>
- <eval expected="1375" xpath="//flow/block[1]/lineArea[1]/@space-after"/>
- <eval expected="2872" xpath="//flow/block[1]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="-2872" xpath="//flow/block[1]/lineArea[1]/inlineparent/inlineparent/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[2]/lineArea[1]/@bpd"/>
- <eval expected="1375" xpath="//flow/block[2]/lineArea[1]/@space-before"/>
- <eval expected="1375" xpath="//flow/block[2]/lineArea[1]/@space-after"/>
- <eval expected="2872" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="-2872" xpath="//flow/block[2]/lineArea[1]/inlineparent/inlineparent/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[3]/lineArea[1]/@bpd"/>
- <eval expected="1375" xpath="//flow/block[3]/lineArea[1]/@space-before"/>
- <eval expected="1375" xpath="//flow/block[3]/lineArea[1]/@space-after"/>
- <eval expected="3700" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="-3700" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[4]/lineArea[1]/@bpd"/>
- <eval expected="1375" xpath="//flow/block[4]/lineArea[1]/@space-before"/>
- <eval expected="1375" xpath="//flow/block[4]/lineArea[1]/@space-after"/>
- <eval expected="2872" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="-2872" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[5]/lineArea[1]/@bpd"/>
- <eval expected="1375" xpath="//flow/block[5]/lineArea[1]/@space-before"/>
- <eval expected="1375" xpath="//flow/block[5]/lineArea[1]/@space-after"/>
- <eval expected="574" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="-574" xpath="//flow/block[5]/lineArea[1]/inlineparent/inlineparent/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[6]/lineArea[1]/@bpd"/>
- <eval expected="1375" xpath="//flow/block[6]/lineArea[1]/@space-before"/>
- <eval expected="1375" xpath="//flow/block[6]/lineArea[1]/@space-after"/>
- <eval expected="1436" xpath="//flow/block[6]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="-1436" xpath="//flow/block[6]/lineArea[1]/inlineparent/inlineparent/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[7]/lineArea[1]/@bpd"/>
- <eval expected="1375" xpath="//flow/block[7]/lineArea[1]/@space-before"/>
- <eval expected="1375" xpath="//flow/block[7]/lineArea[1]/@space-after"/>
- <eval expected="1850" xpath="//flow/block[7]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="-1850" xpath="//flow/block[7]/lineArea[1]/inlineparent/inlineparent/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[8]/lineArea[1]/@bpd"/>
- <eval expected="1375" xpath="//flow/block[8]/lineArea[1]/@space-before"/>
- <eval expected="1375" xpath="//flow/block[8]/lineArea[1]/@space-after"/>
- <eval expected="1826" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="-1826" xpath="//flow/block[8]/lineArea[1]/inlineparent/inlineparent/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[9]/lineArea[1]/@bpd"/>
- <eval expected="1375" xpath="//flow/block[9]/lineArea[1]/@space-before"/>
- <eval expected="1375" xpath="//flow/block[9]/lineArea[1]/@space-after"/>
- <eval expected="3700" xpath="//flow/block[9]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="-3700" xpath="//flow/block[9]/lineArea[1]/inlineparent/inlineparent/@offset"/>
-
- <eval expected="12950" xpath="//flow/block[10]/lineArea[1]/@bpd"/>
- <eval expected="1375" xpath="//flow/block[10]/lineArea[1]/@space-before"/>
- <eval expected="1375" xpath="//flow/block[10]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[10]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[10]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline_dominant-baseline_3.xml b/test/layoutengine/testcases/inline_dominant-baseline_3.xml
deleted file mode 100755
index 4d09ad57b..000000000
--- a/test/layoutengine/testcases/inline_dominant-baseline_3.xml
+++ /dev/null
@@ -1,115 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks inline level dominant-baseline.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="16pt">
- Before
- <fo:inline font-size="50%"
- dominant-baseline="central"
- background-color="yellow">central
- <fo:inline font-size="50%"
- background-color="red">Baseline changed</fo:inline>
- </fo:inline>
- After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="16pt">
- Before
- <fo:inline font-size="50%"
- dominant-baseline="text-before-edge"
- background-color="yellow">text-before-edge
- <fo:inline font-size="50%"
- background-color="red">Baseline changed</fo:inline>
- </fo:inline>
- After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="16pt">
- Before
- <fo:inline font-size="50%"
- dominant-baseline="text-after-edge"
- background-color="yellow">text-after-edge
- <fo:inline font-size="150%"
- background-color="red">Baseline changed</fo:inline>
- </fo:inline>
- After
- </fo:block>
- <fo:block background-color="silver" margin="1pt 0pt 1pt 0pt" font-size="16pt">
- Before
- <fo:inline font-size="50%"
- dominant-baseline="middle"
- background-color="yellow">middle
- <fo:inline font-size="150%"
- dominant-baseline="hanging"
- background-color="red">hanging
- <fo:inline font-size="75%"
- background-color="green">Baseline changed
- </fo:inline>
- </fo:inline>
- </fo:inline>
- After
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="14800" xpath="//flow/block[1]/lineArea[1]/@bpd"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[1]/@offset"/>
- <eval expected="5744" xpath="//flow/block[1]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="1850" xpath="//flow/block[1]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/inlineparent/inlineparent/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="14800" xpath="//flow/block[2]/lineArea[1]/@bpd"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[1]/@offset"/>
- <eval expected="5744" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/inlineparent/inlineparent/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="14800" xpath="//flow/block[3]/lineArea[1]/@bpd"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/text[1]/@offset"/>
- <eval expected="5744" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="-3700" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/inlineparent/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="15018" xpath="//flow/block[4]/lineArea[1]/@bpd"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[1]/@offset"/>
- <eval expected="5744" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/text[1]/@offset"/>
- <eval expected="-1826" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/inlineparent/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[2]/@offset"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline_letter-spacing.xml b/test/layoutengine/testcases/inline_letter-spacing.xml
deleted file mode 100644
index 1c0ca3d6e..000000000
--- a/test/layoutengine/testcases/inline_letter-spacing.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks inline level letter-spacing.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>In all the following tests the &lt;fo:inline&gt; 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</fo:block>
- <fo:block>Next inline has letter-spacing="normal":</fo:block>
- <fo:block><fo:inline letter-spacing="normal">D</fo:inline>efault space between characters is defined to be 0pt, i.e.,
- <fo:inline letter-spacing="normal">glyph-areas stacked with no extra space between the allocation-rectangles</fo:inline>
- of the glyph-areas<fo:inline letter-spacing="normal">.</fo:inline></fo:block>
- <fo:block>Next inline has letter-spacing="0pt":</fo:block>
- <fo:block><fo:inline letter-spacing="0pt">D</fo:inline>efault space between characters is defined to be 0pt, i.e.,
- <fo:inline letter-spacing="0pt">glyph-areas stacked with no extra space between the allocation-rectangles</fo:inline>
- of the glyph-areas<fo:inline letter-spacing="0pt">.</fo:inline></fo:block>
- <fo:block>Next inline has letter-spacing="2pt":</fo:block>
- <fo:block><fo:inline letter-spacing="2pt">D</fo:inline>efault space between characters is defined to be 0pt, i.e.,
- <fo:inline letter-spacing="2pt">glyph-areas stacked with no extra space between the allocation-rectangles</fo:inline>
- of the glyph-areas<fo:inline letter-spacing="2pt">.</fo:inline></fo:block>
- <fo:block>Next inline has letter-spacing.optimum="2pt" letter-spacing.minimum="0pt" letter-spacing.maximum="4pt":</fo:block>
- <fo:block><fo:inline letter-spacing.optimum="2pt" letter-spacing.minimum="0pt" letter-spacing.maximum="4pt">D</fo:inline>efault space between characters is defined to be 0pt, i.e.,
- <fo:inline letter-spacing.optimum="2pt" letter-spacing.minimum="0pt" letter-spacing.maximum="4pt">glyph-areas stacked with no extra space between the allocation-rectangles</fo:inline>
- of the glyph-areas<fo:inline letter-spacing.optimum="2pt" letter-spacing.minimum="0pt" letter-spacing.maximum="4pt">.</fo:inline></fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline_vertical-align_1.xml b/test/layoutengine/testcases/inline_vertical-align_1.xml
deleted file mode 100755
index 457b4a898..000000000
--- a/test/layoutengine/testcases/inline_vertical-align_1.xml
+++ /dev/null
@@ -1,148 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks inline level vertical align.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
- Before <fo:inline font-size="10pt" background-color="yellow">vertical-align not specified</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
- Before <fo:inline font-size="10pt" vertical-align="baseline" background-color="yellow">vertical-align="baseline"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
- Before <fo:inline font-size="10pt" vertical-align="top" background-color="yellow">vertical-align="top"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
- Before <fo:inline font-size="10pt" vertical-align="text-top" background-color="yellow">vertical-align="text-top"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
- Before <fo:inline font-size="10pt" vertical-align="middle" background-color="yellow">vertical-align="middle"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
- Before <fo:inline font-size="10pt" vertical-align="text-bottom" background-color="yellow">vertical-align="text-bottom"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
- Before <fo:inline font-size="10pt" vertical-align="bottom" background-color="yellow">vertical-align="bottom"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
- Before <fo:inline font-size="10pt" vertical-align="super" background-color="yellow">vertical-align="super"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
- Before <fo:inline font-size="10pt" vertical-align="sub" background-color="yellow">vertical-align="sub"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
- Before <fo:inline vertical-align="super" background-color="yellow">vertical-align="super"</fo:inline> After
- </fo:block>
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
- Before <fo:inline vertical-align="sub" background-color="yellow">vertical-align="sub"</fo:inline> After
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="18500" xpath="//flow/block[1]/lineArea[1]/@bpd"/>
- <eval expected="2750" xpath="//flow/block[1]/lineArea[1]/@space-before"/>
- <eval expected="2750" xpath="//flow/block[1]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[1]/@offset"/>
- <eval expected="7180" xpath="//flow/block[1]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="18500" xpath="//flow/block[2]/lineArea[1]/@bpd"/>
- <eval expected="2750" xpath="//flow/block[2]/lineArea[1]/@space-before"/>
- <eval expected="2750" xpath="//flow/block[2]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[1]/@offset"/>
- <eval expected="7180" xpath="//flow/block[2]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="18500" xpath="//flow/block[3]/lineArea[1]/@bpd"/>
- <eval expected="2750" xpath="//flow/block[3]/lineArea[1]/@space-before"/>
- <eval expected="2750" xpath="//flow/block[3]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="18500" xpath="//flow/block[4]/lineArea[1]/@bpd"/>
- <eval expected="2750" xpath="//flow/block[4]/lineArea[1]/@space-before"/>
- <eval expected="2750" xpath="//flow/block[4]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="18500" xpath="//flow/block[5]/lineArea[1]/@bpd"/>
- <eval expected="2750" xpath="//flow/block[5]/lineArea[1]/@space-before"/>
- <eval expected="2750" xpath="//flow/block[5]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[1]/@offset"/>
- <eval expected="4565" xpath="//flow/block[5]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="18500" xpath="//flow/block[6]/lineArea[1]/@bpd"/>
- <eval expected="2750" xpath="//flow/block[6]/lineArea[1]/@space-before"/>
- <eval expected="2750" xpath="//flow/block[6]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/text[1]/@offset"/>
- <eval expected="9250" xpath="//flow/block[6]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="18500" xpath="//flow/block[7]/lineArea[1]/@bpd"/>
- <eval expected="2750" xpath="//flow/block[7]/lineArea[1]/@space-before"/>
- <eval expected="2750" xpath="//flow/block[7]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[7]/lineArea[1]/text[1]/@offset"/>
- <eval expected="9250" xpath="//flow/block[7]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[7]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="21780" xpath="//flow/block[8]/lineArea[1]/@bpd"/>
- <eval expected="2750" xpath="//flow/block[8]/lineArea[1]/@space-before"/>
- <eval expected="2750" xpath="//flow/block[8]/lineArea[1]/@space-after"/>
- <eval expected="3280" xpath="//flow/block[8]/lineArea[1]/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[8]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="3280" xpath="//flow/block[8]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="19045" xpath="//flow/block[9]/lineArea[1]/@bpd"/>
- <eval expected="2750" xpath="//flow/block[9]/lineArea[1]/@space-before"/>
- <eval expected="2750" xpath="//flow/block[9]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[9]/lineArea[1]/text[1]/@offset"/>
- <eval expected="9795" xpath="//flow/block[9]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[9]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="28960" xpath="//flow/block[10]/lineArea[1]/@bpd"/>
- <eval expected="2750" xpath="//flow/block[10]/lineArea[1]/@space-before"/>
- <eval expected="2750" xpath="//flow/block[10]/lineArea[1]/@space-after"/>
- <eval expected="10460" xpath="//flow/block[10]/lineArea[1]/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[10]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="10460" xpath="//flow/block[10]/lineArea[1]/text[2]/@offset"/>
-
- <eval expected="23730" xpath="//flow/block[11]/lineArea[1]/@bpd"/>
- <eval expected="2750" xpath="//flow/block[11]/lineArea[1]/@space-before"/>
- <eval expected="2750" xpath="//flow/block[11]/lineArea[1]/@space-after"/>
- <eval expected="0" xpath="//flow/block[11]/lineArea[1]/text[1]/@offset"/>
- <eval expected="5230" xpath="//flow/block[11]/lineArea[1]/inlineparent/@offset"/>
- <eval expected="0" xpath="//flow/block[11]/lineArea[1]/text[2]/@offset"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline_vertical-align_2.xml b/test/layoutengine/testcases/inline_vertical-align_2.xml
deleted file mode 100755
index 64d401957..000000000
--- a/test/layoutengine/testcases/inline_vertical-align_2.xml
+++ /dev/null
@@ -1,121 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks inline level vertical align.
- This example is taken from the spec section 7.13.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5.5in" page-height="7.5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="yellow" margin="2pt 0pt 2pt 0pt" font-size="10pt">
- This is a longer line that provides a context for the line with images aligned on it.
- Before edge <fo:external-graphic src="url(../../resources/images/arrow_down_small.png)" vertical-align="top" /><fo:external-graphic src="url(../../resources/images/arrow_down_large.png)" vertical-align="top" />,
- after edge <fo:external-graphic src="url(../../resources/images/arrow_up_small.png)" vertical-align="bottom" /><fo:external-graphic src="url(../../resources/images/arrow_up_medium.png)" vertical-align="bottom" />,
- middle <fo:external-graphic src="url(../../resources/images/arrow_up_down_small.png)" vertical-align="middle" />,
- none <fo:external-graphic src="url(../../resources/images/line_medium.png)" />.
- And this is a line of text that follows the line with the objects aligned on it.
- </fo:block>
- <fo:block background-color="yellow" margin="2pt 0pt 2pt 0pt" font-size="10pt">
- This is a longer line that provides a context for the line with images aligned on it.
- Before edge <fo:external-graphic src="url(../../resources/images/arrow_down_small.png)" vertical-align="top" /><fo:external-graphic src="url(../../resources/images/arrow_down_large.png)" vertical-align="top" />,
- after edge <fo:external-graphic src="url(../../resources/images/arrow_up_small.png)" vertical-align="bottom" /><fo:external-graphic src="url(../../resources/images/arrow_up_medium.png)" vertical-align="bottom" />,
- middle <fo:external-graphic src="url(../../resources/images/arrow_up_down_small.png)" vertical-align="middle" />.
- And this is a line of text that follows the line with the objects aligned on it.
- </fo:block>
- <fo:block background-color="yellow" margin="2pt 0pt 2pt 0pt" font-size="10pt">
- This is a longer line that provides a context for the line with images aligned on it.
- Before edge <fo:external-graphic src="url(../../resources/images/arrow_down_small.png)" vertical-align="top" /><fo:external-graphic src="url(../../resources/images/arrow_down_large.png)" vertical-align="top" />,
- after edge <fo:external-graphic src="url(../../resources/images/arrow_up_small.png)" vertical-align="bottom" /><fo:external-graphic src="url(../../resources/images/arrow_up_medium.png)" vertical-align="bottom" />.
- And this is a line of text that follows the line with the objects aligned on it.
- </fo:block>
- <fo:block background-color="yellow" margin="2pt 0pt 2pt 0pt" font-size="10pt">
- This is a longer line that provides a context for the line with images aligned on it.
- Before edge <fo:external-graphic src="url(../../resources/images/arrow_down_small.png)" vertical-align="top" /><fo:external-graphic src="url(../../resources/images/arrow_down_medium.png)" vertical-align="top" />,
- after edge <fo:external-graphic src="url(../../resources/images/arrow_up_small.png)" vertical-align="bottom" /><fo:external-graphic src="url(../../resources/images/arrow_up_large.png)" vertical-align="bottom" />.
- And this is a line of text that follows the line with the objects aligned on it.
- </fo:block>
- <fo:block background-color="yellow" margin="2pt 0pt 2pt 0pt" font-size="10pt">
- This is a longer line that provides a context for the line with images aligned on it.
- Before edge <fo:external-graphic src="url(../../resources/images/arrow_down_small.png)" vertical-align="top" /><fo:external-graphic src="url(../../resources/images/arrow_down_medium.png)" vertical-align="top" />,
- after edge <fo:external-graphic src="url(../../resources/images/arrow_up_small.png)" vertical-align="bottom" /><fo:external-graphic src="url(../../resources/images/arrow_up_large.png)" vertical-align="bottom" />,
- middle <fo:external-graphic src="url(../../resources/images/arrow_up_down_small.png)" vertical-align="middle" />.
- And this is a line of text that follows the line with the objects aligned on it.
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="48812" xpath="//flow/block[1]/lineArea[2]/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[2]/viewport[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[2]/viewport[2]/@offset"/>
- <eval expected="48812" xpath="//flow/block[1]/lineArea[2]/text[2]/@offset"/>
- <eval expected="35995" xpath="//flow/block[1]/lineArea[2]/viewport[3]/@offset"/>
- <eval expected="17998" xpath="//flow/block[1]/lineArea[2]/viewport[4]/@offset"/>
- <eval expected="48812" xpath="//flow/block[1]/lineArea[2]/text[3]/@offset"/>
- <eval expected="34379" xpath="//flow/block[1]/lineArea[2]/viewport[5]/@offset"/>
- <eval expected="48812" xpath="//flow/block[1]/lineArea[2]/text[4]/@offset"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea[2]/viewport[6]/@offset"/>
- <eval expected="48812" xpath="//flow/block[1]/lineArea[2]/text[5]/@offset"/>
-
- <eval expected="14433" xpath="//flow/block[2]/lineArea[2]/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[2]/viewport[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[2]/viewport[2]/@offset"/>
- <eval expected="14433" xpath="//flow/block[2]/lineArea[2]/text[2]/@offset"/>
- <eval expected="35995" xpath="//flow/block[2]/lineArea[2]/viewport[3]/@offset"/>
- <eval expected="17998" xpath="//flow/block[2]/lineArea[2]/viewport[4]/@offset"/>
- <eval expected="14433" xpath="//flow/block[2]/lineArea[2]/text[3]/@offset"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea[2]/viewport[5]/@offset"/>
- <eval expected="14433" xpath="//flow/block[2]/lineArea[2]/text[4]/@offset"/>
-
- <eval expected="0" xpath="//flow/block[3]/lineArea[2]/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[2]/viewport[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[2]/viewport[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[2]/text[2]/@offset"/>
- <eval expected="35995" xpath="//flow/block[3]/lineArea[2]/viewport[3]/@offset"/>
- <eval expected="17998" xpath="//flow/block[3]/lineArea[2]/viewport[4]/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea[2]/text[3]/@offset"/>
-
- <eval expected="0" xpath="//flow/block[4]/lineArea[2]/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[2]/viewport[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[2]/viewport[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[2]/text[2]/@offset"/>
- <eval expected="35995" xpath="//flow/block[4]/lineArea[2]/viewport[3]/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[2]/viewport[4]/@offset"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea[2]/text[3]/@offset"/>
-
- <eval expected="14433" xpath="//flow/block[5]/lineArea[2]/text[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[2]/viewport[1]/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[2]/viewport[2]/@offset"/>
- <eval expected="14433" xpath="//flow/block[5]/lineArea[2]/text[2]/@offset"/>
- <eval expected="35995" xpath="//flow/block[5]/lineArea[2]/viewport[3]/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[2]/viewport[4]/@offset"/>
- <eval expected="14433" xpath="//flow/block[5]/lineArea[2]/text[3]/@offset"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea[2]/viewport[5]/@offset"/>
- <eval expected="14433" xpath="//flow/block[5]/lineArea[2]/text[4]/@offset"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline_word-spacing.xml b/test/layoutengine/testcases/inline_word-spacing.xml
deleted file mode 100644
index 80585fbfa..000000000
--- a/test/layoutengine/testcases/inline_word-spacing.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks inline level word-spacing.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="6in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>In all the following tests the &lt;fo:inline&gt; 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</fo:block>
- <fo:block>Next block inlines have word-spacing="normal":</fo:block>
- <fo:block><fo:inline word-spacing="normal">Default </fo:inline>space between words is defined to be the inline-progression-dimension
- <fo:inline word-spacing="normal">of the glyph-area obtained by formatting the current fo:character whose</fo:inline>
- treat-as-word-space trait has the value<fo:inline word-spacing="normal"> "true".</fo:inline></fo:block>
- <fo:block>Next block inlines have word-spacing="0pt":</fo:block>
- <fo:block><fo:inline word-spacing="0pt">Default </fo:inline>space between words is defined to be the inline-progression-dimension
- <fo:inline word-spacing="0pt">of the glyph-area obtained by formatting the current fo:character whose</fo:inline>
- treat-as-word-space trait has the value<fo:inline word-spacing="0pt"> "true".</fo:inline></fo:block>
- <fo:block>Next block inlines have word-spacing="-2pt":</fo:block>
- <fo:block><fo:inline word-spacing="-2pt">Default </fo:inline>space between words is defined to be the inline-progression-dimension
- <fo:inline word-spacing="-2pt">of the glyph-area obtained by formatting the current fo:character whose</fo:inline>
- treat-as-word-space trait has the value<fo:inline word-spacing="-2pt"> "true".</fo:inline></fo:block>
- <fo:block>Next block inlines have word-spacing.optimum="6pt" word-spacing.minimum="3pt" word-spacing.maximum="12pt":</fo:block>
- <fo:block><fo:inline word-spacing.optimum="6pt" word-spacing.minimum="3pt" word-spacing.maximum="12pt">Default </fo:inline>space between words is defined to be the inline-progression-dimension
- <fo:inline word-spacing.optimum="6pt" word-spacing.minimum="3pt" word-spacing.maximum="12pt">of the glyph-area obtained by formatting the current fo:character whose</fo:inline>
- treat-as-word-space trait has the value<fo:inline word-spacing.optimum="6pt" word-spacing.minimum="3pt" word-spacing.maximum="12pt"> "true".</fo:inline></fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/inline_word-spacing_text-align_justify.xml b/test/layoutengine/testcases/inline_word-spacing_text-align_justify.xml
deleted file mode 100644
index 43a8292da..000000000
--- a/test/layoutengine/testcases/inline_word-spacing_text-align_justify.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks inline level word-spacing in justified blocks.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="6in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>In all the following tests the &lt;fo:inline&gt; 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</fo:block>
- <fo:block>Next block inlines have word-spacing="normal":</fo:block>
- <fo:block text-align="justify"><fo:inline word-spacing="normal">Default </fo:inline>space between words is defined to be the inline-progression-dimension
- <fo:inline word-spacing="normal">of the glyph-area obtained by formatting the current fo:character whose</fo:inline>
- treat-as-word-space trait has the value<fo:inline word-spacing="normal"> "true".</fo:inline></fo:block>
- <fo:block>Next block inlines have word-spacing="0pt":</fo:block>
- <fo:block text-align="justify"><fo:inline word-spacing="0pt">Default </fo:inline>space between words is defined to be the inline-progression-dimension
- <fo:inline word-spacing="0pt">of the glyph-area obtained by formatting the current fo:character whose</fo:inline>
- treat-as-word-space trait has the value<fo:inline word-spacing="0pt"> "true".</fo:inline></fo:block>
- <fo:block>Next block inlines have word-spacing="-2pt":</fo:block>
- <fo:block text-align="justify"><fo:inline word-spacing="-2pt">Default </fo:inline>space between words is defined to be the inline-progression-dimension
- <fo:inline word-spacing="-2pt">of the glyph-area obtained by formatting the current fo:character whose</fo:inline>
- treat-as-word-space trait has the value<fo:inline word-spacing="-2pt"> "true".</fo:inline></fo:block>
- <fo:block>Next block inlines have word-spacing.optimum="6pt" word-spacing.minimum="3pt" word-spacing.maximum="12pt":</fo:block>
- <fo:block text-align="justify"><fo:inline word-spacing.optimum="6pt" word-spacing.minimum="3pt" word-spacing.maximum="12pt">Default </fo:inline>space between words is defined to be the inline-progression-dimension
- <fo:inline word-spacing.optimum="6pt" word-spacing.minimum="3pt" word-spacing.maximum="12pt">of the glyph-area obtained by formatting the current fo:character whose</fo:inline>
- treat-as-word-space trait has the value<fo:inline word-spacing.optimum="6pt" word-spacing.minimum="3pt" word-spacing.maximum="12pt"> "true".</fo:inline></fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/instream-foreign-object_basic.xml b/test/layoutengine/testcases/instream-foreign-object_basic.xml
deleted file mode 100644
index 1661aa6d6..000000000
--- a/test/layoutengine/testcases/instream-foreign-object_basic.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks the basics for instream-foreign-object.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>start
- <fo:instream-foreign-object content-width="20pt" content-height="20pt">
- <svg:svg viewBox="0 0 20 20">
- <svg:g style="fill:red; stroke:#000000">
- <svg:rect x="0" y="0" width="15" height="15"/>
- <svg:rect x="5" y="5" width="15" height="15"/>
- </svg:g>
- </svg:svg>
- </fo:instream-foreign-object>
- end
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <true xpath="count(//flow/block[1]/lineArea/viewport) = 1" fail-msg="viewport area not found"/>
- <true xpath="count(//flow/block[1]/lineArea/viewport/foreignObject) = 1" fail-msg="foreign object area not found"/>
- <eval expected="20000" xpath="//flow/block[1]/lineArea/viewport/@bpd"/>
- <eval expected="20000" xpath="//flow/block[1]/lineArea/viewport/@bpda"/>
- <eval expected="20000" xpath="//flow/block[1]/lineArea/viewport/@ipd"/>
- <eval expected="20000" xpath="//flow/block[1]/lineArea/viewport/@ipda"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/instream-foreign-object_border_padding.xml b/test/layoutengine/testcases/instream-foreign-object_border_padding.xml
deleted file mode 100644
index 16d89eb22..000000000
--- a/test/layoutengine/testcases/instream-foreign-object_border_padding.xml
+++ /dev/null
@@ -1,95 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks the borders and the like for instream-foreign-object.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="orange">
- <fo:instream-foreign-object content-width="20pt" content-height="20pt" border-style="solid" border-width="5pt 10pt 20pt 15pt" padding="15pt 20pt 10pt 5pt" background-color="white">
- <svg:svg viewBox="0 0 20 20">
- <svg:g style="fill:red; stroke:#000000">
- <svg:rect x="0" y="0" width="15" height="15"/>
- <svg:rect x="5" y="5" width="15" height="15"/>
- </svg:g>
- </svg:svg>
- </fo:instream-foreign-object> Normal font
- </fo:block>
- <fo:block background-color="yellow" font-size="100pt">
- <fo:instream-foreign-object content-width="20pt" content-height="20pt" border-style="solid" border-width="5pt 10pt 20pt 15pt" padding="15pt 20pt 10pt 5pt" background-color="white">
- <svg:svg viewBox="0 0 20 20">
- <svg:g style="fill:red; stroke:#000000">
- <svg:rect x="0" y="0" width="15" height="15"/>
- <svg:rect x="5" y="5" width="15" height="15"/>
- </svg:g>
- </svg:svg>
- </fo:instream-foreign-object> FOP
- </fo:block>
- <fo:block font-size="9pt">
- 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.
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- first i-f-o -->
- <eval expected="20000" xpath="//flow/block[1]/lineArea/viewport/@ipd"/>
- <eval expected="20000" xpath="//flow/block[1]/lineArea/viewport/@bpd"/>
- <eval expected="70000" xpath="//flow/block[1]/lineArea/viewport/@bpda"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea/viewport/@offset"/>
- <eval expected="20000 30000 20000 30000" xpath="//flow/block[1]/lineArea/viewport/@bap"/>
- <eval expected="color=#ffffff" xpath="//flow/block[1]/lineArea/viewport/@background"/>
- <eval expected="(solid,#000000,5000)" xpath="//flow/block[1]/lineArea/viewport/@border-before"/>
- <eval expected="(solid,#000000,20000)" xpath="//flow/block[1]/lineArea/viewport/@border-after"/>
- <eval expected="(solid,#000000,15000)" xpath="//flow/block[1]/lineArea/viewport/@border-start"/>
- <eval expected="(solid,#000000,10000)" xpath="//flow/block[1]/lineArea/viewport/@border-end"/>
- <eval expected="15000" xpath="//flow/block[1]/lineArea/viewport/@padding-before"/>
- <eval expected="10000" xpath="//flow/block[1]/lineArea/viewport/@padding-after"/>
- <eval expected="5000" xpath="//flow/block[1]/lineArea/viewport/@padding-start"/>
- <eval expected="20000" xpath="//flow/block[1]/lineArea/viewport/@padding-end"/>
- <eval expected="20000 20000 20000 20000" xpath="//flow/block[1]/lineArea/viewport/foreignObject/@pos"/>
- <!-- second i-f-o -->
- <eval expected="20000" xpath="//flow/block[2]/lineArea/viewport/@ipd"/>
- <eval expected="20000" xpath="//flow/block[2]/lineArea/viewport/@bpd"/>
- <eval expected="70000" xpath="//flow/block[2]/lineArea/viewport/@bpda"/>
- <eval expected="1800" xpath="//flow/block[2]/lineArea/viewport/@offset"/>
- <eval expected="20000 30000 20000 30000" xpath="//flow/block[2]/lineArea/viewport/@bap"/>
- <eval expected="color=#ffffff" xpath="//flow/block[2]/lineArea/viewport/@background"/>
- <eval expected="(solid,#000000,5000)" xpath="//flow/block[2]/lineArea/viewport/@border-before"/>
- <eval expected="(solid,#000000,20000)" xpath="//flow/block[2]/lineArea/viewport/@border-after"/>
- <eval expected="(solid,#000000,15000)" xpath="//flow/block[2]/lineArea/viewport/@border-start"/>
- <eval expected="(solid,#000000,10000)" xpath="//flow/block[2]/lineArea/viewport/@border-end"/>
- <eval expected="15000" xpath="//flow/block[2]/lineArea/viewport/@padding-before"/>
- <eval expected="10000" xpath="//flow/block[2]/lineArea/viewport/@padding-after"/>
- <eval expected="5000" xpath="//flow/block[2]/lineArea/viewport/@padding-start"/>
- <eval expected="20000" xpath="//flow/block[2]/lineArea/viewport/@padding-end"/>
- <eval expected="20000 20000 20000 20000" xpath="//flow/block[2]/lineArea/viewport/foreignObject/@pos"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/instream-foreign-object_display-align.xml b/test/layoutengine/testcases/instream-foreign-object_display-align.xml
deleted file mode 100644
index a113ccc54..000000000
--- a/test/layoutengine/testcases/instream-foreign-object_display-align.xml
+++ /dev/null
@@ -1,120 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks instream-foreign-object with display-align.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="210mm" page-height="297mm">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>plain instream-foreign-object</fo:block>
- <fo:block>
- <fo:instream-foreign-object content-width="20pt" content-height="20pt" block-progression-dimension="30pt" background-color="yellow">
- <svg:svg viewBox="0 0 20 20">
- <svg:g style="fill:red; stroke:#000000">
- <svg:rect x="0" y="0" width="15" height="15"/>
- <svg:rect x="5" y="5" width="15" height="15"/>
- </svg:g>
- </svg:svg>
- </fo:instream-foreign-object>End
- </fo:block>
- <fo:block>instream-foreign-object with display-align="auto"</fo:block>
- <fo:block>
- <fo:instream-foreign-object content-width="20pt" content-height="20pt" display-align="auto" block-progression-dimension="30pt" background-color="yellow">
- <svg:svg viewBox="0 0 20 20">
- <svg:g style="fill:red; stroke:#000000">
- <svg:rect x="0" y="0" width="15" height="15"/>
- <svg:rect x="5" y="5" width="15" height="15"/>
- </svg:g>
- </svg:svg>
- </fo:instream-foreign-object>End
- </fo:block>
- <fo:block>instream-foreign-object with display-align="before"</fo:block>
- <fo:block>
- <fo:instream-foreign-object content-width="20pt" content-height="20pt" display-align="before" block-progression-dimension="30pt" background-color="yellow">
- <svg:svg viewBox="0 0 20 20">
- <svg:g style="fill:red; stroke:#000000">
- <svg:rect x="0" y="0" width="15" height="15"/>
- <svg:rect x="5" y="5" width="15" height="15"/>
- </svg:g>
- </svg:svg>
- </fo:instream-foreign-object>End
- </fo:block>
- <fo:block>instream-foreign-object with display-align="center"</fo:block>
- <fo:block>
- <fo:instream-foreign-object content-width="20pt" content-height="20pt" display-align="center" block-progression-dimension="30pt" background-color="yellow">
- <svg:svg viewBox="0 0 20 20">
- <svg:g style="fill:red; stroke:#000000">
- <svg:rect x="0" y="0" width="15" height="15"/>
- <svg:rect x="5" y="5" width="15" height="15"/>
- </svg:g>
- </svg:svg>
- </fo:instream-foreign-object>End
- </fo:block>
- <fo:block>instream-foreign-object with display-align="after"</fo:block>
- <fo:block>
- <fo:instream-foreign-object content-width="20pt" content-height="20pt" display-align="after" block-progression-dimension="30pt" background-color="yellow">
- <svg:svg viewBox="0 0 20 20">
- <svg:g style="fill:red; stroke:#000000">
- <svg:rect x="0" y="0" width="15" height="15"/>
- <svg:rect x="5" y="5" width="15" height="15"/>
- </svg:g>
- </svg:svg>
- </fo:instream-foreign-object>End
- </fo:block>
- <fo:block>EOF</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="20000" xpath="//flow/block[2]/lineArea/viewport/@ipd"/>
- <eval expected="20000" xpath="//flow/block[2]/lineArea/viewport/@ipda"/>
- <eval expected="30000" xpath="//flow/block[2]/lineArea/viewport/@bpd"/>
- <eval expected="30000" xpath="//flow/block[2]/lineArea/viewport/@bpda"/>
- <eval expected="0 0 20000 20000" xpath="//flow/block[2]/lineArea/viewport/foreignObject/@pos"/>
- <eval expected="20000" xpath="//flow/block[4]/lineArea/viewport/@ipd"/>
- <eval expected="20000" xpath="//flow/block[4]/lineArea/viewport/@ipda"/>
- <eval expected="30000" xpath="//flow/block[4]/lineArea/viewport/@bpd"/>
- <eval expected="30000" xpath="//flow/block[4]/lineArea/viewport/@bpda"/>
- <eval expected="0 0 20000 20000" xpath="//flow/block[4]/lineArea/viewport/foreignObject/@pos"/>
- <eval expected="20000" xpath="//flow/block[6]/lineArea/viewport/@ipd"/>
- <eval expected="20000" xpath="//flow/block[6]/lineArea/viewport/@ipda"/>
- <eval expected="30000" xpath="//flow/block[6]/lineArea/viewport/@bpd"/>
- <eval expected="30000" xpath="//flow/block[6]/lineArea/viewport/@bpda"/>
- <eval expected="0 0 20000 20000" xpath="//flow/block[6]/lineArea/viewport/foreignObject/@pos"/>
- <eval expected="20000" xpath="//flow/block[8]/lineArea/viewport/@ipd"/>
- <eval expected="20000" xpath="//flow/block[8]/lineArea/viewport/@ipda"/>
- <eval expected="30000" xpath="//flow/block[8]/lineArea/viewport/@bpd"/>
- <eval expected="30000" xpath="//flow/block[8]/lineArea/viewport/@bpda"/>
- <eval expected="0 5000 20000 20000" xpath="//flow/block[8]/lineArea/viewport/foreignObject/@pos"/>
- <eval expected="20000" xpath="//flow/block[10]/lineArea/viewport/@ipd"/>
- <eval expected="20000" xpath="//flow/block[10]/lineArea/viewport/@ipda"/>
- <eval expected="30000" xpath="//flow/block[10]/lineArea/viewport/@bpd"/>
- <eval expected="30000" xpath="//flow/block[10]/lineArea/viewport/@bpda"/>
- <eval expected="0 10000 20000 20000" xpath="//flow/block[10]/lineArea/viewport/foreignObject/@pos"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/leader-alignment.xml b/test/layoutengine/testcases/leader-alignment.xml
deleted file mode 100644
index c8257ab48..000000000
--- a/test/layoutengine/testcases/leader-alignment.xml
+++ /dev/null
@@ -1,67 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks leaders
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="6in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block margin="0pt" padding-left="10mm">
- margin="0pt" padding-left="10mm"
- </fo:block>
- <fo:block padding-left="10mm">
- padding-left="10mm"
- </fo:block>
- <fo:block>
- <fo:leader leader-length.minimum="12pt"
- leader-length.optimum="80pt"
- leader-length.maximum="100%" leader-pattern="dots" leader-alignment="page"/>
- leader-alignment="page"
- </fo:block>
- <fo:block margin="0pt" padding-left="10mm">
- <fo:leader leader-length.minimum="12pt"
- leader-length.optimum="80pt"
- leader-length.maximum="100%" leader-pattern="dots" leader-alignment="page"/>
- leader-alignment="page"
- </fo:block>
- <fo:block margin="0pt" padding-left="5mm">
- <fo:leader leader-length.minimum="12pt"
- leader-length.optimum="80pt"
- leader-length.maximum="100%" leader-pattern="dots" leader-alignment="reference-area"/>
- leader-alignment="reference-area"
- <fo:leader leader-length.minimum="12pt"
- leader-length.optimum="80pt"
- leader-length.maximum="100%" leader-pattern="dots" 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.
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/leader_alignment-baseline.xml b/test/layoutengine/testcases/leader_alignment-baseline.xml
deleted file mode 100755
index 630d40e88..000000000
--- a/test/layoutengine/testcases/leader_alignment-baseline.xml
+++ /dev/null
@@ -1,170 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks fo:leader with different alignment-baseline values.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="dots" alignment-baseline="baseline" background-color="yellow"/>
- dots baseline
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="solid" alignment-baseline="baseline" background-color="yellow"/>
- rule solid baseline
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="double" alignment-baseline="baseline" background-color="yellow"/>
- rule double baseline
- </fo:block>
- <fo:block>
- <!-- use content currently causes a ClassCastException
- <fo:leader leader-length="36pt" leader-pattern="use-content" alignment-baseline="baseline" background-color="yellow">x</fo:leader>
- use-content x baseline
- -->
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="dots" alignment-baseline="before-edge" background-color="yellow"/>
- dots before-edge
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="solid" alignment-baseline="before-edge" background-color="yellow"/>
- rule solid before-edge
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="double" alignment-baseline="before-edge" background-color="yellow"/>
- rule double before-edge
- </fo:block>
- <fo:block>
- <!-- use content currently causes a ClassCastException
- <fo:leader leader-length="36pt" leader-pattern="use-content" alignment-baseline="before-edge" background-color="yellow">x</fo:leader>
- use-content x before-edge
- -->
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="dots" alignment-baseline="middle" background-color="yellow"/>
- dots middle
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="solid" alignment-baseline="middle" background-color="yellow"/>
- rule solid middle
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="double" alignment-baseline="middle" background-color="yellow"/>
- rule double middle
- </fo:block>
- <fo:block>
- <!-- use content currently causes a ClassCastException
- <fo:leader leader-length="36pt" leader-pattern="use-content" alignment-baseline="middle" background-color="yellow">x</fo:leader>
- use-content x middle
- -->
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="dots" alignment-baseline="after-edge" background-color="yellow"/>
- dots after-edge
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="solid" alignment-baseline="after-edge" background-color="yellow"/>
- rule solid after-edge
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="double" alignment-baseline="after-edge" background-color="yellow"/>
- rule double after-edge
- </fo:block>
- <fo:block>
- <!-- use content currently causes a ClassCastException
- <fo:leader leader-length="36pt" leader-pattern="use-content" alignment-baseline="after-edge" background-color="yellow">x</fo:leader>
- use-content x after-edge
- -->
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="11100" xpath="//flow/block[1]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[1]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[1]/lineArea/inlineparent/@ipd"/>
- <eval expected="5280" xpath="//flow/block[1]/lineArea/inlineparent/@offset"/>
-
- <eval expected="11100" xpath="//flow/block[2]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[2]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[2]/lineArea/leader/@ipd"/>
- <eval expected="7616" xpath="//flow/block[2]/lineArea/leader/@offset"/>
-
- <eval expected="11100" xpath="//flow/block[3]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[3]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[3]/lineArea/leader/@ipd"/>
- <eval expected="7616" xpath="//flow/block[3]/lineArea/leader/@offset"/>
-
- <eval expected="11100" xpath="//flow/block[5]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[5]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[5]/lineArea/inlineparent/@ipd"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea/inlineparent/@offset"/>
-
- <eval expected="11100" xpath="//flow/block[6]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[6]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[6]/lineArea/leader/@ipd"/>
- <eval expected="0" xpath="//flow/block[6]/lineArea/leader/@offset"/>
-
- <eval expected="11100" xpath="//flow/block[7]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[7]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[7]/lineArea/leader/@ipd"/>
- <eval expected="0" xpath="//flow/block[7]/lineArea/leader/@offset"/>
-
- <eval expected="11100" xpath="//flow/block[9]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[9]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[9]/lineArea/inlineparent/@ipd"/>
- <eval expected="3810" xpath="//flow/block[9]/lineArea/inlineparent/@offset"/>
-
- <eval expected="11100" xpath="//flow/block[10]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[10]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[10]/lineArea/leader/@ipd"/>
- <eval expected="4978" xpath="//flow/block[10]/lineArea/leader/@offset"/>
-
- <eval expected="11100" xpath="//flow/block[11]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[11]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[11]/lineArea/leader/@ipd"/>
- <eval expected="4978" xpath="//flow/block[11]/lineArea/leader/@offset"/>
-
- <eval expected="11100" xpath="//flow/block[13]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[13]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[13]/lineArea/inlineparent/@ipd"/>
- <eval expected="7764" xpath="//flow/block[13]/lineArea/inlineparent/@offset"/>
-
- <eval expected="11100" xpath="//flow/block[14]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[14]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[14]/lineArea/leader/@ipd"/>
- <eval expected="10100" xpath="//flow/block[14]/lineArea/leader/@offset"/>
-
- <eval expected="11100" xpath="//flow/block[15]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[15]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[15]/lineArea/leader/@ipd"/>
- <eval expected="10100" xpath="//flow/block[15]/lineArea/leader/@offset"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/leader_background-color.xml b/test/layoutengine/testcases/leader_background-color.xml
deleted file mode 100755
index 05dd381a7..000000000
--- a/test/layoutengine/testcases/leader_background-color.xml
+++ /dev/null
@@ -1,81 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks fo:leader with background-color
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="dots" background-color="yellow"/>
- dots yellow background
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="solid" background-color="yellow"/>
- rule solid yellow background
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="double" background-color="yellow"/>
- rule double yellow background
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="space" background-color="yellow"/>
- space yellow background
- </fo:block>
- <fo:block>
- <!-- use content currently causes a ClassCastException
- <fo:leader leader-length="36pt" leader-pattern="use-content" background-color="yellow">x</fo:leader>
- use-content x yellow background
- -->
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="11100" xpath="//flow/block[1]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[1]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[1]/lineArea/inlineparent/@ipd"/>
- <eval expected="color=#ffff00" xpath="//flow/block[1]/lineArea/inlineparent/@background"/>
-
- <eval expected="11100" xpath="//flow/block[2]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[2]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[2]/lineArea/leader/@ipd"/>
- <eval expected="color=#ffff00" xpath="//flow/block[2]/lineArea/leader/@background"/>
-
- <eval expected="11100" xpath="//flow/block[3]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[3]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[3]/lineArea/leader/@ipd"/>
- <eval expected="color=#ffff00" xpath="//flow/block[3]/lineArea/leader/@background"/>
-
- <eval expected="11100" xpath="//flow/block[4]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[4]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[4]/lineArea/space/@ipd"/>
- <eval expected="color=#ffff00" xpath="//flow/block[4]/lineArea/space/@background"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/leader_border_padding.xml b/test/layoutengine/testcases/leader_border_padding.xml
deleted file mode 100755
index aa89bcbfa..000000000
--- a/test/layoutengine/testcases/leader_border_padding.xml
+++ /dev/null
@@ -1,256 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks fo:leader with border and padding
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="dots" border="solid 1pt red"/>
- dots solid 1pt red border
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="solid" border="solid 1pt red"/>
- rule solid solid 1pt red border
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="double" border="solid 1pt red"/>
- rule double solid 1pt red border
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="space" border="solid 1pt red"/>
- space solid 1pt red border
- </fo:block>
- <fo:block>
- <!-- use content currently causes a ClassCastException
- <fo:leader leader-length="36pt" leader-pattern="use-content" border="solid 1pt red">x</fo:leader>
- use-content x solid 1pt red border
- -->
- </fo:block>
- <fo:block margin="10pt 0pt 10pt 0pt">
- <fo:leader leader-length="36pt" leader-pattern="dots" border="solid 5pt red" padding="5pt"/>
- dots solid 5pt red border 5pt padding
- </fo:block>
- <fo:block margin="10pt 0pt 10pt 0pt">
- <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="solid" border="solid 5pt red" padding="5pt"/>
- rule solid solid 5pt red border 5pt padding
- </fo:block>
- <fo:block margin="10pt 0pt 10pt 0pt">
- <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="double" border="solid 5pt red" padding="5pt"/>
- rule double solid 5pt red border 5pt padding
- </fo:block>
- <fo:block margin="10pt 0pt 10pt 0pt">
- <fo:leader leader-length="36pt" leader-pattern="space" border="solid 5pt red" padding="5pt"/>
- space solid 5pt red border 5pt padding
- </fo:block>
- <fo:block margin="10pt 0pt 10pt 0pt">
- <!-- use content currently causes a ClassCastException
- <fo:leader leader-length="36pt" leader-pattern="use-content" border="solid 5pt red" padding="5pt">x</fo:leader>
- use-content x solid 5pt red border 5pt padding
- -->
- </fo:block>
- <fo:block margin="2pt 0pt 2pt 0pt">
- <fo:leader leader-length="36pt" leader-pattern="dots" border-style="solid" border-width="1pt 2pt 3pt 4pt" border-color="red" padding="1pt 2pt 3pt 4pt"/>
- dots uneven border and padding
- </fo:block>
- <fo:block margin="2pt 0pt 2pt 0pt">
- <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="solid" border-style="solid" border-width="1pt 2pt 3pt 4pt" border-color="red" padding="1pt 2pt 3pt 4pt"/>
- rule solid uneven border and padding
- </fo:block>
- <fo:block margin="2pt 0pt 2pt 0pt">
- <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="double" border-style="solid" border-width="1pt 2pt 3pt 4pt" border-color="red" padding="1pt 2pt 3pt 4pt"/>
- rule double uneven border and padding
- </fo:block>
- <fo:block margin="2pt 0pt 2pt 0pt">
- <fo:leader leader-length="36pt" leader-pattern="space" border-style="solid" border-width="1pt 2pt 3pt 4pt" border-color="red" padding="1pt 2pt 3pt 4pt"/>
- space uneven border and padding
- </fo:block>
- <fo:block margin="2pt 0pt 2pt 0pt">
- <!-- use content currently causes a ClassCastException
- <fo:leader leader-length="36pt" leader-pattern="use-content" border-style="solid" border-width="1pt 2pt 3pt 4pt" border-color="red" padding="1pt 2pt 3pt 4pt">x</fo:leader>
- use-content x uneven border and padding
- -->
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="11100" xpath="//flow/block[1]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[1]/lineArea/@ipd"/>
- <eval expected="34000" xpath="//flow/block[1]/lineArea/inlineparent/@ipd"/>
- <eval expected="36000" xpath="//flow/block[1]/lineArea/inlineparent/@ipda"/>
- <eval expected="5280" xpath="//flow/block[1]/lineArea/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/inlineparent/@border-end"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/inlineparent/@border-start"/>
-
- <eval expected="11100" xpath="//flow/block[2]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[2]/lineArea/@ipd"/>
- <eval expected="34000" xpath="//flow/block[2]/lineArea/leader/@ipd"/>
- <eval expected="36000" xpath="//flow/block[2]/lineArea/leader/@ipda"/>
- <eval expected="7616" xpath="//flow/block[2]/lineArea/leader/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea/leader/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea/leader/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea/leader/@border-end"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[2]/lineArea/leader/@border-start"/>
-
- <eval expected="11100" xpath="//flow/block[3]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[3]/lineArea/@ipd"/>
- <eval expected="34000" xpath="//flow/block[3]/lineArea/leader/@ipd"/>
- <eval expected="36000" xpath="//flow/block[3]/lineArea/leader/@ipda"/>
- <eval expected="7616" xpath="//flow/block[3]/lineArea/leader/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea/leader/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea/leader/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea/leader/@border-end"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea/leader/@border-start"/>
-
- <eval expected="11100" xpath="//flow/block[4]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[4]/lineArea/@ipd"/>
- <eval expected="34000" xpath="//flow/block[4]/lineArea/space/@ipd"/>
- <eval expected="36000" xpath="//flow/block[4]/lineArea/space/@ipda"/>
- <eval expected="8615" xpath="//flow/block[4]/lineArea/space/@offset"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea/space/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea/space/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea/space/@border-end"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[4]/lineArea/space/@border-start"/>
-
- <eval expected="11100" xpath="//flow/block[6]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[6]/lineArea/@ipd"/>
- <eval expected="16000" xpath="//flow/block[6]/lineArea/inlineparent/@ipd"/>
- <eval expected="36000" xpath="//flow/block[6]/lineArea/inlineparent/@ipda"/>
- <eval expected="5280" xpath="//flow/block[6]/lineArea/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[6]/lineArea/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[6]/lineArea/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[6]/lineArea/inlineparent/@border-end"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[6]/lineArea/inlineparent/@border-start"/>
- <eval expected="5000" xpath="//flow/block[6]/lineArea/inlineparent/@padding-after"/>
- <eval expected="5000" xpath="//flow/block[6]/lineArea/inlineparent/@padding-before"/>
- <eval expected="5000" xpath="//flow/block[6]/lineArea/inlineparent/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[6]/lineArea/inlineparent/@padding-start"/>
-
- <eval expected="11100" xpath="//flow/block[7]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[7]/lineArea/@ipd"/>
- <eval expected="16000" xpath="//flow/block[7]/lineArea/leader/@ipd"/>
- <eval expected="36000" xpath="//flow/block[7]/lineArea/leader/@ipda"/>
- <eval expected="7616" xpath="//flow/block[7]/lineArea/leader/@offset"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[7]/lineArea/leader/@border-after"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[7]/lineArea/leader/@border-before"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[7]/lineArea/leader/@border-end"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[7]/lineArea/leader/@border-start"/>
- <eval expected="5000" xpath="//flow/block[7]/lineArea/leader/@padding-after"/>
- <eval expected="5000" xpath="//flow/block[7]/lineArea/leader/@padding-before"/>
- <eval expected="5000" xpath="//flow/block[7]/lineArea/leader/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[7]/lineArea/leader/@padding-start"/>
-
- <eval expected="11100" xpath="//flow/block[8]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[8]/lineArea/@ipd"/>
- <eval expected="16000" xpath="//flow/block[8]/lineArea/leader/@ipd"/>
- <eval expected="36000" xpath="//flow/block[8]/lineArea/leader/@ipda"/>
- <eval expected="7616" xpath="//flow/block[8]/lineArea/leader/@offset"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[8]/lineArea/leader/@border-after"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[8]/lineArea/leader/@border-before"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[8]/lineArea/leader/@border-end"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[8]/lineArea/leader/@border-start"/>
- <eval expected="5000" xpath="//flow/block[8]/lineArea/leader/@padding-after"/>
- <eval expected="5000" xpath="//flow/block[8]/lineArea/leader/@padding-before"/>
- <eval expected="5000" xpath="//flow/block[8]/lineArea/leader/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[8]/lineArea/leader/@padding-start"/>
-
- <eval expected="11100" xpath="//flow/block[9]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[9]/lineArea/@ipd"/>
- <eval expected="16000" xpath="//flow/block[9]/lineArea/space/@ipd"/>
- <eval expected="36000" xpath="//flow/block[9]/lineArea/space/@ipda"/>
- <eval expected="8615" xpath="//flow/block[9]/lineArea/space/@offset"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[9]/lineArea/space/@border-after"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[9]/lineArea/space/@border-before"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[9]/lineArea/space/@border-end"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[9]/lineArea/space/@border-start"/>
- <eval expected="5000" xpath="//flow/block[9]/lineArea/space/@padding-after"/>
- <eval expected="5000" xpath="//flow/block[9]/lineArea/space/@padding-before"/>
- <eval expected="5000" xpath="//flow/block[9]/lineArea/space/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[9]/lineArea/space/@padding-start"/>
-
- <eval expected="11100" xpath="//flow/block[11]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[11]/lineArea/@ipd"/>
- <eval expected="24000" xpath="//flow/block[11]/lineArea/inlineparent/@ipd"/>
- <eval expected="36000" xpath="//flow/block[11]/lineArea/inlineparent/@ipda"/>
- <eval expected="5280" xpath="//flow/block[11]/lineArea/inlineparent/@offset"/>
- <eval expected="(solid,#ff0000,3000)" xpath="//flow/block[11]/lineArea/inlineparent/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[11]/lineArea/inlineparent/@border-before"/>
- <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[11]/lineArea/inlineparent/@border-end"/>
- <eval expected="(solid,#ff0000,4000)" xpath="//flow/block[11]/lineArea/inlineparent/@border-start"/>
- <eval expected="3000" xpath="//flow/block[11]/lineArea/inlineparent/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[11]/lineArea/inlineparent/@padding-before"/>
- <eval expected="2000" xpath="//flow/block[11]/lineArea/inlineparent/@padding-end"/>
- <eval expected="4000" xpath="//flow/block[11]/lineArea/inlineparent/@padding-start"/>
-
- <eval expected="11100" xpath="//flow/block[12]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[12]/lineArea/@ipd"/>
- <eval expected="24000" xpath="//flow/block[12]/lineArea/leader/@ipd"/>
- <eval expected="36000" xpath="//flow/block[12]/lineArea/leader/@ipda"/>
- <eval expected="7616" xpath="//flow/block[12]/lineArea/leader/@offset"/>
- <eval expected="(solid,#ff0000,3000)" xpath="//flow/block[12]/lineArea/leader/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[12]/lineArea/leader/@border-before"/>
- <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[12]/lineArea/leader/@border-end"/>
- <eval expected="(solid,#ff0000,4000)" xpath="//flow/block[12]/lineArea/leader/@border-start"/>
- <eval expected="3000" xpath="//flow/block[12]/lineArea/leader/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[12]/lineArea/leader/@padding-before"/>
- <eval expected="2000" xpath="//flow/block[12]/lineArea/leader/@padding-end"/>
- <eval expected="4000" xpath="//flow/block[12]/lineArea/leader/@padding-start"/>
-
- <eval expected="11100" xpath="//flow/block[13]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[13]/lineArea/@ipd"/>
- <eval expected="24000" xpath="//flow/block[13]/lineArea/leader/@ipd"/>
- <eval expected="36000" xpath="//flow/block[13]/lineArea/leader/@ipda"/>
- <eval expected="7616" xpath="//flow/block[13]/lineArea/leader/@offset"/>
- <eval expected="(solid,#ff0000,3000)" xpath="//flow/block[13]/lineArea/leader/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[13]/lineArea/leader/@border-before"/>
- <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[13]/lineArea/leader/@border-end"/>
- <eval expected="(solid,#ff0000,4000)" xpath="//flow/block[13]/lineArea/leader/@border-start"/>
- <eval expected="3000" xpath="//flow/block[13]/lineArea/leader/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[13]/lineArea/leader/@padding-before"/>
- <eval expected="2000" xpath="//flow/block[13]/lineArea/leader/@padding-end"/>
- <eval expected="4000" xpath="//flow/block[13]/lineArea/leader/@padding-start"/>
-
- <eval expected="11100" xpath="//flow/block[14]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[14]/lineArea/@ipd"/>
- <eval expected="24000" xpath="//flow/block[14]/lineArea/space/@ipd"/>
- <eval expected="36000" xpath="//flow/block[14]/lineArea/space/@ipda"/>
- <eval expected="8615" xpath="//flow/block[14]/lineArea/space/@offset"/>
- <eval expected="(solid,#ff0000,3000)" xpath="//flow/block[14]/lineArea/space/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[14]/lineArea/space/@border-before"/>
- <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[14]/lineArea/space/@border-end"/>
- <eval expected="(solid,#ff0000,4000)" xpath="//flow/block[14]/lineArea/space/@border-start"/>
- <eval expected="3000" xpath="//flow/block[14]/lineArea/space/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[14]/lineArea/space/@padding-before"/>
- <eval expected="2000" xpath="//flow/block[14]/lineArea/space/@padding-end"/>
- <eval expected="4000" xpath="//flow/block[14]/lineArea/space/@padding-start"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/leader_leader-pattern_dots.xml b/test/layoutengine/testcases/leader_leader-pattern_dots.xml
deleted file mode 100644
index 55af7c317..000000000
--- a/test/layoutengine/testcases/leader_leader-pattern_dots.xml
+++ /dev/null
@@ -1,90 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id: text-decoration1.xml 198408 2005-02-09 21:38:31Z jeremias $ -->
-<testcase>
- <info>
- <p>
- This test checks leaders with leader-pattern="dots"
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- <fo:leader leader-pattern="dots"/>
- Default dots pattern
- </fo:block>
- <fo:block>
- <fo:leader leader-pattern="dots" leader-pattern-width="use-font-metrics" background-color="yellow"/>
- leader-pattern-width="use-font-metrics"
- </fo:block>
- <fo:block>
- <fo:leader leader-pattern="dots" leader-length="20mm" leader-pattern-width="5mm" background-color="yellow"/>
- leader-length="20mm" leader-pattern-width="5mm"
- </fo:block>
- <fo:block>
- <fo:leader leader-pattern="dots" leader-length="20%" leader-pattern-width="5mm" background-color="yellow"/>
- leader-length="20%" leader-pattern-width="5mm"
- </fo:block>
- <fo:block>
- <fo:leader leader-pattern="dots" leader-pattern-width="1pt" background-color="yellow"/>
- leader-pattern-width="1pt"
- </fo:block>
- <fo:block>
- <fo:leader leader-pattern="dots" leader-length="20%" leader-pattern-width="5%" background-color="yellow"/>
- leader-length="20%" leader-pattern-width="5%"
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="11100" xpath="//flow/block[1]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[1]/lineArea/@ipd"/>
- <eval expected="12000" xpath="//flow/block[1]/lineArea/inlineparent/@ipd"/>
- <eval expected="3" xpath="count(//flow/block[1]/lineArea/inlineparent/text)"/>
- <eval expected="11100" xpath="//flow/block[2]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[2]/lineArea/@ipd"/>
- <eval expected="12000" xpath="//flow/block[2]/lineArea/inlineparent/@ipd"/>
- <eval expected="3" xpath="count(//flow/block[2]/lineArea/inlineparent/text)"/>
- <eval expected="11100" xpath="//flow/block[3]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[3]/lineArea/@ipd"/>
- <eval expected="56692" xpath="//flow/block[3]/lineArea/inlineparent/@ipd"/>
- <eval expected="4" xpath="count(//flow/block[3]/lineArea/inlineparent/text)"/>
- <eval expected="4" xpath="count(//flow/block[3]/lineArea/inlineparent/space)"/>
- <eval expected="11100" xpath="//flow/block[4]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[4]/lineArea/@ipd"/>
- <eval expected="72000" xpath="//flow/block[4]/lineArea/inlineparent/@ipd"/>
- <eval expected="5" xpath="count(//flow/block[4]/lineArea/inlineparent/text)"/>
- <eval expected="5" xpath="count(//flow/block[4]/lineArea/inlineparent/space)"/>
- <eval expected="11100" xpath="//flow/block[5]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[5]/lineArea/@ipd"/>
- <eval expected="12000" xpath="//flow/block[5]/lineArea/inlineparent/@ipd"/>
- <eval expected="3" xpath="count(//flow/block[5]/lineArea/inlineparent/text)"/>
- <eval expected="11100" xpath="//flow/block[6]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[6]/lineArea/@ipd"/>
- <eval expected="72000" xpath="//flow/block[6]/lineArea/inlineparent/@ipd"/>
- <eval expected="4" xpath="count(//flow/block[6]/lineArea/inlineparent/text)"/>
- <eval expected="4" xpath="count(//flow/block[6]/lineArea/inlineparent/space)"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/leader_leader-pattern_rule.xml b/test/layoutengine/testcases/leader_leader-pattern_rule.xml
deleted file mode 100644
index bfba5ea26..000000000
--- a/test/layoutengine/testcases/leader_leader-pattern_rule.xml
+++ /dev/null
@@ -1,176 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id: text-decoration1.xml 198408 2005-02-09 21:38:31Z jeremias $ -->
-<testcase>
- <info>
- <p>
- This test checks leaders with leader-patter="rule"
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="rule" background-color="yellow"/>
- No rule-style given
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="none" background-color="yellow"/>
- rule-style="none"
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="dotted" background-color="yellow"/>
- rule-style="dotted"
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="dashed" background-color="yellow"/>
- rule-style="dashed"
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="solid" background-color="yellow"/>
- rule-style="solid"
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="double" background-color="yellow"/>
- rule-style="double"
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="groove" background-color="yellow"/>
- rule-style="groove"
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="ridge" background-color="yellow"/>
- rule-style="ridge"
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="dotted" rule-thickness="3pt" background-color="yellow"/>
- rule-style="dotted" rule-thickness="3pt"
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="dashed" rule-thickness="3pt" background-color="yellow"/>
- rule-style="dashed" rule-thickness="3pt"
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="solid" rule-thickness="3pt" background-color="yellow"/>
- rule-style="solid" rule-thickness="3pt"
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="double" rule-thickness="3pt" background-color="yellow"/>
- rule-style="double" rule-thickness="3pt"
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="groove" rule-thickness="3pt" background-color="yellow"/>
- rule-style="groove" rule-thickness="3pt"
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="rule" rule-style="ridge" rule-thickness="3pt" background-color="yellow"/>
- rule-style="ridge" rule-thickness="3pt"
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="11100" xpath="//flow/block[1]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[1]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[1]/lineArea/leader/@ipd"/>
- <eval expected="solid" xpath="//flow/block[1]/lineArea/leader/@ruleStyle"/>
- <eval expected="1000" xpath="//flow/block[1]/lineArea/leader/@ruleThickness"/>
-
- <eval expected="11100" xpath="//flow/block[2]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[2]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[2]/lineArea/space/@ipd"/>
-
- <eval expected="11100" xpath="//flow/block[3]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[3]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[3]/lineArea/leader/@ipd"/>
- <eval expected="dotted" xpath="//flow/block[3]/lineArea/leader/@ruleStyle"/>
- <eval expected="1000" xpath="//flow/block[3]/lineArea/leader/@ruleThickness"/>
-
- <eval expected="11100" xpath="//flow/block[4]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[4]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[4]/lineArea/leader/@ipd"/>
- <eval expected="dashed" xpath="//flow/block[4]/lineArea/leader/@ruleStyle"/>
- <eval expected="1000" xpath="//flow/block[4]/lineArea/leader/@ruleThickness"/>
-
- <eval expected="11100" xpath="//flow/block[5]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[5]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[5]/lineArea/leader/@ipd"/>
- <eval expected="solid" xpath="//flow/block[5]/lineArea/leader/@ruleStyle"/>
- <eval expected="1000" xpath="//flow/block[5]/lineArea/leader/@ruleThickness"/>
-
- <eval expected="11100" xpath="//flow/block[6]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[6]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[6]/lineArea/leader/@ipd"/>
- <eval expected="double" xpath="//flow/block[6]/lineArea/leader/@ruleStyle"/>
- <eval expected="1000" xpath="//flow/block[6]/lineArea/leader/@ruleThickness"/>
-
- <eval expected="11100" xpath="//flow/block[7]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[7]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[7]/lineArea/leader/@ipd"/>
- <eval expected="groove" xpath="//flow/block[7]/lineArea/leader/@ruleStyle"/>
- <eval expected="1000" xpath="//flow/block[7]/lineArea/leader/@ruleThickness"/>
-
- <eval expected="11100" xpath="//flow/block[8]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[8]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[8]/lineArea/leader/@ipd"/>
- <eval expected="ridge" xpath="//flow/block[8]/lineArea/leader/@ruleStyle"/>
- <eval expected="1000" xpath="//flow/block[8]/lineArea/leader/@ruleThickness"/>
-
- <eval expected="11100" xpath="//flow/block[9]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[9]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[9]/lineArea/leader/@ipd"/>
- <eval expected="dotted" xpath="//flow/block[9]/lineArea/leader/@ruleStyle"/>
- <eval expected="3000" xpath="//flow/block[9]/lineArea/leader/@ruleThickness"/>
-
- <eval expected="11100" xpath="//flow/block[10]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[10]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[10]/lineArea/leader/@ipd"/>
- <eval expected="dashed" xpath="//flow/block[10]/lineArea/leader/@ruleStyle"/>
- <eval expected="3000" xpath="//flow/block[10]/lineArea/leader/@ruleThickness"/>
-
- <eval expected="11100" xpath="//flow/block[11]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[11]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[11]/lineArea/leader/@ipd"/>
- <eval expected="solid" xpath="//flow/block[11]/lineArea/leader/@ruleStyle"/>
- <eval expected="3000" xpath="//flow/block[11]/lineArea/leader/@ruleThickness"/>
-
- <eval expected="11100" xpath="//flow/block[12]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[12]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[12]/lineArea/leader/@ipd"/>
- <eval expected="double" xpath="//flow/block[12]/lineArea/leader/@ruleStyle"/>
- <eval expected="3000" xpath="//flow/block[12]/lineArea/leader/@ruleThickness"/>
-
- <eval expected="11100" xpath="//flow/block[13]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[13]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[13]/lineArea/leader/@ipd"/>
- <eval expected="groove" xpath="//flow/block[13]/lineArea/leader/@ruleStyle"/>
- <eval expected="3000" xpath="//flow/block[13]/lineArea/leader/@ruleThickness"/>
-
- <eval expected="11100" xpath="//flow/block[14]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[14]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[14]/lineArea/leader/@ipd"/>
- <eval expected="ridge" xpath="//flow/block[14]/lineArea/leader/@ruleStyle"/>
- <eval expected="3000" xpath="//flow/block[14]/lineArea/leader/@ruleThickness"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/leader_leader-pattern_space.xml b/test/layoutengine/testcases/leader_leader-pattern_space.xml
deleted file mode 100644
index 61ee71e7d..000000000
--- a/test/layoutengine/testcases/leader_leader-pattern_space.xml
+++ /dev/null
@@ -1,60 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id: text-decoration1.xml 198408 2005-02-09 21:38:31Z jeremias $ -->
-<testcase>
- <info>
- <p>
- This test checks leaders with leader-pattern="space"
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- <fo:leader leader-pattern="space"/>
- Default space pattern
- </fo:block>
- <fo:block>
- <fo:leader leader-pattern="space" leader-length="0.5in"/>
- leader-length="0.5in"
- </fo:block>
- <fo:block>
- <fo:leader leader-pattern="space" leader-length="5%"/>
- leader-length="5%"
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="11100" xpath="//flow/block[1]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[1]/lineArea/@ipd"/>
- <eval expected="12000" xpath="//flow/block[1]/lineArea/space/@ipd"/>
- <eval expected="11100" xpath="//flow/block[2]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[2]/lineArea/@ipd"/>
- <eval expected="36000" xpath="//flow/block[2]/lineArea/space/@ipd"/>
- <eval expected="11100" xpath="//flow/block[3]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[3]/lineArea/@ipd"/>
- <eval expected="18000" xpath="//flow/block[3]/lineArea/space/@ipd"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/leader_leader-pattern_use-content.xml b/test/layoutengine/testcases/leader_leader-pattern_use-content.xml
deleted file mode 100644
index 11287f058..000000000
--- a/test/layoutengine/testcases/leader_leader-pattern_use-content.xml
+++ /dev/null
@@ -1,130 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks leaders with leader-pattern="use-content"
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="use-content">x</fo:leader>
- Content is "x"
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="use-content"><fo:inline background-color="yellow">=></fo:inline></fo:leader>
- Content is "=>" with background
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="use-content" leader-pattern-width="12pt"><fo:inline background-color="orange">~</fo:inline></fo:leader>
- Content is "~" with leader-pattern-width="12pt"
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="use-content" leader-pattern-width="12pt"><fo:inline border="solid 1pt red" background-color="yellow">*</fo:inline></fo:leader>
- Content is "*" with leader-pattern-width="12pt" and border
- </fo:block>
- <fo:block>
- <fo:leader leader-length="36pt" leader-pattern="use-content" leader-pattern-width="12pt"><fo:inline border="solid 1pt red" font-size="6pt" alignment-baseline="middle" background-color="yellow">++</fo:inline></fo:leader>
- Content is "++" with l-p-w="12pt" and border small font
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="11100" xpath="//flow/block[1]/lineArea/@bpd"/>
- <eval expected="36000" xpath="//flow/block[1]/lineArea/inlineparent/@ipd"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea/inlineparent/@offset"/>
- <eval expected="6000" xpath="//flow/block[1]/lineArea/inlineparent/inlineparent[1]/@ipd"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea/inlineparent/inlineparent[1]/@offset"/>
- <eval expected="6000" xpath="//flow/block[1]/lineArea/inlineparent/inlineparent[2]/@ipd"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea/inlineparent/inlineparent[2]/@offset"/>
- <eval expected="6000" xpath="//flow/block[1]/lineArea/inlineparent/inlineparent[3]/@ipd"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea/inlineparent/inlineparent[3]/@offset"/>
- <eval expected="6000" xpath="//flow/block[1]/lineArea/inlineparent/inlineparent[4]/@ipd"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea/inlineparent/inlineparent[4]/@offset"/>
- <eval expected="6000" xpath="//flow/block[1]/lineArea/inlineparent/inlineparent[5]/@ipd"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea/inlineparent/inlineparent[5]/@offset"/>
- <eval expected="6000" xpath="//flow/block[1]/lineArea/inlineparent/inlineparent[6]/@ipd"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea/inlineparent/inlineparent[6]/@offset"/>
-
- <eval expected="11100" xpath="//flow/block[2]/lineArea/@bpd"/>
- <eval expected="36000" xpath="//flow/block[2]/lineArea/inlineparent/@ipd"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea/inlineparent/@offset"/>
- <eval expected="14016" xpath="//flow/block[2]/lineArea/inlineparent/inlineparent[1]/@ipd"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea/inlineparent/inlineparent[1]/@offset"/>
- <eval expected="14016" xpath="//flow/block[2]/lineArea/inlineparent/inlineparent[2]/@ipd"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea/inlineparent/inlineparent[2]/@offset"/>
-
- <eval expected="11100" xpath="//flow/block[3]/lineArea/@bpd"/>
- <eval expected="36000" xpath="//flow/block[3]/lineArea/inlineparent/@ipd"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea/inlineparent/@offset"/>
- <eval expected="4992" xpath="//flow/block[3]/lineArea/inlineparent/space/@ipd"/>
- <eval expected="7008" xpath="//flow/block[3]/lineArea/inlineparent/inlineparent[1]/@ipd"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea/inlineparent/inlineparent[1]/@offset"/>
- <eval expected="4992" xpath="//flow/block[3]/lineArea/inlineparent/space/@ipd"/>
- <eval expected="7008" xpath="//flow/block[3]/lineArea/inlineparent/inlineparent[2]/@ipd"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea/inlineparent/inlineparent[2]/@offset"/>
- <eval expected="4992" xpath="//flow/block[3]/lineArea/inlineparent/space/@ipd"/>
- <eval expected="7008" xpath="//flow/block[3]/lineArea/inlineparent/inlineparent[3]/@ipd"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea/inlineparent/inlineparent[3]/@offset"/>
-
- <eval expected="11100" xpath="//flow/block[4]/lineArea/@bpd"/>
- <eval expected="36000" xpath="//flow/block[4]/lineArea/inlineparent/@ipd"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea/inlineparent/@offset"/>
- <eval expected="5332" xpath="//flow/block[4]/lineArea/inlineparent/space/@ipd"/>
- <eval expected="6668" xpath="//flow/block[4]/lineArea/inlineparent/inlineparent[1]/@ipd"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea/inlineparent/inlineparent[1]/@offset"/>
- <eval expected="1000 1000 1000 1000" xpath="//flow/block[4]/lineArea/inlineparent/inlineparent[1]/inlineparent/@bap"/>
- <eval expected="5332" xpath="//flow/block[4]/lineArea/inlineparent/space/@ipd"/>
- <eval expected="6668" xpath="//flow/block[4]/lineArea/inlineparent/inlineparent[2]/@ipd"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea/inlineparent/inlineparent[2]/@offset"/>
- <eval expected="1000 1000 1000 1000" xpath="//flow/block[4]/lineArea/inlineparent/inlineparent[2]/inlineparent/@bap"/>
- <eval expected="5332" xpath="//flow/block[4]/lineArea/inlineparent/space/@ipd"/>
- <eval expected="6668" xpath="//flow/block[4]/lineArea/inlineparent/inlineparent[3]/@ipd"/>
- <eval expected="0" xpath="//flow/block[4]/lineArea/inlineparent/inlineparent[3]/@offset"/>
- <eval expected="1000 1000 1000 1000" xpath="//flow/block[4]/lineArea/inlineparent/inlineparent[3]/inlineparent/@bap"/>
-
- <eval expected="11100" xpath="//flow/block[5]/lineArea/@bpd"/>
- <eval expected="36000" xpath="//flow/block[5]/lineArea/inlineparent/@ipd"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea/inlineparent/@offset"/>
- <eval expected="2992" xpath="//flow/block[5]/lineArea/inlineparent/space/@ipd"/>
- <eval expected="9008" xpath="//flow/block[5]/lineArea/inlineparent/inlineparent[1]/@ipd"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea/inlineparent/inlineparent[1]/@offset"/>
- <eval expected="2739" xpath="//flow/block[5]/lineArea/inlineparent/inlineparent[1]/inlineparent/@offset"/>
- <eval expected="1000 1000 1000 1000" xpath="//flow/block[5]/lineArea/inlineparent/inlineparent[1]/inlineparent/@bap"/>
- <eval expected="2992" xpath="//flow/block[5]/lineArea/inlineparent/space/@ipd"/>
- <eval expected="9008" xpath="//flow/block[5]/lineArea/inlineparent/inlineparent[2]/@ipd"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea/inlineparent/inlineparent[2]/@offset"/>
- <eval expected="2739" xpath="//flow/block[5]/lineArea/inlineparent/inlineparent[2]/inlineparent/@offset"/>
- <eval expected="1000 1000 1000 1000" xpath="//flow/block[5]/lineArea/inlineparent/inlineparent[2]/inlineparent/@bap"/>
- <eval expected="2992" xpath="//flow/block[5]/lineArea/inlineparent/space/@ipd"/>
- <eval expected="9008" xpath="//flow/block[5]/lineArea/inlineparent/inlineparent[3]/@ipd"/>
- <eval expected="0" xpath="//flow/block[5]/lineArea/inlineparent/inlineparent[3]/@offset"/>
- <eval expected="2739" xpath="//flow/block[5]/lineArea/inlineparent/inlineparent[3]/inlineparent/@offset"/>
- <eval expected="1000 1000 1000 1000" xpath="//flow/block[5]/lineArea/inlineparent/inlineparent[3]/inlineparent/@bap"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/leader_toc.xml b/test/layoutengine/testcases/leader_toc.xml
deleted file mode 100755
index c8b85ce1b..000000000
--- a/test/layoutengine/testcases/leader_toc.xml
+++ /dev/null
@@ -1,153 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- 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
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block text-align-last="justify">
- <fo:basic-link internal-destination="N4">1. Chapter</fo:basic-link>
- <fo:leader leader-length.minimum="12pt" leader-length.optimum="40pt"
- leader-length.maximum="100%" leader-pattern="dots">
- </fo:leader>
- <fo:page-number-citation ref-id="N4">
- </fo:page-number-citation>
- </fo:block>
- <fo:block start-indent="10mm" text-align-last="justify">
- <fo:basic-link internal-destination="N11">1.1 Section</fo:basic-link>
- <fo:leader leader-length.minimum="12pt" leader-length.optimum="40pt"
- leader-length.maximum="100%" leader-pattern="dots">
- </fo:leader>
- <fo:page-number-citation ref-id="N11">
- </fo:page-number-citation>
- </fo:block>
- <fo:block start-indent="10mm" text-align-last="justify">
- <fo:basic-link internal-destination="N19">1.2 Section</fo:basic-link>
- <fo:leader leader-length.minimum="12pt" leader-length.optimum="40pt"
- leader-length.maximum="100%" leader-pattern="dots">
- </fo:leader>
- <fo:page-number-citation ref-id="N19">
- </fo:page-number-citation>
- </fo:block>
- <fo:block text-align-last="justify">
- <fo:basic-link internal-destination="N28">2. Chapter</fo:basic-link>
- <fo:leader leader-length.minimum="12pt" leader-length.optimum="40pt"
- leader-length.maximum="100%" leader-pattern="dots">
- </fo:leader>
- <fo:page-number-citation ref-id="N28">
- </fo:page-number-citation>
- </fo:block>
- <fo:block start-indent="10mm" text-align-last="justify">
- <fo:basic-link internal-destination="N35">2.1 Section</fo:basic-link>
- <fo:leader leader-length.minimum="12pt" leader-length.optimum="40pt"
- leader-length.maximum="100%" leader-pattern="dots">
- </fo:leader>
- <fo:page-number-citation ref-id="N35">
- </fo:page-number-citation>
- </fo:block>
- <fo:block start-indent="10mm" text-align-last="justify">
- <fo:basic-link internal-destination="N43">2.2 Section</fo:basic-link>
- <fo:leader leader-length.minimum="12pt" leader-length.optimum="40pt"
- leader-length.maximum="100%" leader-pattern="dots">
- </fo:leader>
- <fo:page-number-citation ref-id="N43">
- </fo:page-number-citation>
- </fo:block>
-
- <fo:block id="N4">1. Chapter
- </fo:block>
-
- <fo:block>Text
- </fo:block>
-
- <fo:block id="N11">1.1 Section
- </fo:block>
-
- <fo:block>Text
- </fo:block>
-
- <fo:block id="N19">1.2 Section
- </fo:block>
-
- <fo:block>Text
- </fo:block>
-
- <fo:block id="N28">2. Chapter
- </fo:block>
-
- <fo:block>Text
- </fo:block>
-
- <fo:block id="N35">2.1 Section
- </fo:block>
-
- <fo:block>Text
- </fo:block>
-
- <fo:block id="N43">2.2 Section
- </fo:block>
-
- <fo:block>Text
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="11100" xpath="//flow/block[1]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[1]/lineArea/@ipd"/>
- <eval expected="268268" xpath="//flow/block[1]/lineArea/inlineparent[2]/@ipd"/>
- <eval expected="5280" xpath="//flow/block[1]/lineArea/inlineparent[2]/@offset"/>
-
- <eval expected="11100" xpath="//flow/block[2]/lineArea/@bpd"/>
- <eval expected="331654" xpath="//flow/block[2]/lineArea/@ipd"/>
- <eval expected="236051" xpath="//flow/block[2]/lineArea/inlineparent[2]/@ipd"/>
- <eval expected="5280" xpath="//flow/block[2]/lineArea/inlineparent[2]/@offset"/>
-
- <eval expected="11100" xpath="//flow/block[3]/lineArea/@bpd"/>
- <eval expected="331654" xpath="//flow/block[3]/lineArea/@ipd"/>
- <eval expected="236051" xpath="//flow/block[3]/lineArea/inlineparent[2]/@ipd"/>
- <eval expected="5280" xpath="//flow/block[3]/lineArea/inlineparent[2]/@offset"/>
-
- <eval expected="11100" xpath="//flow/block[4]/lineArea/@bpd"/>
- <eval expected="360000" xpath="//flow/block[4]/lineArea/@ipd"/>
- <eval expected="268268" xpath="//flow/block[4]/lineArea/inlineparent[2]/@ipd"/>
- <eval expected="5280" xpath="//flow/block[4]/lineArea/inlineparent[2]/@offset"/>
-
- <eval expected="11100" xpath="//flow/block[5]/lineArea/@bpd"/>
- <eval expected="331654" xpath="//flow/block[5]/lineArea/@ipd"/>
- <eval expected="236051" xpath="//flow/block[5]/lineArea/inlineparent[2]/@ipd"/>
- <eval expected="5280" xpath="//flow/block[5]/lineArea/inlineparent[2]/@offset"/>
-
- <eval expected="11100" xpath="//flow/block[6]/lineArea/@bpd"/>
- <eval expected="331654" xpath="//flow/block[6]/lineArea/@ipd"/>
- <eval expected="236051" xpath="//flow/block[6]/lineArea/inlineparent[2]/@ipd"/>
- <eval expected="5280" xpath="//flow/block[6]/lineArea/inlineparent[2]/@offset"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/list-block_background-image.xml b/test/layoutengine/testcases/list-block_background-image.xml
deleted file mode 100644
index e4b81b117..000000000
--- a/test/layoutengine/testcases/list-block_background-image.xml
+++ /dev/null
@@ -1,83 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks background image on lists (list-block).
- </p>
- </info>
- <variables>
- <img>../../resources/images/bgimg300dpi.jpg</img>
- </variables>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:list-block provisional-distance-between-starts="1in" provisional-label-separation="0.1in" background-color="yellow" background-repeat="no-repeat" background-position-horizontal="center" background-position-vertical="center" background-image="##img">
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label 1</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>
- 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.
- </fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label 2</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>
- 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.
- </fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label 3</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>
- 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.
- </fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="360000" xpath="//flow/block/@ipd"/>
- <eval expected="172800" xpath="//flow/block/@bpd"/>
- <eval expected="color=#ffff00,url=../../resources/images/bgimg300dpi.jpg,repeat=no-repeat,horiz=156960,vertical=63360" xpath="//flow/block/@background"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/list-block_basic.xml b/test/layoutengine/testcases/list-block_basic.xml
deleted file mode 100644
index f6789e4f0..000000000
--- a/test/layoutengine/testcases/list-block_basic.xml
+++ /dev/null
@@ -1,163 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks lists.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:list-block>
- <fo:list-item>
- <fo:list-item-label>
- <fo:block background-color="lightgray">label</fo:block>
- </fo:list-item-label>
- <fo:list-item-body>
- <fo:block>value</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item>
- <fo:list-item-label start-indent="10pt" end-indent="label-end()">
- <fo:block background-color="lightgray">label</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="100pt">
- <fo:block border-left="solid 0.1pt">value</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block background-color="lightgray">label</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block border-left="solid 0.1pt">value</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- <fo:list-block provisional-distance-between-starts="50pt" provisional-label-separation="10pt">
- <fo:list-item margin-left="10pt">
- <fo:list-item-label end-indent="label-end()">
- <fo:block text-align="end" background-color="lightgray">label</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block border-left="solid 0.1pt">value</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- list-block -->
- <eval expected="360000" xpath="//flow/block[1]/@ipd"/>
- <eval expected="43200" xpath="//flow/block[1]/@bpd"/>
-
- <!-- first list-item -->
- <eval expected="360000" xpath="//flow/block[1]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[1]/@bpd"/>
- <!-- label of first list-item -->
- <eval expected="360000" xpath="//flow/block[1]/block[1]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[1]/block[1]/@bpd"/>
- <!-- content of label of second list-item -->
- <eval expected="360000" xpath="//flow/block[1]/block[1]/block[2]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[1]/block[2]/block[1]/@bpd"/>
- <true xpath="not(//flow/block[1]/block[1]/block[1]/block[1]/@start-indent)"/>
- <true xpath="not(//flow/block[1]/block[1]/block[1]/block[1]/@end-indent)"/>
- <!-- body of first list-item -->
- <eval expected="360000" xpath="//flow/block[1]/block[1]/block[2]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[1]/block[2]/@bpd"/>
- <!-- content of body of first list-item -->
- <eval expected="360000" xpath="//flow/block[1]/block[1]/block[2]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[1]/block[2]/block[1]/@bpd"/>
- <true xpath="not(//flow/block[1]/block[1]/block[2]/block[1]/@start-indent)"/>
- <true xpath="not(//flow/block[1]/block[1]/block[2]/block[1]/@end-indent)"/>
-
- <!-- second list-item -->
- <eval expected="360000" xpath="//flow/block[1]/block[2]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[2]/@bpd"/>
- <!-- label of second list-item -->
- <eval expected="360000" xpath="//flow/block[1]/block[2]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[2]/block[1]/@bpd"/>
- <!-- content of label of second list-item -->
- <eval expected="8000" xpath="//flow/block[1]/block[2]/block[1]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[2]/block[1]/block[1]/@bpd"/>
- <eval expected="10000" xpath="//flow/block[1]/block[2]/block[1]/block[1]/@start-indent"/>
- <eval expected="342000" xpath="//flow/block[1]/block[2]/block[1]/block[1]/@end-indent"/>
- <!-- body of second list-item -->
- <eval expected="360000" xpath="//flow/block[1]/block[2]/block[2]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[2]/block[2]/@bpd"/>
- <!-- content of body of second list-item -->
- <eval expected="260000" xpath="//flow/block[1]/block[2]/block[2]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[2]/block[2]/block[1]/@bpd"/>
- <eval expected="100000" xpath="//flow/block[1]/block[2]/block[2]/block[1]/@start-indent"/>
- <true xpath="not(//flow/block[1]/block[2]/block[2]/block[1]/@end-indent)"/>
-
- <!-- third list-item -->
- <eval expected="360000" xpath="//flow/block[1]/block[3]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[3]/@bpd"/>
- <!-- label of third list-item -->
- <eval expected="360000" xpath="//flow/block[1]/block[3]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[3]/block[1]/@bpd"/>
- <!-- content of label of third list-item -->
- <eval expected="18000" xpath="//flow/block[1]/block[3]/block[1]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[3]/block[1]/block[1]/@bpd"/>
- <true xpath="not(//flow/block[1]/block[3]/block[1]/block[1]/@start-indent)"/>
- <eval expected="342000" xpath="//flow/block[1]/block[3]/block[1]/block[1]/@end-indent"/>
- <!-- body of third list-item -->
- <eval expected="360000" xpath="//flow/block[1]/block[3]/block[2]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[3]/block[2]/@bpd"/>
- <!-- content of body of third list-item -->
- <eval expected="336000" xpath="//flow/block[1]/block[3]/block[2]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[3]/block[2]/block[1]/@bpd"/>
- <eval expected="24000" xpath="//flow/block[1]/block[3]/block[2]/block[1]/@start-indent"/>
- <true xpath="not(//flow/block[1]/block[3]/block[2]/block[1]/@end-indent)"/>
-
- <!-- second list-block -->
- <eval expected="360000" xpath="//flow/block[2]/@ipda"/>
- <eval expected="360000" xpath="//flow/block[2]/@ipd"/>
- <!-- fourth list-item -->
- <eval expected="350000" xpath="//flow/block[2]/block[1]/@ipda"/>
- <eval expected="350000" xpath="//flow/block[2]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[1]/@bpda"/>
- <eval expected="14400" xpath="//flow/block[2]/block[1]/@bpd"/>
- <!-- label of third list-item -->
- <eval expected="350000" xpath="//flow/block[2]/block[1]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[1]/block[1]/@bpd"/>
- <!-- content of label of third list-item -->
- <eval expected="40000" xpath="//flow/block[2]/block[1]/block[1]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[1]/block[1]/block[1]/@bpd"/>
- <eval expected="10000" xpath="//flow/block[2]/block[1]/block[1]/block[1]/@start-indent"/>
- <eval expected="310000" xpath="//flow/block[2]/block[1]/block[1]/block[1]/@end-indent"/>
- <!-- body of third list-item -->
- <eval expected="350000" xpath="//flow/block[2]/block[1]/block[2]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[1]/block[2]/@bpd"/>
- <!-- content of body of third list-item -->
- <eval expected="300000" xpath="//flow/block[2]/block[1]/block[2]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[1]/block[2]/block[1]/@bpd"/>
- <eval expected="60000" xpath="//flow/block[2]/block[1]/block[2]/block[1]/@start-indent"/>
- <true xpath="not(//flow/block[2]/block[1]/block[2]/block[1]/@end-indent)"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/list-block_border_padding.xml b/test/layoutengine/testcases/list-block_border_padding.xml
deleted file mode 100644
index c26d2a2bc..000000000
--- a/test/layoutengine/testcases/list-block_border_padding.xml
+++ /dev/null
@@ -1,189 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks lists with borders and padding.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="lightgray">before list-block</fo:block>
- <fo:list-block margin="5pt 0pt 10pt 0pt" border="solid 5pt red" padding="5pt" provisional-distance-between-starts="50pt" provisional-label-separation="10pt">
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block background-color="lightgray">label</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block margin="0pt" border-left="solid 5pt" border-right="solid 5pt">value</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item space-before="5pt" space-after="10pt">
- <fo:list-item-label end-indent="label-end()">
- <fo:block background-color="lightgray">label</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()" margin-right="5pt">
- <fo:block border-left="solid 5pt" border-right="solid 5pt">value</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item margin="0pt" border="solid 5pt blue" padding="5pt">
- <fo:list-item-label end-indent="label-end()">
- <fo:block background-color="lightgray">label</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block border-left="solid 5pt" border-right="solid 5pt">value</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- <fo:block background-color="lightgray">after list-block</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="360000" xpath="//flow/@ipd"/>
-
- <!-- spacer block for space-before on list-block -->
- <eval expected="5000" xpath="//flow/block[2]/@space-before"/>
-
- <!-- list-block -->
- <eval expected="360000" xpath="//flow/block[2]/@ipda"/>
- <eval expected="340000" xpath="//flow/block[2]/@ipd"/>
- <!--eval expected="??" xpath="//flow/block[2]/@bpda"/>
- <eval expected="??" xpath="//flow/block[2]/@bpd"/-->
- <eval expected="10000 10000 10000 10000" xpath="//flow/block[2]/@bap"/>
- <eval expected="5000" xpath="//flow/block[2]/@padding-before"/>
- <eval expected="5000" xpath="//flow/block[2]/@padding-after"/>
- <eval expected="5000" xpath="//flow/block[2]/@padding-start"/>
- <eval expected="5000" xpath="//flow/block[2]/@padding-end"/>
- <eval expected="10000" xpath="//flow/block[2]/@start-indent"/>
- <eval expected="10000" xpath="//flow/block[2]/@end-indent"/>
-
- <!-- first list-item -->
- <eval expected="340000" xpath="//flow/block[2]/block[1]/@ipda"/>
- <eval expected="340000" xpath="//flow/block[2]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[1]/@bpda"/>
- <eval expected="14400" xpath="//flow/block[2]/block[1]/@bpd"/>
- <eval expected="10000" xpath="//flow/block[2]/block[1]/@start-indent"/>
- <eval expected="10000" xpath="//flow/block[2]/block[1]/@end-indent"/>
-
- <eval expected="340000" xpath="//flow/block[2]/block[1]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[1]/block[1]/@bpd"/>
- <eval expected="40000" xpath="//flow/block[2]/block[1]/block[1]/block[1]/@ipda"/>
- <eval expected="40000" xpath="//flow/block[2]/block[1]/block[1]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[1]/block[1]/block[1]/@bpda"/>
- <eval expected="14400" xpath="//flow/block[2]/block[1]/block[1]/block[1]/@bpda"/>
- <eval expected="10000" xpath="//flow/block[2]/block[1]/block[1]/block[1]/@start-indent"/>
- <eval expected="310000" xpath="//flow/block[2]/block[1]/block[1]/block[1]/@end-indent"/>
- <eval expected="10000" xpath="//flow/block[2]/block[1]/block[1]/block[1]/@space-start"/>
- <eval expected="310000" xpath="//flow/block[2]/block[1]/block[1]/block[1]/@space-end"/>
-
- <eval expected="340000" xpath="//flow/block[2]/block[1]/block[2]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[1]/block[2]/@bpd"/>
- <eval expected="290000" xpath="//flow/block[2]/block[1]/block[2]/block[1]/@ipda"/>
- <eval expected="280000" xpath="//flow/block[2]/block[1]/block[2]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[1]/block[2]/block[1]/@bpda"/>
- <eval expected="14400" xpath="//flow/block[2]/block[1]/block[2]/block[1]/@bpda"/>
- <eval expected="65000" xpath="//flow/block[2]/block[1]/block[2]/block[1]/@start-indent"/>
- <eval expected="15000" xpath="//flow/block[2]/block[1]/block[2]/block[1]/@end-indent"/>
- <eval expected="60000" xpath="//flow/block[2]/block[1]/block[2]/block[1]/@space-start"/>
- <eval expected="10000" xpath="//flow/block[2]/block[1]/block[2]/block[1]/@space-end"/>
-
- <!-- spacer block for space-before on second list-item -->
- <eval expected="5000" xpath="//flow/block[2]/block[2]/@space-before"/>
-
- <!-- second list-item -->
- <eval expected="340000" xpath="//flow/block[2]/block[2]/@ipda"/>
- <eval expected="340000" xpath="//flow/block[2]/block[2]/@ipd"/>
- <eval expected="29400" xpath="//flow/block[2]/block[2]/@bpda"/>
- <eval expected="14400" xpath="//flow/block[2]/block[2]/@bpd"/>
- <eval expected="10000" xpath="//flow/block[2]/block[2]/@start-indent"/>
- <eval expected="10000" xpath="//flow/block[2]/block[2]/@end-indent"/>
-
- <eval expected="340000" xpath="//flow/block[2]/block[2]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[2]/block[1]/@bpd"/>
- <eval expected="40000" xpath="//flow/block[2]/block[2]/block[1]/block[1]/@ipda"/>
- <eval expected="40000" xpath="//flow/block[2]/block[2]/block[1]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[2]/block[1]/block[1]/@bpda"/>
- <eval expected="14400" xpath="//flow/block[2]/block[2]/block[1]/block[1]/@bpda"/>
- <eval expected="10000" xpath="//flow/block[2]/block[2]/block[1]/block[1]/@start-indent"/>
- <eval expected="310000" xpath="//flow/block[2]/block[2]/block[1]/block[1]/@end-indent"/>
- <eval expected="10000" xpath="//flow/block[2]/block[2]/block[1]/block[1]/@space-start"/>
- <eval expected="310000" xpath="//flow/block[2]/block[2]/block[1]/block[1]/@space-end"/>
-
- <eval expected="340000" xpath="//flow/block[2]/block[2]/block[2]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[2]/block[2]/@bpd"/>
- <eval expected="295000" xpath="//flow/block[2]/block[2]/block[2]/block[1]/@ipda"/>
- <eval expected="285000" xpath="//flow/block[2]/block[2]/block[2]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[2]/block[2]/block[1]/@bpda"/>
- <eval expected="14400" xpath="//flow/block[2]/block[2]/block[2]/block[1]/@bpda"/>
- <eval expected="60000" xpath="//flow/block[2]/block[2]/block[2]/block[1]/@start-indent"/>
- <eval expected="15000" xpath="//flow/block[2]/block[2]/block[2]/block[1]/@end-indent"/>
- <eval expected="55000" xpath="//flow/block[2]/block[2]/block[2]/block[1]/@space-start"/>
- <eval expected="10000" xpath="//flow/block[2]/block[2]/block[2]/block[1]/@space-end"/>
-
- <!-- spacer block for space-after on second list-item -->
- <eval expected="10000" xpath="//flow/block[2]/block[2]/@space-after"/>
-
- <!-- third list-item -->
- <eval expected="340000" xpath="//flow/block[2]/block[3]/@ipda"/>
- <eval expected="320000" xpath="//flow/block[2]/block[3]/@ipd"/>
- <eval expected="34400" xpath="//flow/block[2]/block[3]/@bpda"/>
- <eval expected="14400" xpath="//flow/block[2]/block[3]/@bpd"/>
- <eval expected="10000 10000 10000 10000" xpath="//flow/block[2]/block[3]/@bap"/>
- <eval expected="5000" xpath="//flow/block[2]/block[3]/@padding-before"/>
- <eval expected="5000" xpath="//flow/block[2]/block[3]/@padding-after"/>
- <eval expected="5000" xpath="//flow/block[2]/block[3]/@padding-start"/>
- <eval expected="5000" xpath="//flow/block[2]/block[3]/@padding-end"/>
- <eval expected="20000" xpath="//flow/block[2]/block[3]/@start-indent"/>
- <eval expected="20000" xpath="//flow/block[2]/block[3]/@end-indent"/>
-
- <eval expected="320000" xpath="//flow/block[2]/block[3]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[3]/block[1]/@bpd"/>
- <eval expected="40000" xpath="//flow/block[2]/block[3]/block[1]/block[1]/@ipda"/>
- <eval expected="40000" xpath="//flow/block[2]/block[3]/block[1]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[3]/block[1]/block[1]/@bpda"/>
- <eval expected="14400" xpath="//flow/block[2]/block[3]/block[1]/block[1]/@bpda"/>
- <eval expected="20000" xpath="//flow/block[2]/block[3]/block[1]/block[1]/@start-indent"/>
- <eval expected="300000" xpath="//flow/block[2]/block[3]/block[1]/block[1]/@end-indent"/>
- <eval expected="20000" xpath="//flow/block[2]/block[3]/block[1]/block[1]/@space-start"/>
- <eval expected="300000" xpath="//flow/block[2]/block[3]/block[1]/block[1]/@space-end"/>
-
- <eval expected="320000" xpath="//flow/block[2]/block[3]/block[2]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[3]/block[2]/@bpd"/>
- <eval expected="280000" xpath="//flow/block[2]/block[3]/block[2]/block[1]/@ipda"/>
- <eval expected="270000" xpath="//flow/block[2]/block[3]/block[2]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[3]/block[2]/block[1]/@bpda"/>
- <eval expected="14400" xpath="//flow/block[2]/block[3]/block[2]/block[1]/@bpda"/>
- <eval expected="70000" xpath="//flow/block[2]/block[3]/block[2]/block[1]/@start-indent"/>
- <eval expected="20000" xpath="//flow/block[2]/block[3]/block[2]/block[1]/@end-indent"/>
- <eval expected="65000" xpath="//flow/block[2]/block[3]/block[2]/block[1]/@space-start"/>
- <eval expected="15000" xpath="//flow/block[2]/block[3]/block[2]/block[1]/@space-end"/>
-
- <!-- spacer block for space-after on list-block -->
- <eval expected="10000" xpath="//flow/block[2]/@space-after"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/list-block_keep-together.xml b/test/layoutengine/testcases/list-block_keep-together.xml
deleted file mode 100644
index 0192d3a19..000000000
--- a/test/layoutengine/testcases/list-block_keep-together.xml
+++ /dev/null
@@ -1,134 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks keep-together with lists.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg" white-space-collapse="true" widows="0" orphans="0">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="4.5 * 14.4pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>block1</fo:block>
- <fo:list-block
- provisional-distance-between-starts="25mm"
- provisional-label-separation="5mm"
- keep-together.within-page="always">
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label1</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>item1</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label2</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>item2</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- <fo:block>block2</fo:block>
- <fo:list-block
- provisional-distance-between-starts="25mm"
- provisional-label-separation="5mm">
- <fo:list-item keep-together.within-page="always">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label1</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>item1</fo:block>
- <fo:block>item1</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label2</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>item2</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- <fo:block>block3</fo:block>
- <fo:list-block
- provisional-distance-between-starts="25mm"
- provisional-label-separation="5mm">
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label1</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()" keep-together.within-page="always">
- <fo:block>item1</fo:block>
- <fo:block>item1</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label2</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>item2</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- <fo:block>block4</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker">
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <!-- list 1 starts -->
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <box w="14400"/>
- <!-- list 1 end -->
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <!-- list 2 starts -->
- <box w="28800"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <!-- list 2 end -->
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <!-- list 3 starts -->
- <box w="28800"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <!-- list 3 end -->
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/list-block_keep-with-next.xml b/test/layoutengine/testcases/list-block_keep-with-next.xml
deleted file mode 100644
index 00f3f8294..000000000
--- a/test/layoutengine/testcases/list-block_keep-with-next.xml
+++ /dev/null
@@ -1,106 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks keep-with-next with lists.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg" white-space-collapse="true" widows="0" orphans="0">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="4.5 * 14.4pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>block1</fo:block>
- <fo:list-block
- provisional-distance-between-starts="25mm"
- provisional-label-separation="5mm"
- keep-with-next.within-page="always">
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label1</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>item1</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label2</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>item2</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- <fo:block>block2</fo:block>
- <fo:list-block
- provisional-distance-between-starts="25mm"
- provisional-label-separation="5mm">
- <fo:list-item keep-with-next.within-page="always">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label1</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>item1</fo:block>
- <fo:block>item1</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label2</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>item2</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- <fo:block>block3</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker">
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <!-- list 1 starts -->
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <!-- list 1 end -->
- <penalty w="0" p="INF"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <!-- list 2 starts -->
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <box w="14400"/>
- <!-- list 2 end -->
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/list-block_keep-with-previous.xml b/test/layoutengine/testcases/list-block_keep-with-previous.xml
deleted file mode 100644
index db02c67d9..000000000
--- a/test/layoutengine/testcases/list-block_keep-with-previous.xml
+++ /dev/null
@@ -1,135 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks keep-with-previous with lists.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg" white-space-collapse="true" widows="0" orphans="0">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="4.5 * 14.4pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>block1</fo:block>
- <fo:list-block
- provisional-distance-between-starts="25mm"
- provisional-label-separation="5mm"
- keep-with-previous.within-page="always">
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label1</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>item1</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label2</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>item2</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- <fo:block>block2</fo:block>
- <fo:list-block
- provisional-distance-between-starts="25mm"
- provisional-label-separation="5mm">
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label1</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>item1</fo:block>
- <fo:block>item1</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item keep-with-previous.within-page="always">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label2</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>item2</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- <fo:block>block3</fo:block>
- <fo:list-block
- provisional-distance-between-starts="25mm"
- provisional-label-separation="5mm">
- <fo:list-item keep-with-previous.within-page="always">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label1</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>item1</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label2</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>item2</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- <fo:block>block4</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker">
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <!-- list 1 starts -->
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <!-- list 1 end -->
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <!-- list 2 starts -->
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <box w="14400"/>
- <!-- list 2 end -->
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <!-- list 3 starts -->
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <!-- list 3 end -->
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/list-block_padding_percentages.xml b/test/layoutengine/testcases/list-block_padding_percentages.xml
deleted file mode 100644
index 2b49e5dc7..000000000
--- a/test/layoutengine/testcases/list-block_padding_percentages.xml
+++ /dev/null
@@ -1,75 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks relative padding on lists (list-block).
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:list-block provisional-distance-between-starts="1in" provisional-label-separation="0.1in" margin="0pt" padding="5%" background-color="yellow">
- <fo:list-item background-color="white">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label 1</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>
- body 1: The whole list should have a 5% padding shown in yellow.
- </fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item background-color="white">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label 2</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>
- body 2: The whole list should have a 5% padding shown in yellow.
- </fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item background-color="white">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label 3</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>
- body 3: The whole list should have a 5% padding shown in yellow.
- </fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="18000 18000 18000 18000" xpath="//flow/block/@bap"/>
- <eval expected="18000" xpath="//flow/block/@start-indent"/>
- <eval expected="18000" xpath="//flow/block/@end-indent"/>
- <eval expected="color=#ffff00" xpath="//flow/block/@background"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/list-block_simple-page-master_margin.xml b/test/layoutengine/testcases/list-block_simple-page-master_margin.xml
deleted file mode 100644
index 696b03e2b..000000000
--- a/test/layoutengine/testcases/list-block_simple-page-master_margin.xml
+++ /dev/null
@@ -1,65 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- 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.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in"
- margin-left="20pt" margin-right="20pt" margin-top="20pt" margin-bottom="20pt">
- <fo:region-body margin="0pt" background-color="yellow"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:list-block provisional-distance-between-starts="50pt" provisional-label-separation="5pt">
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block background-color="orange" text-align="end">label 1)</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>
- here is text in the list item body
- </fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- list-block -->
- <eval expected="320000" xpath="//flow/block[1]/@ipd"/>
- <!-- list-item -->
- <eval expected="320000" xpath="//flow/block[1]/block[1]/@ipd"/>
- <!-- label block -->
- <eval expected="45000" xpath="//flow/block[1]/block[1]/block[1]/block[1]/@ipd"/>
- <true xpath="not(boolean(//flow/block[1]/block[1]/block[1]/block[1]/@start-indent))"/>
- <eval expected="275000" xpath="//flow/block[1]/block[1]/block[1]/block[1]/@end-indent"/>
- <!-- body block -->
- <eval expected="270000" xpath="//flow/block[1]/block[1]/block[2]/block[1]/@ipd"/>
- <eval expected="50000" xpath="//flow/block[1]/block[1]/block[2]/block[1]/@start-indent"/>
- <true xpath="not(boolean(//flow/block[1]/block[1]/block[2]/block[1]/@end-indent))"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/list-block_space-before_space-after_1.xml b/test/layoutengine/testcases/list-block_space-before_space-after_1.xml
deleted file mode 100644
index 82af9d20d..000000000
--- a/test/layoutengine/testcases/list-block_space-before_space-after_1.xml
+++ /dev/null
@@ -1,221 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks spaces on tables.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="1.7in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" id="retain">
- <fo:flow flow-name="xsl-region-body">
- <fo:list-block provisional-distance-between-starts="8pt" provisional-label-separation="5pt"
- space-before="20pt" space-before.conditionality="retain"
- space-after="10pt" space-after.conditionality="retain">
- <fo:list-item space-before="1em">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>•</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block text-align="justify">
-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.
- </fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block>•</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>here is text in the list item body</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- <fo:block space-before.optimum="10pt" space-before.conditionality="retain" space-after.optimum="20pt" space-after.conditionality="retain">
-Two blocks, testing conditionality="retain".
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal" id="discard">
- <fo:flow flow-name="xsl-region-body">
- <fo:list-block provisional-distance-between-starts="8pt" provisional-label-separation="5pt"
- space-before="20pt" space-before.conditionality="discard"
- space-after="10pt" space-after.conditionality="discard">
- <fo:list-item space-before="1em">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>•</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block text-align="justify">
-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.
- </fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block>•</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>here is text in the list item body</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- <fo:block space-before.optimum="10pt" space-before.conditionality="discard" space-after.optimum="20pt" space-after.conditionality="discard">
-Two blocks, testing conditionality="discard".
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker" id="retain">
- <box w="0"/> <!-- Helper box bearing the SpaceHandlingPosition and making sure the glue gets processed -->
- <penalty w="0" p="INF"/>
- <glue w="20000"/>
-
- <box w="28800"/>
-
- <penalty w="0" p="INF"/>
- <glue w="10000"/>
- <penalty w="0" p="0"/>
- <glue w="-30000"/>
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="20000"/>
-
- <box w="14400"/>
-
- <penalty w="0" p="INF"/>
- <glue w="10000"/>
- <penalty w="0" p="0"/>
- <glue w="-30000"/>
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="20000"/>
-
- <box w="14400"/>
-
- <!-- skip three more lines -->
- <skip>8</skip>
- <skip>8</skip>
- <skip>8</skip>
-
- <penalty w="0" p="INF"/>
- <glue w="10000"/>
- <penalty w="0" p="0"/>
- <glue w="-30000"/>
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="20000"/>
-
- <box w="28800"/> <!-- end of first list item -->
-
- <penalty w="0" p="INF"/>
- <glue w="10000"/>
- <penalty w="0" p="0"/>
- <glue w="-30000"/>
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="20000"/>
-
- <box w="14400"/> <!-- second list-item -->
-
- <penalty w="0" p="INF" aux="true"/>
- <glue w="10000"/>
- <penalty w="0" p="0"/>
- <glue w="-10000"/>
-
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="10000"/>
-
- <box w="14400"/> <!-- second block -->
-
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="20000"/>
-
- <box w="0"/> <!-- This is used to make sure the preceding glue is not cut off -->
-
- <skip>3</skip>
- </element-list>
- <element-list category="breaker" id="discard">
- <box w="0"/> <!-- Helper box used to notify the LM for the addAreas stage about the discarded spaces -->
- <box w="28800"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="28800"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <glue w="10000"/>
-
- <box w="14400"/> <!-- second block -->
-
- <box w="0"/> <!-- SpaceHandlingPosition-bearing helper box -->
-
- <skip>3</skip>
- </element-list>
-
- <eval expected="4" xpath="count(//pageViewport)"/>
-
- <!-- 1: retain -->
- <eval expected="20000" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before"/>
- <eval expected="10000" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-after"/>
- <eval expected="20000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before"/>
- <!-- the following space is eliminated/collapsed through space resolution -->
- <true xpath="not(boolean(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-after))"/>
- <eval expected="10000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/@space-before"/>
- <eval expected="20000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/@space-after"/>
-
- <!-- 2: discard -->
- <true xpath="not(boolean(//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before))"/>
- <true xpath="not(boolean(//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before))"/>
- <true xpath="not(boolean(//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before))"/>
- <true xpath="not(boolean(//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-after))"/>
- <eval expected="10000" xpath="//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/@space-before"/>
- <true xpath="not(boolean(//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/@space-after))"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/list-block_space-before_space-after_2.xml b/test/layoutengine/testcases/list-block_space-before_space-after_2.xml
deleted file mode 100644
index 293faebd8..000000000
--- a/test/layoutengine/testcases/list-block_space-before_space-after_2.xml
+++ /dev/null
@@ -1,114 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks lists. Checks space-before and space-after on list-block.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="2in"
- margin="20pt">
- <fo:region-body background-color="yellow"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>test</fo:block>
- <fo:list-block provisional-distance-between-starts="50pt" provisional-label-separation="5pt">
- <fo:list-item space-before="1em">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>•</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>here is text in the list item body</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item space-before="1em">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>•</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>here is text in the list item body</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item space-before="1em" space-after="1em">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>•</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>here is text in the list item body</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item space-after="1em">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>•</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>here is text in the list item body</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block>•</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>here is text in the list item body</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="2" xpath="count(//pageViewport)"/>
- <element-list category="breaker">
- <box w="14400"/>
-
- <penalty w="0" p="0"/>
-
- <glue w="12000"/>
- <box w="14400"/>
-
- <penalty w="0" p="0"/>
-
- <glue w="12000"/>
- <box w="14400"/>
-
- <penalty w="0" p="0"/>
-
- <glue w="12000"/>
- <box w="14400"/>
-
- <penalty w="0" p="0"/>
-
- <glue w="12000"/>
- <box w="14400"/>
-
- <penalty w="0" p="0"/>
-
- <glue w="12000"/>
- <box w="14400"/>
-
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/list-item_background-image.xml b/test/layoutengine/testcases/list-item_background-image.xml
deleted file mode 100644
index fe0feac81..000000000
--- a/test/layoutengine/testcases/list-item_background-image.xml
+++ /dev/null
@@ -1,83 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks background image on lists (list-item).
- </p>
- </info>
- <variables>
- <img>../../resources/images/bgimg300dpi.jpg</img>
- </variables>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:list-block provisional-distance-between-starts="1in" provisional-label-separation="0.1in">
- <fo:list-item background-repeat="no-repeat" background-color="yellow" background-position-horizontal="center" background-position-vertical="center" background-image="##img">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label 1</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>
- 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.
- </fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label 2</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>
- 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.
- </fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label 3</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>
- 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.
- </fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="360000" xpath="//flow/block/block/@ipd"/>
- <eval expected="72000" xpath="//flow/block/block/@bpd"/>
- <eval expected="color=#ffff00,url=../../resources/images/bgimg300dpi.jpg,repeat=no-repeat,horiz=156960,vertical=12960" xpath="//flow/block/block/@background"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/list-item_block_keep-with-next.xml b/test/layoutengine/testcases/list-item_block_keep-with-next.xml
deleted file mode 100644
index ea6ea83da..000000000
--- a/test/layoutengine/testcases/list-item_block_keep-with-next.xml
+++ /dev/null
@@ -1,108 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks keep-with-next on content in lists.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg" white-space-collapse="true" widows="0" orphans="0">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="4.5 * 14.4pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>block1</fo:block>
- <fo:list-block
- provisional-distance-between-starts="25mm"
- provisional-label-separation="5mm">
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label1</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>item1</fo:block>
- <fo:block keep-with-next.within-page="always">item2</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label2</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>item2</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- <fo:block>block2</fo:block>
- <fo:list-block
- provisional-distance-between-starts="25mm"
- provisional-label-separation="5mm">
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block keep-with-next.within-page="always">label1</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>item1</fo:block>
- <fo:block>item2</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label2</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>item2</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- <fo:block>block3</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker">
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <!-- list 1 starts -->
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <box w="14400"/>
- <!-- list 1 end -->
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <!-- list 2 starts -->
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <box w="14400"/>
- <!-- list 2 end -->
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/list-item_block_keep-with-previous.xml b/test/layoutengine/testcases/list-item_block_keep-with-previous.xml
deleted file mode 100644
index 8f0916748..000000000
--- a/test/layoutengine/testcases/list-item_block_keep-with-previous.xml
+++ /dev/null
@@ -1,108 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks keep-with-previous on content in lists.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg" white-space-collapse="true" widows="0" orphans="0">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="4.5 * 14.4pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>block1</fo:block>
- <fo:list-block
- provisional-distance-between-starts="25mm"
- provisional-label-separation="5mm">
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label1</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>item1</fo:block>
- <fo:block>item2</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block keep-with-previous.within-page="always">label2</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>item2</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- <fo:block>block2</fo:block>
- <fo:list-block
- provisional-distance-between-starts="25mm"
- provisional-label-separation="5mm">
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block keep-with-previous.within-page="always">label1</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>item1</fo:block>
- <fo:block>item2</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label2</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>item2</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- <fo:block>block3</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker">
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <!-- list 1 starts -->
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <box w="14400"/>
- <!-- list 1 end -->
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <!-- list 2 starts -->
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <!-- list 2 end -->
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/list-item_padding_percentages.xml b/test/layoutengine/testcases/list-item_padding_percentages.xml
deleted file mode 100644
index 1c56ac9b9..000000000
--- a/test/layoutengine/testcases/list-item_padding_percentages.xml
+++ /dev/null
@@ -1,78 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks relative padding widths on lists (list-item).
- </p>
- </info>
- <variables>
- <img>../../resources/images/bgimg300dpi.jpg</img>
- </variables>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:list-block provisional-distance-between-starts="1in" provisional-label-separation="0.1in">
- <fo:list-item margin="0pt" padding="5%" background-color="yellow">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label 1</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>
- body 1: We should have 5% padding around this whole yellow list item.
- </fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label 2</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>
- body 2: We should have no padding around this whole list item.
- </fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block>label 3</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>
- body 3: We should have no padding around this whole list item.
- </fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="18000 18000 18000 18000" xpath="//flow/block/block/@bap"/>
- <eval expected="18000" xpath="//flow/block/block/@start-indent"/>
- <eval expected="18000" xpath="//flow/block/block/@end-indent"/>
- <eval expected="color=#ffff00" xpath="//flow/block/block/@background"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/list-item_space-before_space-after_1.xml b/test/layoutengine/testcases/list-item_space-before_space-after_1.xml
deleted file mode 100644
index 6e55cf008..000000000
--- a/test/layoutengine/testcases/list-item_space-before_space-after_1.xml
+++ /dev/null
@@ -1,114 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks lists. Checks for the presence of space-before and space-after on list-items.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="2in"
- margin="20pt">
- <fo:region-body background-color="yellow"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>test</fo:block>
- <fo:list-block provisional-distance-between-starts="50pt" provisional-label-separation="5pt">
- <fo:list-item space-before="1em">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>•</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>here is text in the list item body</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item space-before="1em">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>•</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>here is text in the list item body</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item space-before="1em" space-after="1em">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>•</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>here is text in the list item body</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item space-after="1em">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>•</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>here is text in the list item body</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block>•</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>here is text in the list item body</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="2" xpath="count(//pageViewport)"/>
- <element-list category="breaker">
- <box w="14400"/>
-
- <penalty w="0" p="0"/>
-
- <glue w="12000"/>
- <box w="14400"/>
-
- <penalty w="0" p="0"/>
-
- <glue w="12000"/>
- <box w="14400"/>
-
- <penalty w="0" p="0"/>
-
- <glue w="12000"/>
- <box w="14400"/>
-
- <penalty w="0" p="0"/>
-
- <glue w="12000"/>
- <box w="14400"/>
-
- <penalty w="0" p="0"/>
-
- <glue w="12000"/>
- <box w="14400"/>
-
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/list-item_space-before_space-after_2.xml b/test/layoutengine/testcases/list-item_space-before_space-after_2.xml
deleted file mode 100644
index 15e501324..000000000
--- a/test/layoutengine/testcases/list-item_space-before_space-after_2.xml
+++ /dev/null
@@ -1,126 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- 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.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="2in"
- margin="20pt">
- <fo:region-body background-color="yellow"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>test</fo:block>
- <fo:list-block provisional-distance-between-starts="50pt" provisional-label-separation="5pt">
- <fo:list-item space-before.optimum="1em">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>•</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>here is text in the list item body</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item space-before.optimum="1em">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>•</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>here is text in the list item body</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item space-before.optimum="1em" space-after.optimum="1em">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>•</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>here is text in the list item body</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item space-after.optimum="1em">
- <fo:list-item-label end-indent="label-end()">
- <fo:block>•</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>here is text in the list item body</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- <fo:list-item>
- <fo:list-item-label end-indent="label-end()">
- <fo:block>•</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block>here is text in the list item body</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="2" xpath="count(//pageViewport)"/>
-
- <!-- The following check makes sure that the content doesn't overlap the available region -->
- <true xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/@bpda &lt;= //pageViewport[@nr=1]/page/regionViewport/regionBody/@bpda"
- fail-msg="The span content must not exceed the available space given by the region-body!"/>
- <!-- This check currently breaks because the breaker uses the minimum values (0pt)
- instead of optimum and the addAreas stage doesn't create smaller space-before/after
- spacers. -->
-
- <!-- We don't check the exact effective space-before value, but simply make sure it's smaller than 12pt=1em in this test case -->
- <true xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/block[1]/@space-before &lt; 12000"/>
-
- <element-list category="breaker">
- <box w="14400"/>
-
- <penalty w="0" p="0"/>
-
- <glue w="12000" y="0" z="12000"/>
- <box w="14400"/>
-
- <penalty w="0" p="0"/>
-
- <glue w="12000" y="0" z="12000"/>
- <box w="14400"/>
-
- <penalty w="0" p="0"/>
-
- <glue w="12000" y="0" z="12000"/>
- <box w="14400"/>
-
- <penalty w="0" p="0"/>
-
- <glue w="12000" y="0" z="12000"/>
- <box w="14400"/>
-
- <penalty w="0" p="0"/>
-
- <glue w="12000" y="0" z="12000"/>
- <box w="14400"/>
-
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/list-item_space-before_space-after_3.xml b/test/layoutengine/testcases/list-item_space-before_space-after_3.xml
deleted file mode 100644
index 6b8a81a65..000000000
--- a/test/layoutengine/testcases/list-item_space-before_space-after_3.xml
+++ /dev/null
@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks lists. Checks spaces inside list-item content.
- </p>
- <p>
- Some additional code is notify the LMs about the effective spaces, otherwise discardable spaces don't get discarded.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="2in"
- margin="20pt">
- <fo:region-body background-color="yellow"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:list-block provisional-distance-between-starts="50pt" provisional-label-separation="5pt">
- <fo:list-item space-before="1em">
- <fo:list-item-label end-indent="label-end()">
- <fo:block space-before="1em">•</fo:block>
- </fo:list-item-label>
- <fo:list-item-body start-indent="body-start()">
- <fo:block space-before="1em">here is text in the list item body</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="list-item-label">
- <box w="0"/> <!-- Starting SpaceHandlingPosition -->
- <box w="14400"/>
- </element-list>
- <element-list category="list-item-body">
- <box w="0"/> <!-- Starting SpaceHandlingPosition -->
- <box w="14400"/>
- </element-list>
- <element-list category="breaker">
- <box w="0"/> <!-- Starting SpaceHandlingPosition -->
- <box w="14400"/>
-
- <skip>3</skip>
- </element-list>
- <true xpath="not(boolean(//flow/block[1]/@space-before))"/>
- <true xpath="not(boolean(//flow/block[1]/block[1]/@space-before))"/>
- <true xpath="not(boolean(//flow/block[1]/block[1]/block[1]/@space-before))"/>
- <true xpath="not(boolean(//flow/block[1]/block[1]/block[1]/block[1]/@space-before))"/>
- <true xpath="not(boolean(//flow/block[1]/block[1]/block[2]/@space-before))"/>
- <true xpath="not(boolean(//flow/block[1]/block[1]/block[2]/block[1]/@space-before))"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/markers_1.xml b/test/layoutengine/testcases/markers_1.xml
deleted file mode 100644
index 757e0859b..000000000
--- a/test/layoutengine/testcases/markers_1.xml
+++ /dev/null
@@ -1,105 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks markers.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body margin="0.5in 0"/>
- <fo:region-before extent="0.5in"/>
- <fo:region-after extent="0.5in"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block>
- page <fo:page-number/>
- </fo:block>
- <fo:block background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block text-align="end" background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
- </fo:block>
- <fo:block text-align="end" background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-ending-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:block-container height="1in">
- <fo:block>
- <fo:marker marker-class-name="test">block1</fo:marker>block1</fo:block>
- </fo:block-container>
- <fo:block-container height="1in">
- <fo:block>
- <fo:marker marker-class-name="test">block2</fo:marker>block2</fo:block>
- </fo:block-container>
- <fo:block-container height="1in">
- <fo:block>
- <fo:marker marker-class-name="test">block3</fo:marker>block3</fo:block>
- </fo:block-container>
- <fo:block-container height="1in">
- <fo:block>
- <fo:marker marker-class-name="test">block4</fo:marker>block4</fo:block>
- </fo:block-container>
- <fo:block-container height="1in">
- <fo:block>
- <fo:marker marker-class-name="test">block5</fo:marker>block5</fo:block>
- </fo:block-container>
- <fo:block-container height="1in">
- <fo:block>
- <fo:marker marker-class-name="test">block6</fo:marker>block6</fo:block>
- </fo:block-container>
- <fo:block-container height="1in">
- <fo:block>
- <fo:marker marker-class-name="test">block7</fo:marker>block7</fo:block>
- </fo:block-container>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- First check that the page breaking is correct -->
- <eval expected="block1" xpath="//pageViewport[1]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[1]/block/block[1]/lineArea"/>
- <eval expected="block2" xpath="//pageViewport[1]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[2]/block/block[1]/lineArea"/>
- <eval expected="block3" xpath="//pageViewport[1]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[3]/block/block[1]/lineArea"/>
- <eval expected="block4" xpath="//pageViewport[1]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[4]/block/block[1]/lineArea"/>
-
- <eval expected="block5" xpath="//pageViewport[2]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[1]/block/block[1]/lineArea"/>
- <eval expected="block6" xpath="//pageViewport[2]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[2]/block/block[1]/lineArea"/>
- <eval expected="block7" xpath="//pageViewport[2]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[3]/block/block[1]/lineArea"/>
-
- <!-- Now we can check the markers -->
- <eval expected="1" xpath="//pageViewport[1]/page/regionViewport[1]/regionBefore/block[1]/lineArea/text[2]"/> <!-- page number -->
- <eval expected="block1" xpath="//pageViewport[1]/page/regionViewport[1]/regionBefore/block[2]/lineArea"/>
- <eval expected="block4" xpath="//pageViewport[1]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
- <eval expected="block4" xpath="//pageViewport[1]/page/regionViewport[2]/regionAfter/block[2]/lineArea"/>
-
- <eval expected="2" xpath="//pageViewport[2]/page/regionViewport[1]/regionBefore/block[1]/lineArea/text[2]"/> <!-- page number -->
- <eval expected="block5" xpath="//pageViewport[2]/page/regionViewport[1]/regionBefore/block[2]/lineArea"/>
- <eval expected="block7" xpath="//pageViewport[2]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
- <eval expected="block7" xpath="//pageViewport[2]/page/regionViewport[2]/regionAfter/block[2]/lineArea"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/markers_2.xml b/test/layoutengine/testcases/markers_2.xml
deleted file mode 100644
index b430e5709..000000000
--- a/test/layoutengine/testcases/markers_2.xml
+++ /dev/null
@@ -1,125 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks markers (especially first-including-carryover).
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="2.55in">
- <fo:region-body margin="0.5in 0.25in 0.5in 0in"/>
- <fo:region-before extent="0.5in"/>
- <fo:region-end extent="0.25in" background-color="lightgray"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block>
- page <fo:page-number/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-end">
- <fo:block-container absolute-position="absolute" top="1in" height="20pt">
- <fo:block color="white">
- <fo:retrieve-marker retrieve-class-name="part1" retrieve-position="first-including-carryover" retrieve-boundary="page"/>
- </fo:block>
- </fo:block-container>
- <fo:block-container absolute-position="absolute" top="1in + 20pt" height="20pt">
- <fo:block color="white">
- <fo:retrieve-marker retrieve-class-name="part2" retrieve-position="first-including-carryover" retrieve-boundary="page"/>
- </fo:block>
- </fo:block-container>
- <fo:block-container absolute-position="absolute" top="1in + 40pt" height="20pt">
- <fo:block color="white">
- <fo:retrieve-marker retrieve-class-name="part3" retrieve-position="first-including-carryover" retrieve-boundary="page"/>
- </fo:block>
- </fo:block-container>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- <fo:marker marker-class-name="part1">
- <fo:block background-color="black" color="white" text-align="center">1</fo:block>
- </fo:marker>
- <fo:block font-size="14pt" font-weight="bold">Part 1</fo:block>
- <fo:block>text1</fo:block>
- <fo:block>text1</fo:block>
- <fo:block>text1</fo:block>
- <fo:block>text1</fo:block>
- <fo:block>text1</fo:block>
- <fo:block>text1</fo:block>
- <fo:block>text1</fo:block>
- </fo:block>
- <fo:block>
- <fo:marker marker-class-name="part2">
- <fo:block background-color="black" color="white" text-align="center">2</fo:block>
- </fo:marker>
- <fo:block font-size="14pt" font-weight="bold">Part 2</fo:block>
- <fo:block>text2</fo:block>
- <fo:block>text2</fo:block>
- <fo:block>text2</fo:block>
- <fo:block>text2</fo:block>
- </fo:block>
- <fo:block>
- <fo:marker marker-class-name="part3">
- <fo:block background-color="black" color="white" text-align="center">3</fo:block>
- </fo:marker>
- <fo:block font-size="14pt" font-weight="bold">Part 3</fo:block>
- <fo:block>text3</fo:block>
- <fo:block>text3</fo:block>
- <fo:block>text3</fo:block>
- <fo:block>text3</fo:block>
- <fo:block>text3</fo:block>
- <fo:block>text3</fo:block>
- <fo:block>text3</fo:block>
- <fo:block>text3</fo:block>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- First check that the page breaking is correct -->
- <eval expected="Part 1" xpath="//pageViewport[1]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[1]/block[1]/lineArea"/>
- <eval expected="text1" xpath="//pageViewport[1]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[1]/block[2]/lineArea"/>
- <eval expected="text1" xpath="//pageViewport[1]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[1]/block[3]/lineArea"/>
- <!-- etc... -->
- <eval expected="text1" xpath="//pageViewport[2]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[1]/block[1]/lineArea"/>
- <eval expected="Part 2" xpath="//pageViewport[2]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[2]/block[1]/lineArea"/>
- <eval expected="text2" xpath="//pageViewport[2]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[2]/block[2]/lineArea"/>
- <eval expected="text2" xpath="//pageViewport[2]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[2]/block[3]/lineArea"/>
- <!-- etc... -->
- <eval expected="Part 3" xpath="//pageViewport[2]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[3]/block[1]/lineArea"/>
- <eval expected="text3" xpath="//pageViewport[3]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[1]/block[1]/lineArea"/>
-
- <!-- Now we can check the markers -->
- <eval expected="1" xpath="//pageViewport[1]/page/regionViewport[2]/regionEnd/block[1]/descendant::lineArea/text"/>
- <eval expected="" xpath="//pageViewport[1]/page/regionViewport[2]/regionEnd/block[2]/descendant::lineArea/text"/>
- <eval expected="" xpath="//pageViewport[1]/page/regionViewport[2]/regionEnd/block[3]/descendant::lineArea/text"/>
-
- <eval expected="1" xpath="//pageViewport[2]/page/regionViewport[2]/regionEnd/block[1]/descendant::lineArea/text"/>
- <eval expected="2" xpath="//pageViewport[2]/page/regionViewport[2]/regionEnd/block[2]/descendant::lineArea/text"/>
- <eval expected="3" xpath="//pageViewport[2]/page/regionViewport[2]/regionEnd/block[3]/descendant::lineArea/text"/>
-
- <eval expected="" xpath="//pageViewport[3]/page/regionViewport[2]/regionEnd/block[1]/descendant::lineArea/text"/>
- <eval expected="" xpath="//pageViewport[3]/page/regionViewport[2]/regionEnd/block[2]/descendant::lineArea/text"/>
- <eval expected="3" xpath="//pageViewport[3]/page/regionViewport[2]/regionEnd/block[3]/descendant::lineArea/text"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/markers_3.xml b/test/layoutengine/testcases/markers_3.xml
deleted file mode 100644
index 3c16f1eee..000000000
--- a/test/layoutengine/testcases/markers_3.xml
+++ /dev/null
@@ -1,138 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks markers (especially retrieve-boundary).
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="2.55in">
- <fo:region-body margin="0.5in 0in"/>
- <fo:region-before extent="0.5in"/>
- <fo:region-after extent="0.5in"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block>
- page <fo:page-number/>
- </fo:block>
- <fo:block>
- <fo:retrieve-marker retrieve-class-name="PAGE" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
- <fo:retrieve-marker retrieve-class-name="PS" retrieve-boundary="page-sequence" retrieve-position="first-starting-within-page"/>
- <fo:retrieve-marker retrieve-class-name="DOC" retrieve-boundary="document" retrieve-position="first-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block text-align="end">
- <fo:retrieve-marker retrieve-class-name="PAGE" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
- <fo:retrieve-marker retrieve-class-name="PS" retrieve-boundary="page-sequence" retrieve-position="last-starting-within-page"/>
- <fo:retrieve-marker retrieve-class-name="DOC" retrieve-boundary="document" retrieve-position="last-starting-within-page"/>
- </fo:block>
- <fo:block text-align="end">
- <fo:retrieve-marker retrieve-class-name="PAGE" retrieve-boundary="page" retrieve-position="last-ending-within-page"/>
- <fo:retrieve-marker retrieve-class-name="PS" retrieve-boundary="page-sequence" retrieve-position="last-ending-within-page"/>
- <fo:retrieve-marker retrieve-class-name="DOC" retrieve-boundary="document" retrieve-position="last-ending-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- <fo:block font-size="14pt" font-weight="bold">
- <fo:marker marker-class-name="PAGE">[PAGE]</fo:marker>
- <fo:marker marker-class-name="PS">[PS]</fo:marker>
- <fo:marker marker-class-name="DOC">[DOC]</fo:marker>
- Part 1
- </fo:block>
- <fo:block>text1</fo:block>
- <fo:block>text1</fo:block>
- <fo:block>text1</fo:block>
- <fo:block>text1</fo:block>
- <fo:block>text1</fo:block>
- <fo:block>text1</fo:block>
- <fo:block>text1</fo:block>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block>
- page <fo:page-number/>
- </fo:block>
- <fo:block>
- <fo:retrieve-marker retrieve-class-name="PAGE" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
- <fo:retrieve-marker retrieve-class-name="PS" retrieve-boundary="page-sequence" retrieve-position="first-starting-within-page"/>
- <fo:retrieve-marker retrieve-class-name="DOC" retrieve-boundary="document" retrieve-position="first-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block text-align="end">
- <fo:retrieve-marker retrieve-class-name="PAGE" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
- <fo:retrieve-marker retrieve-class-name="PS" retrieve-boundary="page-sequence" retrieve-position="last-starting-within-page"/>
- <fo:retrieve-marker retrieve-class-name="DOC" retrieve-boundary="document" retrieve-position="last-starting-within-page"/>
- </fo:block>
- <fo:block text-align="end">
- <fo:retrieve-marker retrieve-class-name="PAGE" retrieve-boundary="page" retrieve-position="last-ending-within-page"/>
- <fo:retrieve-marker retrieve-class-name="PS" retrieve-boundary="page-sequence" retrieve-position="last-ending-within-page"/>
- <fo:retrieve-marker retrieve-class-name="DOC" retrieve-boundary="document" retrieve-position="last-ending-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- <fo:block>sometext</fo:block>
- <fo:block>sometext</fo:block>
- <fo:block>sometext</fo:block>
- <fo:block>sometext</fo:block>
- <fo:block>sometext</fo:block>
- <fo:block>sometext</fo:block>
- <fo:block>sometext</fo:block>
- <fo:block>sometext</fo:block>
- <fo:block>sometext</fo:block>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- First check that the page breaking is correct -->
- <eval expected="7" xpath="count(//pageSequence[1]/pageViewport[1]/page/regionViewport[3]/regionBody/mainReference/span/flow/block/block/lineArea)"/>
- <eval expected="1" xpath="count(//pageSequence[1]/pageViewport[2]/page/regionViewport[3]/regionBody/mainReference/span/flow/block/block/lineArea)"/>
- <eval expected="7" xpath="count(//pageSequence[2]/pageViewport[1]/page/regionViewport[3]/regionBody/mainReference/span/flow/block/block/lineArea)"/>
- <eval expected="2" xpath="count(//pageSequence[2]/pageViewport[2]/page/regionViewport[3]/regionBody/mainReference/span/flow/block/block/lineArea)"/>
-
- <!-- Now we can check the markers -->
- <true xpath="boolean(//pageSequence[1]/pageViewport[1]/page/regionViewport[1]/regionBefore/block[2]/lineArea/text[. = '[PAGE]'])"/>
- <true xpath="boolean(//pageSequence[1]/pageViewport[1]/page/regionViewport[1]/regionBefore/block[2]/lineArea/text[. = '[PS]'])"/>
- <true xpath="boolean(//pageSequence[1]/pageViewport[1]/page/regionViewport[1]/regionBefore/block[2]/lineArea/text[. = '[DOC]'])"/>
-
- <true xpath="not(boolean(//pageSequence[1]/pageViewport[2]/page/regionViewport[1]/regionBefore/block[2]/lineArea/text[. = '[PAGE]']))"/>
- <true xpath="boolean(//pageSequence[1]/pageViewport[2]/page/regionViewport[1]/regionBefore/block[2]/lineArea/text[. = '[PS]'])"/>
- <true xpath="boolean(//pageSequence[1]/pageViewport[2]/page/regionViewport[1]/regionBefore/block[2]/lineArea/text[. = '[DOC]'])"/>
-
- <true xpath="not(boolean(//pageSequence[2]/pageViewport[1]/page/regionViewport[1]/regionBefore/block[2]/lineArea/text[. = '[PAGE]']))"/>
- <true xpath="not(boolean(//pageSequence[2]/pageViewport[1]/page/regionViewport[1]/regionBefore/block[2]/lineArea/text[. = '[PS]']))"/>
- <true xpath="boolean(//pageSequence[2]/pageViewport[1]/page/regionViewport[1]/regionBefore/block[2]/lineArea/text[. = '[DOC]'])"/>
-
- <!-- checking a second page in the second page-sequence due to the algorithm used -->
- <true xpath="not(boolean(//pageSequence[2]/pageViewport[2]/page/regionViewport[1]/regionBefore/block[2]/lineArea/text[. = '[PAGE]']))"/>
- <true xpath="not(boolean(//pageSequence[2]/pageViewport[2]/page/regionViewport[1]/regionBefore/block[2]/lineArea/text[. = '[PS]']))"/>
- <true xpath="boolean(//pageSequence[2]/pageViewport[2]/page/regionViewport[1]/regionBefore/block[2]/lineArea/text[. = '[DOC]'])"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/markers_4.xml b/test/layoutengine/testcases/markers_4.xml
deleted file mode 100644
index 6ab5ff5bd..000000000
--- a/test/layoutengine/testcases/markers_4.xml
+++ /dev/null
@@ -1,99 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks markers. Regression test which tests a special case.
- </p>
- <p>
- For this test the block containing the fo:markers must remain empty except for the marker element. Not even a space or carriage return!!!
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="2.55in">
- <fo:region-body margin="0.5in 0in"/>
- <fo:region-before extent="0.5in"/>
- <fo:region-after extent="0.5in"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block>
- page <fo:page-number/>
- </fo:block>
- <fo:block>
- <fo:retrieve-marker retrieve-class-name="previous-total" retrieve-boundary="page-sequence" retrieve-position="first-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block text-align="end">
- <fo:retrieve-marker retrieve-class-name="total" retrieve-boundary="page-sequence" retrieve-position="last-ending-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed">
- <fo:table-column column-width="2in"/>
- <fo:table-column column-width="2in"/>
- <fo:table-column column-width="1in"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>5.50</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block><fo:marker marker-class-name="previous-total">0</fo:marker><fo:marker marker-class-name="total">5.50</fo:marker></fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>2</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>5.50</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block><fo:marker marker-class-name="previous-total">5.50</fo:marker><fo:marker marker-class-name="total">11.00</fo:marker></fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>5.50</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block><fo:marker marker-class-name="previous-total">11.00</fo:marker><fo:marker marker-class-name="total">16.50</fo:marker></fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="0" xpath="//regionBefore/block[2]/lineArea/text"/>
- <eval expected="16.50" xpath="//regionAfter/block[1]/lineArea/text"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/markers_5a.xml b/test/layoutengine/testcases/markers_5a.xml
deleted file mode 100644
index 615f1a502..000000000
--- a/test/layoutengine/testcases/markers_5a.xml
+++ /dev/null
@@ -1,97 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks markers, especially the behaviour of block being broken over pages.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="1.8in">
- <fo:region-body margin="0.5in 0in"/>
- <fo:region-before extent="0.5in"/>
- <fo:region-after extent="0.5in"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block>
- page <fo:page-number/>
- </fo:block>
- <fo:block>
- <fo:retrieve-marker retrieve-class-name="previous-total" retrieve-boundary="page-sequence" retrieve-position="first-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block text-align="end">
- <fo:retrieve-marker retrieve-class-name="total" retrieve-boundary="page-sequence" retrieve-position="last-ending-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:block id="id1">
- <fo:marker marker-class-name="previous-total">0.00</fo:marker>
- <fo:marker marker-class-name="total">1.00</fo:marker>
- 1: 1.00
- </fo:block>
- <fo:block id="id2">
- <fo:marker marker-class-name="previous-total">1.00</fo:marker>
- <fo:marker marker-class-name="total">2.00</fo:marker>
- 2: 1.00
- </fo:block>
- <fo:block id="id3">
- <fo:marker marker-class-name="previous-total">2.00</fo:marker>
- <fo:marker marker-class-name="total">3.00</fo:marker>
- 3: 1.00
- </fo:block>
- <fo:block id="id4">
- <fo:marker marker-class-name="previous-total">3.00</fo:marker>
- <fo:marker marker-class-name="total">4.00</fo:marker>
- 4: 1.00
- </fo:block>
- <fo:block id="id5">
- <fo:marker marker-class-name="previous-total">4.00</fo:marker>
- <fo:marker marker-class-name="total">5.00</fo:marker>
- 5: 1.00
- </fo:block>
- <fo:block id="id6">
- <fo:marker marker-class-name="previous-total">5.00</fo:marker>
- <fo:marker marker-class-name="total">6.00</fo:marker>
- 6: 1.00
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- page 1 -->
- <eval expected="0.00" xpath="//pageViewport[1]/page/regionViewport[1]/regionBefore/block[2]/lineArea"/>
- <eval expected="4.00" xpath="//pageViewport[1]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
- <eval expected="1: 1.00" xpath="//pageViewport[1]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[1]/lineArea"/>
- <eval expected="2: 1.00" xpath="//pageViewport[1]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[2]/lineArea"/>
- <eval expected="3: 1.00" xpath="//pageViewport[1]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[3]/lineArea"/>
- <eval expected="4: 1.00" xpath="//pageViewport[1]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[4]/lineArea"/>
-
- <!-- page 2 -->
- <eval expected="4.00" xpath="//pageViewport[2]/page/regionViewport[1]/regionBefore/block[2]/lineArea"/>
- <eval expected="6.00" xpath="//pageViewport[2]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
- <eval expected="5: 1.00" xpath="//pageViewport[2]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[1]/lineArea"/>
- <eval expected="6: 1.00" xpath="//pageViewport[2]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[2]/lineArea"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/markers_5b.xml b/test/layoutengine/testcases/markers_5b.xml
deleted file mode 100644
index 13324a5f9..000000000
--- a/test/layoutengine/testcases/markers_5b.xml
+++ /dev/null
@@ -1,159 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- 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.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="1.8in">
- <fo:region-body margin="0.5in 0in"/>
- <fo:region-before extent="0.5in"/>
- <fo:region-after extent="0.5in"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block>
- page <fo:page-number/>
- </fo:block>
- <fo:block>
- <fo:retrieve-marker retrieve-class-name="previous-total" retrieve-boundary="page-sequence" retrieve-position="first-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block text-align="end">
- <fo:retrieve-marker retrieve-class-name="total" retrieve-boundary="page-sequence" retrieve-position="last-ending-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed">
- <fo:table-column column-width="2in"/>
- <fo:table-column column-width="2in"/>
- <fo:table-column column-width="1in"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>1.00</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>
- <fo:marker marker-class-name="previous-total">0.00</fo:marker>
- <fo:marker marker-class-name="total">1.00</fo:marker>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>2</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>1.00</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>
- <fo:marker marker-class-name="previous-total">1.00</fo:marker>
- <fo:marker marker-class-name="total">2.00</fo:marker>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>3</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>1.00</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>
- <fo:marker marker-class-name="previous-total">2.00</fo:marker>
- <fo:marker marker-class-name="total">3.00</fo:marker>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>4</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>1.00</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block id="id4">
- <fo:marker marker-class-name="previous-total">3.00</fo:marker>
- <fo:marker marker-class-name="total">4.00</fo:marker>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>5</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>1.00</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block id="id5">
- <fo:marker marker-class-name="previous-total">4.00</fo:marker>
- <fo:marker marker-class-name="total">5.00</fo:marker>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>6</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>1.00</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block id="id6">
- <fo:marker marker-class-name="previous-total">5.00</fo:marker>
- <fo:marker marker-class-name="total">6.00</fo:marker>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- page 1 -->
- <eval expected="0.00" xpath="//pageViewport[1]/page/regionViewport[1]/regionBefore/block[2]/lineArea"/>
- <eval expected="4.00" xpath="//pageViewport[1]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
- <eval expected="1" xpath="//pageViewport[1]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/lineArea"/>
- <eval expected="2" xpath="//pageViewport[1]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[1]/block[4]/block[1]/lineArea"/>
- <eval expected="3" xpath="//pageViewport[1]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[1]/block[7]/block[1]/lineArea"/>
- <eval expected="4" xpath="//pageViewport[1]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[1]/block[10]/block[1]/lineArea"/>
-
- <!-- page 2 -->
- <eval expected="4.00" xpath="//pageViewport[2]/page/regionViewport[1]/regionBefore/block[2]/lineArea"/>
- <eval expected="6.00" xpath="//pageViewport[2]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
- <eval expected="5" xpath="//pageViewport[2]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/lineArea"/>
- <eval expected="6" xpath="//pageViewport[2]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[1]/block[4]/block[1]/lineArea"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/markers_5c.xml b/test/layoutengine/testcases/markers_5c.xml
deleted file mode 100644
index e3a11af28..000000000
--- a/test/layoutengine/testcases/markers_5c.xml
+++ /dev/null
@@ -1,96 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks markers, especially the behaviour of block being broken over pages.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="1.8in">
- <fo:region-body margin="0.5in 0in"/>
- <fo:region-before extent="0.5in"/>
- <fo:region-after extent="0.5in"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block>
- page <fo:page-number/>
- </fo:block>
- <fo:block>
- <fo:retrieve-marker retrieve-class-name="previous-total" retrieve-boundary="page-sequence" retrieve-position="first-including-carryover"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block text-align="end">
- <fo:retrieve-marker retrieve-class-name="total" retrieve-boundary="page-sequence" retrieve-position="last-ending-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:block id="id1">
- <fo:marker marker-class-name="previous-total">0.00</fo:marker>
- <fo:marker marker-class-name="total">1.00</fo:marker>
- 1: 1.00
- </fo:block>
- <fo:block id="id2">
- <fo:marker marker-class-name="previous-total">1.00</fo:marker>
- <fo:marker marker-class-name="total">2.00</fo:marker>
- 2: 1.00
- </fo:block>
- <fo:block id="id3">
- <fo:marker marker-class-name="previous-total">2.00</fo:marker>
- <fo:marker marker-class-name="total">3.00</fo:marker>
- 3: 1.00
- </fo:block>
- <fo:block id="id4">
- <fo:marker marker-class-name="previous-total">3.00</fo:marker>
- <fo:marker marker-class-name="total">4.00</fo:marker>
- 4: This is a special case. It must take two lines. It must take two lines. 1.00
- </fo:block>
- <fo:block id="id5">
- <fo:marker marker-class-name="previous-total">4.00</fo:marker>
- <fo:marker marker-class-name="total">5.00</fo:marker>
- 5: 1.00
- </fo:block>
- <fo:block id="id6">
- <fo:marker marker-class-name="previous-total">5.00</fo:marker>
- <fo:marker marker-class-name="total">6.00</fo:marker>
- 6: 1.00
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- page 1 -->
- <eval expected="0.00" xpath="//pageViewport[1]/page/regionViewport[1]/regionBefore/block[2]/lineArea"/>
- <eval expected="3.00" xpath="//pageViewport[1]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
- <eval expected="1: 1.00" xpath="//pageViewport[1]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[1]/lineArea"/>
- <eval expected="2: 1.00" xpath="//pageViewport[1]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[2]/lineArea"/>
- <eval expected="3: 1.00" xpath="//pageViewport[1]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[3]/lineArea"/>
-
- <!-- page 2 -->
- <eval expected="3.00" xpath="//pageViewport[2]/page/regionViewport[1]/regionBefore/block[2]/lineArea"/>
- <eval expected="6.00" xpath="//pageViewport[2]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
- <eval expected="5: 1.00" xpath="//pageViewport[2]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[2]/lineArea"/>
- <eval expected="6: 1.00" xpath="//pageViewport[2]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[3]/lineArea"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/markers_5d.xml b/test/layoutengine/testcases/markers_5d.xml
deleted file mode 100644
index faf46d7df..000000000
--- a/test/layoutengine/testcases/markers_5d.xml
+++ /dev/null
@@ -1,140 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- 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.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="1.8in">
- <fo:region-body margin="0.5in 0in"/>
- <fo:region-before extent="0.5in"/>
- <fo:region-after extent="0.5in"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block>
- page <fo:page-number/>
- </fo:block>
- <fo:block>
- <fo:retrieve-marker retrieve-class-name="previous-total" retrieve-boundary="page-sequence" retrieve-position="first-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block text-align="end">
- <fo:retrieve-marker retrieve-class-name="total" retrieve-boundary="page-sequence" retrieve-position="last-ending-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed">
- <fo:table-column column-width="2in"/>
- <fo:table-column column-width="2in"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>
- <fo:marker marker-class-name="previous-total">0.00</fo:marker>
- <fo:marker marker-class-name="total">1.00</fo:marker>
- 1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>1.00</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>
- <fo:marker marker-class-name="previous-total">1.00</fo:marker>
- <fo:marker marker-class-name="total">2.00</fo:marker>
- 2</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>1.00</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>
- <fo:marker marker-class-name="previous-total">2.00</fo:marker>
- <fo:marker marker-class-name="total">3.00</fo:marker>
- 3</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>1.00</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>
- <fo:marker marker-class-name="previous-total">3.00</fo:marker>
- <fo:marker marker-class-name="total">4.00</fo:marker>
- 4</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>1.00</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>
- <fo:marker marker-class-name="previous-total">4.00</fo:marker>
- <fo:marker marker-class-name="total">5.00</fo:marker>
- 5</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>1.00</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>
- <fo:marker marker-class-name="previous-total">5.00</fo:marker>
- <fo:marker marker-class-name="total">6.00</fo:marker>
- 6</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>1.00</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- page 1 -->
- <eval expected="0.00" xpath="//pageViewport[1]/page/regionViewport[1]/regionBefore/block[2]/lineArea"/>
- <eval expected="4.00" xpath="//pageViewport[1]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
- <eval expected="1" xpath="//pageViewport[1]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/lineArea"/>
- <eval expected="2" xpath="//pageViewport[1]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[1]/block[3]/block[1]/lineArea"/>
- <eval expected="3" xpath="//pageViewport[1]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[1]/block[5]/block[1]/lineArea"/>
- <eval expected="4" xpath="//pageViewport[1]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[1]/block[7]/block[1]/lineArea"/>
-
- <!-- page 2 -->
- <eval expected="4.00" xpath="//pageViewport[2]/page/regionViewport[1]/regionBefore/block[2]/lineArea"/>
- <eval expected="6.00" xpath="//pageViewport[2]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
- <eval expected="5" xpath="//pageViewport[2]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/lineArea"/>
- <eval expected="6" xpath="//pageViewport[2]/page/regionViewport[3]/regionBody/mainReference/span/flow/block[1]/block[3]/block[1]/lineArea"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/markers_6a.xml b/test/layoutengine/testcases/markers_6a.xml
deleted file mode 100644
index 70d8e8c70..000000000
--- a/test/layoutengine/testcases/markers_6a.xml
+++ /dev/null
@@ -1,256 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks markers, especially the retrieval of markers
-belonging to a preceding page.
- </p>
- </info>
- <fo>
- <fo:root
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- xmlns:fox="http://xml.apache.org/fop/extensions"
- xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="odd"
- page-width="5in" page-height="5in">
- <fo:region-body margin="0.5in 0in"/>
- <fo:region-before extent="0.5in" region-name="before-odd"/>
- <fo:region-after extent="0.5in" region-name="after-odd"/>
- </fo:simple-page-master>
- <fo:simple-page-master master-name="even"
- page-width="5in" page-height="5in">
- <fo:region-body margin="0.5in 0in"/>
- <fo:region-before extent="0.5in" region-name="before-even"/>
- <fo:region-after extent="0.5in" region-name="after-even"/>
- </fo:simple-page-master>
- <fo:page-sequence-master master-name="odd-even">
- <fo:repeatable-page-master-alternatives>
- <fo:conditional-page-master-reference
- master-reference="odd"
- page-position="any"
- odd-or-even="odd" />
- <fo:conditional-page-master-reference
- master-reference="even"
- page-position="any"
- odd-or-even="even" />
- </fo:repeatable-page-master-alternatives>
- </fo:page-sequence-master>
- </fo:layout-master-set>
-
- <fo:page-sequence master-reference="odd-even">
- <fo:static-content flow-name="before-odd">
- <fo:block>
- <fo:retrieve-marker retrieve-class-name="chapter"
- retrieve-boundary="page-sequence"
- retrieve-position="first-starting-within-page"/>
- <fo:leader leader-length.minimum="12pt"
- leader-length.optimum="80pt"
- leader-length.maximum="100%" leader-pattern="space">
- </fo:leader>page <fo:page-number/></fo:block>
- </fo:static-content>
- <fo:static-content flow-name="before-even">
- <fo:block>
- <fo:retrieve-marker retrieve-class-name="section"
- retrieve-boundary="page-sequence"
- retrieve-position="first-starting-within-page"/>
- <fo:leader leader-length.minimum="12pt"
- leader-length.optimum="80pt"
- leader-length.maximum="100%" leader-pattern="space">
- </fo:leader>page <fo:page-number/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="after-odd">
- <fo:block text-align="end">
- <fo:retrieve-marker retrieve-class-name="chapter"
- retrieve-boundary="page-sequence"
- retrieve-position="last-ending-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="after-even">
- <fo:block text-align="end">
- <fo:retrieve-marker retrieve-class-name="section"
- retrieve-boundary="page-sequence"
- retrieve-position="last-ending-within-page"/>
- </fo:block>
- </fo:static-content>
-
- <fo:flow flow-name="xsl-region-body">
- <fo:block space-before="6pt" space-after="6pt"
- font-weight="bold" id="ch5" background-color="#EE1">
- <fo:marker marker-class-name="chapter">5 Property Refinement / Resolution</fo:marker>
- <fo:marker marker-class-name="section">5 Property Refinement / Resolution</fo:marker>5 Property Refinement / Resolution
- </fo:block>
- <fo:block>
- 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.
- </fo:block>
- <fo:block space-before="6pt" space-after="6pt"
- font-weight="bold" id="sect5-1" background-color="#DD1">
- <fo:marker marker-class-name="section">5.1 Specified, Computed, and Actual Values, and Inheritance</fo:marker>5.1 Specified,
-Computed, and Actual Values, and Inheritance
- </fo:block>
- <fo:block>
- 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.
- </fo:block>
- <fo:block space-before="6pt" space-after="6pt"
- font-weight="bold" id="sect5-2" background-color="#DD1">
- <fo:marker marker-class-name="section">5.2 Specified Values</fo:marker>5.2 Specified Values
- </fo:block>
- <fo:block>
- The specified value of a property is determined using the
-following mechanisms (in order of precedence)
- </fo:block>
- <fo:block>
- 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".
- </fo:block>
- <fo:block>
- Otherwise, if the property is inheritable, use the value
-of that property from the parent formatting object, generally the
-computed value (see below).
- </fo:block>
- <fo:block space-before="6pt" space-after="6pt"
- font-weight="bold" id="ch6" background-color="#EE6">
- <fo:marker marker-class-name="chapter">6 Shorthand Expansion</fo:marker>
- <fo:marker marker-class-name="section">6 Shorthand Expansion</fo:marker>6 Shorthand Expansion
- </fo:block>
- <fo:block>
- 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.
- </fo:block>
- <fo:block space-before="6pt" space-after="6pt"
- font-weight="bold" id="sect6-1" background-color="#DD6">
- <fo:marker marker-class-name="section">6.1 Actual Values</fo:marker>6.1 Actual Values
- </fo:block>
- <fo:block>
- 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".
- </fo:block>
- <fo:block>
- 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".
- </fo:block>
- <fo:block>
- 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].
- </fo:block>
- <fo:block>
- 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.
- </fo:block>
- <fo:block>
- 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.
- </fo:block>
- <fo:block>
- 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.
- </fo:block>
-
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- page 1 -->
- <true xpath="starts-with(//pageViewport[@nr=1]//regionBefore,'5 ')"/>
- <true xpath="starts-with(//pageViewport[@nr=1]//regionAfter,'5 ')"/>
- <true xpath="//pageViewport[@nr=1]//regionBody//block[starts-with(.,'5 ')]"/>
- <true xpath="//pageViewport[@nr=1]//regionBody//block[starts-with(.,'5.1 ')]"/>
- <true xpath="//pageViewport[@nr=1]//regionBody//block[starts-with(.,'5.2 ')]"/>
- <!-- page 2 -->
- <true xpath="starts-with(//pageViewport[@nr=2]//regionBefore,'6 ')"/>
- <true xpath="starts-with(//pageViewport[@nr=2]//regionAfter,'6.1 ')"/>
- <true xpath="//pageViewport[@nr=2]//regionBody//block[starts-with(.,'6 ')]"/>
- <true xpath="//pageViewport[@nr=2]//regionBody//block[starts-with(.,'6.1 ')]"/>
- <!-- page 3 -->
- <true xpath="starts-with(//pageViewport[@nr=3]//regionBefore,'6 ')"/>
- <true xpath="starts-with(//pageViewport[@nr=3]//regionAfter,'6 ')"/>
- <true xpath="not(//pageViewport[@nr=3]//regionBody//block[starts-with(.,'6 ')])"/>
- <true xpath="not(//pageViewport[@nr=3]//regionBody//block[starts-with(.,'6.1 ')])"/>
- <!-- page 4 -->
- <true xpath="starts-with(//pageViewport[@nr=4]//regionBefore,'6.1 ')"/>
- <true xpath="starts-with(//pageViewport[@nr=4]//regionAfter,'6.1 ')"/>
- <true xpath="not(//pageViewport[@nr=4]//regionBody//block[starts-with(.,'6 ')])"/>
- <true xpath="not(//pageViewport[@nr=4]//regionBody//block[starts-with(.,'6.1 ')])"/>
- <!-- page 5 -->
- <true xpath="starts-with(//pageViewport[@nr=5]//regionBefore,'6 ')"/>
- <true xpath="starts-with(//pageViewport[@nr=5]//regionAfter,'6 ')"/>
- <true xpath="not(//pageViewport[@nr=5]//regionBody//block[starts-with(.,'6 ')])"/>
- <true xpath="not(//pageViewport[@nr=5]//regionBody//block[starts-with(.,'6.1 ')])"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/markers_6b.xml b/test/layoutengine/testcases/markers_6b.xml
deleted file mode 100644
index a303f121e..000000000
--- a/test/layoutengine/testcases/markers_6b.xml
+++ /dev/null
@@ -1,299 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks markers, especially the retrieval of markers
-belonging to a preceding page -- nested areas.
- </p>
- </info>
- <fo>
- <fo:root
- xmlns:fo="http://www.w3.org/1999/XSL/Format"
- xmlns:fox="http://xml.apache.org/fop/extensions"
- xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="odd"
- page-width="5in" page-height="5in">
- <fo:region-body margin="0.5in 0in"/>
- <fo:region-before extent="0.5in" region-name="before-odd"/>
- <fo:region-after extent="0.5in" region-name="after-odd"/>
- </fo:simple-page-master>
- <fo:simple-page-master master-name="even"
- page-width="5in" page-height="5in">
- <fo:region-body margin="0.5in 0in"/>
- <fo:region-before extent="0.5in" region-name="before-even"/>
- <fo:region-after extent="0.5in" region-name="after-even"/>
- </fo:simple-page-master>
- <fo:page-sequence-master master-name="odd-even">
- <fo:repeatable-page-master-alternatives>
- <fo:conditional-page-master-reference
- master-reference="odd"
- page-position="any"
- odd-or-even="odd" />
- <fo:conditional-page-master-reference
- master-reference="even"
- page-position="any"
- odd-or-even="even" />
- </fo:repeatable-page-master-alternatives>
- </fo:page-sequence-master>
- </fo:layout-master-set>
-
- <fo:page-sequence master-reference="odd-even">
- <fo:static-content flow-name="before-odd">
- <fo:block>
- <fo:retrieve-marker retrieve-class-name="chapter"
- retrieve-boundary="page-sequence"
- retrieve-position="first-including-carryover"/>
- <fo:leader leader-length.minimum="12pt"
- leader-length.optimum="80pt"
- leader-length.maximum="100%" leader-pattern="space">
- </fo:leader>page <fo:page-number/></fo:block>
- <fo:block>
- <fo:retrieve-marker retrieve-class-name="chapter"
- retrieve-boundary="page-sequence"
- retrieve-position="first-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="before-even">
- <fo:block>
- <fo:retrieve-marker retrieve-class-name="section"
- retrieve-boundary="page-sequence"
- retrieve-position="first-including-carryover"/>
- <fo:leader leader-length.minimum="12pt"
- leader-length.optimum="80pt"
- leader-length.maximum="100%" leader-pattern="space">
- </fo:leader>page <fo:page-number/>
- </fo:block>
- <fo:block>
- <fo:retrieve-marker retrieve-class-name="chapter"
- retrieve-boundary="page-sequence"
- retrieve-position="first-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="after-odd">
- <fo:block text-align="end">
- <fo:retrieve-marker retrieve-class-name="chapter"
- retrieve-boundary="page-sequence"
- retrieve-position="last-starting-within-page"/>
- </fo:block>
- <fo:block text-align="end">
- <fo:retrieve-marker retrieve-class-name="chapter"
- retrieve-boundary="page-sequence"
- retrieve-position="last-ending-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="after-even">
- <fo:block text-align="end">
- <fo:retrieve-marker retrieve-class-name="section"
- retrieve-boundary="page-sequence"
- retrieve-position="last-starting-within-page"/>
- </fo:block>
- <fo:block text-align="end">
- <fo:retrieve-marker retrieve-class-name="section"
- retrieve-boundary="page-sequence"
- retrieve-position="last-ending-within-page"/>
- </fo:block>
- </fo:static-content>
-
- <fo:flow flow-name="xsl-region-body">
- <fo:block id="ch5" background-color="#EE1">
- <fo:marker marker-class-name="chapter">5 Property Refinement / Resolution</fo:marker>
- <fo:marker marker-class-name="section">5 Property Refinement / Resolution</fo:marker>
- <fo:block space-before="6pt" space-after="6pt" font-weight="bold">
-5 Property Refinement / Resolution
- </fo:block>
- <fo:block>
- 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.
- </fo:block>
- <fo:block id="sect5-1" background-color="#DD1">
- <fo:marker marker-class-name="section">5.1 Specified, Computed, and Actual Values, and Inheritance</fo:marker>
- <fo:block space-before="6pt" space-after="6pt" font-weight="bold">
-5.1 Specified, Computed, and Actual Values, and Inheritance
- </fo:block>
- <fo:block>
- 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.
- </fo:block>
- </fo:block>
- <fo:block id="sect5-2" background-color="#DD1">
- <fo:marker marker-class-name="section">5.2 Specified Values</fo:marker>
- <fo:block space-before="6pt" space-after="6pt" font-weight="bold">
-5.2 Specified Values
- </fo:block>
- <fo:block>
- The specified value of a property is determined using the
-following mechanisms (in order of precedence)
- </fo:block>
- <fo:block>
- 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".
- </fo:block>
- <fo:block>
- Otherwise, if the property is inheritable, use the value
-of that property from the parent formatting object, generally the
-computed value (see below).
- </fo:block>
- </fo:block>
- </fo:block>
- <fo:block id="ch6" background-color="#EE6">
- <fo:marker marker-class-name="chapter">6 Shorthand Expansion</fo:marker>
- <fo:marker marker-class-name="section">6 Shorthand Expansion</fo:marker>
- <fo:block space-before="6pt" space-after="6pt" font-weight="bold">
-6 Shorthand Expansion
- </fo:block>
- <fo:block>
- 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.
- </fo:block>
- <fo:block id="sect6-1" background-color="#DD6">
- <fo:marker marker-class-name="section">6.1 Actual Values</fo:marker>
- <fo:block space-before="6pt" space-after="6pt" font-weight="bold">
-6.1 Actual Values
- </fo:block>
- <fo:block>
- 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".
- </fo:block>
- </fo:block>
- </fo:block>
-
- <fo:block id="ch7" background-color="#EEE">
- <fo:block>
- 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".
- </fo:block>
- <fo:block>
- 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].
- </fo:block>
- <fo:block>
- 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.
- </fo:block>
- <fo:block>
- 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.
- </fo:block>
- <fo:block>
- 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.
- </fo:block>
- </fo:block>
-
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- page 1 -->
- <true xpath="starts-with(//pageViewport[@nr=1]//regionBefore/block[1],'5 ')"/>
- <true xpath="starts-with(//pageViewport[@nr=1]//regionBefore/block[2],'5 ')"/>
- <true xpath="starts-with(//pageViewport[@nr=1]//regionAfter/block[1],'5 ')"/>
- <true xpath="starts-with(//pageViewport[@nr=1]//regionAfter/block[2],'5 ')"/>
- <true xpath="//pageViewport[@nr=1]//regionBody//block[starts-with(.,'5 ')]"/>
- <true xpath="//pageViewport[@nr=1]//regionBody//block[starts-with(.,'5.1 ')]"/>
- <true xpath="//pageViewport[@nr=1]//regionBody//block[starts-with(.,'5.2 ')]"/>
- <!-- page 2 -->
- <true xpath="starts-with(//pageViewport[@nr=2]//regionBefore/block[1],'5 ')"/>
- <true xpath="starts-with(//pageViewport[@nr=2]//regionBefore/block[2],'6 ')"/>
- <true xpath="starts-with(//pageViewport[@nr=2]//regionAfter/block[1],'6.1 ')"/>
- <true xpath="starts-with(//pageViewport[@nr=2]//regionAfter/block[2],'5 ')"/>
- <true xpath="//pageViewport[@nr=2]//regionBody//block[starts-with(.,'6 ')]"/>
- <true xpath="//pageViewport[@nr=2]//regionBody//block[starts-with(.,'6.1 ')]"/>
- <!-- page 3 -->
- <true xpath="starts-with(//pageViewport[@nr=3]//regionBefore/block[1],'6 ')"/>
- <true xpath="starts-with(//pageViewport[@nr=3]//regionBefore/block[2],'6 ')"/>
- <true xpath="starts-with(//pageViewport[@nr=3]//regionAfter/block[1],'6 ')"/>
- <true xpath="starts-with(//pageViewport[@nr=3]//regionAfter/block[2],'6 ')"/>
- <true xpath="not(//pageViewport[@nr=3]//regionBody//block[starts-with(.,'6 ')])"/>
- <true xpath="not(//pageViewport[@nr=3]//regionBody//block[starts-with(.,'6.1 ')])"/>
- <!-- page 4 -->
- <true xpath="starts-with(//pageViewport[@nr=4]//regionBefore/block[1],'6 ')"/>
- <true xpath="starts-with(//pageViewport[@nr=4]//regionBefore/block[2],'6 ')"/>
- <true xpath="starts-with(//pageViewport[@nr=4]//regionAfter/block[1],'6 ')"/>
- <true xpath="starts-with(//pageViewport[@nr=4]//regionAfter/block[2],'6 ')"/>
- <true xpath="not(//pageViewport[@nr=4]//regionBody//block[starts-with(.,'6 ')])"/>
- <true xpath="not(//pageViewport[@nr=4]//regionBody//block[starts-with(.,'6.1 ')])"/>
- <!-- page 5 -->
- <true xpath="starts-with(//pageViewport[@nr=5]//regionBefore/block[1],'6 ')"/>
- <true xpath="starts-with(//pageViewport[@nr=5]//regionBefore/block[2],'6 ')"/>
- <true xpath="starts-with(//pageViewport[@nr=5]//regionAfter/block[1],'6 ')"/>
- <true xpath="starts-with(//pageViewport[@nr=5]//regionAfter/block[2],'6 ')"/>
- <true xpath="not(//pageViewport[@nr=5]//regionBody//block[starts-with(.,'6 ')])"/>
- <true xpath="not(//pageViewport[@nr=5]//regionBody//block[starts-with(.,'6.1 ')])"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/markers_7.xml b/test/layoutengine/testcases/markers_7.xml
deleted file mode 100644
index 429b23d11..000000000
--- a/test/layoutengine/testcases/markers_7.xml
+++ /dev/null
@@ -1,340 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks if all FOs at least add markers (not that they do it right).
- </p>
- <p>
- TODO: Add checks for the rest of the marker-enabled FOs (table-caption etc.)
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body margin="0.5in 0"/>
- <fo:region-before extent="0.5in"/>
- <fo:region-after extent="0.5in"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block text-align="end" background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:marker marker-class-name="test">fo:flow</fo:marker>
- <fo:block>blah</fo:block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block text-align="end" background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- <fo:marker marker-class-name="test">fo:block</fo:marker>blah</fo:block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block text-align="end" background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:block-container>
- <fo:marker marker-class-name="test">fo:block-container</fo:marker>
- <fo:block>blah</fo:block>
- </fo:block-container>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block text-align="end" background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:table>
- <fo:marker marker-class-name="test">fo:table</fo:marker>
- <fo:table-body>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block text-align="end" background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:table>
- <fo:table-body>
- <fo:marker marker-class-name="test">fo:table-body</fo:marker>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block text-align="end" background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:table>
- <fo:table-header>
- <fo:marker marker-class-name="test">fo:table-header</fo:marker>
- <fo:table-cell>
- <fo:block>header-blah</fo:block>
- </fo:table-cell>
- </fo:table-header>
- <fo:table-body>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block text-align="end" background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:table>
- <fo:table-footer>
- <fo:marker marker-class-name="test">fo:table-footer</fo:marker>
- <fo:table-cell>
- <fo:block>footer-blah</fo:block>
- </fo:table-cell>
- </fo:table-footer>
- <fo:table-body>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block text-align="end" background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:table>
- <fo:table-body>
- <fo:table-cell>
- <fo:marker marker-class-name="test">fo:table-cell</fo:marker>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block text-align="end" background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:list-block>
- <fo:marker marker-class-name="test">fo:list-block</fo:marker>
- <fo:list-item>
- <fo:list-item-label>
- <fo:block>label-blah</fo:block>
- </fo:list-item-label>
- <fo:list-item-body>
- <fo:block>body-blah</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block text-align="end" background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:list-block>
- <fo:list-item>
- <fo:marker marker-class-name="test">fo:list-item</fo:marker>
- <fo:list-item-label>
- <fo:block>label-blah</fo:block>
- </fo:list-item-label>
- <fo:list-item-body>
- <fo:block>body-blah</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block text-align="end" background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:list-block>
- <fo:list-item>
- <fo:list-item-label>
- <fo:marker marker-class-name="test">fo:list-item-label</fo:marker>
- <fo:block>label-blah</fo:block>
- </fo:list-item-label>
- <fo:list-item-body>
- <fo:block>body-blah</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block text-align="end" background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:list-block>
- <fo:list-item>
- <fo:list-item-label>
- <fo:block>label-blah</fo:block>
- </fo:list-item-label>
- <fo:list-item-body>
- <fo:marker marker-class-name="test">fo:list-item-body</fo:marker>
- <fo:block>body-blah</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- fo:flow -->
- <eval expected="fo:flow" xpath="//pageViewport[@nr=1]/page/regionViewport[1]/regionBefore/block[1]/lineArea"/>
- <eval expected="fo:flow" xpath="//pageViewport[@nr=1]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
- <!-- fo:block -->
- <eval expected="fo:block" xpath="//pageViewport[@nr=2]/page/regionViewport[1]/regionBefore/block[1]/lineArea"/>
- <eval expected="fo:block" xpath="//pageViewport[@nr=2]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
- <!-- fo:block-container -->
- <eval expected="fo:block-container" xpath="//pageViewport[@nr=3]/page/regionViewport[1]/regionBefore/block[1]/lineArea"/>
- <eval expected="fo:block-container" xpath="//pageViewport[@nr=3]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
- <!-- fo:table -->
- <eval expected="fo:table" xpath="//pageViewport[@nr=4]/page/regionViewport[1]/regionBefore/block[1]/lineArea"/>
- <eval expected="fo:table" xpath="//pageViewport[@nr=4]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
- <!-- fo:table-body -->
- <eval expected="fo:table-body" xpath="//pageViewport[@nr=5]/page/regionViewport[1]/regionBefore/block[1]/lineArea"/>
- <eval expected="fo:table-body" xpath="//pageViewport[@nr=5]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
- <!-- fo:table-header -->
- <eval expected="fo:table-header" xpath="//pageViewport[@nr=6]/page/regionViewport[1]/regionBefore/block[1]/lineArea"/>
- <eval expected="fo:table-header" xpath="//pageViewport[@nr=6]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
- <!-- fo:table-footer -->
- <eval expected="fo:table-footer" xpath="//pageViewport[@nr=7]/page/regionViewport[1]/regionBefore/block[1]/lineArea"/>
- <eval expected="fo:table-footer" xpath="//pageViewport[@nr=7]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
- <!-- fo:table-cell -->
- <eval expected="fo:table-cell" xpath="//pageViewport[@nr=8]/page/regionViewport[1]/regionBefore/block[1]/lineArea"/>
- <eval expected="fo:table-cell" xpath="//pageViewport[@nr=8]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
- <!-- fo:list-block -->
- <eval expected="fo:list-block" xpath="//pageViewport[@nr=9]/page/regionViewport[1]/regionBefore/block[1]/lineArea"/>
- <eval expected="fo:list-block" xpath="//pageViewport[@nr=9]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
- <!-- fo:list-item -->
- <eval expected="fo:list-item" xpath="//pageViewport[@nr=10]/page/regionViewport[1]/regionBefore/block[1]/lineArea"/>
- <eval expected="fo:list-item" xpath="//pageViewport[@nr=10]/page/regionViewport[2]/regionAfter/block[1]/lineArea"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/markers_8.xml b/test/layoutengine/testcases/markers_8.xml
deleted file mode 100644
index 82dcb7706..000000000
--- a/test/layoutengine/testcases/markers_8.xml
+++ /dev/null
@@ -1,146 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks markers on broken tables.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="2in">
- <fo:region-body margin="0.5in 0"/>
- <fo:region-before extent="0.5in"/>
- <fo:region-after extent="0.5in"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-including-carryover"/>
- </fo:block>
- <fo:block background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block text-align="end" background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
- </fo:block>
- <fo:block text-align="end" background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-ending-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:table color="black">
- <fo:marker marker-class-name="test">table1</fo:marker>
- <fo:table-column number-columns-repeated="2"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- <fo:block>blah</fo:block>
- <fo:block>blah</fo:block>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- <fo:block>blah</fo:block>
- <fo:block>blah</fo:block>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:table color="red">
- <fo:marker marker-class-name="test">table2</fo:marker>
- <fo:table-column number-columns-repeated="2"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- <fo:block>blah</fo:block>
- <fo:block>blah</fo:block>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:table color="blue">
- <fo:marker marker-class-name="test">table3</fo:marker>
- <fo:table-column number-columns-repeated="2"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell column-number="2">
- <fo:block>blah</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <true xpath="starts-with(//pageViewport[@nr=1]//regionBefore/block[1],'table1')"/>
- <true xpath="starts-with(//pageViewport[@nr=1]//regionBefore/block[2],'table1')"/>
- <true xpath="starts-with(//pageViewport[@nr=1]//regionAfter/block[1],'table1')"/>
- <true xpath="starts-with(//pageViewport[@nr=1]//regionAfter/block[2],'table1')"/>
-
- <true xpath="starts-with(//pageViewport[@nr=2]//regionBefore/block[1],'table1')"/>
- <true xpath="starts-with(//pageViewport[@nr=2]//regionBefore/block[2],'table2')"/>
- <true xpath="starts-with(//pageViewport[@nr=2]//regionAfter/block[1],'table2')"/>
- <true xpath="starts-with(//pageViewport[@nr=2]//regionAfter/block[2],'table1')"/>
-
- <true xpath="starts-with(//pageViewport[@nr=3]//regionBefore/block[1],'table2')"/>
- <true xpath="starts-with(//pageViewport[@nr=3]//regionBefore/block[2],'table3')"/>
- <true xpath="starts-with(//pageViewport[@nr=3]//regionAfter/block[1],'table3')"/>
- <true xpath="starts-with(//pageViewport[@nr=3]//regionAfter/block[2],'table2')"/>
-
- <true xpath="starts-with(//pageViewport[@nr=4]//regionBefore/block[1],'table3')"/>
- <true xpath="starts-with(//pageViewport[@nr=4]//regionBefore/block[2],'table3')"/>
- <true xpath="starts-with(//pageViewport[@nr=4]//regionAfter/block[1],'table3')"/>
- <true xpath="starts-with(//pageViewport[@nr=4]//regionAfter/block[2],'table3')"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/markers_9.xml b/test/layoutengine/testcases/markers_9.xml
deleted file mode 100644
index 3ad9a245b..000000000
--- a/test/layoutengine/testcases/markers_9.xml
+++ /dev/null
@@ -1,219 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks markers on broken table-bodies.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="2in">
- <fo:region-body margin="0.5in 0"/>
- <fo:region-before extent="0.5in"/>
- <fo:region-after extent="0.5in"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-including-carryover"/>
- </fo:block>
- <fo:block background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="first-starting-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block text-align="end" background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-starting-within-page"/>
- </fo:block>
- <fo:block text-align="end" background-color="yellow">
- <fo:retrieve-marker retrieve-class-name="test" retrieve-boundary="page" retrieve-position="last-ending-within-page"/>
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:table color="black">
- <fo:table-column number-columns-repeated="2"/>
- <fo:table-body>
- <fo:marker marker-class-name="test">body1</fo:marker>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- <fo:block>blah</fo:block>
- <fo:block>blah</fo:block>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- <fo:block>blah</fo:block>
- <fo:block>blah</fo:block>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:table color="red">
- <fo:table-column number-columns-repeated="2"/>
- <fo:table-body>
- <fo:marker marker-class-name="test">body2</fo:marker>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- <fo:block>blah</fo:block>
- <fo:block>blah</fo:block>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:table color="blue">
- <fo:table-column number-columns-repeated="2"/>
- <fo:table-body>
- <fo:marker marker-class-name="test">body3</fo:marker>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell column-number="2">
- <fo:block>blah</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- <fo:table-body color="cyan">
- <fo:marker marker-class-name="test">body4</fo:marker>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:table>
- <fo:table-column number-columns-repeated="2"/>
- <fo:table-body color="black">
- <fo:marker marker-class-name="test">body5</fo:marker>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- <fo:table-body color="green">
- <fo:marker marker-class-name="test">body6</fo:marker>
- <fo:table-row>
- <fo:table-cell number-rows-spanned="3">
- <fo:block>blah1</fo:block>
- <fo:block>blah2</fo:block>
- <fo:block>blah3</fo:block>
- <fo:block>blah4</fo:block>
- <fo:block>blah5</fo:block>
- <fo:block>blah6</fo:block>
- <fo:block>blah7</fo:block>
- <fo:block>blah8</fo:block>
- <fo:block>blah9</fo:block>
- <fo:block>blah10</fo:block>
- <fo:block>blah11</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <!--fo:table-row>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- </fo:table-row-->
- </fo:table-body>
- <fo:table-body color="black">
- <fo:marker marker-class-name="test">body7</fo:marker>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <true xpath="starts-with(//pageViewport[@nr=1]//regionBefore/block[1],'body1')"/>
- <true xpath="starts-with(//pageViewport[@nr=1]//regionBefore/block[2],'body1')"/>
- <true xpath="starts-with(//pageViewport[@nr=1]//regionAfter/block[1],'body1')"/>
- <true xpath="starts-with(//pageViewport[@nr=1]//regionAfter/block[2],'body1')"/>
-
- <true xpath="starts-with(//pageViewport[@nr=2]//regionBefore/block[1],'body1')"/>
- <true xpath="starts-with(//pageViewport[@nr=2]//regionBefore/block[2],'body2')"/>
- <true xpath="starts-with(//pageViewport[@nr=2]//regionAfter/block[1],'body2')"/>
- <true xpath="starts-with(//pageViewport[@nr=2]//regionAfter/block[2],'body1')"/>
-
- <true xpath="starts-with(//pageViewport[@nr=3]//regionBefore/block[1],'body2')"/>
- <true xpath="starts-with(//pageViewport[@nr=3]//regionBefore/block[2],'body3')"/>
- <true xpath="starts-with(//pageViewport[@nr=3]//regionAfter/block[1],'body3')"/>
- <true xpath="starts-with(//pageViewport[@nr=3]//regionAfter/block[2],'body2')"/>
-
- <true xpath="starts-with(//pageViewport[@nr=4]//regionBefore/block[1],'body3')"/>
- <true xpath="starts-with(//pageViewport[@nr=4]//regionBefore/block[2],'body4')"/>
- <true xpath="starts-with(//pageViewport[@nr=4]//regionAfter/block[1],'body6')"/>
- <true xpath="starts-with(//pageViewport[@nr=4]//regionAfter/block[2],'body5')"/>
-
- <true xpath="starts-with(//pageViewport[@nr=5]//regionBefore/block[1],'body6')"/>
- <true xpath="starts-with(//pageViewport[@nr=5]//regionBefore/block[2],'body6')"/>
- <true xpath="starts-with(//pageViewport[@nr=5]//regionAfter/block[1],'body6')"/>
- <true xpath="starts-with(//pageViewport[@nr=5]//regionAfter/block[2],'body6')"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/page-breaking_1.xml b/test/layoutengine/testcases/page-breaking_1.xml
deleted file mode 100644
index 2a15045a2..000000000
--- a/test/layoutengine/testcases/page-breaking_1.xml
+++ /dev/null
@@ -1,87 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks normal page breaking.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="4.5 * 14.4pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>block1</fo:block>
- <fo:block>block2</fo:block>
- <fo:block>block3</fo:block>
- <fo:block>block4</fo:block>
- <fo:block>block5</fo:block>
- <fo:block>block6</fo:block>
- <fo:block>block7</fo:block>
- <fo:block>block8</fo:block>
- <fo:block>block9</fo:block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block-container>
- <fo:block>block1</fo:block>
- <fo:block>block2</fo:block>
- <fo:block>block3</fo:block>
- <fo:block>block4</fo:block>
- <fo:block>block5</fo:block>
- </fo:block-container>
- <fo:block>block6</fo:block>
- <fo:block>block7</fo:block>
- <fo:block>block8</fo:block>
- <fo:block>block9</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="block1" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea"/>
- <eval expected="block2" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea"/>
- <eval expected="block3" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[3]/lineArea"/>
- <eval expected="block4" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[4]/lineArea"/>
-
- <eval expected="block5" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea"/>
- <eval expected="block6" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea"/>
- <eval expected="block7" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[3]/lineArea"/>
- <eval expected="block8" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[4]/lineArea"/>
-
- <eval expected="block9" xpath="//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea"/>
-
- <!-- second page sequence uses a plain block-container -->
- <eval expected="block1" xpath="//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block/block/block[1]/lineArea"/>
- <eval expected="block2" xpath="//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block/block/block[2]/lineArea"/>
- <eval expected="block3" xpath="//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block/block/block[3]/lineArea"/>
- <eval expected="block4" xpath="//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block/block/block[4]/lineArea"/>
-
- <eval expected="block5" xpath="//pageViewport[@nr=5]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block/block[1]/lineArea"/>
- <eval expected="block6" xpath="//pageViewport[@nr=5]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea"/>
- <eval expected="block7" xpath="//pageViewport[@nr=5]/page/regionViewport/regionBody/mainReference/span/flow/block[3]/lineArea"/>
- <eval expected="block8" xpath="//pageViewport[@nr=5]/page/regionViewport/regionBody/mainReference/span/flow/block[4]/lineArea"/>
-
- <eval expected="block9" xpath="//pageViewport[@nr=6]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/page-breaking_2.xml b/test/layoutengine/testcases/page-breaking_2.xml
deleted file mode 100644
index cc1797f84..000000000
--- a/test/layoutengine/testcases/page-breaking_2.xml
+++ /dev/null
@@ -1,54 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- 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.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="simple" page-height="6cm" page-width="21cm">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="simple">
- <fo:flow flow-name="xsl-region-body">
- <fo:block-container height="5cm">
- <fo:block/>
- </fo:block-container>
- <fo:block line-height="10pt"
- white-space-collapse="false" white-space-treatment="preserve" linefeed-treatment="preserve" wrap-option="no-wrap">
-<![CDATA[<!-- list level 1 -->
-<fo:list-block provisional-distance-between-starts="0.4cm"
- provisional-label-separation="0.15cm">
-
- <!-- list item -->
-]]>
-</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- contents must be broken to the next page to show the bug. -->
- <true xpath="boolean(//pageViewport[2])"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/page-breaking_3.xml b/test/layoutengine/testcases/page-breaking_3.xml
deleted file mode 100644
index 00f6eb990..000000000
--- a/test/layoutengine/testcases/page-breaking_3.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- 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.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="simple" page-height="6cm" page-width="21cm">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="simple">
- <fo:flow flow-name="xsl-region-body">
- <fo:block-container height="5cm">
- <fo:block/>
- </fo:block-container>
- <fo:block line-height="10pt" background-color="orange"
- white-space-collapse="false" white-space-treatment="preserve" linefeed-treatment="preserve" wrap-option="no-wrap">
-line1
-line2
-line3
-</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- contents must be broken to the next page to show the bug. -->
- <eval expected="2" xpath="count(//pageViewport)"/>
-
- <eval expected="" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea[1]"/>
- <eval expected="line1" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea[2]"/>
- <eval expected="line2" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea[1]"/>
- <eval expected="line3" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea[2]"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/page-breaking_4.xml b/test/layoutengine/testcases/page-breaking_4.xml
deleted file mode 100644
index d4a2c207b..000000000
--- a/test/layoutengine/testcases/page-breaking_4.xml
+++ /dev/null
@@ -1,64 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- 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.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="narrow" page-height="90pt" page-width="150pt">
- <fo:region-body/>
- </fo:simple-page-master>
- <fo:simple-page-master master-name="wide" page-height="180pt" page-width="300pt">
- <fo:region-body/>
- </fo:simple-page-master>
- <fo:page-sequence-master master-name="master">
- <fo:single-page-master-reference master-reference="narrow"/>
- <fo:single-page-master-reference master-reference="wide"/>
- </fo:page-sequence-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="master">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="orange" linefeed-treatment="preserve">
-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.
-</fo:block>
- <fo:block background-color="yellow">last line in new block</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="2" xpath="count(//pageViewport)"/>
-
- <eval expected="150000" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/@ipda"/>"/>
- <eval expected="150000" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipda"/>
- <!--eval expected="86400" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpda"/-->
-
- <eval expected="300000" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/@ipda"/>"/>
- <eval expected="300000" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@ipda"/>
- <!--eval expected="86400" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@bpda"/-->
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/page-breaking_4a.xml b/test/layoutengine/testcases/page-breaking_4a.xml
deleted file mode 100644
index c0e70ecdb..000000000
--- a/test/layoutengine/testcases/page-breaking_4a.xml
+++ /dev/null
@@ -1,62 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks normal breaking. It checks the available BPD is properly evaluated for
- every single page.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" widows="0" orphans="0">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="short" page-height="90pt" page-width="150pt">
- <fo:region-body/>
- </fo:simple-page-master>
- <fo:simple-page-master master-name="long" page-height="180pt" page-width="150pt">
- <fo:region-body/>
- </fo:simple-page-master>
- <fo:page-sequence-master master-name="master">
- <fo:single-page-master-reference master-reference="short"/>
- <fo:single-page-master-reference master-reference="long"/>
- <fo:single-page-master-reference master-reference="short"/>
- </fo:page-sequence-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="master">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="orange" linefeed-treatment="preserve"
->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.
-</fo:block>
- <fo:block background-color="yellow">last line in new block</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="3" xpath="count(//pageViewport)"/>
-
- <eval expected="6" xpath="sum(//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block/@bpda) div 14400"/>
- <eval expected="12" xpath="sum(//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block/@bpda) div 14400"/>"/>
- <eval expected="1" xpath="sum(//pageViewport[3]/page/regionViewport/regionBody/mainReference/span/flow/block/@bpda) div 14400"/>"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/page-breaking_5.xml b/test/layoutengine/testcases/page-breaking_5.xml
deleted file mode 100644
index eaad25a03..000000000
--- a/test/layoutengine/testcases/page-breaking_5.xml
+++ /dev/null
@@ -1,61 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- 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).
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" widows="0" orphans="0">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="short" page-height="30pt" page-width="120pt">
- <fo:region-body/>
- </fo:simple-page-master>
- <fo:simple-page-master master-name="long" page-height="100pt" page-width="120pt">
- <fo:region-body/>
- </fo:simple-page-master>
- <fo:page-sequence-master master-name="master">
- <fo:single-page-master-reference master-reference="long"/>
- <fo:single-page-master-reference master-reference="short"/>
- <fo:single-page-master-reference master-reference="long"/>
- </fo:page-sequence-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="master">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="orange" keep-together="always">Apache FOP is a great tool to create PDF documents with.</fo:block>
- <fo:block background-color="orange" keep-together="always">Apache FOP is a great tool to create PDF documents with.</fo:block>
- <fo:block background-color="orange" keep-together="always">Apache FOP is a great tool to create PDF documents with.</fo:block>
- <fo:block background-color="orange" keep-together="always">Apache FOP is a great tool to create PDF documents with.</fo:block>
- <fo:block background-color="yellow">last line in new block</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="4" xpath="count(//pageViewport)"/>
-
- <eval expected="6" xpath="sum(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block/@bpda) div 14400"/>
- <!-- the second page should be empty since the third block doesn't fit into that page with only 30pt BPD -->
- <eval expected="0" xpath="sum(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block/@bpda) div 14400"/>"/>
- <eval expected="6" xpath="sum(//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block/@bpda) div 14400"/>"/>
- <eval expected="1" xpath="sum(//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block/@bpda) div 14400"/>"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/page-breaking_6.xml b/test/layoutengine/testcases/page-breaking_6.xml
deleted file mode 100644
index 8ce6da3cd..000000000
--- a/test/layoutengine/testcases/page-breaking_6.xml
+++ /dev/null
@@ -1,61 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks breaking behaviour in environments where there is not much space.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="simple" page-height="5in" page-width="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="simple">
- <fo:flow flow-name="xsl-region-body" hyphenate="true">
- <fo:block-container width="100pt" background-color="yellow">
- <fo:block>This is some test text!</fo:block>
- <fo:block>Bla bla 1234567890.</fo:block>
- <fo:block>Bla bla 12345678901234567890.</fo:block>
- <fo:block>This is Blah-blah-blah-blah!</fo:block>
- <fo:block>This is BLah-blah-blah-blah!</fo:block>
- </fo:block-container>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="This is some test " xpath="//flow/block[1]/block[1]/block[1]/lineArea[1]"/>
- <eval expected="text!" xpath="//flow/block[1]/block[1]/block[1]/lineArea[2]"/>
-
- <eval expected="Bla bla " xpath="//flow/block[1]/block[1]/block[2]/lineArea[1]"/>
- <eval expected="1234567890." xpath="//flow/block[1]/block[1]/block[2]/lineArea[2]"/>
-
- <!-- The layout engine should warn about the overflow in this case -->
- <eval expected="Bla bla " xpath="//flow/block[1]/block[1]/block[3]/lineArea[1]"/>
- <eval expected="12345678901234567890." xpath="//flow/block[1]/block[1]/block[3]/lineArea[2]"/>
-
- <eval expected="This is Blah-blah-" xpath="//flow/block[1]/block[1]/block[4]/lineArea[1]"/>
- <eval expected="blah-blah!" xpath="//flow/block[1]/block[1]/block[4]/lineArea[2]"/>
-
- <eval expected="This is BLah-blah-" xpath="//flow/block[1]/block[1]/block[5]/lineArea[1]"/>
- <eval expected="blah-blah!" xpath="//flow/block[1]/block[1]/block[5]/lineArea[2]"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/page-height_indefinite_simple.xml b/test/layoutengine/testcases/page-height_indefinite_simple.xml
deleted file mode 100644
index 86b713ea7..000000000
--- a/test/layoutengine/testcases/page-height_indefinite_simple.xml
+++ /dev/null
@@ -1,52 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- Simple test for page-height="indefinite". The page-heights should
- correspond to the sum of the line-heights of the laid out blocks.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="auto" page-height="indefinite">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block line-height="24pt">page1 - block1</fo:block>
- <fo:block line-height="24pt">page1 - block2</fo:block>
- <fo:block line-height="24pt">page1 - block3</fo:block>
- <fo:block break-before="page" line-height="30pt">page2 - block1</fo:block>
- <fo:block line-height="30pt">page2 - block2</fo:block>
- <fo:block line-height="30pt">page2 - block3</fo:block>
- <fo:block break-before="page" line-height="60pt">page3 - block3</fo:block>
- <fo:block line-height="60pt">page3 - block2</fo:block>
- <fo:block line-height="60pt">page3 - block3</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="72000" xpath="//pageViewport[@nr=1]/page/regionViewport/@bpd"/>
- <eval expected="90000" xpath="//pageViewport[@nr=2]/page/regionViewport/@bpd"/>
- <eval expected="180000" xpath="//pageViewport[@nr=3]/page/regionViewport/@bpd"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/page-number-citation_background-color.xml b/test/layoutengine/testcases/page-number-citation_background-color.xml
deleted file mode 100755
index 2edf06916..000000000
--- a/test/layoutengine/testcases/page-number-citation_background-color.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks fo:page-number-citation with background-color property.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="5pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body" font-size="10pt" id="ref">
- <fo:block background-color="silver" id="ref">
- To emphasize a page number citation <fo:page-number-citation ref-id="ref" background-color="yellow" /> highlight it.
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="color=#ffff00" xpath="//flow/block[1]/lineArea/text[2]/@background"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/page-number-citation_background-image.xml b/test/layoutengine/testcases/page-number-citation_background-image.xml
deleted file mode 100755
index 4cbf84105..000000000
--- a/test/layoutengine/testcases/page-number-citation_background-image.xml
+++ /dev/null
@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks fo:page-number-citation with background-image property.
- </p>
- </info>
- <variables>
- <img>../../resources/images/bgimg300dpi.jpg</img>
- </variables>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block font-size="24pt" id="ref">
- Page number citation <fo:page-number-citation font-size="96pt" ref-id="ref" background-color="yellow" background-repeat="no-repeat" background-position-horizontal="center" background-position-vertical="center" background-image="##img" />
- Page number citation <fo:page-number-citation font-size="48pt" ref-id="ref" background-color="yellow" background-repeat="no-repeat" background-position-horizontal="center" background-position-vertical="center" background-image="##img" />
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- currently not working because of late ipd adjustment after the image is positioned -->
- <eval expected="color=#ffff00,url=../../resources/images/bgimg300dpi.jpg,repeat=no-repeat,horiz=3648,vertical=21360" xpath="//flow/block[1]/lineArea/text[2]/@background"/>
- <eval expected="color=#ffff00,url=../../resources/images/bgimg300dpi.jpg,repeat=no-repeat,horiz=-9696,vertical=-840" xpath="//flow/block[1]/lineArea/text[4]/@background"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/page-number-citation_basic.xml b/test/layoutengine/testcases/page-number-citation_basic.xml
deleted file mode 100644
index e481a86ac..000000000
--- a/test/layoutengine/testcases/page-number-citation_basic.xml
+++ /dev/null
@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks fo:page-number-citation.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="master1" page-width="5in" page-height="1in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="master1" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block id="bof1">page: <fo:page-number/> of <fo:page-number-citation ref-id="eof1"/></fo:block>
- <fo:block>page: <fo:page-number/>, bof1 is on page <fo:page-number-citation ref-id="bof1"/></fo:block>
- <fo:block>page: <fo:page-number/>, bof2 is on page <fo:page-number-citation ref-id="bof2"/></fo:block>
- <fo:block>page: <fo:page-number/></fo:block>
- <fo:block break-before="page">page: <fo:page-number/></fo:block>
- <fo:block>page: <fo:page-number/></fo:block>
- <fo:block>page: <fo:page-number/> of <fo:page-number-citation ref-id="eof1"/></fo:block>
- <fo:block id="eof1"/>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="master1" white-space-collapse="true" initial-page-number="11">
- <fo:flow flow-name="xsl-region-body">
- <fo:block id="bof2">page: <fo:page-number/> of <fo:page-number-citation ref-id="eof2"/></fo:block>
- <fo:block>page: <fo:page-number/></fo:block>
- <fo:block>page: <fo:page-number/></fo:block>
- <fo:block>page: <fo:page-number/></fo:block>
- <fo:block break-before="page">page: <fo:page-number/>, bof1 is on page <fo:page-number-citation ref-id="bof1"/></fo:block>
- <fo:block>page: <fo:page-number/>, bof2 is on page <fo:page-number-citation ref-id="bof2"/></fo:block>
- <fo:block>page: <fo:page-number/> of <fo:page-number-citation ref-id="eof2"/></fo:block>
- <fo:block id="eof2"/>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="page: 1 of 2" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea"/>
- <eval expected="page: 1, bof1 is on page 1" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea"/>
- <eval expected="page: 1, bof2 is on page 11" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[3]/lineArea"/>
-
- <eval expected="page: 2" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea"/>
- <eval expected="page: 2" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea"/>
- <eval expected="page: 2 of 2" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[3]/lineArea"/>
-
- <eval expected="page: 11 of 12" xpath="//pageViewport[3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea"/>
- <eval expected="page: 11" xpath="//pageViewport[3]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea"/>
-
- <eval expected="page: 12, bof1 is on page 1" xpath="//pageViewport[4]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea"/>
- <eval expected="page: 12, bof2 is on page 11" xpath="//pageViewport[4]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea"/>
- <eval expected="page: 12 of 12" xpath="//pageViewport[4]/page/regionViewport/regionBody/mainReference/span/flow/block[3]/lineArea"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/page-number-citation_border_padding.xml b/test/layoutengine/testcases/page-number-citation_border_padding.xml
deleted file mode 100755
index ed65a507c..000000000
--- a/test/layoutengine/testcases/page-number-citation_border_padding.xml
+++ /dev/null
@@ -1,98 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks fo:page-number-citation with border and padding properties.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="5pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true" language="en">
- <fo:flow flow-name="xsl-region-body" font-size="10pt">
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" id="ref">
- Page number citation <fo:page-number-citation ref-id="ref" border="solid 1pt red" background-color="yellow" /> with a 1pt border.
- </fo:block>
- <fo:block background-color="silver" margin="10pt 0pt 10pt 0pt">
- Page number citation <fo:page-number-citation ref-id="ref" border="solid 5pt red" padding="5pt" background-color="yellow" /> with 5pt border and padding.
- </fo:block>
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt">
- Page number citation <fo:page-number-citation ref-id="ref" border-style="solid" border-width="1pt 2pt 3pt 4pt" border-color="red" padding="1pt 2pt 3pt 4pt" background-color="yellow" character="c"/> with unsymmetric borders and padding.
- </fo:block>
- <fo:block background-color="silver" margin="10pt 0pt 10pt 0pt" font-size="20pt">
- Page number citation <fo:page-number-citation ref-id="ref" border="solid 5pt red" padding="5pt" background-color="yellow" font-size="8pt" character="b"/> with border and padding in a smaller font.
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="7180" xpath="//flow/block[1]/lineArea/text[2]/@baseline"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea/text[2]/@offset"/>
- <eval expected="5560" xpath="//flow/block[1]/lineArea/text[2]/@ipd"/>
- <eval expected="7560" xpath="//flow/block[1]/lineArea/text[2]/@ipda"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/text[2]/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/text[2]/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/text[2]/@border-end"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/text[2]/@border-start"/>
-
- <eval expected="7180" xpath="//flow/block[2]/lineArea/text[2]/@baseline"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea/text[2]/@offset"/>
- <eval expected="5560" xpath="//flow/block[2]/lineArea/text[2]/@ipd"/>
- <eval expected="25560" xpath="//flow/block[2]/lineArea/text[2]/@ipda"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/text[2]/@border-after"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/text[2]/@border-before"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/text[2]/@border-end"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/text[2]/@border-start"/>
- <eval expected="5000" xpath="//flow/block[2]/lineArea/text[2]/@padding-after"/>
- <eval expected="5000" xpath="//flow/block[2]/lineArea/text[2]/@padding-before"/>
- <eval expected="5000" xpath="//flow/block[2]/lineArea/text[2]/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[2]/lineArea/text[2]/@padding-start"/>
-
- <eval expected="7180" xpath="//flow/block[3]/lineArea/text[2]/@baseline"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea/text[2]/@offset"/>
- <eval expected="5560" xpath="//flow/block[3]/lineArea/text[2]/@ipd"/>
- <eval expected="17560" xpath="//flow/block[3]/lineArea/text[2]/@ipda"/>
- <eval expected="(solid,#ff0000,3000)" xpath="//flow/block[3]/lineArea/text[2]/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea/text[2]/@border-before"/>
- <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[3]/lineArea/text[2]/@border-end"/>
- <eval expected="(solid,#ff0000,4000)" xpath="//flow/block[3]/lineArea/text[2]/@border-start"/>
- <eval expected="3000" xpath="//flow/block[3]/lineArea/text[2]/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[3]/lineArea/text[2]/@padding-before"/>
- <eval expected="2000" xpath="//flow/block[3]/lineArea/text[2]/@padding-end"/>
- <eval expected="4000" xpath="//flow/block[3]/lineArea/text[2]/@padding-start"/>
-
- <eval expected="5744" xpath="//flow/block[4]/lineArea/text[2]/@baseline"/>
- <eval expected="8616" xpath="//flow/block[4]/lineArea/text[2]/@offset"/>
- <eval expected="4448" xpath="//flow/block[4]/lineArea/text[2]/@ipd"/>
- <eval expected="24448" xpath="//flow/block[4]/lineArea/text[2]/@ipda"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/text[2]/@border-after"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/text[2]/@border-before"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/text[2]/@border-end"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/text[2]/@border-start"/>
- <eval expected="5000" xpath="//flow/block[4]/lineArea/text[2]/@padding-after"/>
- <eval expected="5000" xpath="//flow/block[4]/lineArea/text[2]/@padding-before"/>
- <eval expected="5000" xpath="//flow/block[4]/lineArea/text[2]/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[4]/lineArea/text[2]/@padding-start"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/page-number-citation_complex_1.xml b/test/layoutengine/testcases/page-number-citation_complex_1.xml
deleted file mode 100644
index a0642281c..000000000
--- a/test/layoutengine/testcases/page-number-citation_complex_1.xml
+++ /dev/null
@@ -1,113 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks page-number-citations with all combinations of
- definition-level and block-level IDs.
- </p>
- <p>
- TODO:
- Test table-and-caption and table-caption once implemented.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in"
- margin="20pt">
- <fo:region-body background-color="yellow"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence id="page-sequence1" master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block id="block1">block1</fo:block>
- <fo:list-block id="list1" provisional-distance-between-starts="50pt" provisional-label-separation="5pt">
- <fo:list-item id="item1">
- <fo:list-item-label id="item1-label" end-indent="label-end()">
- <fo:block>•</fo:block>
- </fo:list-item-label>
- <fo:list-item-body id="item1-body" start-indent="body-start()">
- <fo:block>here is text in the list item body</fo:block>
- </fo:list-item-body>
- </fo:list-item>
- </fo:list-block>
- <fo:table id="table1" table-layout="fixed" border-collapse="separate">
- <fo:table-column column-width="100%"/>
- <fo:table-header id="table-header1">
- <fo:table-row>
- <fo:table-cell>
- <fo:block>header</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-header>
- <fo:table-footer id="table-footer1">
- <fo:table-row>
- <fo:table-cell>
- <fo:block>footer</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-footer>
- <fo:table-body id="table-body1">
- <fo:table-row id="table-row1">
- <fo:table-cell id="table-cell1">
- <fo:block>body-content</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block-container id="block-container1">
- <fo:block>block-container-content</fo:block>
- </fo:block-container>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body" font-size="8pt">
- <fo:block><fo:page-number-citation ref-id="page-sequence1"/></fo:block>
- <fo:block><fo:page-number-citation ref-id="block1"/></fo:block>
- <fo:block><fo:page-number-citation ref-id="list1"/></fo:block>
- <fo:block><fo:page-number-citation ref-id="item1"/></fo:block>
- <fo:block><fo:page-number-citation ref-id="item1-label"/></fo:block>
- <fo:block><fo:page-number-citation ref-id="item1-body"/></fo:block>
- <fo:block><fo:page-number-citation ref-id="table1"/></fo:block>
- <fo:block><fo:page-number-citation ref-id="table-header1"/></fo:block>
- <fo:block><fo:page-number-citation ref-id="table-footer1"/></fo:block>
- <fo:block><fo:page-number-citation ref-id="table-body1"/></fo:block>
- <fo:block><fo:page-number-citation ref-id="table-row1"/></fo:block>
- <fo:block><fo:page-number-citation ref-id="table-cell1"/></fo:block>
- <fo:block><fo:page-number-citation ref-id="block-container1"/></fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <true fail-msg="no ID for page-sequence" xpath="'1' = //pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]"/>
- <true fail-msg="no ID for block" xpath="'1' = //pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[2]"/>
- <true fail-msg="no ID for list-block" xpath="'1' = //pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[3]"/>
- <true fail-msg="no ID for list-item" xpath="'1' = //pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[4]"/>
- <true fail-msg="no ID for list-item-label" xpath="'1' = //pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[5]"/>
- <true fail-msg="no ID for list-item-body" xpath="'1' = //pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[6]"/>
- <true fail-msg="no ID for table" xpath="'1' = //pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[7]"/>
- <true fail-msg="no ID for table-header" xpath="'1' = //pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[8]"/>
- <true fail-msg="no ID for table-footer" xpath="'1' = //pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[9]"/>
- <true fail-msg="no ID for table-body" xpath="'1' = //pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[10]"/>
- <true fail-msg="no ID for table-row" xpath="'1' = //pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[11]"/>
- <true fail-msg="no ID for table-cell" xpath="'1' = //pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[12]"/>
- <true fail-msg="no ID for block-container" xpath="'1' = //pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[13]"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/page-number-citation_complex_2.xml b/test/layoutengine/testcases/page-number-citation_complex_2.xml
deleted file mode 100644
index 6d4252bc1..000000000
--- a/test/layoutengine/testcases/page-number-citation_complex_2.xml
+++ /dev/null
@@ -1,89 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks page-number-citations with all combinations of
- inline-level IDs.
- </p>
- <p>
- TODO:
- Test inline-container, bidi-override once implemented.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="20in"
- margin="20pt">
- <fo:region-body background-color="yellow"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence id="page-sequence1" master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>text<fo:inline id="inline1">inline</fo:inline>text</fo:block>
- <fo:block>text<fo:wrapper id="wrapper1">wrapper</fo:wrapper>text</fo:block>
- <fo:block>text<!--fo:inline-container id="inline-container1"><fo:block>inline-container</fo:block></fo:inline-container-->text</fo:block>
- <fo:block>text<fo:page-number id="page-number1"/>text</fo:block>
- <fo:block>text<fo:page-number-citation id="page-number-citation1" ref-id="inline1"/>text</fo:block>
- <fo:block>text<fo:leader id="leader1" leader-pattern="dots" leader-length="2cm"/>text</fo:block>
- <fo:block>text<fo:character id="char1" character="X"/>text</fo:block>
- <fo:block>text<!--fo:bidi-override id="bidi1" direction="ltr">bidi-override</fo:bidi-override-->text</fo:block>
- <fo:block>text<fo:basic-link id="link1" internal-destination="page-number1">link</fo:basic-link>text</fo:block>
- <fo:block>text<fo:instream-foreign-object id="ifo1" content-height="12pt">
- <svg:svg viewBox="0 0 20 20">
- <svg:g style="fill:red; stroke:#000000">
- <svg:rect x="0" y="0" width="15" height="15"/>
- <svg:rect x="5" y="5" width="15" height="15"/>
- </svg:g>
- </svg:svg>
- </fo:instream-foreign-object>text</fo:block>
- <fo:block>text<fo:external-graphic id="eg1" src="../../resources/images/bgimg72dpi.jpg" content-height="12pt"/>text</fo:block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body" font-size="8pt">
- <fo:block><fo:page-number-citation ref-id="inline1"/></fo:block>
- <fo:block><fo:page-number-citation ref-id="wrapper1"/></fo:block>
- <fo:block><fo:page-number-citation ref-id="inline-container1"/></fo:block>
- <fo:block><fo:page-number-citation ref-id="page-number1"/></fo:block>
- <fo:block><fo:page-number-citation ref-id="page-number-citation1"/></fo:block>
- <fo:block><fo:page-number-citation ref-id="leader1"/></fo:block>
- <fo:block><fo:page-number-citation ref-id="char1"/></fo:block>
- <fo:block><fo:page-number-citation ref-id="bidi1"/></fo:block>
- <fo:block><fo:page-number-citation ref-id="link1"/></fo:block>
- <fo:block><fo:page-number-citation ref-id="ifo1"/></fo:block>
- <fo:block><fo:page-number-citation ref-id="eg1"/></fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <true fail-msg="no ID for inline" xpath="'1' = //pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]"/>
- <true fail-msg="no ID for wrapper" xpath="'1' = //pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[2]"/>
- <true fail-msg="no ID for inline-container" xpath="'1' = //pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[3]"/>
- <true fail-msg="no ID for page-number" xpath="'1' = //pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[4]"/>
- <true fail-msg="no ID for page-number-citation" xpath="'1' = //pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[5]"/>
- <true fail-msg="no ID for leader" xpath="'1' = //pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[6]"/>
- <true fail-msg="no ID for character" xpath="'1' = //pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[7]"/>
- <true fail-msg="no ID for bidi-override" xpath="'1' = //pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[8]"/>
- <true fail-msg="no ID for basik-link" xpath="'1' = //pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[9]"/>
- <true fail-msg="no ID for instream-foreign-object" xpath="'1' = //pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[10]"/>
- <true fail-msg="no ID for external-graphic" xpath="'1' = //pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[11]"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/page-number-citation_vertical-align.xml b/test/layoutengine/testcases/page-number-citation_vertical-align.xml
deleted file mode 100755
index b8f5315a1..000000000
--- a/test/layoutengine/testcases/page-number-citation_vertical-align.xml
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks fo:page-number-citation with vertical-align property.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt" id="ref">
- Page citation <fo:page-number-citation ref-id="ref" font-size="10pt" background-color="yellow" /> vertical-align not specified
- </fo:block>
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
- Page citation <fo:page-number-citation ref-id="ref" font-size="10pt" vertical-align="baseline" background-color="yellow" /> vertical-align="baseline"
- </fo:block>
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
- Page citation <fo:page-number-citation ref-id="ref" font-size="10pt" vertical-align="top" background-color="yellow" /> vertical-align="top"
- </fo:block>
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
- Page citation <fo:page-number-citation ref-id="ref" font-size="10pt" vertical-align="middle" background-color="yellow" /> vertical-align="middle"
- </fo:block>
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
- Page citation <fo:page-number-citation ref-id="ref" font-size="10pt" vertical-align="bottom" background-color="yellow" /> vertical-align="bottom"
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="7180" xpath="//flow/block[1]/lineArea/text[2]/@offset"/>
- <eval expected="7180" xpath="//flow/block[2]/lineArea/text[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea/text[2]/@offset"/>
- <eval expected="4565" xpath="//flow/block[4]/lineArea/text[2]/@offset"/>
- <eval expected="9250" xpath="//flow/block[5]/lineArea/text[2]/@offset"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/page-number_background-color.xml b/test/layoutengine/testcases/page-number_background-color.xml
deleted file mode 100755
index c052bb4c4..000000000
--- a/test/layoutengine/testcases/page-number_background-color.xml
+++ /dev/null
@@ -1,43 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks fo:page-number with background-color property.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="5pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body" font-size="10pt">
- <fo:block background-color="silver">
- To emphasize a page number <fo:page-number background-color="yellow" /> highlight it.
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="color=#ffff00" xpath="//flow/block[1]/lineArea/text[2]/@background"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/page-number_background-image.xml b/test/layoutengine/testcases/page-number_background-image.xml
deleted file mode 100755
index 08d2e1484..000000000
--- a/test/layoutengine/testcases/page-number_background-image.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks fo:page-number with background-image property.
- </p>
- </info>
- <variables>
- <img>../../resources/images/bgimg300dpi.jpg</img>
- </variables>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block font-size="24pt">
- Page <fo:page-number font-size="96pt" background-color="yellow" background-repeat="no-repeat" background-position-horizontal="center" background-position-vertical="center" background-image="##img" />
- Page <fo:page-number font-size="48pt" background-color="yellow" background-repeat="no-repeat" background-position-horizontal="center" background-position-vertical="center" background-image="##img" />
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="color=#ffff00,url=../../resources/images/bgimg300dpi.jpg,repeat=no-repeat,horiz=3648,vertical=21360" xpath="//flow/block[1]/lineArea/text[2]/@background"/>
- <eval expected="color=#ffff00,url=../../resources/images/bgimg300dpi.jpg,repeat=no-repeat,horiz=-9696,vertical=-840" xpath="//flow/block[1]/lineArea/text[4]/@background"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/page-number_basic.xml b/test/layoutengine/testcases/page-number_basic.xml
deleted file mode 100644
index 46077fa66..000000000
--- a/test/layoutengine/testcases/page-number_basic.xml
+++ /dev/null
@@ -1,68 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks fo:page-number.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="master1" page-width="5in" page-height="1in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="master1" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>page: <fo:page-number/></fo:block>
- <fo:block>page: <fo:page-number/></fo:block>
- <fo:block>page: <fo:page-number/></fo:block>
- <fo:block>page: <fo:page-number/></fo:block>
- <fo:block>page: <fo:page-number/></fo:block>
- <fo:block>page: <fo:page-number/></fo:block>
- <fo:block>page: <fo:page-number/></fo:block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="master1" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>page: <fo:page-number/></fo:block>
- <fo:block>page: <fo:page-number/></fo:block>
- <fo:block>page: <fo:page-number/></fo:block>
- <fo:block>page: <fo:page-number/></fo:block>
- <fo:block>page: <fo:page-number/></fo:block>
- <fo:block>page: <fo:page-number/></fo:block>
- <fo:block>page: <fo:page-number/></fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="page: 1" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea"/>
- <eval expected="page: 1" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea"/>
-
- <eval expected="page: 2" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea"/>
- <eval expected="page: 2" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea"/>
-
- <eval expected="page: 3" xpath="//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea"/>
- <eval expected="page: 3" xpath="//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea"/>
-
- <eval expected="page: 4" xpath="//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea"/>
- <eval expected="page: 4" xpath="//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/page-number_border_padding.xml b/test/layoutengine/testcases/page-number_border_padding.xml
deleted file mode 100755
index cffa2eda1..000000000
--- a/test/layoutengine/testcases/page-number_border_padding.xml
+++ /dev/null
@@ -1,98 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks fo:page-number with border and padding properties.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="5pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true" language="en">
- <fo:flow flow-name="xsl-region-body" font-size="10pt">
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt">
- Page number <fo:page-number border="solid 1pt red" background-color="yellow" /> with a 1pt border.
- </fo:block>
- <fo:block background-color="silver" margin="10pt 0pt 10pt 0pt">
- Page number <fo:page-number border="solid 5pt red" padding="5pt" background-color="yellow" /> with 5pt border and padding.
- </fo:block>
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt">
- Page number <fo:page-number border-style="solid" border-width="1pt 2pt 3pt 4pt" border-color="red" padding="1pt 2pt 3pt 4pt" background-color="yellow" character="c"/> with unsymmetric borders and padding.
- </fo:block>
- <fo:block background-color="silver" margin="10pt 0pt 10pt 0pt" font-size="20pt">
- Page number <fo:page-number border="solid 5pt red" padding="5pt" background-color="yellow" font-size="8pt" character="b"/> with border and padding in a smaller font.
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="7180" xpath="//flow/block[1]/lineArea/text[2]/@baseline"/>
- <eval expected="0" xpath="//flow/block[1]/lineArea/text[2]/@offset"/>
- <eval expected="5560" xpath="//flow/block[1]/lineArea/text[2]/@ipd"/>
- <eval expected="7560" xpath="//flow/block[1]/lineArea/text[2]/@ipda"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/text[2]/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/text[2]/@border-before"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/text[2]/@border-end"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[1]/lineArea/text[2]/@border-start"/>
-
- <eval expected="7180" xpath="//flow/block[2]/lineArea/text[2]/@baseline"/>
- <eval expected="0" xpath="//flow/block[2]/lineArea/text[2]/@offset"/>
- <eval expected="5560" xpath="//flow/block[2]/lineArea/text[2]/@ipd"/>
- <eval expected="25560" xpath="//flow/block[2]/lineArea/text[2]/@ipda"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/text[2]/@border-after"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/text[2]/@border-before"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/text[2]/@border-end"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[2]/lineArea/text[2]/@border-start"/>
- <eval expected="5000" xpath="//flow/block[2]/lineArea/text[2]/@padding-after"/>
- <eval expected="5000" xpath="//flow/block[2]/lineArea/text[2]/@padding-before"/>
- <eval expected="5000" xpath="//flow/block[2]/lineArea/text[2]/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[2]/lineArea/text[2]/@padding-start"/>
-
- <eval expected="7180" xpath="//flow/block[3]/lineArea/text[2]/@baseline"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea/text[2]/@offset"/>
- <eval expected="5560" xpath="//flow/block[3]/lineArea/text[2]/@ipd"/>
- <eval expected="17560" xpath="//flow/block[3]/lineArea/text[2]/@ipda"/>
- <eval expected="(solid,#ff0000,3000)" xpath="//flow/block[3]/lineArea/text[2]/@border-after"/>
- <eval expected="(solid,#ff0000,1000)" xpath="//flow/block[3]/lineArea/text[2]/@border-before"/>
- <eval expected="(solid,#ff0000,2000)" xpath="//flow/block[3]/lineArea/text[2]/@border-end"/>
- <eval expected="(solid,#ff0000,4000)" xpath="//flow/block[3]/lineArea/text[2]/@border-start"/>
- <eval expected="3000" xpath="//flow/block[3]/lineArea/text[2]/@padding-after"/>
- <eval expected="1000" xpath="//flow/block[3]/lineArea/text[2]/@padding-before"/>
- <eval expected="2000" xpath="//flow/block[3]/lineArea/text[2]/@padding-end"/>
- <eval expected="4000" xpath="//flow/block[3]/lineArea/text[2]/@padding-start"/>
-
- <eval expected="5744" xpath="//flow/block[4]/lineArea/text[2]/@baseline"/>
- <eval expected="8616" xpath="//flow/block[4]/lineArea/text[2]/@offset"/>
- <eval expected="4448" xpath="//flow/block[4]/lineArea/text[2]/@ipd"/>
- <eval expected="24448" xpath="//flow/block[4]/lineArea/text[2]/@ipda"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/text[2]/@border-after"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/text[2]/@border-before"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/text[2]/@border-end"/>
- <eval expected="(solid,#ff0000,5000)" xpath="//flow/block[4]/lineArea/text[2]/@border-start"/>
- <eval expected="5000" xpath="//flow/block[4]/lineArea/text[2]/@padding-after"/>
- <eval expected="5000" xpath="//flow/block[4]/lineArea/text[2]/@padding-before"/>
- <eval expected="5000" xpath="//flow/block[4]/lineArea/text[2]/@padding-end"/>
- <eval expected="5000" xpath="//flow/block[4]/lineArea/text[2]/@padding-start"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/page-number_initial-page-number_1.xml b/test/layoutengine/testcases/page-number_initial-page-number_1.xml
deleted file mode 100644
index 365ee1944..000000000
--- a/test/layoutengine/testcases/page-number_initial-page-number_1.xml
+++ /dev/null
@@ -1,68 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks fo:page-number.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="master1" page-width="5in" page-height="1in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="master1" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>page: <fo:page-number/></fo:block>
- <fo:block>page: <fo:page-number/></fo:block>
- <fo:block>page: <fo:page-number/></fo:block>
- <fo:block>page: <fo:page-number/></fo:block>
- <fo:block>page: <fo:page-number/></fo:block>
- <fo:block>page: <fo:page-number/></fo:block>
- <fo:block>page: <fo:page-number/></fo:block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="master1" white-space-collapse="true" initial-page-number="11">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>page: <fo:page-number/></fo:block>
- <fo:block>page: <fo:page-number/></fo:block>
- <fo:block>page: <fo:page-number/></fo:block>
- <fo:block>page: <fo:page-number/></fo:block>
- <fo:block>page: <fo:page-number/></fo:block>
- <fo:block>page: <fo:page-number/></fo:block>
- <fo:block>page: <fo:page-number/></fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="page: 1" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea"/>
- <eval expected="page: 1" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea"/>
-
- <eval expected="page: 2" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea"/>
- <eval expected="page: 2" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea"/>
-
- <eval expected="page: 11" xpath="//pageViewport[@nr=11]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea"/>
- <eval expected="page: 11" xpath="//pageViewport[@nr=11]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea"/>
-
- <eval expected="page: 12" xpath="//pageViewport[@nr=12]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea"/>
- <eval expected="page: 12" xpath="//pageViewport[@nr=12]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/page-number_initial-page-number_2.xml b/test/layoutengine/testcases/page-number_initial-page-number_2.xml
deleted file mode 100644
index 0d4a7e21f..000000000
--- a/test/layoutengine/testcases/page-number_initial-page-number_2.xml
+++ /dev/null
@@ -1,53 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id: page-number3.xml 198733 2005-06-09 14:20:45Z jeremias $ -->
-<testcase>
- <info>
- <p>
- This test checks fo:page-number.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="master1" page-width="5in" page-height="1in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="master1" white-space-collapse="true" initial-page-number="9">
- <fo:flow flow-name="xsl-region-body">
- <fo:block><fo:inline>9</fo:inline> <fo:inline>10</fo:inline></fo:block>
- <fo:block>page: -&gt;<fo:page-number color="red"/>&lt;-</fo:block>
- <fo:block>page: -&gt;<fo:page-number color="red"/>&lt;-</fo:block>
- <fo:block>page: -&gt;<fo:page-number color="red"/>&lt;-</fo:block>
- <fo:block>page: -&gt;<fo:page-number color="red"/>&lt;-</fo:block>
- <fo:block>page: -&gt;<fo:page-number color="red"/>&lt;-</fo:block>
- <fo:block>page: -&gt;<fo:page-number color="red"/>&lt;-</fo:block>
- <fo:block>page: -&gt;<fo:page-number color="red"/>&lt;-</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="9" xpath="//pageViewport[@nr=9]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea[1]/text[2]"/>
- <eval expected="6672" xpath="//pageViewport[@nr=9]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/lineArea[1]/text[2]/@ipd"/>
-
- <eval expected="10" xpath="//pageViewport[@nr=10]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea[1]/text[2]"/>
- <eval expected="13344" xpath="//pageViewport[@nr=10]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/lineArea[1]/text[2]/@ipd"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/page-number_vertical-align.xml b/test/layoutengine/testcases/page-number_vertical-align.xml
deleted file mode 100755
index a4605027a..000000000
--- a/test/layoutengine/testcases/page-number_vertical-align.xml
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks fo:page-number with vertical-align property.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
- Page <fo:page-number font-size="10pt" background-color="yellow" /> vertical-align not specified
- </fo:block>
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
- Page <fo:page-number font-size="10pt" vertical-align="baseline" background-color="yellow" /> vertical-align="baseline"
- </fo:block>
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
- Page <fo:page-number font-size="10pt" vertical-align="top" background-color="yellow" /> vertical-align="top"
- </fo:block>
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
- Page <fo:page-number font-size="10pt" vertical-align="middle" background-color="yellow" /> vertical-align="middle"
- </fo:block>
- <fo:block background-color="silver" margin="2pt 0pt 2pt 0pt" font-size="20pt">
- Page <fo:page-number font-size="10pt" vertical-align="bottom" background-color="yellow" /> vertical-align="bottom"
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="7180" xpath="//flow/block[1]/lineArea/text[2]/@offset"/>
- <eval expected="7180" xpath="//flow/block[2]/lineArea/text[2]/@offset"/>
- <eval expected="0" xpath="//flow/block[3]/lineArea/text[2]/@offset"/>
- <eval expected="4565" xpath="//flow/block[4]/lineArea/text[2]/@offset"/>
- <eval expected="9250" xpath="//flow/block[5]/lineArea/text[2]/@offset"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/page-production_empty_block_only.xml b/test/layoutengine/testcases/page-production_empty_block_only.xml
deleted file mode 100644
index 56cf16638..000000000
--- a/test/layoutengine/testcases/page-production_empty_block_only.xml
+++ /dev/null
@@ -1,54 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks if FOP produces an empty page for a page-sequence with its only content an empty block.
- </p>
- <p>
- <a href="http://lists.w3.org/Archives/Public/xsl-editors/2005OctDec/0008.html">Clarification by the XSL WG</a>.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="1in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>page 1</fo:block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block/>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>page 3</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="3" xpath="count(//pageViewport)"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/region-body_background-image.xml b/test/layoutengine/testcases/region-body_background-image.xml
deleted file mode 100644
index c5dbcd64a..000000000
--- a/test/layoutengine/testcases/region-body_background-image.xml
+++ /dev/null
@@ -1,51 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks background images on a region-body
- </p>
- </info>
- <variables>
- <img>../../resources/images/bgimg300dpi.jpg</img>
- </variables>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="20pt">
- <fo:region-body margin="0pt" background-repeat="no-repeat" background-position-horizontal="center" background-position-vertical="center" background-image="##img"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block-container height="50%" width="50%" background-repeat="no-repeat" background-position-horizontal="center" background-position-vertical="center" background-image="##img">
- <fo:block background-repeat="no-repeat" background-position-horizontal="center" background-position-vertical="center" background-image="##img">
- normal block<fo:block/>
- normal block
- </fo:block>
- </fo:block-container>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="color=null,url=../../resources/images/bgimg300dpi.jpg,repeat=no-repeat,horiz=136960,vertical=136960" xpath="//regionViewport/@background"/>
- <eval expected="color=null,url=../../resources/images/bgimg300dpi.jpg,repeat=no-repeat,horiz=56960,vertical=56960" xpath="//flow/block[1]/@background"/>
- <eval expected="color=null,url=../../resources/images/bgimg300dpi.jpg,repeat=no-repeat,horiz=56960,vertical=-8640" xpath="//flow/block[1]/block[1]/block[1]/@background"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/region-body_column-count_1.xml b/test/layoutengine/testcases/region-body_column-count_1.xml
deleted file mode 100644
index 451d7141c..000000000
--- a/test/layoutengine/testcases/region-body_column-count_1.xml
+++ /dev/null
@@ -1,83 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks multi-column documents.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="360pt" page-height="4in">
- <fo:region-body column-count="2" column-gap="20pt"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>line1</fo:block>
- <fo:block>line2</fo:block>
- <fo:block background-color="orange">line3</fo:block>
- <fo:block>line4</fo:block>
- <fo:block>line5</fo:block>
- <fo:block>line6</fo:block>
- <fo:block>line7</fo:block>
- <fo:block>line8</fo:block>
- <fo:block>line9</fo:block>
- <fo:block>line10</fo:block>
- <fo:block>line11</fo:block>
- <fo:block>line12</fo:block>
- <fo:block>line13</fo:block>
- <fo:block>line14</fo:block>
- <fo:block>line15</fo:block>
- <fo:block>line16</fo:block>
- <fo:block>line17</fo:block>
- <fo:block>line18</fo:block>
- <fo:block>line19</fo:block>
- <fo:block>line20</fo:block>
- <fo:block>line21</fo:block>
- <fo:block>line22</fo:block>
- <fo:block>line23</fo:block>
- <fo:block>line24</fo:block>
- <fo:block>line25</fo:block>
- <fo:block>line26</fo:block>
- <fo:block>line27</fo:block>
- <fo:block>line28</fo:block>
- <fo:block>line29</fo:block>
- <fo:block>line30</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="1" xpath="count(//pageViewport)"/>
-
- <eval expected="1" xpath="count(//regionBody/mainReference/span)"/>
- <!-- room for 20 lines -->
- <eval expected="20" xpath="//regionBody/mainReference/span/@bpd div 14400"/>
-
- <!-- 2 columns -->
- <eval expected="2" xpath="count(//regionBody/mainReference/span/flow)"/>
- <!-- 20 lines in first column -->
- <eval expected="20" xpath="count(//regionBody/mainReference/span/flow[1]/block)"/>
- <eval expected="20" xpath="//regionBody/mainReference/span/flow[1]/@bpd div 14400"/>
- <!-- 10 lines in second column -->
- <eval expected="10" xpath="count(//regionBody/mainReference/span/flow[2]/block)"/>
- <eval expected="10" xpath="//regionBody/mainReference/span/flow[2]/@bpd div 14400"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/region-body_column-count_2.xml b/test/layoutengine/testcases/region-body_column-count_2.xml
deleted file mode 100644
index 3f76f0ed7..000000000
--- a/test/layoutengine/testcases/region-body_column-count_2.xml
+++ /dev/null
@@ -1,98 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks multi-column documents. Normal multi-column document breaking over more than one page.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="360pt" page-height="2in">
- <fo:region-body column-count="2" column-gap="20pt"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>line1</fo:block>
- <fo:block>line2</fo:block>
- <fo:block background-color="orange">line3</fo:block>
- <fo:block>line4</fo:block>
- <fo:block>line5</fo:block>
- <fo:block>line6</fo:block>
- <fo:block>line7</fo:block>
- <fo:block>line8</fo:block>
- <fo:block>line9</fo:block>
- <fo:block>line10</fo:block>
- <fo:block>line11</fo:block>
- <fo:block>line12</fo:block>
- <fo:block>line13</fo:block>
- <fo:block>line14</fo:block>
- <fo:block>line15</fo:block>
- <fo:block>line16</fo:block>
- <fo:block>line17</fo:block>
- <fo:block>line18</fo:block>
- <fo:block>line19</fo:block>
- <fo:block>line20</fo:block>
- <fo:block>line21</fo:block>
- <fo:block>line22</fo:block>
- <fo:block>line23</fo:block>
- <fo:block>line24</fo:block>
- <fo:block>line25</fo:block>
- <fo:block>line26</fo:block>
- <fo:block>line27</fo:block>
- <fo:block>line28</fo:block>
- <fo:block>line29</fo:block>
- <fo:block>line30</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="2" xpath="count(//pageViewport)"/>
-
- <!-- *** page 1 *** -->
- <eval expected="1" xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span)"/>
- <!-- room for 10 lines -->
- <eval expected="10" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/@bpd div 14400"/>
-
- <!-- 2 columns -->
- <eval expected="2" xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow)"/>
- <!-- 10 lines in first column -->
- <eval expected="10" xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow[1]/block)"/>
- <eval expected="10" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow[1]/@bpd div 14400"/>
- <!-- 10 lines in second column -->
- <eval expected="10" xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow[2]/block)"/>
- <eval expected="10" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow[2]/@bpd div 14400"/>
-
- <!-- *** page 2 *** -->
- <eval expected="1" xpath="count(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span)"/>
- <!-- room for 10 lines -->
- <eval expected="10" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/@bpd div 14400"/>
-
- <!-- 2 columns -->
- <eval expected="2" xpath="count(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow)"/>
- <!-- 10 lines in first column -->
- <eval expected="10" xpath="count(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow[1]/block)"/>
- <eval expected="10" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow[1]/@bpd div 14400"/>
- <!-- 0 lines in second column -->
- <eval expected="0" xpath="count(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow[2]/block)"/>
- <eval expected="0" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow[2]/@bpd div 14400"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/region-body_column-count_bug36356.xml b/test/layoutengine/testcases/region-body_column-count_bug36356.xml
deleted file mode 100644
index 917a6eb0b..000000000
--- a/test/layoutengine/testcases/region-body_column-count_bug36356.xml
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- 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.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="320pt" page-height="4in">
- <fo:region-body column-count="3" column-gap="10pt"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block margin="5pt">
- <fo:block>line1</fo:block>
- <fo:block>line2</fo:block>
- <fo:block>line3</fo:block>
- <fo:block>line4</fo:block>
- <fo:block>line5</fo:block>
- <fo:block>line6</fo:block>
- </fo:block>
- <fo:block margin="5pt" span="all">
- <fo:block>This line is spanned over all columns.</fo:block>
- </fo:block>
- <fo:block margin="5pt">
- <fo:block>line1</fo:block>
- <fo:block>line2</fo:block>
- <fo:block>line3</fo:block>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- 33800 = 5000 + 2 * 14400 -->
- <eval expected="33800" xpath="//mainReference/span[1]/@bpd"/>
- <eval expected="3" xpath="//mainReference/span[1]/flow"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/region-body_column-count_footnote.xml b/test/layoutengine/testcases/region-body_column-count_footnote.xml
deleted file mode 100644
index 57edcd97e..000000000
--- a/test/layoutengine/testcases/region-body_column-count_footnote.xml
+++ /dev/null
@@ -1,67 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks multi-column documents. This test: footnotes in multi-column documents (no spans).
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="360pt" page-height="2in">
- <fo:region-body column-count="2" column-gap="20pt"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-footnote-separator">
- <fo:block border-top="solid 5pt red"/>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:block>line1</fo:block>
- <fo:block>line2</fo:block>
- <fo:block>line3</fo:block>
- <fo:block>line4</fo:block>
- <fo:block>line5<fo:footnote><fo:inline>x</fo:inline><fo:footnote-body><fo:block background-color="orange">A footnote</fo:block></fo:footnote-body></fo:footnote></fo:block>
- <fo:block>line6</fo:block>
- <fo:block>line7</fo:block>
- <fo:block>line8</fo:block>
- <fo:block>line9</fo:block>
- <fo:block>line10</fo:block>
- <fo:block>line11<fo:footnote><fo:inline>x</fo:inline><fo:footnote-body><fo:block background-color="orange">Another footnote on the second column</fo:block></fo:footnote-body></fo:footnote></fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="1" xpath="count(//pageViewport)"/>
-
- <eval expected="1" xpath="count(//regionBody/mainReference/span)"/>
- <!-- room for 7 lines -->
- <eval expected="7" xpath="//regionBody/mainReference/span/@bpd div 14400"/>
-
- <!-- 2 columns -->
- <eval expected="2" xpath="count(//regionBody/mainReference/span/flow)"/>
- <!-- 7 lines in first column -->
- <eval expected="7" xpath="count(//regionBody/mainReference/span/flow[1]/block)"/>
- <eval expected="7" xpath="//regionBody/mainReference/span/flow[1]/@bpd div 14400"/>
- <!-- 4 lines in second column -->
- <eval expected="4" xpath="count(//regionBody/mainReference/span/flow[2]/block)"/>
- <eval expected="4" xpath="//regionBody/mainReference/span/flow[2]/@bpd div 14400"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/region-body_column-count_span_1.xml b/test/layoutengine/testcases/region-body_column-count_span_1.xml
deleted file mode 100644
index 5ad931f41..000000000
--- a/test/layoutengine/testcases/region-body_column-count_span_1.xml
+++ /dev/null
@@ -1,112 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks multi-column documents.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="320pt" page-height="4in">
- <fo:region-body column-count="3" column-gap="10pt"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- <fo:block>line1</fo:block>
- <fo:block>line2</fo:block>
- <fo:block>line3</fo:block>
- <fo:block>line4</fo:block>
- <fo:block>line5</fo:block>
- <fo:block>line6</fo:block>
- <fo:block>line7</fo:block>
- <fo:block>line8</fo:block>
- <fo:block>line9</fo:block>
- <fo:block>line10</fo:block>
- <fo:block>line11</fo:block>
- <fo:block>line12</fo:block>
- <fo:block>line13</fo:block>
- </fo:block>
- <fo:block span="all">
- <fo:block>This line is spanned over all columns.</fo:block>
- <fo:block>This line is spanned over all columns.</fo:block>
- <fo:block>This line is spanned over all columns.</fo:block>
- <fo:block>This line is spanned over all columns.</fo:block>
- </fo:block>
- <fo:block>
- <fo:block>line1</fo:block>
- <fo:block>line2</fo:block>
- <fo:block>line3</fo:block>
- <fo:block>line4</fo:block>
- <fo:block>line5</fo:block>
- <fo:block>line6</fo:block>
- <fo:block>line7</fo:block>
- <fo:block>line8</fo:block>
- <fo:block>line9</fo:block>
- <fo:block>line10</fo:block>
- <fo:block>line11</fo:block>
- <fo:block>line12</fo:block>
- <fo:block>line13</fo:block>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="1" xpath="count(//pageViewport)"/>
-
- <!-- *** page 1 *** -->
- <eval expected="3" xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span)"/>
-
- <!-- column balancing should produce 5 lines (ceil(13 / 3)) -->
- <eval expected="5" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span[1]/@bpd div 14400"/>
- <!-- 3 columns in span 1 -->
- <eval expected="3" xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span[1]/flow)"/>
- <!-- 5 lines in first column -->
- <eval expected="5" xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span[1]/flow[1]/block/block)"/>
- <eval expected="5" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span[1]/flow[1]/@bpd div 14400"/>
- <!-- 4 lines in second column -->
- <eval expected="4" xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span[1]/flow[2]/block/block)"/>
- <eval expected="4" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span[1]/flow[2]/@bpd div 14400"/>
- <!-- 4 lines in third column -->
- <eval expected="4" xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span[1]/flow[3]/block/block)"/>
- <eval expected="4" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span[1]/flow[3]/@bpd div 14400"/>
-
- <!-- second span should produce 4 lines -->
- <eval expected="4" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span[2]/@bpd div 14400"/>
- <!-- 1 column in span 2 -->
- <eval expected="1" xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span[2]/flow)"/>
- <eval expected="4" xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span[2]/flow[1]/block/block)"/>
- <eval expected="4" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span[2]/flow[1]/@bpd div 14400"/>
-
- <!-- no column balancing in the last span -->
- <eval expected="11" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span[3]/@bpd div 14400"/>
- <!-- 3 columns in span 3 -->
- <eval expected="3" xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span[3]/flow)"/>
- <!-- 11 lines in first column -->
- <eval expected="11" xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span[3]/flow[1]/block/block)"/>
- <eval expected="11" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span[3]/flow[1]/@bpd div 14400"/>
- <!-- 2 lines in second column (no column balancing here)-->
- <eval expected="2" xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span[3]/flow[2]/block/block)"/>
- <eval expected="2" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span[3]/flow[2]/@bpd div 14400"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/region-body_column-count_span_2.xml b/test/layoutengine/testcases/region-body_column-count_span_2.xml
deleted file mode 100644
index 06b372125..000000000
--- a/test/layoutengine/testcases/region-body_column-count_span_2.xml
+++ /dev/null
@@ -1,103 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- 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).
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="320pt" page-height="4in" margin="20pt">
- <fo:region-body column-count="3" column-gap="10pt"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- <fo:block>line1</fo:block>
- <fo:block>line2</fo:block>
- <fo:block>line3</fo:block>
- <fo:block>line4</fo:block>
- <fo:block>line5</fo:block>
- <fo:block>line6</fo:block>
- <fo:block>line7</fo:block>
- <fo:block>line8</fo:block>
- <fo:block>line9</fo:block>
- <fo:block>line10</fo:block>
- <fo:block>line11</fo:block>
- <fo:block>line12</fo:block>
- <fo:block>line13</fo:block>
- </fo:block>
- <fo:block span="all">
- <fo:block>This line is spanned over all columns.</fo:block>
- <fo:block>This line is spanned over all columns.</fo:block>
- <fo:block>This line is spanned over all columns.</fo:block>
- <fo:block>This line is spanned over all columns.</fo:block>
- <fo:block>This line is spanned over all columns.</fo:block>
- <fo:block>This line is spanned over all columns.</fo:block>
- <fo:block>This line is spanned over all columns.</fo:block>
- <fo:block>This line is spanned over all columns.</fo:block>
- <fo:block>This line is spanned over all columns.</fo:block>
- <fo:block>This line is spanned over all columns.</fo:block>
- </fo:block>
- <fo:block> <!-- this is the interesting block for this test -->
- <fo:block>line1</fo:block>
- <fo:block>line2</fo:block>
- <fo:block>line3</fo:block>
- <fo:block>line4</fo:block>
- <fo:block>line5</fo:block>
- <fo:block>line6</fo:block>
- <fo:block>line7</fo:block>
- <fo:block>line8</fo:block>
- <fo:block>line9</fo:block>
- <fo:block>line10</fo:block>
- <fo:block>line11</fo:block>
- <fo:block>line12</fo:block>
- <fo:block>line13</fo:block>
- <fo:block>line14</fo:block>
- <fo:block>line15</fo:block>
- <fo:block>line16</fo:block>
- <fo:block>line17</fo:block>
- <fo:block>line18</fo:block>
- <fo:block>line19</fo:block>
- <fo:block>line20</fo:block>
- <fo:block>line21</fo:block>
- <fo:block>line22</fo:block>
- <fo:block>line23</fo:block>
- <fo:block>line24</fo:block>
- <fo:block>line25</fo:block>
- </fo:block>
- <fo:block span="all"/>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="2" xpath="count(//pageViewport)"/>
-
- <eval expected="2" xpath="count(//pageViewport[@nr=1]//lineArea[.='line6'])"/>
- <!-- the bug cause the second "line7" block to be painted on page 1 instead of 2 -->
- <eval expected="1" xpath="count(//pageViewport[@nr=1]//lineArea[.='line7'])"/>
- <eval expected="1" xpath="count(//pageViewport[@nr=2]//lineArea[.='line7'])"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/region_side_space-resolution.xml b/test/layoutengine/testcases/region_side_space-resolution.xml
deleted file mode 100644
index 912fa6e16..000000000
--- a/test/layoutengine/testcases/region_side_space-resolution.xml
+++ /dev/null
@@ -1,63 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks if space resolution works in side regions.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body margin-top="50pt"/>
- <fo:region-before extent="50pt" background-color="yellow"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block space-before="1em" space-after="1em">line 1</fo:block>
- <fo:block space-before="1em" space-after="1em">line 2</fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:block>region-body</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="static-content" id="xsl-region-before">
- <box w="0"/> <!-- SpaceHandlingPosition -->
- <box w="14400"/>
-
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="12000"/>
-
- <box w="14400"/>
-
- <box w="0"/> <!-- SpaceHandlingPosition -->
- <skip>3</skip>
- </element-list>
-
- <true xpath="not(boolean(//regionBefore/block[1]/@space-before))"/>
- <true xpath="not(boolean(//regionBefore/block[1]/@space-after))"/>
- <eval expected="12000" xpath="//regionBefore/block[2]/@space-before"/>
- <true xpath="not(boolean(//regionBefore/block[2]/@space-after))"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/simple-page-master_margin_1.xml b/test/layoutengine/testcases/simple-page-master_margin_1.xml
deleted file mode 100644
index 2e3fe49fe..000000000
--- a/test/layoutengine/testcases/simple-page-master_margin_1.xml
+++ /dev/null
@@ -1,106 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks page-masters (margins part 1).
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="master1" page-width="5in" page-height="5in" margin-left="10pt" margin-top="20pt" margin-right="30pt" margin-bottom="40pt">
- <fo:region-body background-color="lightgreen"/>
- </fo:simple-page-master>
- <fo:simple-page-master master-name="master2" page-width="5in" page-height="5in" margin="20pt">
- <fo:region-body background-color="lightgreen"/>
- </fo:simple-page-master>
- <fo:simple-page-master master-name="master3" page-width="5in" page-height="5in" margin="20pt 10pt">
- <fo:region-body background-color="lightgreen"/>
- </fo:simple-page-master>
- <fo:simple-page-master master-name="master4" page-width="5in" page-height="5in" margin="20pt 10pt 30pt">
- <fo:region-body background-color="lightgreen"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="master1" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>testing margins</fo:block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="master2" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>testing margin shorthands (with 1 value)</fo:block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="master3" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>testing margin shorthands (with 2 values)</fo:block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="master4" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>testing margin shorthands (with 3 values)</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <true xpath="//pageViewport[@nr=1]/page/regionViewport/@is-viewport-area"/>
- <true xpath="//pageViewport[@nr=1]/page/regionViewport//regionBody/@is-reference-area"/>
- <true xpath="//pageViewport[@nr=1]/page/regionViewport//regionBody/mainReference/@is-reference-area"/>
- <true xpath="//pageViewport[@nr=1]/page/regionViewport//regionBody/mainReference/span/@is-reference-area"/>
- <true xpath="//pageViewport[@nr=1]/page/regionViewport//regionBody/mainReference/span/flow/@is-reference-area"/>
-
- <eval expected="0 0 360000 360000" xpath="//pageViewport[@nr=1]/@bounds"/>
- <eval expected="10000 20000 320000 300000" xpath="//pageViewport[@nr=1]/page/regionViewport/@rect"/>
- <eval expected="320000" xpath="//pageViewport[@nr=1]/page/regionViewport/@ipda"/>
- <eval expected="320000" xpath="//pageViewport[@nr=1]/page/regionViewport/@ipd"/>
- <eval expected="300000" xpath="//pageViewport[@nr=1]/page/regionViewport/@bpda"/>
- <eval expected="300000" xpath="//pageViewport[@nr=1]/page/regionViewport/@bpd"/>
- <eval expected="320000" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block/@ipda"/>
- <eval expected="320000" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block/@ipd"/>
-
- <eval expected="0 0 360000 360000" xpath="//pageViewport[@nr=2]/@bounds"/>
- <eval expected="20000 20000 320000 320000" xpath="//pageViewport[@nr=2]/page/regionViewport/@rect"/>
- <eval expected="320000" xpath="//pageViewport[@nr=2]/page/regionViewport/@ipda"/>
- <eval expected="320000" xpath="//pageViewport[@nr=2]/page/regionViewport/@ipd"/>
- <eval expected="320000" xpath="//pageViewport[@nr=2]/page/regionViewport/@bpda"/>
- <eval expected="320000" xpath="//pageViewport[@nr=2]/page/regionViewport/@bpd"/>
- <eval expected="320000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block/@ipda"/>
- <eval expected="320000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block/@ipd"/>
-
- <eval expected="0 0 360000 360000" xpath="//pageViewport[@nr=3]/@bounds"/>
- <eval expected="10000 20000 340000 320000" xpath="//pageViewport[@nr=3]/page/regionViewport/@rect"/>
- <eval expected="340000" xpath="//pageViewport[@nr=3]/page/regionViewport/@ipda"/>
- <eval expected="340000" xpath="//pageViewport[@nr=3]/page/regionViewport/@ipd"/>
- <eval expected="320000" xpath="//pageViewport[@nr=3]/page/regionViewport/@bpda"/>
- <eval expected="320000" xpath="//pageViewport[@nr=3]/page/regionViewport/@bpd"/>
- <eval expected="340000" xpath="//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block/@ipda"/>
- <eval expected="340000" xpath="//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block/@ipd"/>
-
- <eval expected="0 0 360000 360000" xpath="//pageViewport[@nr=4]/@bounds"/>
- <eval expected="10000 20000 340000 310000" xpath="//pageViewport[@nr=4]/page/regionViewport/@rect"/>
- <eval expected="340000" xpath="//pageViewport[@nr=4]/page/regionViewport/@ipda"/>
- <eval expected="340000" xpath="//pageViewport[@nr=4]/page/regionViewport/@ipd"/>
- <eval expected="310000" xpath="//pageViewport[@nr=4]/page/regionViewport/@bpda"/>
- <eval expected="310000" xpath="//pageViewport[@nr=4]/page/regionViewport/@bpd"/>
- <eval expected="340000" xpath="//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block/@ipda"/>
- <eval expected="340000" xpath="//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block/@ipd"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/simple-page-master_margin_2.xml b/test/layoutengine/testcases/simple-page-master_margin_2.xml
deleted file mode 100644
index 8b621ce84..000000000
--- a/test/layoutengine/testcases/simple-page-master_margin_2.xml
+++ /dev/null
@@ -1,100 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks page-masters (margins part 2).
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="master1" page-width="5in" page-height="5in">
- <fo:region-body margin-left="10pt" margin-top="20pt" margin-right="30pt" margin-bottom="40pt" background-color="lightgreen"/>
- </fo:simple-page-master>
- <fo:simple-page-master master-name="master2" page-width="5in" page-height="5in">
- <fo:region-body margin="20pt" background-color="lightgreen"/>
- </fo:simple-page-master>
- <fo:simple-page-master master-name="master3" page-width="5in" page-height="5in">
- <fo:region-body margin="20pt 10pt" background-color="lightgreen"/>
- </fo:simple-page-master>
- <fo:simple-page-master master-name="master4" page-width="5in" page-height="5in">
- <fo:region-body margin="20pt 10pt 30pt" background-color="lightgreen"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="master1" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>testing margins on region-body</fo:block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="master2" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>testing margin shorthands on region-body (with 1 value)</fo:block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="master3" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>testing margin shorthands on region-body (with 2 values)</fo:block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="master4" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>testing margin shorthands on region-body (with 3 values)</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="0 0 360000 360000" xpath="//pageViewport[@nr=1]/@bounds"/>
- <eval expected="10000 20000 320000 300000" xpath="//pageViewport[@nr=1]/page/regionViewport/@rect"/>
- <eval expected="320000" xpath="//pageViewport[@nr=1]/page/regionViewport/@ipda"/>
- <eval expected="320000" xpath="//pageViewport[@nr=1]/page/regionViewport/@ipd"/>
- <eval expected="300000" xpath="//pageViewport[@nr=1]/page/regionViewport/@bpda"/>
- <eval expected="300000" xpath="//pageViewport[@nr=1]/page/regionViewport/@bpd"/>
- <eval expected="320000" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block/@ipda"/>
- <eval expected="320000" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block/@ipd"/>
-
- <eval expected="0 0 360000 360000" xpath="//pageViewport[@nr=2]/@bounds"/>
- <eval expected="20000 20000 320000 320000" xpath="//pageViewport[@nr=2]/page/regionViewport/@rect"/>
- <eval expected="320000" xpath="//pageViewport[@nr=2]/page/regionViewport/@ipda"/>
- <eval expected="320000" xpath="//pageViewport[@nr=2]/page/regionViewport/@ipd"/>
- <eval expected="320000" xpath="//pageViewport[@nr=2]/page/regionViewport/@bpda"/>
- <eval expected="320000" xpath="//pageViewport[@nr=2]/page/regionViewport/@bpd"/>
- <eval expected="320000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block/@ipda"/>
- <eval expected="320000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block/@ipd"/>
-
- <eval expected="0 0 360000 360000" xpath="//pageViewport[@nr=3]/@bounds"/>
- <eval expected="10000 20000 340000 320000" xpath="//pageViewport[@nr=3]/page/regionViewport/@rect"/>
- <eval expected="340000" xpath="//pageViewport[@nr=3]/page/regionViewport/@ipda"/>
- <eval expected="340000" xpath="//pageViewport[@nr=3]/page/regionViewport/@ipd"/>
- <eval expected="320000" xpath="//pageViewport[@nr=3]/page/regionViewport/@bpda"/>
- <eval expected="320000" xpath="//pageViewport[@nr=3]/page/regionViewport/@bpd"/>
- <eval expected="340000" xpath="//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block/@ipda"/>
- <eval expected="340000" xpath="//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block/@ipd"/>
-
- <eval expected="0 0 360000 360000" xpath="//pageViewport[@nr=4]/@bounds"/>
- <eval expected="10000 20000 340000 310000" xpath="//pageViewport[@nr=4]/page/regionViewport/@rect"/>
- <eval expected="340000" xpath="//pageViewport[@nr=4]/page/regionViewport/@ipda"/>
- <eval expected="340000" xpath="//pageViewport[@nr=4]/page/regionViewport/@ipd"/>
- <eval expected="310000" xpath="//pageViewport[@nr=4]/page/regionViewport/@bpda"/>
- <eval expected="310000" xpath="//pageViewport[@nr=4]/page/regionViewport/@bpd"/>
- <eval expected="340000" xpath="//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block/@ipda"/>
- <eval expected="340000" xpath="//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block/@ipd"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/simple-page-master_margin_region-body_margin_relative.xml b/test/layoutengine/testcases/simple-page-master_margin_region-body_margin_relative.xml
deleted file mode 100644
index b1a734133..000000000
--- a/test/layoutengine/testcases/simple-page-master_margin_region-body_margin_relative.xml
+++ /dev/null
@@ -1,106 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks relative margin on region (region-body).
- </p>
- </info>
- <variables>
- <img>../../resources/images/bgimg300dpi.jpg</img>
- </variables>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="3in" page-height="5in" margin="5%">
- <fo:region-body margin="5%" background-color="yellow" />
- <fo:region-before extent="5%" background-color="blue" precedence="true" />
- <fo:region-after extent="5%" background-color="green" precedence="true" />
- <fo:region-start extent="5%" background-color="red" />
- <fo:region-end extent="5%" background-color="orange" />
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block>
- r e g i o n b e f o r e
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block>
- r e g i o n a f t e r
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-start">
- <fo:block>
- r e g i o n s t a r t
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-end">
- <fo:block>
- r e g i o n e n d
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- 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.
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- region before -->
- <eval expected="color=#0000ff" xpath="//page/regionViewport[1]/@background"/>
- <eval expected="194400" xpath="//page/regionViewport[1]/@ipd"/>
- <eval expected="18000" xpath="//page/regionViewport[1]/@bpd"/>
- <eval expected="10800 18000 194400 18000" xpath="//page/regionViewport[1]/@rect"/>
- <eval expected="194400" xpath="//page/regionViewport[1]/regionBefore/@ipd"/>
- <eval expected="18000" xpath="//page/regionViewport[1]/regionBefore/@bpd"/>
- <!-- region start -->
- <eval expected="color=#ff0000" xpath="//page/regionViewport[2]/@background"/>
- <eval expected="10800" xpath="//page/regionViewport[2]/@ipd"/>
- <eval expected="288000" xpath="//page/regionViewport[2]/@bpd"/>
- <eval expected="10800 36000 10800 288000" xpath="//page/regionViewport[2]/@rect"/>
- <eval expected="10800" xpath="//page/regionViewport[2]/regionStart/@ipd"/>
- <eval expected="288000" xpath="//page/regionViewport[2]/regionStart/@bpd"/>
- <!-- region end -->
- <eval expected="color=#ffa500" xpath="//page/regionViewport[3]/@background"/>
- <eval expected="10800" xpath="//page/regionViewport[3]/@ipd"/>
- <eval expected="288000" xpath="//page/regionViewport[3]/@bpd"/>
- <eval expected="194400 36000 10800 288000" xpath="//page/regionViewport[3]/@rect"/>
- <eval expected="10800" xpath="//page/regionViewport[3]/regionEnd/@ipd"/>
- <eval expected="288000" xpath="//page/regionViewport[3]/regionEnd/@bpd"/>
- <!-- region after -->
- <eval expected="color=#008000" xpath="//page/regionViewport[4]/@background"/>
- <eval expected="194400" xpath="//page/regionViewport[4]/@ipd"/>
- <eval expected="18000" xpath="//page/regionViewport[4]/@bpd"/>
- <eval expected="10800 324000 194400 18000" xpath="//page/regionViewport[4]/@rect"/>
- <eval expected="194400" xpath="//page/regionViewport[4]/regionAfter/@ipd"/>
- <eval expected="18000" xpath="//page/regionViewport[4]/regionAfter/@bpd"/>
- <!-- region body -->
- <eval expected="color=#ffff00" xpath="//page/regionViewport[5]/@background"/>
- <eval expected="172800" xpath="//page/regionViewport[5]/@ipd"/>
- <eval expected="288000" xpath="//page/regionViewport[5]/@bpd"/>
- <eval expected="21600 36000 172800 288000" xpath="//page/regionViewport[5]/@rect"/>
- <eval expected="172800" xpath="//page/regionViewport[5]/regionBody/@ipd"/>
- <eval expected="288000" xpath="//page/regionViewport[5]/regionBody/@bpd"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/simple-page-master_reference-orientation.xml b/test/layoutengine/testcases/simple-page-master_reference-orientation.xml
deleted file mode 100644
index e64e095fa..000000000
--- a/test/layoutengine/testcases/simple-page-master_reference-orientation.xml
+++ /dev/null
@@ -1,75 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks page-masters (reference orientation).
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="master1" page-width="5in" page-height="5in" margin-left="10pt" margin-top="20pt" margin-right="30pt" margin-bottom="40pt">
- <fo:region-body background-color="rgb(100%, 80%, 80%)" margin-top="20pt"/>
- <fo:region-before background-color="lightgray" extent="20pt"/>
- </fo:simple-page-master>
- <fo:simple-page-master master-name="master2" page-width="5in" page-height="5in" margin-left="10pt" margin-top="20pt" margin-right="30pt" margin-bottom="40pt" reference-orientation="90">
- <fo:region-body background-color="rgb(100%, 80%, 80%)" margin-top="35pt"/>
- <fo:region-before background-color="lightgray" extent="20pt" overflow="hidden"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="master1" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block>region-before</fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:block>testing margins</fo:block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="master2" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before" widows="0" orphans="0">
- <fo:block>region-before1</fo:block>
- <fo:block>region-before2</fo:block>
- <fo:block>region-before3</fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:block>testing margin with reference-orientation="90"</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="10000 20000 320000 20000" xpath="//pageViewport[@nr=1]/page/regionViewport[1]/@rect"/>
- <eval expected="320000" xpath="//pageViewport[@nr=1]/page/regionViewport[1]/regionBefore/@ipda"/>
- <eval expected="20000" xpath="//pageViewport[@nr=1]/page/regionViewport[1]/regionBefore/@bpda"/>
- <eval expected="320000" xpath="//pageViewport[@nr=1]/page/regionViewport[1]/regionBefore/block[1]/@ipda"/>
- <eval expected="14400" xpath="//pageViewport[@nr=1]/page/regionViewport[1]/regionBefore/block[1]/@bpda"/>
- <eval expected="10000 40000 320000 280000" xpath="//pageViewport[@nr=1]/page/regionViewport[2]/@rect"/>
- <eval expected="320000" xpath="//pageViewport[@nr=1]/page/regionViewport[2]/regionBody/@ipda"/>
- <eval expected="280000" xpath="//pageViewport[@nr=1]/page/regionViewport[2]/regionBody/@bpda"/>
-
- <eval expected="10000 20000 20000 300000" xpath="//pageViewport[@nr=2]/page/regionViewport[1]/@rect"/>
- <eval expected="300000" xpath="//pageViewport[@nr=2]/page/regionViewport[1]/regionBefore/@ipda"/>
- <eval expected="20000" xpath="//pageViewport[@nr=2]/page/regionViewport[1]/regionBefore/@bpda"/>
- <eval expected="300000" xpath="//pageViewport[@nr=2]/page/regionViewport[1]/regionBefore/block[1]/@ipda"/>
- <eval expected="14400" xpath="//pageViewport[@nr=2]/page/regionViewport[1]/regionBefore/block[1]/@bpda"/>
- <eval expected="45000 20000 285000 300000" xpath="//pageViewport[@nr=2]/page/regionViewport[2]/@rect"/>
- <eval expected="300000" xpath="//pageViewport[@nr=2]/page/regionViewport[2]/regionBody/@ipda"/>
- <eval expected="285000" xpath="//pageViewport[@nr=2]/page/regionViewport[2]/regionBody/@bpda"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/simple-page-master_reference-orientation_0_region-body_margin_relative.xml b/test/layoutengine/testcases/simple-page-master_reference-orientation_0_region-body_margin_relative.xml
deleted file mode 100644
index c68c3aa6a..000000000
--- a/test/layoutengine/testcases/simple-page-master_reference-orientation_0_region-body_margin_relative.xml
+++ /dev/null
@@ -1,111 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks relative margin on region (region-body).
- </p>
- </info>
- <variables>
- <img>../../resources/images/bgimg300dpi.jpg</img>
- </variables>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="3in" page-height="5in" margin="5%" reference-orientation="0">
- <fo:region-body margin-top="10%" margin-bottom="5%" margin-left="5%" margin-right="10%" background-color="yellow" />
- <fo:region-before extent="10%" background-color="blue" precedence="true" />
- <fo:region-after extent="5%" background-color="green" precedence="true" />
- <fo:region-start extent="5%" background-color="red" />
- <fo:region-end extent="10%" background-color="orange" />
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block>
- r e g i o n b e f o r e
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block>
- r e g i o n a f t e r
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-start">
- <fo:block>
- r e g i o n s t a r t
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-end">
- <fo:block>
- r e g i o n e n d
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- 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.
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- region before -->
- <eval expected="color=#0000ff" xpath="//page/regionViewport[1]/@background"/>
- <eval expected="194400" xpath="//page/regionViewport[1]/@ipd"/>
- <eval expected="36000" xpath="//page/regionViewport[1]/@bpd"/>
- <eval expected="10800 18000 194400 36000" xpath="//page/regionViewport[1]/@rect"/>
- <eval expected="194400" xpath="//page/regionViewport[1]/regionBefore/@ipd"/>
- <eval expected="36000" xpath="//page/regionViewport[1]/regionBefore/@bpd"/>
- <eval expected="[1.0 0.0 0.0 1.0 10800.0 18000.0]" xpath="//page/regionViewport[1]/regionBefore/@ctm"/>
- <!-- region start -->
- <eval expected="color=#ff0000" xpath="//page/regionViewport[2]/@background"/>
- <eval expected="10800" xpath="//page/regionViewport[2]/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[2]/@bpd"/>
- <eval expected="10800 54000 10800 270000" xpath="//page/regionViewport[2]/@rect"/>
- <eval expected="10800" xpath="//page/regionViewport[2]/regionStart/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[2]/regionStart/@bpd"/>
- <eval expected="[1.0 0.0 0.0 1.0 10800.0 54000.0]" xpath="//page/regionViewport[2]/regionStart/@ctm"/>
- <!-- region end -->
- <eval expected="color=#ffa500" xpath="//page/regionViewport[3]/@background"/>
- <eval expected="21600" xpath="//page/regionViewport[3]/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[3]/@bpd"/>
- <eval expected="183600 54000 21600 270000" xpath="//page/regionViewport[3]/@rect"/>
- <eval expected="21600" xpath="//page/regionViewport[3]/regionEnd/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[3]/regionEnd/@bpd"/>
- <eval expected="[1.0 0.0 0.0 1.0 183600.0 54000.0]" xpath="//page/regionViewport[3]/regionEnd/@ctm"/>
- <!-- region after -->
- <eval expected="color=#008000" xpath="//page/regionViewport[4]/@background"/>
- <eval expected="194400" xpath="//page/regionViewport[4]/@ipd"/>
- <eval expected="18000" xpath="//page/regionViewport[4]/@bpd"/>
- <eval expected="10800 324000 194400 18000" xpath="//page/regionViewport[4]/@rect"/>
- <eval expected="194400" xpath="//page/regionViewport[4]/regionAfter/@ipd"/>
- <eval expected="18000" xpath="//page/regionViewport[4]/regionAfter/@bpd"/>
- <eval expected="[1.0 0.0 0.0 1.0 10800.0 324000.0]" xpath="//page/regionViewport[4]/regionAfter/@ctm"/>
- <!-- region body -->
- <eval expected="color=#ffff00" xpath="//page/regionViewport[5]/@background"/>
- <eval expected="162000" xpath="//page/regionViewport[5]/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[5]/@bpd"/>
- <eval expected="21600 54000 162000 270000" xpath="//page/regionViewport[5]/@rect"/>
- <eval expected="162000" xpath="//page/regionViewport[5]/regionBody/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[5]/regionBody/@bpd"/>
- <eval expected="[1.0 0.0 0.0 1.0 21600.0 54000.0]" xpath="//page/regionViewport[5]/regionBody/@ctm"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/simple-page-master_reference-orientation_0_writing-mode_rl_region-body_margin_relative.xml b/test/layoutengine/testcases/simple-page-master_reference-orientation_0_writing-mode_rl_region-body_margin_relative.xml
deleted file mode 100644
index 3269fd9dd..000000000
--- a/test/layoutengine/testcases/simple-page-master_reference-orientation_0_writing-mode_rl_region-body_margin_relative.xml
+++ /dev/null
@@ -1,112 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks relative margin on region (region-body).
- </p>
- </info>
- <variables>
- <img>../../resources/images/bgimg300dpi.jpg</img>
- </variables>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="3in" page-height="5in" margin="5%" reference-orientation="0" writing-mode="rl">
- <fo:region-body margin-top="10%" margin-bottom="5%" margin-left="10%" margin-right="5%" background-color="yellow" />
- <fo:region-before extent="10%" background-color="blue" precedence="true" />
- <fo:region-after extent="5%" background-color="green" precedence="true" />
- <fo:region-start extent="5%" background-color="red" />
- <fo:region-end extent="10%" background-color="orange" />
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block>
- r e g i o n b e f o r e
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block>
- r e g i o n a f t e r
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-start">
- <fo:block>
- r e g i o n s t a r t
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-end">
- <fo:block>
- r e g i o n e n d
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- 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.
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- region before -->
- <eval expected="color=#0000ff" xpath="//page/regionViewport[1]/@background"/>
- <eval expected="194400" xpath="//page/regionViewport[1]/@ipd"/>
- <eval expected="36000" xpath="//page/regionViewport[1]/@bpd"/>
- <eval expected="10800 18000 194400 36000" xpath="//page/regionViewport[1]/@rect"/>
- <eval expected="194400" xpath="//page/regionViewport[1]/regionBefore/@ipd"/>
- <eval expected="36000" xpath="//page/regionViewport[1]/regionBefore/@bpd"/>
- <eval expected="[-1.0 0.0 0.0 1.0 205200.0 18000.0]" xpath="//page/regionViewport[1]/regionBefore/@ctm"/>
- <!-- region start -->
- <eval expected="color=#ff0000" xpath="//page/regionViewport[2]/@background"/>
- <eval expected="10800" xpath="//page/regionViewport[2]/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[2]/@bpd"/>
- <eval expected="194400 54000 10800 270000" xpath="//page/regionViewport[2]/@rect"/>
- <eval expected="10800" xpath="//page/regionViewport[2]/regionStart/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[2]/regionStart/@bpd"/>
- <eval expected="[-1.0 0.0 0.0 1.0 205200.0 54000.0]" xpath="//page/regionViewport[2]/regionStart/@ctm"/>
- <!-- region end -->
- <eval expected="color=#ffa500" xpath="//page/regionViewport[3]/@background"/>
- <eval expected="21600" xpath="//page/regionViewport[3]/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[3]/@bpd"/>
- <eval expected="10800 54000 21600 270000" xpath="//page/regionViewport[3]/@rect"/>
- <eval expected="21600" xpath="//page/regionViewport[3]/regionEnd/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[3]/regionEnd/@bpd"/>
- <eval expected="[-1.0 0.0 0.0 1.0 32400.0 54000.0]" xpath="//page/regionViewport[3]/regionEnd/@ctm"/>
- <!-- region after -->
- <eval expected="color=#008000" xpath="//page/regionViewport[4]/@background"/>
- <eval expected="194400" xpath="//page/regionViewport[4]/@ipd"/>
- <eval expected="18000" xpath="//page/regionViewport[4]/@bpd"/>
- <eval expected="10800 324000 194400 18000" xpath="//page/regionViewport[4]/@rect"/>
- <eval expected="194400" xpath="//page/regionViewport[4]/regionAfter/@ipd"/>
- <eval expected="18000" xpath="//page/regionViewport[4]/regionAfter/@bpd"/>
- <eval expected="[-1.0 0.0 0.0 1.0 205200.0 324000.0]" xpath="//page/regionViewport[4]/regionAfter/@ctm"/>
- <!-- region body -->
- <eval expected="color=#ffff00" xpath="//page/regionViewport[5]/@background"/>
- <eval expected="162000" xpath="//page/regionViewport[5]/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[5]/@bpd"/>
- <eval expected="32400 54000 162000 270000" xpath="//page/regionViewport[5]/@rect"/>
- <eval expected="162000" xpath="//page/regionViewport[5]/regionBody/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[5]/regionBody/@bpd"/>
- <eval expected="[-1.0 0.0 0.0 1.0 194400.0 54000.0]" xpath="//page/regionViewport[5]/regionBody/@ctm"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/simple-page-master_reference-orientation_180_region-body_margin_relative.xml b/test/layoutengine/testcases/simple-page-master_reference-orientation_180_region-body_margin_relative.xml
deleted file mode 100644
index 363edc6ed..000000000
--- a/test/layoutengine/testcases/simple-page-master_reference-orientation_180_region-body_margin_relative.xml
+++ /dev/null
@@ -1,112 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks relative margin on region (region-body).
- </p>
- </info>
- <variables>
- <img>../../resources/images/bgimg300dpi.jpg</img>
- </variables>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="3in" page-height="5in" margin="5%" reference-orientation="180">
- <fo:region-body margin-top="10%" margin-bottom="5%" margin-left="5%" margin-right="10%" background-color="yellow" />
- <fo:region-before extent="10%" background-color="blue" precedence="true" />
- <fo:region-after extent="5%" background-color="green" precedence="true" />
- <fo:region-start extent="5%" background-color="red" />
- <fo:region-end extent="10%" background-color="orange" />
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block>
- r e g i o n b e f o r e
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block>
- r e g i o n a f t e r
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-start">
- <fo:block>
- r e g i o n s t a r t
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-end">
- <fo:block>
- r e g i o n e n d
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- 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.
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- region before -->
- <eval expected="color=#0000ff" xpath="//page/regionViewport[1]/@background"/>
- <eval expected="194400" xpath="//page/regionViewport[1]/@ipd"/>
- <eval expected="36000" xpath="//page/regionViewport[1]/@bpd"/>
- <eval expected="10800 306000 194400 36000" xpath="//page/regionViewport[1]/@rect"/>
- <eval expected="194400" xpath="//page/regionViewport[1]/regionBefore/@ipd"/>
- <eval expected="36000" xpath="//page/regionViewport[1]/regionBefore/@bpd"/>
- <eval expected="[-1.0 -0.0 0.0 -1.0 205200.0 342000.0]" xpath="//page/regionViewport[1]/regionBefore/@ctm"/>
- <!-- region start -->
- <eval expected="color=#ff0000" xpath="//page/regionViewport[2]/@background"/>
- <eval expected="10800" xpath="//page/regionViewport[2]/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[2]/@bpd"/>
- <eval expected="194400 36000 10800 270000" xpath="//page/regionViewport[2]/@rect"/>
- <eval expected="10800" xpath="//page/regionViewport[2]/regionStart/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[2]/regionStart/@bpd"/>
- <eval expected="[-1.0 -0.0 0.0 -1.0 205200.0 306000.0]" xpath="//page/regionViewport[2]/regionStart/@ctm"/>
- <!-- region end -->
- <eval expected="color=#ffa500" xpath="//page/regionViewport[3]/@background"/>
- <eval expected="21600" xpath="//page/regionViewport[3]/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[3]/@bpd"/>
- <eval expected="10800 36000 21600 270000" xpath="//page/regionViewport[3]/@rect"/>
- <eval expected="21600" xpath="//page/regionViewport[3]/regionEnd/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[3]/regionEnd/@bpd"/>
- <eval expected="[-1.0 -0.0 0.0 -1.0 32400.0 306000.0]" xpath="//page/regionViewport[3]/regionEnd/@ctm"/>
- <!-- region after -->
- <eval expected="color=#008000" xpath="//page/regionViewport[4]/@background"/>
- <eval expected="194400" xpath="//page/regionViewport[4]/@ipd"/>
- <eval expected="18000" xpath="//page/regionViewport[4]/@bpd"/>
- <eval expected="10800 18000 194400 18000" xpath="//page/regionViewport[4]/@rect"/>
- <eval expected="194400" xpath="//page/regionViewport[4]/regionAfter/@ipd"/>
- <eval expected="18000" xpath="//page/regionViewport[4]/regionAfter/@bpd"/>
- <eval expected="[-1.0 -0.0 0.0 -1.0 205200.0 36000.0]" xpath="//page/regionViewport[4]/regionAfter/@ctm"/>
- <!-- region body -->
- <eval expected="color=#ffff00" xpath="//page/regionViewport[5]/@background"/>
- <eval expected="162000" xpath="//page/regionViewport[5]/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[5]/@bpd"/>
- <eval expected="32400 36000 162000 270000" xpath="//page/regionViewport[5]/@rect"/>
- <eval expected="162000" xpath="//page/regionViewport[5]/regionBody/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[5]/regionBody/@bpd"/>
- <eval expected="[-1.0 -0.0 0.0 -1.0 194400.0 306000.0]" xpath="//page/regionViewport[5]/regionBody/@ctm"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/simple-page-master_reference-orientation_180_writing-mode_rl_region-body_margin_relative.xml b/test/layoutengine/testcases/simple-page-master_reference-orientation_180_writing-mode_rl_region-body_margin_relative.xml
deleted file mode 100644
index f17c83ed1..000000000
--- a/test/layoutengine/testcases/simple-page-master_reference-orientation_180_writing-mode_rl_region-body_margin_relative.xml
+++ /dev/null
@@ -1,112 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks relative margin on region (region-body).
- </p>
- </info>
- <variables>
- <img>../../resources/images/bgimg300dpi.jpg</img>
- </variables>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="3in" page-height="5in" margin="5%" reference-orientation="180" writing-mode="rl">
- <fo:region-body margin-top="10%" margin-bottom="5%" margin-left="10%" margin-right="5%" background-color="yellow" />
- <fo:region-before extent="10%" background-color="blue" precedence="true" />
- <fo:region-after extent="5%" background-color="green" precedence="true" />
- <fo:region-start extent="5%" background-color="red" />
- <fo:region-end extent="10%" background-color="orange" />
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block>
- r e g i o n b e f o r e
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block>
- r e g i o n a f t e r
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-start">
- <fo:block>
- r e g i o n s t a r t
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-end">
- <fo:block>
- r e g i o n e n d
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- 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.
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- region before -->
- <eval expected="color=#0000ff" xpath="//page/regionViewport[1]/@background"/>
- <eval expected="194400" xpath="//page/regionViewport[1]/@ipd"/>
- <eval expected="36000" xpath="//page/regionViewport[1]/@bpd"/>
- <eval expected="10800 306000 194400 36000" xpath="//page/regionViewport[1]/@rect"/>
- <eval expected="194400" xpath="//page/regionViewport[1]/regionBefore/@ipd"/>
- <eval expected="36000" xpath="//page/regionViewport[1]/regionBefore/@bpd"/>
- <eval expected="[1.0 0.0 0.0 -1.0 10800.0 342000.0]" xpath="//page/regionViewport[1]/regionBefore/@ctm"/>
- <!-- region start -->
- <eval expected="color=#ff0000" xpath="//page/regionViewport[2]/@background"/>
- <eval expected="10800" xpath="//page/regionViewport[2]/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[2]/@bpd"/>
- <eval expected="10800 36000 10800 270000" xpath="//page/regionViewport[2]/@rect"/>
- <eval expected="10800" xpath="//page/regionViewport[2]/regionStart/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[2]/regionStart/@bpd"/>
- <eval expected="[1.0 0.0 0.0 -1.0 10800.0 306000.0]" xpath="//page/regionViewport[2]/regionStart/@ctm"/>
- <!-- region end -->
- <eval expected="color=#ffa500" xpath="//page/regionViewport[3]/@background"/>
- <eval expected="21600" xpath="//page/regionViewport[3]/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[3]/@bpd"/>
- <eval expected="183600 36000 21600 270000" xpath="//page/regionViewport[3]/@rect"/>
- <eval expected="21600" xpath="//page/regionViewport[3]/regionEnd/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[3]/regionEnd/@bpd"/>
- <eval expected="[1.0 0.0 0.0 -1.0 183600.0 306000.0]" xpath="//page/regionViewport[3]/regionEnd/@ctm"/>
- <!-- region after -->
- <eval expected="color=#008000" xpath="//page/regionViewport[4]/@background"/>
- <eval expected="194400" xpath="//page/regionViewport[4]/@ipd"/>
- <eval expected="18000" xpath="//page/regionViewport[4]/@bpd"/>
- <eval expected="10800 18000 194400 18000" xpath="//page/regionViewport[4]/@rect"/>
- <eval expected="194400" xpath="//page/regionViewport[4]/regionAfter/@ipd"/>
- <eval expected="18000" xpath="//page/regionViewport[4]/regionAfter/@bpd"/>
- <eval expected="[1.0 0.0 0.0 -1.0 10800.0 36000.0]" xpath="//page/regionViewport[4]/regionAfter/@ctm"/>
- <!-- region body -->
- <eval expected="color=#ffff00" xpath="//page/regionViewport[5]/@background"/>
- <eval expected="162000" xpath="//page/regionViewport[5]/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[5]/@bpd"/>
- <eval expected="21600 36000 162000 270000" xpath="//page/regionViewport[5]/@rect"/>
- <eval expected="162000" xpath="//page/regionViewport[5]/regionBody/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[5]/regionBody/@bpd"/>
- <eval expected="[1.0 0.0 0.0 -1.0 21600.0 306000.0]" xpath="//page/regionViewport[5]/regionBody/@ctm"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/simple-page-master_reference-orientation_270_region-body_margin_relative.xml b/test/layoutengine/testcases/simple-page-master_reference-orientation_270_region-body_margin_relative.xml
deleted file mode 100644
index e6145ac6c..000000000
--- a/test/layoutengine/testcases/simple-page-master_reference-orientation_270_region-body_margin_relative.xml
+++ /dev/null
@@ -1,112 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks relative margin on region (region-body).
- </p>
- </info>
- <variables>
- <img>../../resources/images/bgimg300dpi.jpg</img>
- </variables>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="3in" page-height="5in" margin="5%" reference-orientation="270">
- <fo:region-body margin-top="10%" margin-bottom="5%" margin-left="5%" margin-right="10%" background-color="yellow" />
- <fo:region-before extent="10%" background-color="blue" precedence="true" />
- <fo:region-after extent="5%" background-color="green" precedence="true" />
- <fo:region-start extent="5%" background-color="red" />
- <fo:region-end extent="10%" background-color="orange" />
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block>
- r e g i o n b e f o r e
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block>
- r e g i o n a f t e r
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-start">
- <fo:block>
- r e g i o n s t a r t
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-end">
- <fo:block>
- r e g i o n e n d
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- 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.
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- region before -->
- <eval expected="color=#0000ff" xpath="//page/regionViewport[1]/@background"/>
- <eval expected="324000" xpath="//page/regionViewport[1]/@ipd"/>
- <eval expected="21600" xpath="//page/regionViewport[1]/@bpd"/>
- <eval expected="183600 18000 21600 324000" xpath="//page/regionViewport[1]/@rect"/>
- <eval expected="324000" xpath="//page/regionViewport[1]/regionBefore/@ipd"/>
- <eval expected="21600" xpath="//page/regionViewport[1]/regionBefore/@bpd"/>
- <eval expected="[0.0 1.0 -1.0 0.0 205200.0 18000.0]" xpath="//page/regionViewport[1]/regionBefore/@ctm"/>
- <!-- region start -->
- <eval expected="color=#ff0000" xpath="//page/regionViewport[2]/@background"/>
- <eval expected="18000" xpath="//page/regionViewport[2]/@ipd"/>
- <eval expected="162000" xpath="//page/regionViewport[2]/@bpd"/>
- <eval expected="21600 18000 162000 18000" xpath="//page/regionViewport[2]/@rect"/>
- <eval expected="18000" xpath="//page/regionViewport[2]/regionStart/@ipd"/>
- <eval expected="162000" xpath="//page/regionViewport[2]/regionStart/@bpd"/>
- <eval expected="[0.0 1.0 -1.0 0.0 183600.0 18000.0]" xpath="//page/regionViewport[2]/regionStart/@ctm"/>
- <!-- region end -->
- <eval expected="color=#ffa500" xpath="//page/regionViewport[3]/@background"/>
- <eval expected="36000" xpath="//page/regionViewport[3]/@ipd"/>
- <eval expected="162000" xpath="//page/regionViewport[3]/@bpd"/>
- <eval expected="21600 306000 162000 36000" xpath="//page/regionViewport[3]/@rect"/>
- <eval expected="36000" xpath="//page/regionViewport[3]/regionEnd/@ipd"/>
- <eval expected="162000" xpath="//page/regionViewport[3]/regionEnd/@bpd"/>
- <eval expected="[0.0 1.0 -1.0 0.0 183600.0 306000.0]" xpath="//page/regionViewport[3]/regionEnd/@ctm"/>
- <!-- region after -->
- <eval expected="color=#008000" xpath="//page/regionViewport[4]/@background"/>
- <eval expected="324000" xpath="//page/regionViewport[4]/@ipd"/>
- <eval expected="10800" xpath="//page/regionViewport[4]/@bpd"/>
- <eval expected="10800 18000 10800 324000" xpath="//page/regionViewport[4]/@rect"/>
- <eval expected="324000" xpath="//page/regionViewport[4]/regionAfter/@ipd"/>
- <eval expected="10800" xpath="//page/regionViewport[4]/regionAfter/@bpd"/>
- <eval expected="[0.0 1.0 -1.0 0.0 21600.0 18000.0]" xpath="//page/regionViewport[4]/regionAfter/@ctm"/>
- <!-- region body -->
- <eval expected="color=#ffff00" xpath="//page/regionViewport[5]/@background"/>
- <eval expected="270000" xpath="//page/regionViewport[5]/@ipd"/>
- <eval expected="162000" xpath="//page/regionViewport[5]/@bpd"/>
- <eval expected="21600 36000 162000 270000" xpath="//page/regionViewport[5]/@rect"/>
- <eval expected="270000" xpath="//page/regionViewport[5]/regionBody/@ipd"/>
- <eval expected="162000" xpath="//page/regionViewport[5]/regionBody/@bpd"/>
- <eval expected="[0.0 1.0 -1.0 0.0 183600.0 36000.0]" xpath="//page/regionViewport[5]/regionBody/@ctm"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/simple-page-master_reference-orientation_270_writing-mode_rl_region-body_margin_relative.xml b/test/layoutengine/testcases/simple-page-master_reference-orientation_270_writing-mode_rl_region-body_margin_relative.xml
deleted file mode 100644
index b3808fd4f..000000000
--- a/test/layoutengine/testcases/simple-page-master_reference-orientation_270_writing-mode_rl_region-body_margin_relative.xml
+++ /dev/null
@@ -1,112 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks relative margin on region (region-body).
- </p>
- </info>
- <variables>
- <img>../../resources/images/bgimg300dpi.jpg</img>
- </variables>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="3in" page-height="5in" margin="5%" reference-orientation="270" writing-mode="rl">
- <fo:region-body margin-top="10%" margin-bottom="5%" margin-left="10%" margin-right="5%" background-color="yellow" />
- <fo:region-before extent="10%" background-color="blue" precedence="true" />
- <fo:region-after extent="5%" background-color="green" precedence="true" />
- <fo:region-start extent="5%" background-color="red" />
- <fo:region-end extent="10%" background-color="orange" />
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block>
- r e g i o n b e f o r e
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block>
- r e g i o n a f t e r
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-start">
- <fo:block>
- r e g i o n s t a r t
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-end">
- <fo:block>
- r e g i o n e n d
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- 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.
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- region before -->
- <eval expected="color=#0000ff" xpath="//page/regionViewport[1]/@background"/>
- <eval expected="324000" xpath="//page/regionViewport[1]/@ipd"/>
- <eval expected="21600" xpath="//page/regionViewport[1]/@bpd"/>
- <eval expected="183600 18000 21600 324000" xpath="//page/regionViewport[1]/@rect"/>
- <eval expected="324000" xpath="//page/regionViewport[1]/regionBefore/@ipd"/>
- <eval expected="21600" xpath="//page/regionViewport[1]/regionBefore/@bpd"/>
- <eval expected="[-0.0 -1.0 -1.0 0.0 205200.0 342000.0]" xpath="//page/regionViewport[1]/regionBefore/@ctm"/>
- <!-- region start -->
- <eval expected="color=#ff0000" xpath="//page/regionViewport[2]/@background"/>
- <eval expected="18000" xpath="//page/regionViewport[2]/@ipd"/>
- <eval expected="162000" xpath="//page/regionViewport[2]/@bpd"/>
- <eval expected="21600 324000 162000 18000" xpath="//page/regionViewport[2]/@rect"/>
- <eval expected="18000" xpath="//page/regionViewport[2]/regionStart/@ipd"/>
- <eval expected="162000" xpath="//page/regionViewport[2]/regionStart/@bpd"/>
- <eval expected="[-0.0 -1.0 -1.0 0.0 183600.0 342000.0]" xpath="//page/regionViewport[2]/regionStart/@ctm"/>
- <!-- region end -->
- <eval expected="color=#ffa500" xpath="//page/regionViewport[3]/@background"/>
- <eval expected="36000" xpath="//page/regionViewport[3]/@ipd"/>
- <eval expected="162000" xpath="//page/regionViewport[3]/@bpd"/>
- <eval expected="21600 18000 162000 36000" xpath="//page/regionViewport[3]/@rect"/>
- <eval expected="36000" xpath="//page/regionViewport[3]/regionEnd/@ipd"/>
- <eval expected="162000" xpath="//page/regionViewport[3]/regionEnd/@bpd"/>
- <eval expected="[-0.0 -1.0 -1.0 0.0 183600.0 54000.0]" xpath="//page/regionViewport[3]/regionEnd/@ctm"/>
- <!-- region after -->
- <eval expected="color=#008000" xpath="//page/regionViewport[4]/@background"/>
- <eval expected="324000" xpath="//page/regionViewport[4]/@ipd"/>
- <eval expected="10800" xpath="//page/regionViewport[4]/@bpd"/>
- <eval expected="10800 18000 10800 324000" xpath="//page/regionViewport[4]/@rect"/>
- <eval expected="324000" xpath="//page/regionViewport[4]/regionAfter/@ipd"/>
- <eval expected="10800" xpath="//page/regionViewport[4]/regionAfter/@bpd"/>
- <eval expected="[-0.0 -1.0 -1.0 0.0 21600.0 342000.0]" xpath="//page/regionViewport[4]/regionAfter/@ctm"/>
- <!-- region body -->
- <eval expected="color=#ffff00" xpath="//page/regionViewport[5]/@background"/>
- <eval expected="270000" xpath="//page/regionViewport[5]/@ipd"/>
- <eval expected="162000" xpath="//page/regionViewport[5]/@bpd"/>
- <eval expected="21600 54000 162000 270000" xpath="//page/regionViewport[5]/@rect"/>
- <eval expected="270000" xpath="//page/regionViewport[5]/regionBody/@ipd"/>
- <eval expected="162000" xpath="//page/regionViewport[5]/regionBody/@bpd"/>
- <eval expected="[-0.0 -1.0 -1.0 0.0 183600.0 324000.0]" xpath="//page/regionViewport[5]/regionBody/@ctm"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/simple-page-master_reference-orientation_90_region-body_margin_relative.xml b/test/layoutengine/testcases/simple-page-master_reference-orientation_90_region-body_margin_relative.xml
deleted file mode 100644
index 959484c4c..000000000
--- a/test/layoutengine/testcases/simple-page-master_reference-orientation_90_region-body_margin_relative.xml
+++ /dev/null
@@ -1,112 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks relative margin on region (region-body).
- </p>
- </info>
- <variables>
- <img>../../resources/images/bgimg300dpi.jpg</img>
- </variables>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="3in" page-height="5in" margin="5%" reference-orientation="90">
- <fo:region-body margin-top="10%" margin-bottom="5%" margin-left="5%" margin-right="10%" background-color="yellow" />
- <fo:region-before extent="10%" background-color="blue" precedence="true" />
- <fo:region-after extent="5%" background-color="green" precedence="true" />
- <fo:region-start extent="5%" background-color="red" />
- <fo:region-end extent="10%" background-color="orange" />
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block>
- r e g i o n b e f o r e
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block>
- r e g i o n a f t e r
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-start">
- <fo:block>
- r e g i o n s t a r t
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-end">
- <fo:block>
- r e g i o n e n d
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- 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.
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- region before -->
- <eval expected="color=#0000ff" xpath="//page/regionViewport[1]/@background"/>
- <eval expected="324000" xpath="//page/regionViewport[1]/@ipd"/>
- <eval expected="21600" xpath="//page/regionViewport[1]/@bpd"/>
- <eval expected="10800 18000 21600 324000" xpath="//page/regionViewport[1]/@rect"/>
- <eval expected="324000" xpath="//page/regionViewport[1]/regionBefore/@ipd"/>
- <eval expected="21600" xpath="//page/regionViewport[1]/regionBefore/@bpd"/>
- <eval expected="[0.0 -1.0 1.0 0.0 10800.0 342000.0]" xpath="//page/regionViewport[1]/regionBefore/@ctm"/>
- <!-- region start -->
- <eval expected="color=#ff0000" xpath="//page/regionViewport[2]/@background"/>
- <eval expected="18000" xpath="//page/regionViewport[2]/@ipd"/>
- <eval expected="162000" xpath="//page/regionViewport[2]/@bpd"/>
- <eval expected="32400 324000 162000 18000" xpath="//page/regionViewport[2]/@rect"/>
- <eval expected="18000" xpath="//page/regionViewport[2]/regionStart/@ipd"/>
- <eval expected="162000" xpath="//page/regionViewport[2]/regionStart/@bpd"/>
- <eval expected="[0.0 -1.0 1.0 0.0 32400.0 342000.0]" xpath="//page/regionViewport[2]/regionStart/@ctm"/>
- <!-- region end -->
- <eval expected="color=#ffa500" xpath="//page/regionViewport[3]/@background"/>
- <eval expected="36000" xpath="//page/regionViewport[3]/@ipd"/>
- <eval expected="162000" xpath="//page/regionViewport[3]/@bpd"/>
- <eval expected="32400 18000 162000 36000" xpath="//page/regionViewport[3]/@rect"/>
- <eval expected="36000" xpath="//page/regionViewport[3]/regionEnd/@ipd"/>
- <eval expected="162000" xpath="//page/regionViewport[3]/regionEnd/@bpd"/>
- <eval expected="[0.0 -1.0 1.0 0.0 32400.0 54000.0]" xpath="//page/regionViewport[3]/regionEnd/@ctm"/>
- <!-- region after -->
- <eval expected="color=#008000" xpath="//page/regionViewport[4]/@background"/>
- <eval expected="324000" xpath="//page/regionViewport[4]/@ipd"/>
- <eval expected="10800" xpath="//page/regionViewport[4]/@bpd"/>
- <eval expected="194400 18000 10800 324000" xpath="//page/regionViewport[4]/@rect"/>
- <eval expected="324000" xpath="//page/regionViewport[4]/regionAfter/@ipd"/>
- <eval expected="10800" xpath="//page/regionViewport[4]/regionAfter/@bpd"/>
- <eval expected="[0.0 -1.0 1.0 0.0 194400.0 342000.0]" xpath="//page/regionViewport[4]/regionAfter/@ctm"/>
- <!-- region body -->
- <eval expected="color=#ffff00" xpath="//page/regionViewport[5]/@background"/>
- <eval expected="270000" xpath="//page/regionViewport[5]/@ipd"/>
- <eval expected="162000" xpath="//page/regionViewport[5]/@bpd"/>
- <eval expected="32400 54000 162000 270000" xpath="//page/regionViewport[5]/@rect"/>
- <eval expected="270000" xpath="//page/regionViewport[5]/regionBody/@ipd"/>
- <eval expected="162000" xpath="//page/regionViewport[5]/regionBody/@bpd"/>
- <eval expected="[0.0 -1.0 1.0 0.0 32400.0 324000.0]" xpath="//page/regionViewport[5]/regionBody/@ctm"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/simple-page-master_reference-orientation_90_writing-mode_rl_region-body_margin_relative.xml b/test/layoutengine/testcases/simple-page-master_reference-orientation_90_writing-mode_rl_region-body_margin_relative.xml
deleted file mode 100644
index ac7635645..000000000
--- a/test/layoutengine/testcases/simple-page-master_reference-orientation_90_writing-mode_rl_region-body_margin_relative.xml
+++ /dev/null
@@ -1,112 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks relative margin on region (region-body).
- </p>
- </info>
- <variables>
- <img>../../resources/images/bgimg300dpi.jpg</img>
- </variables>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="3in" page-height="5in" margin="5%" reference-orientation="90" writing-mode="rl">
- <fo:region-body margin-top="10%" margin-bottom="5%" margin-left="10%" margin-right="5%" background-color="yellow" />
- <fo:region-before extent="10%" background-color="blue" precedence="true" />
- <fo:region-after extent="5%" background-color="green" precedence="true" />
- <fo:region-start extent="5%" background-color="red" />
- <fo:region-end extent="10%" background-color="orange" />
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block>
- r e g i o n b e f o r e
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block>
- r e g i o n a f t e r
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-start">
- <fo:block>
- r e g i o n s t a r t
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-end">
- <fo:block>
- r e g i o n e n d
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- 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.
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- region before -->
- <eval expected="color=#0000ff" xpath="//page/regionViewport[1]/@background"/>
- <eval expected="324000" xpath="//page/regionViewport[1]/@ipd"/>
- <eval expected="21600" xpath="//page/regionViewport[1]/@bpd"/>
- <eval expected="10800 18000 21600 324000" xpath="//page/regionViewport[1]/@rect"/>
- <eval expected="324000" xpath="//page/regionViewport[1]/regionBefore/@ipd"/>
- <eval expected="21600" xpath="//page/regionViewport[1]/regionBefore/@bpd"/>
- <eval expected="[0.0 1.0 1.0 0.0 10800.0 18000.0]" xpath="//page/regionViewport[1]/regionBefore/@ctm"/>
- <!-- region start -->
- <eval expected="color=#ff0000" xpath="//page/regionViewport[2]/@background"/>
- <eval expected="18000" xpath="//page/regionViewport[2]/@ipd"/>
- <eval expected="162000" xpath="//page/regionViewport[2]/@bpd"/>
- <eval expected="32400 18000 162000 18000" xpath="//page/regionViewport[2]/@rect"/>
- <eval expected="18000" xpath="//page/regionViewport[2]/regionStart/@ipd"/>
- <eval expected="162000" xpath="//page/regionViewport[2]/regionStart/@bpd"/>
- <eval expected="[0.0 1.0 1.0 0.0 32400.0 18000.0]" xpath="//page/regionViewport[2]/regionStart/@ctm"/>
- <!-- region end -->
- <eval expected="color=#ffa500" xpath="//page/regionViewport[3]/@background"/>
- <eval expected="36000" xpath="//page/regionViewport[3]/@ipd"/>
- <eval expected="162000" xpath="//page/regionViewport[3]/@bpd"/>
- <eval expected="32400 306000 162000 36000" xpath="//page/regionViewport[3]/@rect"/>
- <eval expected="36000" xpath="//page/regionViewport[3]/regionEnd/@ipd"/>
- <eval expected="162000" xpath="//page/regionViewport[3]/regionEnd/@bpd"/>
- <eval expected="[0.0 1.0 1.0 0.0 32400.0 306000.0]" xpath="//page/regionViewport[3]/regionEnd/@ctm"/>
- <!-- region after -->
- <eval expected="color=#008000" xpath="//page/regionViewport[4]/@background"/>
- <eval expected="324000" xpath="//page/regionViewport[4]/@ipd"/>
- <eval expected="10800" xpath="//page/regionViewport[4]/@bpd"/>
- <eval expected="194400 18000 10800 324000" xpath="//page/regionViewport[4]/@rect"/>
- <eval expected="324000" xpath="//page/regionViewport[4]/regionAfter/@ipd"/>
- <eval expected="10800" xpath="//page/regionViewport[4]/regionAfter/@bpd"/>
- <eval expected="[0.0 1.0 1.0 0.0 194400.0 18000.0]" xpath="//page/regionViewport[4]/regionAfter/@ctm"/>
- <!-- region body -->
- <eval expected="color=#ffff00" xpath="//page/regionViewport[5]/@background"/>
- <eval expected="270000" xpath="//page/regionViewport[5]/@ipd"/>
- <eval expected="162000" xpath="//page/regionViewport[5]/@bpd"/>
- <eval expected="32400 36000 162000 270000" xpath="//page/regionViewport[5]/@rect"/>
- <eval expected="270000" xpath="//page/regionViewport[5]/regionBody/@ipd"/>
- <eval expected="162000" xpath="//page/regionViewport[5]/regionBody/@bpd"/>
- <eval expected="[0.0 1.0 1.0 0.0 32400.0 36000.0]" xpath="//page/regionViewport[5]/regionBody/@ctm"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/simple-page-master_regions.xml b/test/layoutengine/testcases/simple-page-master_regions.xml
deleted file mode 100644
index 9a9fbd849..000000000
--- a/test/layoutengine/testcases/simple-page-master_regions.xml
+++ /dev/null
@@ -1,114 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- 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.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="master1" page-width="5in" page-height="5in" margin="10pt">
- <fo:region-body background-color="rgb(100%, 100%, 80%)" margin="30pt"/>
- <fo:region-before background-color="rgb(100%, 80%, 80%)" extent="20pt"/>
- <fo:region-after background-color="rgb(80%, 80%, 80%)" extent="20pt" precedence="true" display-align="after"/>
- <fo:region-start background-color="rgb(80%, 100%, 80%)" extent="20pt"/>
- <fo:region-end background-color="rgb(80%, 80%, 100%)" extent="20pt" reference-orientation="270"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="master1" white-space-collapse="true" orphans="0" widows="0">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block-container absolute-position="absolute" width="100%" height="100%" top="0pt" left="0pt">
- <fo:block/>
- </fo:block-container>
- <fo:block>region-before1</fo:block>
- <fo:block>region-before2</fo:block>
- <fo:block>region-before3</fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block-container absolute-position="absolute" width="100%" height="100%" top="0pt" left="0pt">
- <fo:block/>
- </fo:block-container>
- <fo:block font-size="50%">region-after1 with precedence and display-align="after"</fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-start">
- <fo:block-container absolute-position="absolute" width="100%" height="100%" top="0pt" left="0pt">
- <fo:block/>
- </fo:block-container>
- <fo:block>region-start1</fo:block>
- <fo:block>region-start2</fo:block>
- <fo:block>region-start3</fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-end">
- <fo:block-container absolute-position="absolute" width="100%" height="100%" top="0pt" left="0pt">
- <fo:block/>
- </fo:block-container>
- <fo:block>region-end1</fo:block>
- <fo:block>region-end2</fo:block>
- <fo:block>region-end3</fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:block-container absolute-position="absolute" width="100%" height="100%" top="0pt" left="0pt">
- <fo:block/>
- </fo:block-container>
- <fo:block>testing all-regions1</fo:block>
- <fo:block>testing all-regions2</fo:block>
- <fo:block>testing all-regions3</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="0 0 360000 360000" xpath="//pageViewport/@bounds"/>
-
- <eval expected="20000" xpath="//regionBefore/@bpda"/>
- <eval expected="300000" xpath="//regionBefore/@ipda"/>
- <eval expected="20000" xpath="//regionBefore/block[@positioning='absolute']/@bpda"/>
- <eval expected="300000" xpath="//regionBefore/block[@positioning='absolute']/@ipda"/>
- <eval expected="color=#ffcccc" xpath="//regionBefore/../@background"/>
-
- <eval expected="20000" xpath="//regionAfter/@bpda"/>
- <eval expected="340000" xpath="//regionAfter/@ipda"/>
- <eval expected="20000" xpath="//regionAfter/block[@positioning='absolute']/@bpda"/>
- <eval expected="340000" xpath="//regionAfter/block[@positioning='absolute']/@ipda"/>
- <!-- 360pt due to precendence -->
- <eval expected="color=#cccccc" xpath="//regionAfter/../@background"/>
-
- <eval expected="320000" xpath="//regionStart/@bpda"/>
- <eval expected="20000" xpath="//regionStart/@ipda"/>
- <eval expected="320000" xpath="//regionStart/block[@positioning='absolute']/@bpda"/>
- <eval expected="20000" xpath="//regionStart/block[@positioning='absolute']/@ipda"/>
- <eval expected="color=#ccffcc" xpath="//regionStart/../@background"/>
-
- <eval expected="20000" xpath="//regionEnd/@bpda"/>
- <eval expected="320000" xpath="//regionEnd/@ipda"/>
- <eval expected="20000" xpath="//regionEnd/block[@positioning='absolute']/@bpda"/>
- <eval expected="320000" xpath="//regionEnd/block[@positioning='absolute']/@ipda"/>
- <!-- bpd and ipd flipped due to reference-orientation -->
- <eval expected="color=#ccccff" xpath="//regionEnd/../@background"/>
-
- <eval expected="280000" xpath="//regionBody/@bpda"/>
- <eval expected="280000" xpath="//regionBody/@ipda"/>
- <eval expected="280000" xpath="//regionBody/mainReference/span/flow/block[@positioning='absolute']/@bpda"/>
- <eval expected="280000" xpath="//regionBody/mainReference/span/flow/block[@positioning='absolute']/@ipda"/>
- <eval expected="color=#ffffcc" xpath="//regionBody/../@background"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/simple-page-master_writing-mode_rl_region-body_writing-mode-lr.xml b/test/layoutengine/testcases/simple-page-master_writing-mode_rl_region-body_writing-mode-lr.xml
deleted file mode 100644
index b5383093f..000000000
--- a/test/layoutengine/testcases/simple-page-master_writing-mode_rl_region-body_writing-mode-lr.xml
+++ /dev/null
@@ -1,113 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks relative margin on region (region-body).
- </p>
- </info>
- <variables>
- <img>../../resources/images/bgimg300dpi.jpg</img>
- </variables>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="3in" page-height="5in" margin="5%" reference-orientation="0" writing-mode="rl">
- <fo:region-body margin-top="10%" margin-bottom="5%" margin-left="10%" margin-right="5%" background-color="yellow" writing-mode="lr"/>
- <fo:region-before extent="10%" background-color="blue" precedence="true" />
- <fo:region-after extent="5%" background-color="green" precedence="true" />
- <fo:region-start extent="5%" background-color="red" writing-mode="tb"/>
- <fo:region-end extent="10%" background-color="orange" writing-mode="tb"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:static-content flow-name="xsl-region-before">
- <fo:block>
- r e g i o n b e f o r e
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-after">
- <fo:block>
- r e g i o n a f t e r
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-start">
- <fo:block>
- r e g i o n s t a r t top - bottom
- </fo:block>
- </fo:static-content>
- <fo:static-content flow-name="xsl-region-end">
- <fo:block>
- r e g i o n e n d top - bottom
- </fo:block>
- </fo:static-content>
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- 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.
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- region before -->
- <eval expected="color=#0000ff" xpath="//page/regionViewport[1]/@background"/>
- <eval expected="194400" xpath="//page/regionViewport[1]/@ipd"/>
- <eval expected="36000" xpath="//page/regionViewport[1]/@bpd"/>
- <eval expected="10800 18000 194400 36000" xpath="//page/regionViewport[1]/@rect"/>
- <eval expected="194400" xpath="//page/regionViewport[1]/regionBefore/@ipd"/>
- <eval expected="36000" xpath="//page/regionViewport[1]/regionBefore/@bpd"/>
- <eval expected="[-1.0 0.0 0.0 1.0 205200.0 18000.0]" xpath="//page/regionViewport[1]/regionBefore/@ctm"/>
- <!-- region start -->
- <eval expected="color=#ff0000" xpath="//page/regionViewport[2]/@background"/>
- <eval expected="10800" xpath="//page/regionViewport[2]/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[2]/@bpd"/>
- <eval expected="194400 54000 10800 270000" xpath="//page/regionViewport[2]/@rect"/>
- <eval expected="270000" xpath="//page/regionViewport[2]/regionStart/@ipd"/>
- <eval expected="10800" xpath="//page/regionViewport[2]/regionStart/@bpd"/>
- <eval expected="[0.0 1.0 -1.0 0.0 205200.0 54000.0]" xpath="//page/regionViewport[2]/regionStart/@ctm"/>
- <!-- region end -->
- <eval expected="color=#ffa500" xpath="//page/regionViewport[3]/@background"/>
- <eval expected="21600" xpath="//page/regionViewport[3]/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[3]/@bpd"/>
- <eval expected="10800 54000 21600 270000" xpath="//page/regionViewport[3]/@rect"/>
- <eval expected="270000" xpath="//page/regionViewport[3]/regionEnd/@ipd"/>
- <eval expected="21600" xpath="//page/regionViewport[3]/regionEnd/@bpd"/>
- <eval expected="[0.0 1.0 -1.0 0.0 32400.0 54000.0]" xpath="//page/regionViewport[3]/regionEnd/@ctm"/>
- <!-- region after -->
- <eval expected="color=#008000" xpath="//page/regionViewport[4]/@background"/>
- <eval expected="194400" xpath="//page/regionViewport[4]/@ipd"/>
- <eval expected="18000" xpath="//page/regionViewport[4]/@bpd"/>
- <eval expected="10800 324000 194400 18000" xpath="//page/regionViewport[4]/@rect"/>
- <eval expected="194400" xpath="//page/regionViewport[4]/regionAfter/@ipd"/>
- <eval expected="18000" xpath="//page/regionViewport[4]/regionAfter/@bpd"/>
- <eval expected="[-1.0 0.0 0.0 1.0 205200.0 324000.0]" xpath="//page/regionViewport[4]/regionAfter/@ctm"/>
- <!-- region body -->
- <eval expected="color=#ffff00" xpath="//page/regionViewport[5]/@background"/>
- <eval expected="162000" xpath="//page/regionViewport[5]/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[5]/@bpd"/>
- <eval expected="32400 54000 162000 270000" xpath="//page/regionViewport[5]/@rect"/>
- <eval expected="162000" xpath="//page/regionViewport[5]/regionBody/@ipd"/>
- <eval expected="270000" xpath="//page/regionViewport[5]/regionBody/@bpd"/>
- <eval expected="[1.0 0.0 0.0 1.0 32400.0 54000.0]" xpath="//page/regionViewport[5]/regionBody/@ctm"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-body_background-image.xml b/test/layoutengine/testcases/table-body_background-image.xml
deleted file mode 100644
index d212685cd..000000000
--- a/test/layoutengine/testcases/table-body_background-image.xml
+++ /dev/null
@@ -1,109 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks background image on a fo:table-body.
- </p>
- </info>
- <variables>
- <img>../../resources/images/bgimg300dpi.jpg</img>
- </variables>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table>
- <fo:table-column column-number="1" />
- <fo:table-column column-number="2" />
- <fo:table-column column-number="3" />
- <fo:table-header>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>Header Col 1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Header Col 2</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Header Col 3</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-header>
- <fo:table-body background-color="yellow" background-repeat="no-repeat" background-position-horizontal="center" background-position-vertical="center" background-image="##img">
- <fo:table-row>
- <fo:table-cell>
- <fo:block>Row 1 Col 1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Row 1 Col 2</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Row 1 Col 3</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>Row 2 Col 1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Row 2 Col 2</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Row 2 Col 3</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>Row 3 Col 1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Row 3 Col 2</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Row 3 Col 3</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>Row 4 Col 1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Row 4 Col 2</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Row 4 Col 3</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block>Table with centered background image on body</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- backgrounds on table-body are not supported at the time this test
- was written. Therefore no checks! -->
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-body_basic_1.xml b/test/layoutengine/testcases/table-body_basic_1.xml
deleted file mode 100644
index 815642d7a..000000000
--- a/test/layoutengine/testcases/table-body_basic_1.xml
+++ /dev/null
@@ -1,86 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks element-lists on tables.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table color="black">
- <fo:table-column number-columns-repeated="2"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- <fo:block>blah</fo:block>
- <fo:block>blah</fo:block>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>blah</fo:block>
- <fo:block>blah</fo:block>
- <fo:block>blah</fo:block>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker">
- <!-- row 1 -->
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <!-- row 2 -->
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-body_basic_2.xml b/test/layoutengine/testcases/table-body_basic_2.xml
deleted file mode 100644
index e066308ee..000000000
--- a/test/layoutengine/testcases/table-body_basic_2.xml
+++ /dev/null
@@ -1,75 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- 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.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="4in" page-height="1.4in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" widows="3" orphans="3">
- <fo:flow flow-name="xsl-region-body">
- <fo:block-container height="9*8400mpt">
- <fo:block/>
- </fo:block-container>
- <fo:table font-size="8pt">
- <fo:table-column column-width="10%"/>
- <fo:table-column column-width="90%"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>A</fo:block>
- <fo:block>B</fo:block>
- <!-- Note: The second "B" block is there to trigger a problem that was revealed in a earlier attempt at handling this special case. -->
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>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.</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- Both 'A' and 'B' must be on the second page -->
- <eval expected="2" xpath="//text[.='A']/ancestor::pageViewport/@nr"/>
- <eval expected="2" xpath="//text[.='B']/ancestor::pageViewport/@nr"/>
- <element-list category="breaker">
- <box w="75600"/> <!-- block-container as spacer -->
- <penalty w="0" p="0"/>
- <box w="0"/>
- <penalty w="9600" p="&gt;0"/>
- <box w="0"/>
- <penalty w="19200" p="&gt;0"/>
- <box w="28800"/>
- <penalty w="0" p="0"/>
- <box w="28800"/>
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-border-separate3.xml b/test/layoutengine/testcases/table-border-separate3.xml
deleted file mode 100644
index 12d7e85d5..000000000
--- a/test/layoutengine/testcases/table-border-separate3.xml
+++ /dev/null
@@ -1,80 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks tables, especially table-cells. This test: borders in conjunction with empty-cells.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed" border-collapse="separate">
- <fo:table-column column-width="160pt"/>
- <fo:table-column column-width="200pt"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell background-color="yellow" border="solid 5pt">
- <fo:block/>
- </fo:table-cell>
- <fo:table-cell border="solid 5pt">
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row empty-cells="show">
- <fo:table-cell background-color="yellow" border="solid 5pt">
- <fo:block/>
- </fo:table-cell>
- <fo:table-cell border="solid 5pt">
- <fo:block>cell4</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row empty-cells="hide">
- <fo:table-cell background-color="yellow" border="solid 5pt">
- <fo:block/>
- </fo:table-cell>
- <fo:table-cell border="solid 5pt">
- <fo:block>cell6</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="color=#ffff00" xpath="//flow/block[1]/block[1]/@background"/>
- <eval expected="5000 5000 5000 5000" xpath="//flow/block[1]/block[1]/@bap"/>
- <eval expected="cell2" xpath="//flow/block[1]/block[2]/block[1]/lineArea"/>
-
- <eval expected="color=#ffff00" xpath="//flow/block[1]/block[3]/@background"/>
- <eval expected="5000 5000 5000 5000" xpath="//flow/block[1]/block[3]/@bap"/>
- <eval expected="cell4" xpath="//flow/block[1]/block[4]/block[1]/lineArea"/>
-
- <true xpath="not(boolean(//flow/block[1]/block[5]/@background))"/>
- <eval expected="0 0 0 0" xpath="//flow/block[1]/block[5]/@bap"/>
- <eval expected="cell6" xpath="//flow/block[1]/block[6]/block[1]/lineArea"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-cell_background-image.xml b/test/layoutengine/testcases/table-cell_background-image.xml
deleted file mode 100644
index f64663990..000000000
--- a/test/layoutengine/testcases/table-cell_background-image.xml
+++ /dev/null
@@ -1,130 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks relative positioned background images on a fo:table-cell.
- </p>
- </info>
- <variables>
- <img>../../resources/images/box1.png</img>
- </variables>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="15pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table border-collapse="separate">
- <fo:table-column />
- <fo:table-column />
- <fo:table-column />
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell margin="0pt" padding="5pt 10pt 20pt 15pt" height="1in" background-color="blue"
- background-image="##img"
- background-position-horizontal="right"
- background-repeat="no-repeat">
- <fo:block>image in top right corner</fo:block>
- </fo:table-cell>
- <fo:table-cell margin="0pt" padding="5pt 10pt 20pt 15pt" height="1in" background-color="green"
- background-image="##img"
- background-position-horizontal="right"
- background-position-vertical="center"
- background-repeat="no-repeat">
- <fo:block>image in center right</fo:block>
- </fo:table-cell>
- <fo:table-cell margin="0pt" padding="5pt 10pt 20pt 15pt" height="1in" background-color="yellow"
- background-image="##img"
- background-position-horizontal="right"
- background-position-vertical="bottom"
- background-repeat="no-repeat">
- <fo:block>image in bottom right corner</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell margin="0pt" padding="5pt 10pt 20pt 15pt" height="1in" background-color="yellow"
- background-image="##img"
- background-position-horizontal="center"
- background-repeat="no-repeat">
- <fo:block>image in top center</fo:block>
- </fo:table-cell>
- <fo:table-cell margin="0pt" padding="5pt 10pt 20pt 15pt" height="1in" background-color="blue"
- background-image="##img"
- background-position-horizontal="center"
- background-position-vertical="center"
- background-repeat="no-repeat">
- <fo:block>image in center</fo:block>
- </fo:table-cell>
- <fo:table-cell margin="0pt" padding="5pt 10pt 20pt 15pt" height="1in" background-color="green"
- background-image="##img"
- background-position-horizontal="center"
- background-position-vertical="bottom"
- background-repeat="no-repeat">
- <fo:block>image in bottom center</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell margin="0pt" padding="5pt 10pt 20pt 15pt" height="1in" background-color="green"
- background-image="##img"
- background-repeat="no-repeat">
- <fo:block>image in top left</fo:block>
- </fo:table-cell>
- <fo:table-cell margin="0pt" padding="5pt 10pt 20pt 15pt" height="1in" background-color="yellow"
- background-image="##img"
- background-position-vertical="center"
- background-repeat="no-repeat">
- <fo:block>image in center left</fo:block>
- </fo:table-cell>
- <fo:table-cell margin="0pt" padding="5pt 10pt 20pt 15pt" height="1in" background-color="blue"
- background-image="##img"
- background-position-vertical="bottom"
- background-repeat="no-repeat">
- <fo:block>image in bottom left</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- first cell in row 1 -->
- <eval expected="color=#0000ff,url=../../resources/images/box1.png,repeat=no-repeat,horiz=69991,vertical=0" xpath="//flow/block/block[1]/@background"/>
- <!-- second cell in row 1 -->
- <eval expected="color=#008000,url=../../resources/images/box1.png,repeat=no-repeat,horiz=69991,vertical=28495" xpath="//flow/block/block[2]/@background"/>
- <!-- third cell in row 1 -->
- <eval expected="color=#ffff00,url=../../resources/images/box1.png,repeat=no-repeat,horiz=69991,vertical=56991" xpath="//flow/block/block[3]/@background"/>
- <!-- first cell in row 2 -->
- <eval expected="color=#ffff00,url=../../resources/images/box1.png,repeat=no-repeat,horiz=34995,vertical=0" xpath="//flow/block/block[4]/@background"/>
- <!-- second cell in row 2 -->
- <eval expected="color=#0000ff,url=../../resources/images/box1.png,repeat=no-repeat,horiz=34995,vertical=28495" xpath="//flow/block/block[5]/@background"/>
- <!-- third cell in row 2 -->
- <eval expected="color=#008000,url=../../resources/images/box1.png,repeat=no-repeat,horiz=34995,vertical=56991" xpath="//flow/block/block[6]/@background"/>
- <!-- first cell in row 3 -->
- <eval expected="color=#008000,url=../../resources/images/box1.png,repeat=no-repeat,horiz=0,vertical=0" xpath="//flow/block/block[7]/@background"/>
- <!-- second cell in row 3 -->
- <eval expected="color=#ffff00,url=../../resources/images/box1.png,repeat=no-repeat,horiz=0,vertical=28495" xpath="//flow/block/block[8]/@background"/>
- <!-- third cell in row 3 -->
- <eval expected="color=#0000ff,url=../../resources/images/box1.png,repeat=no-repeat,horiz=0,vertical=56991" xpath="//flow/block/block[9]/@background"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-cell_block_break-before.xml b/test/layoutengine/testcases/table-cell_block_break-before.xml
deleted file mode 100644
index e4df0baec..000000000
--- a/test/layoutengine/testcases/table-cell_block_break-before.xml
+++ /dev/null
@@ -1,73 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks breaks on tables: breaks inside table-cell content.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column/>
- <fo:table-column/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell1 - line 1</fo:block>
- <fo:block>cell1 - line 2</fo:block>
- <fo:block>cell1 - line 3</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="yellow">
- <fo:block>cell2 - line 1</fo:block>
- <fo:block break-before="page">cell2 - line 2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell background-color="orange">
- <fo:block>cell3</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell4</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="2" xpath="count(//pageViewport)"/>
- <!-- page 1 -->
- <eval expected="1" xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]//lineArea)"/>
- <eval expected="1" xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]//lineArea)"/>
- <!-- page 2 -->
- <eval expected="2" xpath="count(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]//lineArea)"/>
- <eval expected="1" xpath="count(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]//lineArea)"/>
- <eval expected="1" xpath="count(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[3]//lineArea)"/>
- <eval expected="1" xpath="count(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[4]//lineArea)"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-cell_block_keep-with-next.xml b/test/layoutengine/testcases/table-cell_block_keep-with-next.xml
deleted file mode 100644
index 055f1cdd2..000000000
--- a/test/layoutengine/testcases/table-cell_block_keep-with-next.xml
+++ /dev/null
@@ -1,84 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks keep-with-next on content inside tables.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg" white-space-collapse="true" widows="0" orphans="0">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="4.5 * 14.4pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>block1</fo:block>
- <fo:table table-layout="fixed">
- <fo:table-column/>
- <fo:table-column/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell id="cell1">
- <fo:block>line1</fo:block>
- <fo:block>line2</fo:block>
- </fo:table-cell>
- <fo:table-cell id="cell2">
- <fo:block keep-with-next.within-page="always">line1</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell id="cell3">
- <fo:block>line1</fo:block>
- </fo:table-cell>
- <fo:table-cell id="cell4">
- <fo:block keep-with-next.within-page="always">line1</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block>block2</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="table-cell" id="cell1">
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- </element-list>
- <element-list category="table-cell" id="cell2">
- <box w="14400"/>
- </element-list>
- <element-list category="breaker" index="0">
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <box w="14400"/>
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-cell_block_keep-with-previous.xml b/test/layoutengine/testcases/table-cell_block_keep-with-previous.xml
deleted file mode 100644
index 0ba566d37..000000000
--- a/test/layoutengine/testcases/table-cell_block_keep-with-previous.xml
+++ /dev/null
@@ -1,84 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks keep-with-previous on content inside tables.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg" white-space-collapse="true" widows="0" orphans="0">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="4.5 * 14.4pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>block1</fo:block>
- <fo:table table-layout="fixed">
- <fo:table-column/>
- <fo:table-column/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell id="cell1">
- <fo:block keep-with-previous.within-page="always">line1</fo:block>
- <fo:block>line2</fo:block>
- </fo:table-cell>
- <fo:table-cell id="cell2">
- <fo:block>line1</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell id="cell3">
- <fo:block>line1</fo:block>
- </fo:table-cell>
- <fo:table-cell id="cell4">
- <fo:block keep-with-previous.within-page="always">line1</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block>block2</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="table-cell" id="cell1">
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- </element-list>
- <element-list category="table-cell" id="cell2">
- <box w="14400"/>
- </element-list>
- <element-list category="breaker" index="0">
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-cell_block_margin_percentage.xml b/test/layoutengine/testcases/table-cell_block_margin_percentage.xml
deleted file mode 100644
index 18a041c20..000000000
--- a/test/layoutengine/testcases/table-cell_block_margin_percentage.xml
+++ /dev/null
@@ -1,81 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks basic tables with percentages in cells.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="2in"/>
- <fo:table-column column-width="3in"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block margin="10%">cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="yellow">
- <fo:block margin-left="5%" margin-right="5%">cell2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- table dimensions -->
- <eval expected="360000" xpath="//flow/block[1]/@ipd"/>
- <eval expected="43200" xpath="//flow/block[1]/@bpd"/>
-
- <!-- cell 1 -->
- <true xpath="//flow/block[1]/block[1]/@is-reference-area"/>
- <eval expected="144000" xpath="//flow/block[1]/block[1]/@ipd"/>
- <eval expected="43200" xpath="//flow/block[1]/block[1]/@bpd"/>
- <eval expected="115200" xpath="//flow/block[1]/block[1]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[1]/block[1]/@bpd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[1]/block[1]/@space-before"/>
- <eval expected="14400" xpath="//flow/block[1]/block[1]/block[1]/@space-after"/>
- <eval expected="14400" xpath="//flow/block[1]/block[1]/block[1]/@start-indent"/>
- <eval expected="14400" xpath="//flow/block[1]/block[1]/block[1]/@space-start"/>
- <eval expected="14400" xpath="//flow/block[1]/block[1]/block[1]/@end-indent"/>
- <eval expected="14400" xpath="//flow/block[1]/block[1]/block[1]/@space-end"/>
-
- <!-- cell 2 -->
- <true xpath="//flow/block[1]/block[2]/@is-reference-area"/>
- <eval expected="144000" xpath="//flow/block[1]/block[2]/@left-offset"/>
- <eval expected="216000" xpath="//flow/block[1]/block[2]/@ipd"/>
- <eval expected="43200" xpath="//flow/block[1]/block[2]/@bpd"/>
- <eval expected="194400" xpath="//flow/block[1]/block[2]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[2]/block[1]/@bpd"/>
- <eval expected="10800" xpath="//flow/block[1]/block[2]/block[1]/@start-indent"/>
- <eval expected="10800" xpath="//flow/block[1]/block[2]/block[1]/@space-start"/>
- <eval expected="10800" xpath="//flow/block[1]/block[2]/block[1]/@end-indent"/>
- <eval expected="10800" xpath="//flow/block[1]/block[2]/block[1]/@space-end"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-cell_border_padding_conditionality.xml b/test/layoutengine/testcases/table-cell_border_padding_conditionality.xml
deleted file mode 100644
index f3a189219..000000000
--- a/test/layoutengine/testcases/table-cell_border_padding_conditionality.xml
+++ /dev/null
@@ -1,128 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks border and padding conditionality on table.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="2in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" id="retain">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed" width="100%" border-collapse="separate" border-spacing="5pt">
- <fo:table-column column-width="proportional-column-width(1)"/>
- <fo:table-column column-width="proportional-column-width(9)"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell background-color="yellow"
- padding-before="20pt" padding-before.conditionality="retain"
- padding-after="20pt" padding-after.conditionality="retain"
- border-before-style="solid" border-before-width="5pt" border-before-width.conditionality="retain"
- border-after-style="solid" border-after-width="5pt" border-after-width.conditionality="retain">
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="orange"
- padding-before="20pt" padding-before.conditionality="retain"
- padding-after="20pt" padding-after.conditionality="retain"
- border-before-style="solid" border-before-width="5pt" border-before-width.conditionality="retain"
- border-after-style="solid" border-after-width="5pt" border-after-width.conditionality="retain">
- <fo:block text-align="justify">
-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.
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal" id="discard">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed" width="100%" border-collapse="separate" border-spacing="5pt">
- <fo:table-column column-width="proportional-column-width(1)"/>
- <fo:table-column column-width="proportional-column-width(9)"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell background-color="yellow"
- padding-before="20pt" padding-before.conditionality="discard"
- padding-after="20pt" padding-after.conditionality="discard"
- border-before-style="solid" border-before-width="5pt" border-before-width.conditionality="discard"
- border-after-style="solid" border-after-width="5pt" border-after-width.conditionality="discard">
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="orange"
- padding-before="20pt" padding-before.conditionality="discard"
- padding-after="20pt" padding-after.conditionality="discard"
- border-before-style="solid" border-before-width="5pt" border-before-width.conditionality="discard"
- border-after-style="solid" border-after-width="5pt" border-after-width.conditionality="discard">
- <fo:block text-align="justify">
-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.
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- retain case -->
- <eval expected="(solid,#000000,5000)" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-before"/>
- <eval expected="20000" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@padding-before"/>
-
- <eval expected="(solid,#000000,5000)" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-after"/>
- <eval expected="20000" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@padding-after"/>
-
- <eval expected="(solid,#000000,5000)" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-before"/>
- <eval expected="20000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@padding-before"/>
-
- <eval expected="(solid,#000000,5000)" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-after"/>
- <eval expected="20000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@padding-after"/>
-
- <!-- discard case -->
- <eval expected="(solid,#000000,5000)" xpath="//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-before"/>
- <eval expected="20000" xpath="//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@padding-before"/>
-
- <true xpath="not(boolean(//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-after))"/>
- <true xpath="not(boolean(//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@padding-after))"/>
-
- <true xpath="not(boolean(//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-before))"/>
- <true xpath="not(boolean(//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@padding-before))"/>
-
- <eval expected="(solid,#000000,5000)" xpath="//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-after"/>
- <eval expected="20000" xpath="//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@padding-after"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-cell_column-number.xml b/test/layoutengine/testcases/table-cell_column-number.xml
deleted file mode 100644
index 39c4af464..000000000
--- a/test/layoutengine/testcases/table-cell_column-number.xml
+++ /dev/null
@@ -1,120 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks basic table-cells. This test: column-number and gaps (=empty cells) in rows.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed" background-color="lightgray">
- <fo:table-column column-width="1in"/>
- <fo:table-column column-width="1in"/>
- <fo:table-column column-width="1in"/>
- <fo:table-column column-width="1in"/>
- <fo:table-column column-width="1in"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="yellow">
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell3</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="yellow">
- <fo:block>cell4</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell5</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell6</fo:block>
- </fo:table-cell>
- <fo:table-cell column-number="3" background-color="orange">
- <fo:block>cell7</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell8</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell column-number="5">
- <fo:block>cell11</fo:block>
- </fo:table-cell>
- <fo:table-cell column-number="3">
- <fo:block>cell10</fo:block>
- </fo:table-cell>
- <fo:table-cell column-number="1">
- <fo:block>cell9</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- row 1 -->
- <eval expected="cell1" xpath="//flow/block[1]/block[1]/block[1]/lineArea"/>
- <true xpath="not(boolean(//flow/block[1]/block[1]/@top-offset)) or (//flow/block[1]/block[1]/@top-offset = '0')"/>
- <eval expected="cell2" xpath="//flow/block[1]/block[2]/block[1]/lineArea"/>
- <true xpath="not(boolean(//flow/block[1]/block[2]/@top-offset)) or (//flow/block[1]/block[2]/@top-offset = '0')"/>
- <eval expected="cell3" xpath="//flow/block[1]/block[3]/block[1]/lineArea"/>
- <true xpath="not(boolean(//flow/block[1]/block[3]/@top-offset)) or (//flow/block[1]/block[3]/@top-offset = '0')"/>
- <eval expected="cell4" xpath="//flow/block[1]/block[4]/block[1]/lineArea"/>
- <true xpath="not(boolean(//flow/block[1]/block[4]/@top-offset)) or (//flow/block[1]/block[4]/@top-offset = '0')"/>
- <eval expected="cell5" xpath="//flow/block[1]/block[5]/block[1]/lineArea"/>
- <true xpath="not(boolean(//flow/block[1]/block[5]/@top-offset)) or (//flow/block[1]/block[5]/@top-offset = '0')"/>
-
- <!-- row 2 -->
- <eval expected="cell6" xpath="//flow/block[1]/block[6]/block[1]/lineArea"/>
- <eval expected="14400" xpath="//flow/block[1]/block[6]/@top-offset"/>
- <true xpath="not(boolean(//flow/block[1]/block[6]/@left-offset)) or (//flow/block[1]/block[6]/@left-offset = '0')"/>
- <eval expected="cell7" xpath="//flow/block[1]/block[7]/block[1]/lineArea"/>
- <eval expected="14400" xpath="//flow/block[1]/block[7]/@top-offset"/>
- <eval expected="144000" xpath="//flow/block[1]/block[7]/@left-offset"/>
- <eval expected="cell8" xpath="//flow/block[1]/block[8]/block[1]/lineArea"/>
- <eval expected="14400" xpath="//flow/block[1]/block[8]/@top-offset"/>
- <eval expected="216000" xpath="//flow/block[1]/block[8]/@left-offset"/>
-
- <!-- row 3 -->
- <eval expected="cell9" xpath="//flow/block[1]/block[9]/block[1]/lineArea"/>
- <eval expected="28800" xpath="//flow/block[1]/block[9]/@top-offset"/>
- <true xpath="not(boolean(//flow/block[1]/block[9]/@left-offset)) or (//flow/block[1]/block[9]/@left-offset = '0')"/>
- <eval expected="cell10" xpath="//flow/block[1]/block[10]/block[1]/lineArea"/>
- <eval expected="28800" xpath="//flow/block[1]/block[10]/@top-offset"/>
- <eval expected="144000" xpath="//flow/block[1]/block[10]/@left-offset"/>
- <eval expected="cell11" xpath="//flow/block[1]/block[11]/block[1]/lineArea"/>
- <eval expected="28800" xpath="//flow/block[1]/block[11]/@top-offset"/>
- <eval expected="288000" xpath="//flow/block[1]/block[11]/@left-offset"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-cell_display-align.xml b/test/layoutengine/testcases/table-cell_display-align.xml
deleted file mode 100644
index fc3f3c5f6..000000000
--- a/test/layoutengine/testcases/table-cell_display-align.xml
+++ /dev/null
@@ -1,99 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks tables, especially table-cells. This test: display-align.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed">
- <fo:table-column column-width="2in"/>
- <fo:table-column column-width="3in"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell3</fo:block>
- </fo:table-cell>
- <fo:table-cell height="40pt" background-color="orange" display-align="before">
- <fo:block>cell4</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell5</fo:block>
- </fo:table-cell>
- <fo:table-cell height="40pt" background-color="yellow" display-align="center">
- <fo:block>cell6</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell7</fo:block>
- </fo:table-cell>
- <fo:table-cell height="40pt" background-color="orange" display-align="after">
- <fo:block>cell8</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell9</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell10</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="cell2" xpath="//flow/block[1]/block[2]/block[1]/lineArea"/>
- <eval expected="14400" xpath="//flow/block[1]/block[2]/block[1]/@bpd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[2]/@bpd"/>
- <eval expected="cell4" xpath="//flow/block[1]/block[4]/block[1]/lineArea"/>
- <eval expected="14400" xpath="//flow/block[1]/block[4]/block[1]/@bpd"/>
- <eval expected="40000" xpath="//flow/block[1]/block[4]/@bpd"/>
- <eval expected="cell6" xpath="//flow/block[1]/block[6]/block[2]/lineArea"/>
- <eval expected="12800" xpath="//flow/block[1]/block[6]/block[1]/@bpd"/> <!-- spacer -->
- <eval expected="14400" xpath="//flow/block[1]/block[6]/block[2]/@bpd"/>
- <eval expected="40000" xpath="//flow/block[1]/block[6]/@bpd"/>
- <eval expected="cell8" xpath="//flow/block[1]/block[8]/block[2]/lineArea"/>
- <eval expected="25600" xpath="//flow/block[1]/block[8]/block[1]/@bpd"/> <!-- spacer -->
- <eval expected="14400" xpath="//flow/block[1]/block[8]/block[2]/@bpd"/>
- <eval expected="40000" xpath="//flow/block[1]/block[8]/@bpd"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-cell_display-align_page-break.xml b/test/layoutengine/testcases/table-cell_display-align_page-break.xml
deleted file mode 100644
index e2b922206..000000000
--- a/test/layoutengine/testcases/table-cell_display-align_page-break.xml
+++ /dev/null
@@ -1,86 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks tables, especially table-cells. This test: display-align with page break.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed">
- <fo:table-column column-width="2in"/>
- <fo:table-column column-width="3in"/>
- <fo:table-body>
- <fo:table-row height="4in">
- <fo:table-cell>
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell3</fo:block>
- </fo:table-cell>
- <fo:table-cell height="2in" background-color="orange" display-align="center">
- <fo:block>
- <fo:block>cell4a</fo:block>
- <fo:block>cell4b</fo:block>
- <fo:block>cell4c</fo:block>
- <fo:block>cell4d</fo:block>
- <fo:block>cell4e</fo:block>
- <fo:block>cell4f</fo:block>
- <fo:block>cell4g</fo:block>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell5</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell6</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="cell3" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/lineArea"/>
- <eval expected="21600" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/block[1]/@bpd"/> <!-- spacer -->
- <eval expected="cell4a" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/block[2]/block[1]/lineArea"/>
- <eval expected="cell4b" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/block[2]/block[2]/lineArea"/>
- <eval expected="cell4c" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/block[2]/block[3]/lineArea"/>
- <eval expected="cell4d" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/block[2]/block[4]/lineArea"/>
- <eval expected="cell4e" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/block[2]/block[5]/lineArea"/>
- <eval expected="cell4f" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/block[2]/block[6]/lineArea"/>
- <eval expected="cell4g" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/block[2]/block[7]/lineArea"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-cell_height.xml b/test/layoutengine/testcases/table-cell_height.xml
deleted file mode 100644
index b573106f1..000000000
--- a/test/layoutengine/testcases/table-cell_height.xml
+++ /dev/null
@@ -1,169 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks tables, especially table-cells. This test: height and block-progression-dimension.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed">
- <fo:table-column column-width="2in"/>
- <fo:table-column column-width="3in"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell3</fo:block>
- </fo:table-cell>
- <fo:table-cell height="20pt" background-color="yellow">
- <fo:block>cell4</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell5</fo:block>
- </fo:table-cell>
- <fo:table-cell block-progression-dimension="20pt" background-color="orange">
- <fo:block>cell6</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell7</fo:block>
- </fo:table-cell>
- <fo:table-cell block-progression-dimension.minimum="20pt" block-progression-dimension.optimum="30pt" background-color="yellow">
- <fo:block line-height="8pt" font-size="8pt">
- <fo:block>cell8a</fo:block>
- <fo:block>cell8b</fo:block>
- <fo:block>cell8c</fo:block>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell9</fo:block>
- </fo:table-cell>
- <fo:table-cell block-progression-dimension.minimum="30pt" background-color="yellow">
- <fo:block line-height="8pt" font-size="8pt">
- <fo:block>cell10a</fo:block>
- <fo:block>cell10b</fo:block>
- <fo:block>cell10c</fo:block>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell11</fo:block>
- </fo:table-cell>
- <fo:table-cell block-progression-dimension.minimum="10pt" block-progression-dimension.optimum="20pt" background-color="orange">
- <fo:block line-height="8pt" font-size="8pt">
- <fo:block>cell12a</fo:block>
- <fo:block>cell12b</fo:block>
- <fo:block>cell12c</fo:block>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell13</fo:block>
- </fo:table-cell>
- <fo:table-cell block-progression-dimension.maximum="20pt" background-color="yellow">
- <fo:block line-height="8pt" font-size="8pt">
- <fo:block>cell14a</fo:block>
- <fo:block>cell14b</fo:block>
- <fo:block>cell14c</fo:block>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell15</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell16</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- cell 2 -->
- <eval expected="216000" xpath="//flow/block[1]/block[2]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[2]/@bpd"/>
- <eval expected="216000" xpath="//flow/block[1]/block[2]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[2]/block[1]/@bpd"/>
-
- <!-- cell 4: height="20pt" -->
- <eval expected="color=#ffff00" xpath="//flow/block[1]/block[4]/@background"/>
- <eval expected="216000" xpath="//flow/block[1]/block[4]/@ipd"/>
- <eval expected="20000" xpath="//flow/block[1]/block[4]/@bpd"/>
- <eval expected="216000" xpath="//flow/block[1]/block[4]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[4]/block[1]/@bpd"/>
-
- <!-- cell 6: block-progression-dimension="20pt" -->
- <eval expected="color=#ffa500" xpath="//flow/block[1]/block[6]/@background"/>
- <eval expected="216000" xpath="//flow/block[1]/block[6]/@ipd"/>
- <eval expected="20000" xpath="//flow/block[1]/block[6]/@bpd"/>
- <eval expected="216000" xpath="//flow/block[1]/block[6]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[6]/block[1]/@bpd"/>
-
- <!-- cell 8: content-height is 24pt (3*8pt), min="20pt", opt="30pt" -->
- <eval expected="216000" xpath="//flow/block[1]/block[8]/@ipd"/>
- <eval expected="30000" xpath="//flow/block[1]/block[8]/@bpd"/>
- <eval expected="216000" xpath="//flow/block[1]/block[8]/block[1]/@ipd"/>
- <eval expected="24000" xpath="//flow/block[1]/block[8]/block[1]/@bpd"/>
-
- <!-- cell 10: content-height is 24pt (3*8pt), min="30pt" -->
- <eval expected="216000" xpath="//flow/block[1]/block[10]/@ipd"/>
- <eval expected="30000" xpath="//flow/block[1]/block[10]/@bpd"/>
- <eval expected="216000" xpath="//flow/block[1]/block[10]/block[1]/@ipd"/>
- <eval expected="24000" xpath="//flow/block[1]/block[10]/block[1]/@bpd"/>
-
- <!-- cell 12: content-height is 24pt (3*8pt), min="10pt", opt="20pt" -->
- <eval expected="216000" xpath="//flow/block[1]/block[12]/@ipd"/>
- <eval expected="24000" xpath="//flow/block[1]/block[12]/@bpd"/>
- <eval expected="216000" xpath="//flow/block[1]/block[12]/block[1]/@ipd"/>
- <eval expected="24000" xpath="//flow/block[1]/block[12]/block[1]/@bpd"/>
-
- <!-- cell 14: content-height is 24pt (3*8pt), max="20", contents force relaxing max constraint -->
- <!-- Check for the warning message in the log -->
- <eval expected="216000" xpath="//flow/block[1]/block[14]/@ipd"/>
- <eval expected="24000" xpath="//flow/block[1]/block[14]/@bpd"/>
- <eval expected="216000" xpath="//flow/block[1]/block[14]/block[1]/@ipd"/>
- <eval expected="24000" xpath="//flow/block[1]/block[14]/block[1]/@bpd"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-cell_height_page-break.xml b/test/layoutengine/testcases/table-cell_height_page-break.xml
deleted file mode 100644
index e0adfa4d8..000000000
--- a/test/layoutengine/testcases/table-cell_height_page-break.xml
+++ /dev/null
@@ -1,87 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks tables, especially table-cells. This test: page break.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed">
- <fo:table-column column-width="2in"/>
- <fo:table-column column-width="3in"/>
- <fo:table-body>
- <fo:table-row height="4in">
- <fo:table-cell>
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell3</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="orange">
- <fo:block>
- <fo:block>cell4a</fo:block>
- <fo:block>cell4b</fo:block>
- <fo:block>cell4c</fo:block>
- <fo:block>cell4d</fo:block>
- <fo:block>cell4e</fo:block>
- <fo:block>cell4f</fo:block>
- <fo:block>cell4g</fo:block>
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell5</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell6</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- page 1 -->
- <eval expected="cell4a" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[4]/block[1]/block[1]/lineArea"/>
- <eval expected="cell4b" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[4]/block[1]/block[2]/lineArea"/>
- <eval expected="cell4c" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[4]/block[1]/block[3]/lineArea"/>
- <eval expected="cell4d" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[4]/block[1]/block[4]/lineArea"/>
- <eval expected="cell4e" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[4]/block[1]/block[5]/lineArea"/>
-
- <!-- page 2 -->
- <eval expected="cell4f" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/block[1]/lineArea"/>
- <eval expected="cell4g" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/block[2]/lineArea"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-cell_number-columns-spanned.xml b/test/layoutengine/testcases/table-cell_number-columns-spanned.xml
deleted file mode 100644
index f903a2eb4..000000000
--- a/test/layoutengine/testcases/table-cell_number-columns-spanned.xml
+++ /dev/null
@@ -1,114 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks tables, especially table-cells. This test: simple horizontal spans.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed" border-collapse="separate" border-spacing="5pt 0pt">
- <fo:table-column column-width="68pt" number-columns-repeated="5"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="yellow">
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="lightgreen">
- <fo:block>cell3</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="yellow">
- <fo:block>cell4</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="lightgreen">
- <fo:block>cell5</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell6a</fo:block>
- <fo:block>cell6b</fo:block>
- </fo:table-cell>
- <fo:table-cell number-columns-spanned="2" background-color="orange" text-align="center">
- <fo:block>cell7a</fo:block>
- <fo:block>cell7b</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell8a</fo:block>
- <fo:block>cell8b</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell column-number="2" number-columns-spanned="3" background-color="orange" text-align="center">
- <fo:block>cell9a</fo:block>
- <fo:block>cell9b</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="cell1" xpath="//flow/block[1]/block[1]/block[1]/lineArea"/>
- <eval expected="63000" xpath="//flow/block[1]/block[1]/@ipda"/>
- <eval expected="2500" xpath="//flow/block[1]/block[1]/@left-offset"/>
- <eval expected="cell2" xpath="//flow/block[1]/block[2]/block[1]/lineArea"/>
- <eval expected="63000" xpath="//flow/block[1]/block[2]/@ipda"/>
- <eval expected="70500" xpath="//flow/block[1]/block[2]/@left-offset"/>
- <eval expected="cell3" xpath="//flow/block[1]/block[3]/block[1]/lineArea"/>
- <eval expected="63000" xpath="//flow/block[1]/block[3]/@ipda"/>
- <eval expected="138500" xpath="//flow/block[1]/block[3]/@left-offset"/>
- <eval expected="cell4" xpath="//flow/block[1]/block[4]/block[1]/lineArea"/>
- <eval expected="63000" xpath="//flow/block[1]/block[4]/@ipda"/>
- <eval expected="206500" xpath="//flow/block[1]/block[4]/@left-offset"/>
- <eval expected="cell5" xpath="//flow/block[1]/block[5]/block[1]/lineArea"/>
- <eval expected="63000" xpath="//flow/block[1]/block[5]/@ipda"/>
- <eval expected="274500" xpath="//flow/block[1]/block[5]/@left-offset"/>
-
- <eval expected="cell6a" xpath="//flow/block[1]/block[6]/block[1]/lineArea"/>
- <eval expected="cell6b" xpath="//flow/block[1]/block[6]/block[2]/lineArea"/>
- <eval expected="63000" xpath="//flow/block[1]/block[6]/@ipda"/>
- <eval expected="2500" xpath="//flow/block[1]/block[6]/@left-offset"/>
- <eval expected="cell7a" xpath="//flow/block[1]/block[7]/block[1]/lineArea"/>
- <eval expected="cell7b" xpath="//flow/block[1]/block[7]/block[2]/lineArea"/>
- <eval expected="131000" xpath="//flow/block[1]/block[7]/@ipda"/>
- <eval expected="70500" xpath="//flow/block[1]/block[7]/@left-offset"/>
- <eval expected="cell8a" xpath="//flow/block[1]/block[8]/block[1]/lineArea"/>
- <eval expected="cell8b" xpath="//flow/block[1]/block[8]/block[2]/lineArea"/>
- <eval expected="63000" xpath="//flow/block[1]/block[8]/@ipda"/>
- <eval expected="206500" xpath="//flow/block[1]/block[8]/@left-offset"/>
-
- <eval expected="cell9a" xpath="//flow/block[1]/block[9]/block[1]/lineArea"/>
- <eval expected="cell9b" xpath="//flow/block[1]/block[9]/block[2]/lineArea"/>
- <eval expected="199000" xpath="//flow/block[1]/block[9]/@ipda"/>
- <eval expected="70500" xpath="//flow/block[1]/block[9]/@left-offset"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-cell_number-rows-spanned.xml b/test/layoutengine/testcases/table-cell_number-rows-spanned.xml
deleted file mode 100644
index 6ab88f664..000000000
--- a/test/layoutengine/testcases/table-cell_number-rows-spanned.xml
+++ /dev/null
@@ -1,99 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks tables, especially table-body. This test: row span which go beyond the last row.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed">
- <fo:table-column number-columns-repeated="2"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell number-rows-spanned="3">
- <fo:block>cell1</fo:block>
- <fo:block>blah1</fo:block>
- <fo:block>blah2</fo:block>
- <fo:block>blah3</fo:block>
- <fo:block>blah4</fo:block>
- <fo:block>blah5</fo:block>
- <fo:block>blah6</fo:block>
- <fo:block>blah7</fo:block>
- <fo:block>blah8</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell2</fo:block>
- <fo:block>blah</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row background-color="yellow">
- <fo:table-cell>
- <fo:block>cell3</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell number-columns-spanned="2" background-color="orange">
- <fo:block>EOT</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker">
- <!-- row 1 -->
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <!-- row 2 -->
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <!-- row 3 -->
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <!-- row 4 -->
- <box w="14400"/>
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-cell_padding_percentages.xml b/test/layoutengine/testcases/table-cell_padding_percentages.xml
deleted file mode 100644
index b7178c940..000000000
--- a/test/layoutengine/testcases/table-cell_padding_percentages.xml
+++ /dev/null
@@ -1,64 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks relative padding on a fo:table-cell.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table>
- <fo:table-column column-number="1" />
- <fo:table-column column-number="2" />
- <fo:table-column column-number="3" />
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>Row 1 Col 1</fo:block>
- </fo:table-cell>
- <fo:table-cell margin="0pt" padding="2%" background-color="yellow">
- <fo:block>Row 1 Col 2</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Row 1 Col 3</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block>Table a yellow cell having 2% padding.</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="7200 7200 7200 7200" xpath="//flow/block/block[2]/@bap"/>
- <eval expected="color=#ffff00" xpath="//flow/block/block[2]/@background"/>
- <eval expected="7200" xpath="//flow/block/block[2]/block/@start-indent"/>
- <eval expected="7200" xpath="//flow/block/block[2]/block/@end-indent"/>
- <eval expected="7200" xpath="//flow/block/block[2]/block/@space-start"/>
- <eval expected="7200" xpath="//flow/block/block[2]/block/@space-end"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-cell_starts-row_ends-row.xml b/test/layoutengine/testcases/table-cell_starts-row_ends-row.xml
deleted file mode 100644
index fbf509e7e..000000000
--- a/test/layoutengine/testcases/table-cell_starts-row_ends-row.xml
+++ /dev/null
@@ -1,126 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks tables, especially table-body. This test: conversion of cell lists into rows.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed">
- <fo:table-column column-width="2in"/>
- <fo:table-column column-width="1in"/>
- <fo:table-column column-width="1in"/>
- <fo:table-column column-width="1in"/>
- <fo:table-body>
- <fo:table-cell>
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell3</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell4</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell5</fo:block>
- </fo:table-cell>
- <fo:table-cell starts-row="true">
- <fo:block>cell6</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell7</fo:block>
- </fo:table-cell>
- <fo:table-cell ends-row="true">
- <fo:block>cell8</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell9</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell10</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell11</fo:block>
- </fo:table-cell>
- <fo:table-cell ends-row="true">
- <fo:block>cell12</fo:block>
- </fo:table-cell>
- <fo:table-cell starts-row="true" ends-row="true">
- <fo:block>cell13</fo:block>
- </fo:table-cell>
- <fo:table-cell ends-row="true">
- <fo:block>cell14</fo:block>
- </fo:table-cell>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- row 1 -->
- <eval expected="cell1" xpath="//flow/block[1]/block[1]/block[1]/lineArea"/>
- <true xpath="not(boolean(//flow/block[1]/block[1]/@top-offset)) or (//flow/block[1]/block[1]/@top-offset = '0')"/>
- <eval expected="cell2" xpath="//flow/block[1]/block[2]/block[1]/lineArea"/>
- <true xpath="not(boolean(//flow/block[1]/block[2]/@top-offset)) or (//flow/block[1]/block[2]/@top-offset = '0')"/>
- <eval expected="cell3" xpath="//flow/block[1]/block[3]/block[1]/lineArea"/>
- <true xpath="not(boolean(//flow/block[1]/block[3]/@top-offset)) or (//flow/block[1]/block[3]/@top-offset = '0')"/>
- <eval expected="cell4" xpath="//flow/block[1]/block[4]/block[1]/lineArea"/>
- <true xpath="not(boolean(//flow/block[1]/block[4]/@top-offset)) or (//flow/block[1]/block[4]/@top-offset = '0')"/>
- <eval expected="cell5" xpath="//flow/block[1]/block[5]/block[1]/lineArea"/>
- <true xpath="not(boolean(//flow/block[1]/block[5]/@top-offset)) or (//flow/block[1]/block[5]/@top-offset = '0')"/>
-
- <!-- row 2 -->
- <eval expected="cell6" xpath="//flow/block[1]/block[6]/block[1]/lineArea"/>
- <eval expected="14400" xpath="//flow/block[1]/block[6]/@top-offset"/>
- <eval expected="cell7" xpath="//flow/block[1]/block[7]/block[1]/lineArea"/>
- <eval expected="14400" xpath="//flow/block[1]/block[7]/@top-offset"/>
- <eval expected="cell8" xpath="//flow/block[1]/block[8]/block[1]/lineArea"/>
- <eval expected="14400" xpath="//flow/block[1]/block[8]/@top-offset"/>
-
- <!-- row 3 -->
- <eval expected="cell9" xpath="//flow/block[1]/block[9]/block[1]/lineArea"/>
- <eval expected="28800" xpath="//flow/block[1]/block[9]/@top-offset"/>
- <eval expected="cell10" xpath="//flow/block[1]/block[10]/block[1]/lineArea"/>
- <eval expected="28800" xpath="//flow/block[1]/block[10]/@top-offset"/>
- <eval expected="cell11" xpath="//flow/block[1]/block[11]/block[1]/lineArea"/>
- <eval expected="28800" xpath="//flow/block[1]/block[11]/@top-offset"/>
- <eval expected="cell12" xpath="//flow/block[1]/block[12]/block[1]/lineArea"/>
- <eval expected="28800" xpath="//flow/block[1]/block[12]/@top-offset"/>
-
- <!-- row 4 -->
- <eval expected="cell13" xpath="//flow/block[1]/block[13]/block[1]/lineArea"/>
- <eval expected="43200" xpath="//flow/block[1]/block[13]/@top-offset"/>
-
- <!-- row 5 -->
- <eval expected="cell14" xpath="//flow/block[1]/block[14]/block[1]/lineArea"/>
- <eval expected="57600" xpath="//flow/block[1]/block[14]/@top-offset"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-cell_various-combinations.xml b/test/layoutengine/testcases/table-cell_various-combinations.xml
deleted file mode 100644
index 4936798e0..000000000
--- a/test/layoutengine/testcases/table-cell_various-combinations.xml
+++ /dev/null
@@ -1,137 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks certain aspects of the area tree generation for table-cells.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed" border-collapse="separate">
- <fo:table-column column-width="100%"/>
- <fo:table-body>
- <fo:table-cell starts-row="true" ends-row="true">
- <fo:block>plain block</fo:block>
- </fo:table-cell>
- <fo:table-cell starts-row="true" border="solid 5pt" background-color="yellow" ends-row="true">
- <fo:block>cell with border</fo:block>
- </fo:table-cell>
- <fo:table-cell starts-row="true" padding="5pt" ends-row="true">
- <fo:block background-color="orange">cell with padding</fo:block>
- </fo:table-cell>
- <fo:table-cell starts-row="true" border="solid 5pt" padding="5pt" background-color="yellow" ends-row="true">
- <fo:block background-color="orange">cell with border and padding</fo:block>
- </fo:table-cell>
- <fo:table-cell starts-row="true" border="solid 5pt" height="30pt" display-align="center" ends-row="true">
- <fo:block>cell with border and height</fo:block>
- </fo:table-cell>
- <fo:table-cell starts-row="true" padding="5pt" height="30pt" display-align="center" background-color="yellow" ends-row="true">
- <fo:block background-color="orange">cell with padding and height</fo:block>
- </fo:table-cell>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- row 1 -->
- <eval expected="360000" xpath="//flow/block[1]/block[1]/@ipd"/>
- <eval expected="360000" xpath="//flow/block[1]/block[1]/@ipda"/>
- <eval expected="14400" xpath="//flow/block[1]/block[1]/@bpd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[1]/@bpda"/>
- <eval expected="360000" xpath="//flow/block[1]/block[1]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[1]/block[1]/@bpd"/>
-
- <!-- row 2 -->
- <eval expected="5000" xpath="//flow/block[1]/block[2]/@left-offset"/>
- <eval expected="14400" xpath="//flow/block[1]/block[2]/@top-offset"/>
- <eval expected="350000" xpath="//flow/block[1]/block[2]/@ipd"/>
- <eval expected="360000" xpath="//flow/block[1]/block[2]/@ipda"/>
- <eval expected="14400" xpath="//flow/block[1]/block[2]/@bpd"/>
- <eval expected="24400" xpath="//flow/block[1]/block[2]/@bpda"/>
- <eval expected="350000" xpath="//flow/block[1]/block[2]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[2]/block[1]/@bpd"/>
-
- <!-- row 3 -->
- <eval expected="5000" xpath="//flow/block[1]/block[3]/@left-offset"/>
- <eval expected="38800" xpath="//flow/block[1]/block[3]/@top-offset"/>
- <eval expected="350000" xpath="//flow/block[1]/block[3]/@ipd"/>
- <eval expected="360000" xpath="//flow/block[1]/block[3]/@ipda"/>
- <eval expected="14400" xpath="//flow/block[1]/block[3]/@bpd"/>
- <eval expected="24400" xpath="//flow/block[1]/block[3]/@bpda"/>
- <eval expected="350000" xpath="//flow/block[1]/block[3]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[3]/block[1]/@bpd"/>
-
- <!-- row 4 -->
- <eval expected="10000" xpath="//flow/block[1]/block[4]/@left-offset"/>
- <eval expected="63200" xpath="//flow/block[1]/block[4]/@top-offset"/>
- <eval expected="340000" xpath="//flow/block[1]/block[4]/@ipd"/>
- <eval expected="360000" xpath="//flow/block[1]/block[4]/@ipda"/>
- <eval expected="14400" xpath="//flow/block[1]/block[4]/@bpd"/>
- <eval expected="34400" xpath="//flow/block[1]/block[4]/@bpda"/>
- <eval expected="340000" xpath="//flow/block[1]/block[4]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[4]/block[1]/@bpd"/>
-
- <!-- row 5 -->
- <eval expected="5000" xpath="//flow/block[1]/block[5]/@left-offset"/>
- <eval expected="97600" xpath="//flow/block[1]/block[5]/@top-offset"/>
- <eval expected="350000" xpath="//flow/block[1]/block[5]/@ipd"/>
- <eval expected="360000" xpath="//flow/block[1]/block[5]/@ipda"/>
- <eval expected="30000" xpath="//flow/block[1]/block[5]/@bpd"/>
- <eval expected="40000" xpath="//flow/block[1]/block[5]/@bpda"/>
- <eval expected="7800" xpath="//flow/block[1]/block[5]/block[1]/@bpd"/> <!--spacer-->
- <eval expected="350000" xpath="//flow/block[1]/block[5]/block[2]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[5]/block[2]/@bpd"/>
-
- <!-- row 6 -->
- <eval expected="5000" xpath="//flow/block[1]/block[6]/@left-offset"/>
- <eval expected="137600" xpath="//flow/block[1]/block[6]/@top-offset"/>
- <eval expected="350000" xpath="//flow/block[1]/block[6]/@ipd"/>
- <eval expected="360000" xpath="//flow/block[1]/block[6]/@ipda"/>
- <eval expected="30000" xpath="//flow/block[1]/block[6]/@bpd"/>
- <eval expected="40000" xpath="//flow/block[1]/block[6]/@bpda"/>
- <eval expected="7800" xpath="//flow/block[1]/block[6]/block[1]/@bpd"/> <!--spacer-->
- <eval expected="350000" xpath="//flow/block[1]/block[6]/block[2]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[6]/block[2]/@bpd"/>
-
- <element-list category="breaker">
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="24400"/>
- <penalty w="0" p="0"/>
- <box w="24400"/>
- <penalty w="0" p="0"/>
- <box w="34400"/>
- <penalty w="0" p="0"/>
- <box w="40000"/>
- <penalty w="0" p="0"/>
- <box w="40000"/>
- <skip>3</skip>
- </element-list>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-column_column-number.xml b/test/layoutengine/testcases/table-column_column-number.xml
deleted file mode 100644
index c298efb63..000000000
--- a/test/layoutengine/testcases/table-column_column-number.xml
+++ /dev/null
@@ -1,71 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks tables, especially table-columns. Specifying the column in reverse order using column-number.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed">
- <fo:table-column column-width="0.5in" column-number="3"/>
- <fo:table-column column-width="1in" column-number="2"/>
- <fo:table-column column-width="2in" column-number="1"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="yellow">
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="orange">
- <fo:block>cell3</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- cell 1 -->
- <eval expected="cell1" xpath="//flow/block[1]/block[1]/block[1]/lineArea/text"/>
- <eval expected="144000" xpath="//flow/block[1]/block[1]/@ipd"/>
-
- <!-- cell 2 -->
- <eval expected="cell2" xpath="//flow/block[1]/block[2]/block[1]/lineArea/text"/>
- <eval expected="72000" xpath="//flow/block[1]/block[2]/@ipd"/>
- <eval expected="144000" xpath="//flow/block[1]/block[2]/@left-offset"/>
-
- <!-- cell 3 -->
- <eval expected="cell3" xpath="//flow/block[1]/block[3]/block[1]/lineArea/text"/>
- <eval expected="36000" xpath="//flow/block[1]/block[3]/@ipd"/>
- <eval expected="216000" xpath="//flow/block[1]/block[3]/@left-offset"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-column_column-width.xml b/test/layoutengine/testcases/table-column_column-width.xml
deleted file mode 100644
index 615181994..000000000
--- a/test/layoutengine/testcases/table-column_column-width.xml
+++ /dev/null
@@ -1,95 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks tables, especially table-columns.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed">
- <fo:table-column column-width="2in"/>
- <fo:table-column column-width="0.5in" number-columns-repeated="4"/>
- <fo:table-column column-width="1in"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="yellow">
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="orange">
- <fo:block>cell3</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="yellow">
- <fo:block>cell4</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="orange">
- <fo:block>cell5</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="red">
- <fo:block>cell6</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
-
- <!-- cell 1 -->
- <eval expected="cell1" xpath="//flow/block[1]/block[1]/block[1]/lineArea"/>
- <eval expected="144000" xpath="//flow/block[1]/block[1]/@ipd"/>
-
- <!-- cell 2 -->
- <eval expected="cell2" xpath="//flow/block[1]/block[2]/block[1]/lineArea"/>
- <eval expected="36000" xpath="//flow/block[1]/block[2]/@ipd"/>
- <eval expected="144000" xpath="//flow/block[1]/block[2]/@left-offset"/>
-
- <!-- cell 3 -->
- <eval expected="cell3" xpath="//flow/block[1]/block[3]/block[1]/lineArea"/>
- <eval expected="36000" xpath="//flow/block[1]/block[3]/@ipd"/>
- <eval expected="180000" xpath="//flow/block[1]/block[3]/@left-offset"/>
-
- <!-- cell 4 -->
- <eval expected="cell4" xpath="//flow/block[1]/block[4]/block[1]/lineArea"/>
- <eval expected="36000" xpath="//flow/block[1]/block[4]/@ipd"/>
- <eval expected="216000" xpath="//flow/block[1]/block[4]/@left-offset"/>
-
- <!-- cell 5 -->
- <eval expected="cell5" xpath="//flow/block[1]/block[5]/block[1]/lineArea"/>
- <eval expected="36000" xpath="//flow/block[1]/block[5]/@ipd"/>
- <eval expected="252000" xpath="//flow/block[1]/block[5]/@left-offset"/>
-
- <!-- cell 6 -->
- <eval expected="cell6" xpath="//flow/block[1]/block[6]/block[1]/lineArea"/>
- <eval expected="72000" xpath="//flow/block[1]/block[6]/@ipd"/>
- <eval expected="288000" xpath="//flow/block[1]/block[6]/@left-offset"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-column_column-width_proportional-column-width.xml b/test/layoutengine/testcases/table-column_column-width_proportional-column-width.xml
deleted file mode 100644
index 47eb64972..000000000
--- a/test/layoutengine/testcases/table-column_column-width_proportional-column-width.xml
+++ /dev/null
@@ -1,98 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks tables, especially table-columns. Using proportional-column-width().
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed">
- <fo:table-column column-width="proportional-column-width(1)"/>
- <fo:table-column column-width="proportional-column-width(1)"/>
- <fo:table-column column-width="proportional-column-width(2)"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="yellow">
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="orange">
- <fo:block>cell3</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:table table-layout="fixed">
- <fo:table-column column-width="proportional-column-width(1)"/>
- <fo:table-column column-width="1.25in"/>
- <fo:table-column column-width="proportional-column-width(2)"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell4</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="yellow">
- <fo:block>cell5</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="orange">
- <fo:block>cell6</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- cell 1 -->
- <eval expected="cell1" xpath="//flow/block[1]/block[1]/block[1]/lineArea"/>
- <eval expected="90000" xpath="//flow/block[1]/block[1]/@ipd"/>
-
- <!-- cell 2 -->
- <eval expected="cell2" xpath="//flow/block[1]/block[2]/block[1]/lineArea"/>
- <eval expected="90000" xpath="//flow/block[1]/block[2]/@ipd"/>
-
- <!-- cell 3 -->
- <eval expected="cell3" xpath="//flow/block[1]/block[3]/block[1]/lineArea"/>
- <eval expected="180000" xpath="//flow/block[1]/block[3]/@ipd"/>
-
- <!-- cell 4 -->
- <eval expected="cell4" xpath="//flow/block[2]/block[1]/block[1]/lineArea"/>
- <eval expected="90000" xpath="//flow/block[2]/block[1]/@ipd"/>
-
- <!-- cell 5 -->
- <eval expected="cell5" xpath="//flow/block[2]/block[2]/block[1]/lineArea"/>
- <eval expected="90000" xpath="//flow/block[2]/block[2]/@ipd"/>
-
- <!-- cell 6 -->
- <eval expected="cell6" xpath="//flow/block[2]/block[3]/block[1]/lineArea"/>
- <eval expected="180000" xpath="//flow/block[2]/block[3]/@ipd"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-column_first-row-width.xml b/test/layoutengine/testcases/table-column_first-row-width.xml
deleted file mode 100644
index 21d8dabbc..000000000
--- a/test/layoutengine/testcases/table-column_first-row-width.xml
+++ /dev/null
@@ -1,70 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- 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.
- </p>
- <bugzilla>http://issues.apache.org/bugzilla/show_bug.cgi?id=35656</bugzilla>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed" width="4in">
- <fo:table-column/>
- <fo:table-column/>
- <fo:table-column/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="yellow" width="2in">
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="orange">
- <fo:block>cell3</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- cell 1 -->
- <eval expected="cell1" xpath="//flow/block[1]/block[1]/block[1]/lineArea"/>
- <eval expected="72000" xpath="//flow/block[1]/block[1]/@ipd"/>
-
- <!-- cell 2 -->
- <eval expected="cell2" xpath="//flow/block[1]/block[2]/block[1]/lineArea"/>
- <eval expected="144000" xpath="//flow/block[1]/block[2]/@ipd"/>
-
- <!-- cell 3 -->
- <eval expected="cell3" xpath="//flow/block[1]/block[3]/block[1]/lineArea"/>
- <eval expected="72000" xpath="//flow/block[1]/block[3]/@ipd"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-footer_omit-footer-at-break.xml b/test/layoutengine/testcases/table-footer_omit-footer-at-break.xml
deleted file mode 100644
index bf3fbd740..000000000
--- a/test/layoutengine/testcases/table-footer_omit-footer-at-break.xml
+++ /dev/null
@@ -1,130 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks tables, especially headers and footers. Now with page breaks and omit-footer-at-break.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed" width="100%" table-omit-footer-at-break="true">
- <fo:table-column number-columns-repeated="2"/>
- <fo:table-header>
- <fo:table-row background-color="yellow">
- <fo:table-cell>
- <fo:block>header</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>start of page <fo:page-number/></fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-header>
- <fo:table-footer>
- <fo:table-row background-color="orange">
- <fo:table-cell>
- <fo:block>footer</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>end of page <fo:page-number/></fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-footer>
- <fo:table-body>
- <fo:table-row height="100pt">
- <fo:table-cell>
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="lightgray">
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row height="100pt">
- <fo:table-cell background-color="lightgray">
- <fo:block>cell3</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell4</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row height="100pt">
- <fo:table-cell>
- <fo:block>cell5</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="lightgray">
- <fo:block>cell6</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row height="100pt">
- <fo:table-cell background-color="lightgray">
- <fo:block>cell7</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell8</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- page 1 -->
- <eval expected="header" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/block[1]/lineArea"/>
- <eval expected="180000" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/@ipda"/>
- <!--eval expected="14400" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/@bpda"/-->
- <true xpath="contains(//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[3]/block[1]/lineArea, '1')"/>
- <eval expected="180000" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[3]/@ipda"/>
- <!--eval expected="14400" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[3]/@bpda"/-->
-
- <eval expected="cell1" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[4]/block[1]/lineArea"/>
- <eval expected="cell2" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[5]/block[1]/lineArea"/>
- <eval expected="cell3" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[6]/block[1]/lineArea"/>
- <eval expected="cell4" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[7]/block[1]/lineArea"/>
- <eval expected="cell5" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[8]/block[1]/lineArea"/>
- <eval expected="cell6" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[9]/block[1]/lineArea"/>
-
- <true xpath="not(boolean(//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[11]))"/>
-
- <!-- page 2 -->
- <eval expected="header" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/block[1]/lineArea"/>
- <eval expected="180000" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/@ipda"/>
- <!--eval expected="14400" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/@bpda"/-->
- <true xpath="contains(//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[3]/block[1]/lineArea, '2')"/>
- <eval expected="180000" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[3]/@ipda"/>
- <!--eval expected="14400" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[3]/@bpda"/-->
-
- <eval expected="cell7" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[4]/block[1]/lineArea"/>
- <eval expected="cell8" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[5]/block[1]/lineArea"/>
-
- <eval expected="footer" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[7]/block[1]/lineArea"/>
- <eval expected="180000" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[7]/@ipda"/>
- <!--eval expected="14400" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[7]/@bpda"/-->
- <true xpath="contains(//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[8]/block[1]/lineArea, '2')"/>
- <eval expected="180000" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[8]/@ipda"/>
- <!--eval expected="14400" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[8]/@bpda"/-->
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-header_background-image.xml b/test/layoutengine/testcases/table-header_background-image.xml
deleted file mode 100644
index 1101b3f95..000000000
--- a/test/layoutengine/testcases/table-header_background-image.xml
+++ /dev/null
@@ -1,100 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks background image on a fo:table-header and footer.
- </p>
- </info>
- <variables>
- <img>../../resources/images/bgimg300dpi.jpg</img>
- </variables>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table>
- <fo:table-column column-number="1" />
- <fo:table-column column-number="2" />
- <fo:table-column column-number="3" />
- <fo:table-header background-color="yellow" background-repeat="no-repeat" background-position-horizontal="center" background-position-vertical="center" background-image="##img">
- <fo:table-row>
- <fo:table-cell>
- <fo:block>Header Col 1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Header Col 2</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Header Col 3</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-header>
- <fo:table-footer background-color="yellow" background-repeat="no-repeat" background-position-horizontal="center" background-position-vertical="center" background-image="##img">
- <fo:table-row>
- <fo:table-cell>
- <fo:block>Footer Col 1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Footer Col 2</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Footer Col 3</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-footer>
- <fo:table-body background-color="blue">
- <fo:table-row height="4in" background-color="blue">
- <fo:table-cell>
- <fo:block>Row 1 Col 1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Row 1 Col 2</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Row 1 Col 3</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row height="4in" background-color="blue">
- <fo:table-cell>
- <fo:block>Row 2 Col 1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Row 2 Col 2</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Row 2 Col 3</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block>Table with centered background image in header and footer</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- backgrounds on table-header/footer are not supported at the time this test
- was written. Therefore no checks! -->
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-header_omit-header-at-break.xml b/test/layoutengine/testcases/table-header_omit-header-at-break.xml
deleted file mode 100644
index 7f42e710c..000000000
--- a/test/layoutengine/testcases/table-header_omit-header-at-break.xml
+++ /dev/null
@@ -1,128 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks tables, especially headers and footers. Now with page breaks and omit-header-at-break.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed" width="100%" table-omit-header-at-break="true">
- <fo:table-column number-columns-repeated="2"/>
- <fo:table-header>
- <fo:table-row background-color="yellow">
- <fo:table-cell>
- <fo:block>header</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>start of page <fo:page-number/></fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-header>
- <fo:table-footer>
- <fo:table-row background-color="orange">
- <fo:table-cell>
- <fo:block>footer</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>end of page <fo:page-number/></fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-footer>
- <fo:table-body>
- <fo:table-row height="100pt">
- <fo:table-cell>
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="lightgray">
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row height="100pt">
- <fo:table-cell background-color="lightgray">
- <fo:block>cell3</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell4</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row height="100pt">
- <fo:table-cell>
- <fo:block>cell5</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="lightgray">
- <fo:block>cell6</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row height="100pt">
- <fo:table-cell background-color="lightgray">
- <fo:block>cell7</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell8</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- page 1 -->
- <eval expected="header" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/block[1]/lineArea"/>
- <eval expected="180000" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/@ipda"/>
- <!--eval expected="14400" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/@bpda"/-->
- <true xpath="contains(//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[3]/block[1]/lineArea, '1')"/>
- <eval expected="180000" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[3]/@ipda"/>
- <!--eval expected="14400" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[3]/@bpda"/-->
-
- <eval expected="cell1" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[4]/block[1]/lineArea"/>
- <eval expected="cell2" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[5]/block[1]/lineArea"/>
- <eval expected="cell3" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[6]/block[1]/lineArea"/>
- <eval expected="cell4" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[7]/block[1]/lineArea"/>
- <eval expected="cell5" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[8]/block[1]/lineArea"/>
- <eval expected="cell6" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[9]/block[1]/lineArea"/>
-
- <eval expected="footer" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[11]/block[1]/lineArea"/>
- <eval expected="180000" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[11]/@ipda"/>
- <!--eval expected="14400" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[11]/@bpda"/-->
- <true xpath="contains(//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[12]/block[1]/lineArea, '1')"/>
- <eval expected="180000" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[12]/@ipda"/>
- <!--eval expected="14400" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[12]/@bpda"/-->
-
- <!-- page 2 -->
- <eval expected="cell7" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block[1]/lineArea"/>
- <eval expected="cell8" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/block[1]/lineArea"/>
-
- <eval expected="footer" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[4]/block[1]/lineArea"/>
- <eval expected="180000" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[4]/@ipda"/>
- <!--eval expected="14400" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[4]/@bpda"/-->
- <true xpath="contains(//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[5]/block[1]/lineArea, '2')"/>
- <eval expected="180000" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[5]/@ipda"/>
- <!--eval expected="14400" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[5]/@bpda"/-->
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-header_table-footer_1.xml b/test/layoutengine/testcases/table-header_table-footer_1.xml
deleted file mode 100644
index 244c7827c..000000000
--- a/test/layoutengine/testcases/table-header_table-footer_1.xml
+++ /dev/null
@@ -1,111 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks tables, especially headers and footers.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column number-columns-repeated="2"/>
- <fo:table-header>
- <fo:table-row background-color="yellow">
- <fo:table-cell>
- <fo:block>header1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>header2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-header>
- <fo:table-footer>
- <fo:table-row background-color="orange">
- <fo:table-cell>
- <fo:block>footer1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>footer2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-footer>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="lightgray">
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell background-color="lightgray">
- <fo:block>cell3</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell4</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- table height -->
- <eval expected="57600" xpath="//flow/block[1]/@bpda"/>
-
- <!-- header row background -->
- <eval expected="color=#ffff00" xpath="//flow/block[1]/block[1]/@background"/>
- <eval expected="360000" xpath="//flow/block[1]/block[1]/@ipda"/>
- <eval expected="14400" xpath="//flow/block[1]/block[1]/@bpda"/>
-
- <eval expected="header1" xpath="//flow/block[1]/block[2]/block[1]/lineArea"/>
- <eval expected="180000" xpath="//flow/block[1]/block[2]/@ipda"/>
- <eval expected="14400" xpath="//flow/block[1]/block[2]/@bpda"/>
- <eval expected="header2" xpath="//flow/block[1]/block[3]/block[1]/lineArea"/>
- <eval expected="180000" xpath="//flow/block[1]/block[3]/@ipda"/>
- <eval expected="14400" xpath="//flow/block[1]/block[3]/@bpda"/>
-
- <eval expected="cell1" xpath="//flow/block[1]/block[4]/block[1]/lineArea"/>
- <eval expected="cell2" xpath="//flow/block[1]/block[5]/block[1]/lineArea"/>
- <eval expected="cell3" xpath="//flow/block[1]/block[6]/block[1]/lineArea"/>
- <eval expected="cell4" xpath="//flow/block[1]/block[7]/block[1]/lineArea"/>
-
- <!-- footer row background -->
- <eval expected="color=#ffa500" xpath="//flow/block[1]/block[8]/@background"/>
- <eval expected="360000" xpath="//flow/block[1]/block[8]/@ipda"/>
- <eval expected="14400" xpath="//flow/block[1]/block[8]/@bpda"/>
-
- <eval expected="footer1" xpath="//flow/block[1]/block[9]/block[1]/lineArea"/>
- <eval expected="180000" xpath="//flow/block[1]/block[9]/@ipda"/>
- <eval expected="14400" xpath="//flow/block[1]/block[9]/@bpda"/>
- <eval expected="footer2" xpath="//flow/block[1]/block[10]/block[1]/lineArea"/>
- <eval expected="180000" xpath="//flow/block[1]/block[10]/@ipda"/>
- <eval expected="14400" xpath="//flow/block[1]/block[10]/@bpda"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-header_table-footer_2.xml b/test/layoutengine/testcases/table-header_table-footer_2.xml
deleted file mode 100644
index e79420f7e..000000000
--- a/test/layoutengine/testcases/table-header_table-footer_2.xml
+++ /dev/null
@@ -1,135 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks tables, especially headers and footers. Now with page breaks.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column number-columns-repeated="2"/>
- <fo:table-header>
- <fo:table-row background-color="yellow">
- <fo:table-cell>
- <fo:block>header</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>start of page <fo:page-number/></fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-header>
- <fo:table-footer>
- <fo:table-row background-color="orange">
- <fo:table-cell>
- <fo:block>footer</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>end of page <fo:page-number/></fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-footer>
- <fo:table-body>
- <fo:table-row height="100pt">
- <fo:table-cell>
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="lightgray">
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row height="100pt">
- <fo:table-cell background-color="lightgray">
- <fo:block>cell3</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell4</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row height="100pt">
- <fo:table-cell>
- <fo:block>cell5</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="lightgray">
- <fo:block>cell6</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row height="100pt">
- <fo:table-cell background-color="lightgray">
- <fo:block>cell7</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell8</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- page 1 -->
- <eval expected="header" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/block[1]/lineArea"/>
- <eval expected="180000" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/@ipda"/>
- <!--eval expected="14400" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/@bpda"/-->
- <true xpath="contains(//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[3]/block[1]/lineArea, '1')"/>
- <eval expected="180000" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[3]/@ipda"/>
- <!--eval expected="14400" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[3]/@bpda"/-->
-
- <eval expected="cell1" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[4]/block[1]/lineArea"/>
- <eval expected="cell2" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[5]/block[1]/lineArea"/>
- <eval expected="cell3" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[6]/block[1]/lineArea"/>
- <eval expected="cell4" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[7]/block[1]/lineArea"/>
- <eval expected="cell5" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[8]/block[1]/lineArea"/>
- <eval expected="cell6" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[9]/block[1]/lineArea"/>
-
- <eval expected="footer" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[11]/block[1]/lineArea"/>
- <eval expected="180000" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[11]/@ipda"/>
- <!--eval expected="14400" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[11]/@bpda"/-->
- <true xpath="contains(//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[12]/block[1]/lineArea, '1')"/>
- <eval expected="180000" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[12]/@ipda"/>
- <!--eval expected="14400" xpath="//pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[12]/@bpda"/-->
-
- <!-- page 2 -->
- <eval expected="header" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/block[1]/lineArea"/>
- <eval expected="180000" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/@ipda"/>
- <!--eval expected="14400" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/@bpda"/-->
- <true xpath="contains(//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[3]/block[1]/lineArea, '2')"/>
- <eval expected="180000" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[3]/@ipda"/>
- <!--eval expected="14400" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[3]/@bpda"/-->
-
- <eval expected="cell7" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[4]/block[1]/lineArea"/>
- <eval expected="cell8" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[5]/block[1]/lineArea"/>
-
- <eval expected="footer" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[7]/block[1]/lineArea"/>
- <eval expected="180000" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[7]/@ipda"/>
- <!--eval expected="14400" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[7]/@bpda"/-->
- <true xpath="contains(//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[8]/block[1]/lineArea, '2')"/>
- <eval expected="180000" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[8]/@ipda"/>
- <!--eval expected="14400" xpath="//pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[8]/@bpda"/-->
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-row_background-image.xml b/test/layoutengine/testcases/table-row_background-image.xml
deleted file mode 100644
index 2f05e343a..000000000
--- a/test/layoutengine/testcases/table-row_background-image.xml
+++ /dev/null
@@ -1,88 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks background image on a fo:table-row.
- </p>
- </info>
- <variables>
- <img>../../resources/images/bgimg300dpi.jpg</img>
- </variables>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table>
- <fo:table-column column-number="1" />
- <fo:table-column column-number="2" />
- <fo:table-column column-number="3" />
- <fo:table-header>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>Header Col 1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Header Col 2</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Header Col 3</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-header>
- <fo:table-body>
- <fo:table-row height="1in" background-color="yellow" background-repeat="no-repeat" background-position-horizontal="center" background-position-vertical="center" background-image="##img">
- <fo:table-cell>
- <fo:block>Row 1 Col 1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Row 1 Col 2</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Row 1 Col 3</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>Row 2 Col 1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Row 2 Col 2</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Row 2 Col 3</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block>Table with centered background image on row 1</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="360000" xpath="//flow/block/block[4]/@ipd"/>
- <eval expected="72000" xpath="//flow/block/block[4]/@bpd"/>
- <eval expected="color=#ffff00,url=../../resources/images/bgimg300dpi.jpg,repeat=no-repeat,horiz=156960,vertical=12960" xpath="//flow/block/block[4]/@background"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-row_break-before.xml b/test/layoutengine/testcases/table-row_break-before.xml
deleted file mode 100644
index 693f27775..000000000
--- a/test/layoutengine/testcases/table-row_break-before.xml
+++ /dev/null
@@ -1,63 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- 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).
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column/>
- <fo:table-column/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell number-rows-spanned="2" background-color="orange">
- <fo:block>cell1 line 1</fo:block>
- <fo:block>cell1 line 2</fo:block>
- <fo:block>cell1 line 3</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="yellow">
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row break-before="page">
- <fo:table-cell>
- <fo:block>cell4</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="1" xpath="count(//pageViewport)"/>
- <!-- If the break would be respected we'd get 2 pages. Watch for the warning in the log. -->
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-row_break-before_break-after_1.xml b/test/layoutengine/testcases/table-row_break-before_break-after_1.xml
deleted file mode 100644
index ca3357e44..000000000
--- a/test/layoutengine/testcases/table-row_break-before_break-after_1.xml
+++ /dev/null
@@ -1,70 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks breaks on tables, especially breaks on table-rows in the middle of a table.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column/>
- <fo:table-column/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="yellow">
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row break-before="odd-page" break-after="odd-page">
- <fo:table-cell background-color="orange">
- <fo:block>cell3</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell4</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell background-color="yellow">
- <fo:block>cell5</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell6</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="5" xpath="count(//pageViewport)"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-row_break-before_break-after_2.xml b/test/layoutengine/testcases/table-row_break-before_break-after_2.xml
deleted file mode 100644
index d939c2599..000000000
--- a/test/layoutengine/testcases/table-row_break-before_break-after_2.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks breaks on tables, especially breaks on the first and last table-rows.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>before the table</fo:block>
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column/>
- <fo:table-column/>
- <fo:table-body>
- <fo:table-row break-before="odd-page" break-after="odd-page">
- <fo:table-cell background-color="orange">
- <fo:block>cell3</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell4</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block>after the table</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="5" xpath="count(//pageViewport)"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-row_height.xml b/test/layoutengine/testcases/table-row_height.xml
deleted file mode 100644
index 693436e41..000000000
--- a/test/layoutengine/testcases/table-row_height.xml
+++ /dev/null
@@ -1,106 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks tables, especially table-rows. This test: height and block-progression-dimension.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed">
- <fo:table-column column-width="2in"/>
- <fo:table-column column-width="3in"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row height="20pt" background-color="yellow">
- <fo:table-cell>
- <fo:block>cell3</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell4</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row block-progression-dimension="20pt" background-color="orange">
- <fo:table-cell>
- <fo:block>cell5</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell6</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell7</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell8</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- row 1 -->
- <eval expected="144000" xpath="//flow/block[1]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[1]/@bpd"/>
- <eval expected="216000" xpath="//flow/block[1]/block[2]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[2]/@bpd"/>
-
- <!-- row 2 -->
- <eval expected="360000" xpath="//flow/block[1]/block[3]/@ipd"/>
- <eval expected="20000" xpath="//flow/block[1]/block[3]/@bpd"/> <!-- background-area generated for the row -->
- <eval expected="color=#ffff00" xpath="//flow/block[1]/block[3]/@background"/>
- <eval expected="144000" xpath="//flow/block[1]/block[4]/@ipd"/>
- <eval expected="20000" xpath="//flow/block[1]/block[4]/@bpd"/>
- <eval expected="216000" xpath="//flow/block[1]/block[5]/@ipd"/>
- <eval expected="20000" xpath="//flow/block[1]/block[5]/@bpd"/>
-
- <!-- row 3 -->
- <eval expected="360000" xpath="//flow/block[1]/block[6]/@ipd"/>
- <eval expected="20000" xpath="//flow/block[1]/block[6]/@bpd"/> <!-- background-area generated for the row -->
- <eval expected="color=#ffa500" xpath="//flow/block[1]/block[6]/@background"/>
- <eval expected="144000" xpath="//flow/block[1]/block[7]/@ipd"/>
- <eval expected="20000" xpath="//flow/block[1]/block[7]/@bpd"/>
- <eval expected="216000" xpath="//flow/block[1]/block[8]/@ipd"/>
- <eval expected="20000" xpath="//flow/block[1]/block[8]/@bpd"/>
-
- <!-- row 4 -->
- <eval expected="144000" xpath="//flow/block[1]/block[9]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[9]/@bpd"/>
- <eval expected="216000" xpath="//flow/block[1]/block[10]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[10]/@bpd"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-row_keep-together.xml b/test/layoutengine/testcases/table-row_keep-together.xml
deleted file mode 100644
index 51069ba76..000000000
--- a/test/layoutengine/testcases/table-row_keep-together.xml
+++ /dev/null
@@ -1,72 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks keep-together on table-rows.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg" white-space-collapse="true" widows="0" orphans="0">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="4.5 * 14.4pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>block1</fo:block>
- <fo:table table-layout="fixed">
- <fo:table-column/>
- <fo:table-column/>
- <fo:table-body>
- <fo:table-row keep-together.within-page="always">
- <fo:table-cell id="cell1">
- <fo:block>line1</fo:block>
- <fo:block>line2</fo:block>
- </fo:table-cell>
- <fo:table-cell id="cell2">
- <fo:block>line1</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block>block2</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="table-cell" id="cell1">
- <box w="14400"/>
- <penalty w="0" p="INF"/> <!-- the keep-together on the table-row has to result in an INFINITE penalty here -->
- <box w="14400"/>
- </element-list>
- <element-list category="table-cell" id="cell2">
- <box w="14400"/>
- </element-list>
- <element-list category="breaker" index="0">
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="28800"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-row_keep-with-next.xml b/test/layoutengine/testcases/table-row_keep-with-next.xml
deleted file mode 100644
index 26382587d..000000000
--- a/test/layoutengine/testcases/table-row_keep-with-next.xml
+++ /dev/null
@@ -1,84 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks keep-with-next on table-rows.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg" white-space-collapse="true" widows="0" orphans="0">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="4.5 * 14.4pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>block1</fo:block>
- <fo:table table-layout="fixed">
- <fo:table-column/>
- <fo:table-column/>
- <fo:table-body>
- <fo:table-row keep-with-next.within-page="always">
- <fo:table-cell id="cell1">
- <fo:block>line1</fo:block>
- <fo:block>line2</fo:block>
- </fo:table-cell>
- <fo:table-cell id="cell2">
- <fo:block>line1</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row keep-with-next.within-page="always">
- <fo:table-cell id="cell3">
- <fo:block>line1</fo:block>
- </fo:table-cell>
- <fo:table-cell id="cell4">
- <fo:block>line1</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block>block2</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="table-cell" id="cell1">
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- </element-list>
- <element-list category="table-cell" id="cell2">
- <box w="14400"/>
- </element-list>
- <element-list category="breaker" index="0">
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <box w="14400"/>
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table-row_keep-with-previous.xml b/test/layoutengine/testcases/table-row_keep-with-previous.xml
deleted file mode 100644
index 620780100..000000000
--- a/test/layoutengine/testcases/table-row_keep-with-previous.xml
+++ /dev/null
@@ -1,84 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks keep-with-previous on table-rows.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg" white-space-collapse="true" widows="0" orphans="0">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="4.5 * 14.4pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>block1</fo:block>
- <fo:table table-layout="fixed">
- <fo:table-column/>
- <fo:table-column/>
- <fo:table-body>
- <fo:table-row keep-with-previous.within-page="always">
- <fo:table-cell id="cell1">
- <fo:block>line1</fo:block>
- <fo:block>line2</fo:block>
- </fo:table-cell>
- <fo:table-cell id="cell2">
- <fo:block>line1</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row keep-with-previous.within-page="always">
- <fo:table-cell id="cell3">
- <fo:block>line1</fo:block>
- </fo:table-cell>
- <fo:table-cell id="cell4">
- <fo:block>line1</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block>block2</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="table-cell" id="cell1">
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- </element-list>
- <element-list category="table-cell" id="cell2">
- <box w="14400"/>
- </element-list>
- <element-list category="breaker" index="0">
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <box w="14400"/>
- <penalty w="0" p="INF"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table_background-image.xml b/test/layoutengine/testcases/table_background-image.xml
deleted file mode 100644
index 2a8f1984c..000000000
--- a/test/layoutengine/testcases/table_background-image.xml
+++ /dev/null
@@ -1,108 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks background image on a fo:table.
- </p>
- </info>
- <variables>
- <img>../../resources/images/bgimg300dpi.jpg</img>
- </variables>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table background-color="yellow" background-repeat="no-repeat" background-position-horizontal="center" background-position-vertical="center" background-image="##img">
- <fo:table-column column-number="1" />
- <fo:table-column column-number="2" />
- <fo:table-column column-number="3" />
- <fo:table-header>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>Header Col 1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Header Col 2</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Header Col 3</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-header>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>Row 1 Col 1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Row 1 Col 2</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Row 1 Col 3</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>Row 2 Col 1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Row 2 Col 2</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Row 2 Col 3</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>Row 3 Col 1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Row 3 Col 2</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Row 3 Col 3</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>Row 4 Col 1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Row 4 Col 2</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Row 4 Col 3</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block>Table with centered background image</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="color=#ffff00,url=../../resources/images/bgimg300dpi.jpg,repeat=no-repeat,horiz=156960,vertical=12960" xpath="//flow/block[1]/@background"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table_basic.xml b/test/layoutengine/testcases/table_basic.xml
deleted file mode 100644
index 9637febb6..000000000
--- a/test/layoutengine/testcases/table_basic.xml
+++ /dev/null
@@ -1,106 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks basic tables.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed" width="100%">
- <fo:table-column column-width="2in"/>
- <fo:table-column column-width="3in"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="yellow">
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell background-color="orange">
- <fo:block>cell3</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell4</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- table dimensions -->
- <eval expected="360000" xpath="//flow/block[1]/@ipd"/>
- <eval expected="28800" xpath="//flow/block[1]/@bpd"/>
-
- <!-- cell 1 -->
- <true xpath="//flow/block[1]/block[1]/@is-reference-area"/>
- <true xpath="not(boolean(//flow/block[1]/block[1]/@left-offset)) or (//flow/block[1]/block[1]/@left-offset = 0)"/>
- <true xpath="not(boolean(//flow/block[1]/block[1]/@top-offset)) or (//flow/block[1]/block[1]/@top-offset = 0)"/>
- <eval expected="144000" xpath="//flow/block[1]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[1]/@bpd"/>
- <eval expected="144000" xpath="//flow/block[1]/block[1]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[1]/block[1]/@bpd"/>
- <eval expected="cell1" xpath="//flow/block[1]/block[1]/block[1]/lineArea"/>
-
- <!-- cell 2 -->
- <true xpath="//flow/block[1]/block[2]/@is-reference-area"/>
- <eval expected="144000" xpath="//flow/block[1]/block[2]/@left-offset"/>
- <true xpath="not(boolean(//flow/block[1]/block[2]/@top-offset)) or (//flow/block[1]/block[2]/@top-offset = 0)"/>
- <eval expected="216000" xpath="//flow/block[1]/block[2]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[2]/@bpd"/>
- <eval expected="216000" xpath="//flow/block[1]/block[2]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[2]/block[1]/@bpd"/>
- <eval expected="cell2" xpath="//flow/block[1]/block[2]/block[1]/lineArea"/>
- <eval expected="color=#ffff00" xpath="//flow/block[1]/block[2]/@background"/>
-
- <!-- cell 3 -->
- <true xpath="//flow/block[1]/block[3]/@is-reference-area"/>
- <true xpath="not(boolean(//flow/block[1]/block[3]/@left-offset)) or (//flow/block[1]/block[3]/@left-offset = 0)"/>
- <eval expected="14400" xpath="//flow/block[1]/block[3]/@top-offset"/>
- <eval expected="144000" xpath="//flow/block[1]/block[3]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[3]/@bpd"/>
- <eval expected="144000" xpath="//flow/block[1]/block[3]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[3]/block[1]/@bpd"/>
- <eval expected="cell3" xpath="//flow/block[1]/block[3]/block[1]/lineArea"/>
- <eval expected="color=#ffa500" xpath="//flow/block[1]/block[3]/@background"/>
-
- <!-- cell 4 -->
- <true xpath="//flow/block[1]/block[4]/@is-reference-area"/>
- <eval expected="144000" xpath="//flow/block[1]/block[4]/@left-offset"/>
- <eval expected="14400" xpath="//flow/block[1]/block[4]/@top-offset"/>
- <eval expected="216000" xpath="//flow/block[1]/block[4]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[4]/@bpd"/>
- <eval expected="216000" xpath="//flow/block[1]/block[4]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[4]/block[1]/@bpd"/>
- <eval expected="cell4" xpath="//flow/block[1]/block[4]/block[1]/lineArea"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table_border-collapse_collapse_1.xml b/test/layoutengine/testcases/table_border-collapse_collapse_1.xml
deleted file mode 100644
index 515b51346..000000000
--- a/test/layoutengine/testcases/table_border-collapse_collapse_1.xml
+++ /dev/null
@@ -1,129 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks tables with collapse border model. Simple cell borders to start with.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="20pt">
- <fo:region-body margin="0pt"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block-container height="20pt" background-color="lightgray">
- <fo:block>block before table</fo:block>
- </fo:block-container>
- <fo:block margin="0pt" border="groove 5pt green" border-right="15pt" height="20pt">normal border here</fo:block>
- <fo:block-container margin-left="150pt" width="150pt + 7.5pt" height="5pt" background-color="gray">
- <fo:block/>
- </fo:block-container>
- <fo:block-container margin-left="150pt + 7.5pt" width="150pt - 7.5pt - 7.5pt" height="5pt" background-color="gray">
- <fo:block/>
- </fo:block-container>
- <fo:table table-layout="fixed" width="100%" border-collapse="collapse" background-color="rgb(90%, 90%, 100%)">
- <fo:table-column column-width="150pt"/>
- <fo:table-column column-width="150pt"/>
- <fo:table-body>
- <fo:table-row height="50pt">
- <fo:table-cell border="solid 15pt blue">
- <fo:block text-align="justify">cell1 cell1 cell1 cell1 cell1 cell1 cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="yellow" border="solid 5pt black" border-right="groove 15pt red" border-top="dotted 5pt black" border-bottom="dotted 5pt green">
- <fo:block text-align="justify">cell2 cell2 cell2 cell2 cell2 cell2 cell2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell background-color="orange">
- <fo:block>cell3</fo:block>
- </fo:table-cell>
- <fo:table-cell border="solid 10pt red" border-top="dotted 5pt red">
- <fo:block>cell4</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block background-color="lightgray">block after table</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- table dimensions -->
- <eval expected="320000" xpath="//flow/block[5]/@ipd"/>
- <eval expected="71900" xpath="//flow/block[5]/@bpd"/>
-
- <!-- cell 1 -->
- <true xpath="//flow/block[5]/block[1]/@is-reference-area"/>
- <eval expected="7500" xpath="//flow/block[5]/block[1]/@left-offset"/>
- <eval expected="7500" xpath="//flow/block[5]/block[1]/@top-offset"/>
- <eval expected="135000" xpath="//flow/block[5]/block[1]/@ipd"/>
- <eval expected="35000" xpath="//flow/block[5]/block[1]/@bpd"/>
- <eval expected="(solid,#0000ff,15000,collapse-outer)" xpath="//flow/block[5]/block[1]/@border-before"/>
- <eval expected="(solid,#0000ff,15000,collapse-inner)" xpath="//flow/block[5]/block[1]/@border-after"/>
- <eval expected="(solid,#0000ff,15000,collapse-outer)" xpath="//flow/block[5]/block[1]/@border-start"/>
- <eval expected="(solid,#0000ff,15000,collapse-inner)" xpath="//flow/block[5]/block[1]/@border-end"/>
- <eval expected="135000" xpath="//flow/block[5]/block[1]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[5]/block[1]/block[1]/@bpd"/>
-
- <!-- cell 2 -->
- <true xpath="//flow/block[5]/block[2]/@is-reference-area"/>
- <eval expected="157500" xpath="//flow/block[5]/block[2]/@left-offset"/>
- <eval expected="2500" xpath="//flow/block[5]/block[2]/@top-offset"/>
- <eval expected="135000" xpath="//flow/block[5]/block[2]/@ipd"/>
- <eval expected="40000" xpath="//flow/block[5]/block[2]/@bpd"/>
- <eval expected="(dotted,#000000,5000,collapse-outer)" xpath="//flow/block[5]/block[2]/@border-before"/>
- <eval expected="(dotted,#00ff00,5000,collapse-inner)" xpath="//flow/block[5]/block[2]/@border-after"/>
- <eval expected="(solid,#0000ff,15000,collapse-inner)" xpath="//flow/block[5]/block[2]/@border-start"/>
- <eval expected="(groove,#ff0000,15000,collapse-outer)" xpath="//flow/block[5]/block[2]/@border-end"/>
- <eval expected="color=#ffff00,repeat=0,horiz=0,vertical=0" xpath="//flow/block[5]/block[2]/@background"/>
- <eval expected="135000" xpath="//flow/block[5]/block[2]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[5]/block[2]/block[1]/@bpd"/>
-
- <!-- cell 3 -->
- <true xpath="//flow/block[5]/block[3]/@is-reference-area"/>
- <true xpath="not(boolean(//flow/block[5]/block[3]/@left-offset)) or (//flow/block[5]/block[3]/@left-offset = 0)"/>
- <eval expected="57500" xpath="//flow/block[5]/block[3]/@top-offset"/>
- <eval expected="145000" xpath="//flow/block[5]/block[3]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[5]/block[3]/@bpd"/>
- <eval expected="(solid,#0000ff,15000,collapse-inner)" xpath="//flow/block[5]/block[3]/@border-before"/>
- <true xpath="not(boolean(//flow/block[5]/block[3]/@border-after))"/>
- <true xpath="not(boolean(//flow/block[5]/block[3]/@border-start))"/>
- <eval expected="(solid,#ff0000,10000,collapse-inner)" xpath="//flow/block[5]/block[3]/@border-end"/>
- <eval expected="color=#ffa500,repeat=0,horiz=0,vertical=0" xpath="//flow/block[5]/block[3]/@background"/>
- <eval expected="145000" xpath="//flow/block[5]/block[3]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[5]/block[3]/block[1]/@bpd"/>
-
- <!-- cell 4 -->
- <true xpath="//flow/block[5]/block[4]/@is-reference-area"/>
- <eval expected="155000" xpath="//flow/block[5]/block[4]/@left-offset"/>
- <eval expected="52500" xpath="//flow/block[5]/block[4]/@top-offset"/>
- <eval expected="140000" xpath="//flow/block[5]/block[4]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[5]/block[4]/@bpd"/>
- <eval expected="(dotted,#ff0000,5000,collapse-inner)" xpath="//flow/block[5]/block[3]/@border-before"/>
- <eval expected="(solid,#ff0000,10000,collapse-outer)" xpath="//flow/block[5]/block[3]/@border-after"/>
- <eval expected="(solid,#ff0000,10000,collapse-inner)" xpath="//flow/block[5]/block[3]/@border-start"/>
- <eval expected="(solid,#ff0000,10000,collapse-outer)" xpath="//flow/block[5]/block[3]/@border-end"/>
- <eval expected="140000" xpath="//flow/block[5]/block[4]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[5]/block[4]/block[1]/@bpd"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table_border-collapse_collapse_2.xml b/test/layoutengine/testcases/table_border-collapse_collapse_2.xml
deleted file mode 100644
index e14a830cc..000000000
--- a/test/layoutengine/testcases/table_border-collapse_collapse_2.xml
+++ /dev/null
@@ -1,69 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks tables with collapse border model. Simple cell borders to start with.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="20pt">
- <fo:region-body margin="0pt"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="lightgray">block before table</fo:block>
- <fo:table table-layout="fixed" width="100%" border-collapse="collapse" padding="5pt">
- <fo:table-column column-width="2in"/>
- <fo:table-column column-width="2in"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell border="solid 10pt blue">
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="yellow" border="solid 5pt black">
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell background-color="orange" border="dotted 15pt black" number-columns-spanned="2">
- <fo:block>spanned</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row border="solid 15pt green">
- <fo:table-cell>
- <fo:block>cell4</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="yellow">
- <fo:block>cell5</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block background-color="lightgray">block after table</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="add checks here" xpath="false"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table_border-collapse_separate_1.xml b/test/layoutengine/testcases/table_border-collapse_separate_1.xml
deleted file mode 100644
index 9d9e97552..000000000
--- a/test/layoutengine/testcases/table_border-collapse_separate_1.xml
+++ /dev/null
@@ -1,117 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks tables, especially table-cells. This test: simple borders with border-collapse="separate".
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed" border-collapse="separate">
- <fo:table-column column-width="160pt"/>
- <fo:table-column column-width="200pt"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell background-color="lightgreen">
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="green" border="solid 5pt black">
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell background-color="yellow" border="solid 5pt" padding="5pt">
- <fo:block>cell3</fo:block>
- </fo:table-cell>
- <fo:table-cell height="20pt" background-color="orange" border-top="solid 5pt red" border-bottom="solid 10pt red" border-left="solid 15pt red" border-right="solid 20pt red">
- <fo:block text-align="center">cell4</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="59400" xpath="//flow/block[1]/@bpda"/>
- <eval expected="59400" xpath="//flow/block[1]/@bpd"/>
- <eval expected="360000" xpath="//flow/block[1]/@ipda"/>
- <eval expected="360000" xpath="//flow/block[1]/@ipd"/>
-
- <!-- cell 1 -->
- <eval expected="24400" xpath="//flow/block[1]/block[1]/@bpda"/>
- <eval expected="24400" xpath="//flow/block[1]/block[1]/@bpd"/>
- <eval expected="160000" xpath="//flow/block[1]/block[1]/@ipda"/>
- <eval expected="160000" xpath="//flow/block[1]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[1]/block[1]/block[1]/@bpda"/>
- <eval expected="14400" xpath="//flow/block[1]/block[1]/block[1]/@bpd"/>
- <eval expected="160000" xpath="//flow/block[1]/block[1]/block[1]/@ipda"/>
- <eval expected="160000" xpath="//flow/block[1]/block[1]/block[1]/@ipd"/>
-
- <!-- cell 2 -->
- <eval expected="24400" xpath="//flow/block[1]/block[2]/@bpda"/>
- <eval expected="14400" xpath="//flow/block[1]/block[2]/@bpd"/>
- <eval expected="200000" xpath="//flow/block[1]/block[2]/@ipda"/>
- <eval expected="190000" xpath="//flow/block[1]/block[2]/@ipd"/>
- <eval expected="165000" xpath="//flow/block[1]/block[2]/@left-offset"/>
- <eval expected="14400" xpath="//flow/block[1]/block[2]/block[1]/@bpda"/>
- <eval expected="14400" xpath="//flow/block[1]/block[2]/block[1]/@bpd"/>
- <eval expected="190000" xpath="//flow/block[1]/block[2]/block[1]/@ipda"/>
- <eval expected="190000" xpath="//flow/block[1]/block[2]/block[1]/@ipd"/>
- <eval expected="5000 5000 5000 5000" xpath="//flow/block[1]/block[2]/@bap"/>
-
- <!-- cell 3 -->
- <eval expected="35000" xpath="//flow/block[1]/block[3]/@bpda"/>
- <eval expected="15000" xpath="//flow/block[1]/block[3]/@bpd"/>
- <eval expected="160000" xpath="//flow/block[1]/block[3]/@ipda"/>
- <eval expected="140000" xpath="//flow/block[1]/block[3]/@ipd"/>
- <eval expected="10000" xpath="//flow/block[1]/block[3]/@left-offset"/>
- <eval expected="24400" xpath="//flow/block[1]/block[3]/@top-offset"/>
- <eval expected="14400" xpath="//flow/block[1]/block[3]/block[1]/@bpda"/>
- <eval expected="14400" xpath="//flow/block[1]/block[3]/block[1]/@bpd"/>
- <eval expected="140000" xpath="//flow/block[1]/block[3]/block[1]/@ipda"/>
- <eval expected="140000" xpath="//flow/block[1]/block[3]/block[1]/@ipd"/>
- <eval expected="10000 10000 10000 10000" xpath="//flow/block[1]/block[3]/@bap"/>
- <eval expected="5000" xpath="//flow/block[1]/block[3]/@padding-before"/>
- <eval expected="5000" xpath="//flow/block[1]/block[3]/@padding-after"/>
- <eval expected="5000" xpath="//flow/block[1]/block[3]/@padding-start"/>
- <eval expected="5000" xpath="//flow/block[1]/block[3]/@padding-end"/>
-
- <!-- cell 4 -->
- <eval expected="35000" xpath="//flow/block[1]/block[4]/@bpda"/>
- <eval expected="20000" xpath="//flow/block[1]/block[4]/@bpd"/>
- <eval expected="200000" xpath="//flow/block[1]/block[4]/@ipda"/>
- <eval expected="165000" xpath="//flow/block[1]/block[4]/@ipd"/>
- <eval expected="175000" xpath="//flow/block[1]/block[4]/@left-offset"/>
- <eval expected="24400" xpath="//flow/block[1]/block[4]/@top-offset"/>
- <eval expected="14400" xpath="//flow/block[1]/block[4]/block[1]/@bpda"/>
- <eval expected="14400" xpath="//flow/block[1]/block[4]/block[1]/@bpd"/>
- <eval expected="165000" xpath="//flow/block[1]/block[4]/block[1]/@ipda"/>
- <eval expected="165000" xpath="//flow/block[1]/block[4]/block[1]/@ipd"/>
- <eval expected="15000 20000 5000 10000" xpath="//flow/block[1]/block[4]/@bap"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table_border-collapse_separate_border-spacing.xml b/test/layoutengine/testcases/table_border-collapse_separate_border-spacing.xml
deleted file mode 100644
index 9b742802d..000000000
--- a/test/layoutengine/testcases/table_border-collapse_separate_border-spacing.xml
+++ /dev/null
@@ -1,200 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- 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.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed" border-collapse="separate" border-spacing="5pt 0pt">
- <fo:table-column column-width="160pt"/>
- <fo:table-column column-width="160pt"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell border="solid 5pt black">
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell border="solid 5pt">
- <fo:block>cell3</fo:block>
- </fo:table-cell>
- <fo:table-cell height="20pt" border="solid 10pt red">
- <fo:block>cell4</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <!-- this block is to visually check that there are no overlaps. -->
- <fo:block border="solid 0.1pt">Reference block</fo:block>
- <fo:table table-layout="fixed" border-collapse="separate"
- border-separation.inline-progression-direction="5pt" border-separation.block-progression-direction="0pt"
- margin="0pt" border="solid 5pt" padding="5pt">
- <fo:table-column column-width="160pt"/>
- <fo:table-column column-width="160pt"/>
- <fo:table-body start-indent="0pt" end-indent="0pt">
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell border="solid 5pt black">
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell border="solid 5pt">
- <fo:block>cell3</fo:block>
- </fo:table-cell>
- <fo:table-cell height="20pt" border="solid 10pt red">
- <fo:block>cell4</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <!-- this block is to visually check that there are no overlaps. -->
- <fo:block border="solid 0.1pt">Reference block</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="64400" xpath="//flow/block[1]/@bpda"/>
- <eval expected="64400" xpath="//flow/block[1]/@bpd"/>
- <eval expected="360000" xpath="//flow/block[1]/@ipda"/>
- <eval expected="360000" xpath="//flow/block[1]/@ipd"/>
-
- <!-- cell 1 -->
- <eval expected="24400" xpath="//flow/block[1]/block[1]/@bpda"/>
- <eval expected="24400" xpath="//flow/block[1]/block[1]/@bpd"/>
- <eval expected="155000" xpath="//flow/block[1]/block[1]/@ipda"/>
- <eval expected="155000" xpath="//flow/block[1]/block[1]/@ipd"/>
- <eval expected="2500" xpath="//flow/block[1]/block[1]/@left-offset"/>
- <eval expected="14400" xpath="//flow/block[1]/block[1]/block[1]/@bpda"/>
- <eval expected="14400" xpath="//flow/block[1]/block[1]/block[1]/@bpd"/>
- <eval expected="155000" xpath="//flow/block[1]/block[1]/block[1]/@ipda"/>
- <eval expected="155000" xpath="//flow/block[1]/block[1]/block[1]/@ipd"/>
-
- <!-- cell 2 -->
- <eval expected="24400" xpath="//flow/block[1]/block[2]/@bpda"/>
- <eval expected="14400" xpath="//flow/block[1]/block[2]/@bpd"/>
- <eval expected="155000" xpath="//flow/block[1]/block[2]/@ipda"/>
- <eval expected="145000" xpath="//flow/block[1]/block[2]/@ipd"/>
- <eval expected="167500" xpath="//flow/block[1]/block[2]/@left-offset"/>
- <eval expected="14400" xpath="//flow/block[1]/block[2]/block[1]/@bpda"/>
- <eval expected="14400" xpath="//flow/block[1]/block[2]/block[1]/@bpd"/>
- <eval expected="145000" xpath="//flow/block[1]/block[2]/block[1]/@ipda"/>
- <eval expected="145000" xpath="//flow/block[1]/block[2]/block[1]/@ipd"/>
- <eval expected="5000 5000 5000 5000" xpath="//flow/block[1]/block[2]/@bap"/>
-
- <!-- cell 3 -->
- <eval expected="40000" xpath="//flow/block[1]/block[3]/@bpda"/>
- <eval expected="30000" xpath="//flow/block[1]/block[3]/@bpd"/>
- <eval expected="155000" xpath="//flow/block[1]/block[3]/@ipda"/>
- <eval expected="145000" xpath="//flow/block[1]/block[3]/@ipd"/>
- <eval expected="7500" xpath="//flow/block[1]/block[3]/@left-offset"/>
- <eval expected="24400" xpath="//flow/block[1]/block[3]/@top-offset"/>
- <eval expected="14400" xpath="//flow/block[1]/block[3]/block[1]/@bpda"/>
- <eval expected="14400" xpath="//flow/block[1]/block[3]/block[1]/@bpd"/>
- <eval expected="145000" xpath="//flow/block[1]/block[3]/block[1]/@ipda"/>
- <eval expected="145000" xpath="//flow/block[1]/block[3]/block[1]/@ipd"/>
- <eval expected="5000 5000 5000 5000" xpath="//flow/block[1]/block[3]/@bap"/>
-
- <!-- cell 4 -->
- <eval expected="40000" xpath="//flow/block[1]/block[4]/@bpda"/>
- <eval expected="20000" xpath="//flow/block[1]/block[4]/@bpd"/>
- <eval expected="155000" xpath="//flow/block[1]/block[4]/@ipda"/>
- <eval expected="135000" xpath="//flow/block[1]/block[4]/@ipd"/>
- <eval expected="172500" xpath="//flow/block[1]/block[4]/@left-offset"/>
- <eval expected="24400" xpath="//flow/block[1]/block[4]/@top-offset"/>
- <eval expected="14400" xpath="//flow/block[1]/block[4]/block[1]/@bpda"/>
- <eval expected="14400" xpath="//flow/block[1]/block[4]/block[1]/@bpd"/>
- <eval expected="135000" xpath="//flow/block[1]/block[4]/block[1]/@ipda"/>
- <eval expected="135000" xpath="//flow/block[1]/block[4]/block[1]/@ipd"/>
- <eval expected="10000 10000 10000 10000" xpath="//flow/block[1]/block[4]/@bap"/>
-
- <!-- *** table 2 with border-separation instead of border-spacing *** -->
- <!-- *** only left-offsets should be different because of table border and padding *** -->
- <eval expected="84400" xpath="//flow/block[3]/@bpda"/>
- <eval expected="64400" xpath="//flow/block[3]/@bpd"/>
- <eval expected="360000" xpath="//flow/block[3]/@ipda"/>
- <eval expected="340000" xpath="//flow/block[3]/@ipd"/>
-
- <!-- cell 1 -->
- <eval expected="24400" xpath="//flow/block[3]/block[1]/@bpda"/>
- <eval expected="24400" xpath="//flow/block[3]/block[1]/@bpd"/>
- <eval expected="155000" xpath="//flow/block[3]/block[1]/@ipda"/>
- <eval expected="155000" xpath="//flow/block[3]/block[1]/@ipd"/>
- <eval expected="12500" xpath="//flow/block[3]/block[1]/@left-offset"/>
- <eval expected="14400" xpath="//flow/block[3]/block[1]/block[1]/@bpda"/>
- <eval expected="14400" xpath="//flow/block[3]/block[1]/block[1]/@bpd"/>
- <eval expected="155000" xpath="//flow/block[3]/block[1]/block[1]/@ipda"/>
- <eval expected="155000" xpath="//flow/block[3]/block[1]/block[1]/@ipd"/>
-
- <!-- cell 2 -->
- <eval expected="24400" xpath="//flow/block[3]/block[2]/@bpda"/>
- <eval expected="14400" xpath="//flow/block[3]/block[2]/@bpd"/>
- <eval expected="155000" xpath="//flow/block[3]/block[2]/@ipda"/>
- <eval expected="145000" xpath="//flow/block[3]/block[2]/@ipd"/>
- <eval expected="177500" xpath="//flow/block[3]/block[2]/@left-offset"/>
- <eval expected="14400" xpath="//flow/block[3]/block[2]/block[1]/@bpda"/>
- <eval expected="14400" xpath="//flow/block[3]/block[2]/block[1]/@bpd"/>
- <eval expected="145000" xpath="//flow/block[3]/block[2]/block[1]/@ipda"/>
- <eval expected="145000" xpath="//flow/block[3]/block[2]/block[1]/@ipd"/>
- <eval expected="5000 5000 5000 5000" xpath="//flow/block[3]/block[2]/@bap"/>
-
- <!-- cell 3 -->
- <eval expected="40000" xpath="//flow/block[3]/block[3]/@bpda"/>
- <eval expected="30000" xpath="//flow/block[3]/block[3]/@bpd"/>
- <eval expected="155000" xpath="//flow/block[3]/block[3]/@ipda"/>
- <eval expected="145000" xpath="//flow/block[3]/block[3]/@ipd"/>
- <eval expected="17500" xpath="//flow/block[3]/block[3]/@left-offset"/>
- <eval expected="24400" xpath="//flow/block[3]/block[3]/@top-offset"/>
- <eval expected="14400" xpath="//flow/block[3]/block[3]/block[1]/@bpda"/>
- <eval expected="14400" xpath="//flow/block[3]/block[3]/block[1]/@bpd"/>
- <eval expected="145000" xpath="//flow/block[3]/block[3]/block[1]/@ipda"/>
- <eval expected="145000" xpath="//flow/block[3]/block[3]/block[1]/@ipd"/>
- <eval expected="5000 5000 5000 5000" xpath="//flow/block[3]/block[3]/@bap"/>
-
- <!-- cell 4 -->
- <eval expected="40000" xpath="//flow/block[3]/block[4]/@bpda"/>
- <eval expected="20000" xpath="//flow/block[3]/block[4]/@bpd"/>
- <eval expected="155000" xpath="//flow/block[3]/block[4]/@ipda"/>
- <eval expected="135000" xpath="//flow/block[3]/block[4]/@ipd"/>
- <eval expected="182500" xpath="//flow/block[3]/block[4]/@left-offset"/>
- <eval expected="24400" xpath="//flow/block[3]/block[4]/@top-offset"/>
- <eval expected="14400" xpath="//flow/block[3]/block[4]/block[1]/@bpda"/>
- <eval expected="14400" xpath="//flow/block[3]/block[4]/block[1]/@bpd"/>
- <eval expected="135000" xpath="//flow/block[3]/block[4]/block[1]/@ipda"/>
- <eval expected="135000" xpath="//flow/block[3]/block[4]/block[1]/@ipd"/>
- <eval expected="10000 10000 10000 10000" xpath="//flow/block[3]/block[4]/@bap"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table_border-width_conditionality.xml b/test/layoutengine/testcases/table_border-width_conditionality.xml
deleted file mode 100644
index 194050e8e..000000000
--- a/test/layoutengine/testcases/table_border-width_conditionality.xml
+++ /dev/null
@@ -1,195 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks painting of borders and border-style.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="a4" page-width="210mm" page-height="297mm">
- <fo:region-body margin-top="100mm" margin-bottom="100mm"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="a4">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>
- <fo:block>Following Table has border-width.conditionality="discard"</fo:block>
- <fo:table border-style="solid" border-width="1pt" border-color="black" border-collapse="separate" border-start-width.conditionality="discard" border-end-width.conditionality="discard">
- <fo:table-column column-width="50%"/>
- <fo:table-column column-width="50%"/>
- <fo:table-body>
- <fo:table-row height="20mm">
- <fo:table-cell>
- <fo:block>1-1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>1-2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row height="20mm">
- <fo:table-cell>
- <fo:block>2-1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>2-2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row height="20mm">
- <fo:table-cell>
- <fo:block>3-1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>3-2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row height="20mm">
- <fo:table-cell>
- <fo:block>4-1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>4-2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row height="20mm">
- <fo:table-cell>
- <fo:block>5-1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>5-2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row height="20mm">
- <fo:table-cell>
- <fo:block>6-1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>6-2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row height="20mm">
- <fo:table-cell>
- <fo:block>7-1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>7-2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row height="20mm">
- <fo:table-cell>
- <fo:block>8-1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>8-2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block>Next Table has border.conditionality="retain"</fo:block>
- <fo:table border-style="solid" border-width="1pt" border-color="black" border-collapse="separate" border-start-width.conditionality="retain" border-end-width.conditionality="retain">
- <fo:table-column column-width="50%"/>
- <fo:table-column column-width="50%"/>
- <fo:table-body>
- <fo:table-row height="20mm">
- <fo:table-cell>
- <fo:block>1-1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>1-2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row height="20mm">
- <fo:table-cell>
- <fo:block>2-1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>2-2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row height="20mm">
- <fo:table-cell>
- <fo:block>3-1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>3-2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row height="20mm">
- <fo:table-cell>
- <fo:block>4-1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>4-2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row height="20mm">
- <fo:table-cell>
- <fo:block>5-1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>5-2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row height="20mm">
- <fo:table-cell>
- <fo:block>6-1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>6-2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row height="20mm">
- <fo:table-cell>
- <fo:block>7-1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>7-2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row height="20mm">
- <fo:table-cell>
- <fo:block>8-1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>8-2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- page1 test: table should have before border bu not after border-->
- <eval expected="(solid,#000000,1000)" xpath="//pageSequence/pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/@border-before"/>
- <eval expected="(none,#000000,0)" xpath="//pageSequence/pageViewport[1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/@border-after"/>
- <!-- page2 test: table should have after but no before -->
- <eval expected="(none,#000000,0)" xpath="//pageSequence/pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-before"/>
- <eval expected="(solid,#000000,1000)" xpath="//pageSequence/pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-after"/>
- <!-- page3 test: table should have both before and after border -->
- <eval expected="(solid,#000000,1000)" xpath="//pageSequence/pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-before"/>
- <eval expected="(solid,#000000,1000)" xpath="//pageSequence/pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-after"/>
- <!-- page4 test: table should have both before and after border -->
- <eval expected="(solid,#000000,1000)" xpath="//pageSequence/pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-before"/>
- <eval expected="(solid,#000000,1000)" xpath="//pageSequence/pageViewport[2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/@border-after"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table_border_padding.xml b/test/layoutengine/testcases/table_border_padding.xml
deleted file mode 100644
index 4ee5713ea..000000000
--- a/test/layoutengine/testcases/table_border_padding.xml
+++ /dev/null
@@ -1,138 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks tables with separate border model. Tests borders and padding on table-level.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="orange">before table</fo:block>
- <fo:table table-layout="fixed" border-collapse="separate" margin="0pt" border="solid 5pt" padding="5pt" width="4in + 10pt + 10pt" background-color="lightgray">
- <fo:table-column column-width="2in"/>
- <fo:table-column column-width="2in"/>
- <fo:table-body start-indent="0pt" end-indent="0pt">
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="yellow">
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell background-color="orange">
- <fo:block text-align="end">cell3</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell4</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block background-color="orange">after table</fo:block>
- <fo:block-container width="4in + 10pt + 10pt" background-color="lightgray">
- <fo:block margin="0pt" border="solid 5pt" padding="5pt">
- reference block
- </fo:block>
- </fo:block-container>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- table dimensions -->
- <eval expected="308000" xpath="//flow/block[2]/@ipda"/>
- <eval expected="288000" xpath="//flow/block[2]/@ipd"/>
- <eval expected="48800" xpath="//flow/block[2]/@bpda"/>
- <eval expected="28800" xpath="//flow/block[2]/@bpd"/>
- <eval expected="10000 10000 10000 10000" xpath="//flow/block[2]/@bap"/>
- <eval expected="(solid,#000000,5000)" xpath="//flow/block[2]/@border-start"/>
- <eval expected="(solid,#000000,5000)" xpath="//flow/block[2]/@border-end"/>
- <eval expected="(solid,#000000,5000)" xpath="//flow/block[2]/@border-before"/>
- <eval expected="(solid,#000000,5000)" xpath="//flow/block[2]/@border-after"/>
-
- <!-- cell 1 -->
- <true xpath="//flow/block[2]/block[1]/@is-reference-area"/>
- <eval expected="10000" xpath="//flow/block[2]/block[1]/@left-offset"/>
- <true xpath="not(boolean(//flow/block[2]/block[1]/@top-offset)) or (//flow/block[3]/block[1]/@top-offset = 0)"/>
- <eval expected="144000" xpath="//flow/block[2]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[1]/@bpd"/>
- <eval expected="144000" xpath="//flow/block[2]/block[1]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[1]/block[1]/@bpd"/>
- <eval expected="cell1" xpath="//flow/block[2]/block[1]/block[1]/lineArea"/>
-
- <!-- cell 2 -->
- <true xpath="//flow/block[2]/block[2]/@is-reference-area"/>
- <eval expected="154000" xpath="//flow/block[2]/block[2]/@left-offset"/>
- <true xpath="not(boolean(//flow/block[2]/block[2]/@top-offset)) or (//flow/block[3]/block[2]/@top-offset = 0)"/>
- <eval expected="144000" xpath="//flow/block[2]/block[2]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[2]/@bpd"/>
- <eval expected="144000" xpath="//flow/block[2]/block[2]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[2]/block[1]/@bpd"/>
- <eval expected="cell2" xpath="//flow/block[2]/block[2]/block[1]/lineArea"/>
- <eval expected="color=#ffff00,repeat=0,horiz=0,vertical=0" xpath="//flow/block[2]/block[2]/@background"/>
-
- <!-- cell 3 -->
- <true xpath="//flow/block[2]/block[3]/@is-reference-area"/>
- <eval expected="10000" xpath="//flow/block[2]/block[3]/@left-offset"/>
- <eval expected="14400" xpath="//flow/block[2]/block[3]/@top-offset"/>
- <eval expected="144000" xpath="//flow/block[2]/block[3]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[3]/@bpd"/>
- <eval expected="144000" xpath="//flow/block[2]/block[3]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[3]/block[1]/@bpd"/>
- <eval expected="cell3" xpath="//flow/block[2]/block[3]/block[1]/lineArea"/>
- <eval expected="color=#ffa500,repeat=0,horiz=0,vertical=0" xpath="//flow/block[2]/block[3]/@background"/>
-
- <!-- cell 4 -->
- <true xpath="//flow/block[2]/block[4]/@is-reference-area"/>
- <eval expected="154000" xpath="//flow/block[2]/block[4]/@left-offset"/>
- <eval expected="14400" xpath="//flow/block[2]/block[4]/@top-offset"/>
- <eval expected="144000" xpath="//flow/block[2]/block[4]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[4]/@bpd"/>
- <eval expected="144000" xpath="//flow/block[2]/block[4]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[4]/block[1]/@bpd"/>
- <eval expected="cell4" xpath="//flow/block[2]/block[4]/block[1]/lineArea"/>
-
- <element-list category="breaker">
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="10000" aux="true"/>
- <box w="14400"/>
- <penalty w="20000" p="0"/>
- <box w="14400"/>
- <box w="10000" aux="true"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="10000" aux="true"/>
- <box w="14400"/>
- <box w="10000" aux="true"/>
- <skip>3</skip>
- </element-list>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table_border_padding_2.xml b/test/layoutengine/testcases/table_border_padding_2.xml
deleted file mode 100644
index cea526998..000000000
--- a/test/layoutengine/testcases/table_border_padding_2.xml
+++ /dev/null
@@ -1,203 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks border and padding conditionality on table.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="2in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" id="retain">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed" width="100%" border-collapse="separate" border-spacing="5pt"
- padding-before="20pt" padding-before.conditionality="retain"
- padding-after="20pt" padding-after.conditionality="retain"
- border-before-style="solid" border-before-width="5pt" border-before-width.conditionality="retain"
- border-after-style="solid" border-after-width="5pt" border-after-width.conditionality="retain">
- <fo:table-column column-width="proportional-column-width(1)"/>
- <fo:table-column column-width="proportional-column-width(9)"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell background-color="yellow">
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="orange">
- <fo:block text-align="justify">
-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.
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal" id="discard">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed" width="100%" border-collapse="separate" border-spacing="5pt"
- padding-before="20pt" padding-before.conditionality="discard"
- padding-after="20pt" padding-after.conditionality="discard"
- border-before-style="solid" border-before-width="5pt" border-before-width.conditionality="discard"
- border-after-style="solid" border-after-width="5pt" border-after-width.conditionality="discard">
- <fo:table-column column-width="proportional-column-width(1)"/>
- <fo:table-column column-width="proportional-column-width(9)"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell background-color="yellow">
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="orange">
- <fo:block text-align="justify">
-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.
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker" id="retain">
- <box w="0"/> <!-- Helper box bearing the SpaceHandlingPosition and making sure the glue gets processed -->
- <penalty w="0" p="INF"/>
- <glue w="25000"/>
-
- <box w="0"/>
-
- <penalty w="0" p="INF"/>
- <glue w="25000"/>
- <penalty w="14400"/> <!-- p is not of interest here -->
- <glue w="-50000"/>
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="25000"/>
-
- <box w="28800"/>
-
- <penalty w="0" p="INF"/>
- <glue w="25000"/>
- <penalty w="0" p="0"/>
- <glue w="-50000"/>
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="25000"/>
-
- <box w="14400"/>
-
- <!-- skip three more lines -->
- <skip>8</skip>
- <skip>8</skip>
- <skip>8</skip>
- <skip>8</skip>
- <skip>8</skip>
-
- <penalty w="0" p="INF"/>
- <glue w="25000"/>
- <penalty w="0" p="0"/>
- <glue w="-50000"/>
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="25000"/>
-
- <box w="28800"/> <!-- end of table -->
-
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="25000"/>
-
- <box w="0"/> <!-- This is used to make sure the preceding glue is not cut off -->
-
- <skip>3</skip>
- </element-list>
- <element-list category="breaker" id="discard">
- <box w="0"/> <!-- Helper box used to notify the LM for the addAreas stage about the discarded spaces -->
- <penalty w="0" p="INF"/>
- <glue w="25000"/>
- <box w="0"/>
- <penalty w="14400"/> <!-- p is not of interest here -->
- <box w="28800"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="28800"/>
-
- <box w="0"/> <!-- SpaceHandlingPosition-bearing helper box -->
-
- <penalty w="0" p="INF"/>
- <glue w="25000"/>
- <box w="0"/> <!-- This is used to make sure the preceding glue is not cut off -->
-
- <skip>3</skip>
- </element-list>
-
- <!-- retain case -->
- <eval expected="(solid,#000000,5000)" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@border-before"/>
- <eval expected="20000" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@padding-before"/>
-
- <eval expected="(solid,#000000,5000)" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@border-after"/>
- <eval expected="20000" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@padding-after"/>
-
- <eval expected="(solid,#000000,5000)" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@border-before"/>
- <eval expected="20000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@padding-before"/>
-
- <eval expected="(solid,#000000,5000)" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@border-after"/>
- <eval expected="20000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@padding-after"/>
-
- <!-- discard case -->
- <eval expected="(solid,#000000,5000)" xpath="//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@border-before"/>
- <eval expected="20000" xpath="//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@padding-before"/>
-
- <true xpath="not(boolean(//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@border-after))"/>
- <true xpath="not(boolean(//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@padding-after))"/>
-
- <true xpath="not(boolean(//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@border-before))"/>
- <true xpath="not(boolean(//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@padding-before))"/>
-
- <eval expected="(solid,#000000,5000)" xpath="//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@border-after"/>
- <eval expected="20000" xpath="//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@padding-after"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table_break-before_break-after.xml b/test/layoutengine/testcases/table_break-before_break-after.xml
deleted file mode 100644
index af2df2e0b..000000000
--- a/test/layoutengine/testcases/table_break-before_break-after.xml
+++ /dev/null
@@ -1,56 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks breaks on fo:table.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>before the table</fo:block>
- <fo:table table-layout="fixed" width="100%" break-before="odd-page" break-after="odd-page">
- <fo:table-column/>
- <fo:table-column/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell background-color="orange">
- <fo:block>cell3</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell4</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block>after the table</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="5" xpath="count(//pageViewport)"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table_bug36403.xml b/test/layoutengine/testcases/table_bug36403.xml
deleted file mode 100644
index e67439213..000000000
--- a/test/layoutengine/testcases/table_bug36403.xml
+++ /dev/null
@@ -1,99 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks <a href="http://issues.apache.org/bugzilla/show_bug.cgi?id=36403">Bugzilla issue 36403</a>.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" id="skipped-step">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed" width="100%" border-collapse="separate">
- <fo:table-column column-number="1"/>
- <fo:table-column column-number="2"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>Row 1 Col 1</fo:block>
- </fo:table-cell>
- <fo:table-cell border="solid 18pt" background-color="yellow">
- <fo:block>Row 1 Col 3</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal" id="backtrack">
- <fo:flow flow-name="xsl-region-body">
- <!-- This situation is similar to the one on http://wiki.apache.org/xmlgraphics-fop/TableLayout/KnuthElementsForTables/RowBorder2
- where the algorithm has to backtrack to the previous row. This is simply to verify that the change necessary because
- of the above test case doesn't break the row backtracking that was already in place. -->
- <fo:table table-layout="fixed" width="100%" border-collapse="separate">
- <fo:table-column column-number="1"/>
- <fo:table-column column-number="2"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell number-rows-spanned="2" font-size="10pt" line-height="10pt">
- <fo:block>Cell 1/1</fo:block>
- <fo:block>Cell 1/2</fo:block>
- <fo:block>Cell 1/3</fo:block>
- </fo:table-cell>
- <fo:table-cell border="solid 2pt" background-color="yellow">
- <fo:block>Cell 2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell border="solid 5pt" background-color="orange">
- <fo:block>Cell 3</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker" id="skipped-step">
- <box w="0"/>
- <penalty w="14400" p="INF"/> <!-- Skipped step has an INFINITE penalty -->
- <box w="50400"/>
- <skip>3</skip>
- </element-list>
- <element-list category="breaker" id="backtrack">
- <box w="0"/>
- <penalty w="10000"/> <!-- p > 0 && p <= INF -->
- <box w="18400"/>
- <penalty w="0" p="0"/>
- <box w="0"/>
- <penalty w="1600"/> <!-- p = ??? --> <!-- I'm not sure here what the penalty values should be for these two. -->
- <box w="0"/>
- <penalty w="11600"/> <!-- p = ??? -->
- <box w="24400"/>
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table_bug37270.xml b/test/layoutengine/testcases/table_bug37270.xml
deleted file mode 100644
index c3d8cf6ae..000000000
--- a/test/layoutengine/testcases/table_bug37270.xml
+++ /dev/null
@@ -1,89 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks <a href="http://issues.apache.org/bugzilla/show_bug.cgi?id=36403">Bugzilla issue 36403</a>.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed" width="100%" border-collapse="separate">
- <fo:table-column/>
- <fo:table-column/>
- <fo:table-column/>
- <fo:table-column/>
- <fo:table-body>
- <fo:table-row>
- <!-- Note: the padding-top caused a NullPointerException -->
- <fo:table-cell padding-top="40pt" number-rows-spanned="3" background-color="yellow" id="left">
- <fo:block>row 1 col 1</fo:block>
- </fo:table-cell>
- <!-- absent table-cells in first row -->
- <!--fo:table-cell column-number="4">
- <fo:block>xxxxx</fo:block>
- </fo:table-cell-->
- </fo:table-row>
- <fo:table-row background-color="orange">
- <fo:table-cell number-columns-spanned="2" id="r2c2">
- <fo:block>row 2 col 2</fo:block>
- </fo:table-cell>
- <fo:table-cell id="r2c4">
- <fo:block>Row 2 col 4</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell number-columns-spanned="2" id="r3c2">
- <fo:block>row 3 col 2</fo:block>
- </fo:table-cell>
- <fo:table-cell id="r3c4">
- <fo:block>Row 3 col 4</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- Simply check that FOP doesn't fail with an IndexOutOfBoundsException or an NPE -->
- <element-list category="breaker">
- <box w="0"/>
- <penalty w="14400"/> <!-- p > 0 && p <= INF -->
- <box w="14400"/>
- <penalty w="14400"/> <!-- p > 0 && p <= INF -->
- <box w="40000"/>
- <skip>3</skip>
- </element-list>
-
- <!-- Checking vertical position here. I had trouble with this while debugging. -->
- <true xpath="not(boolean(//block[@prod-id='left']/@top-offset))"/>
- <true xpath="not(boolean(//block[@prod-id='r2c2']/@top-offset))"/>
- <true xpath="not(boolean(//block[@prod-id='r2c4']/@top-offset))"/>
- <eval expected="14400" xpath="//block[@prod-id='r3c2']/@top-offset"/>
- <eval expected="14400" xpath="//block[@prod-id='r3c4']/@top-offset"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table_keep-together.xml b/test/layoutengine/testcases/table_keep-together.xml
deleted file mode 100644
index 5c0d563ed..000000000
--- a/test/layoutengine/testcases/table_keep-together.xml
+++ /dev/null
@@ -1,82 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks keep-together on tables.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg" white-space-collapse="true" widows="0" orphans="0">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="4.5 * 14.4pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>block1</fo:block>
- <fo:table table-layout="fixed" keep-together.within-page="always">
- <fo:table-column/>
- <fo:table-column/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell id="cell1">
- <fo:block>line1</fo:block>
- <fo:block>line2</fo:block>
- </fo:table-cell>
- <fo:table-cell id="cell2">
- <fo:block>line1</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell id="cell3">
- <fo:block>line1</fo:block>
- </fo:table-cell>
- <fo:table-cell id="cell4">
- <fo:block>line1</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block>block2</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="table-cell" id="cell1">
- <box w="14400"/>
- <penalty w="0" p="INF"/> <!-- the keep-together on the table-row has to result in an INFINITE penalty here -->
- <box w="14400"/>
- </element-list>
- <element-list category="table-cell" id="cell2">
- <box w="14400"/>
- </element-list>
- <element-list category="breaker">
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="28800"/>
- <penalty w="0" p="INF"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <skip>3</skip>
- </element-list>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table_margin_space-before_space-after.xml b/test/layoutengine/testcases/table_margin_space-before_space-after.xml
deleted file mode 100644
index ddf51a9f2..000000000
--- a/test/layoutengine/testcases/table_margin_space-before_space-after.xml
+++ /dev/null
@@ -1,114 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks basic tables. Tests table spaces and margins.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block background-color="orange">before table</fo:block>
- <fo:table table-layout="fixed" space-before="5pt" space-after="10pt" margin-left="5pt" margin-right="10pt" width="4in + 15pt" background-color="lightgray">
- <fo:table-column column-width="2in"/>
- <fo:table-column column-width="2in"/>
- <fo:table-body start-indent="0pt" end-indent="0pt">
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="yellow">
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell background-color="orange">
- <fo:block text-align="end">cell3</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell4</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block background-color="orange">after table</fo:block>
- <fo:block-container width="4in + 15pt">
- <fo:block space-before="5pt" space-after="10pt" margin-left="5pt" margin-right="10pt" background-color="lightgray">
- reference block
- </fo:block>
- </fo:block-container>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- spaces -->
- <eval expected="5000" xpath="//flow/block[2]/@space-before"/>
- <eval expected="10000" xpath="//flow/block[2]/@space-after"/>
- <!-- table dimensions -->
- <eval expected="303000" xpath="//flow/block[2]/@ipda"/>
- <eval expected="303000" xpath="//flow/block[2]/@ipd"/>
- <eval expected="43800" xpath="//flow/block[2]/@bpda"/>
- <eval expected="28800" xpath="//flow/block[2]/@bpd"/>
- <!-- cell 1 -->
- <true xpath="//flow/block[2]/block[1]/@is-reference-area"/>
- <eval expected="5000" xpath="//flow/block[2]/block[1]/@left-offset"/>
- <true xpath="not(boolean(//flow/block[2]/block[1]/@top-offset)) or (//flow/block[3]/block[1]/@top-offset = 0)"/>
- <eval expected="144000" xpath="//flow/block[2]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[1]/@bpd"/>
- <eval expected="144000" xpath="//flow/block[2]/block[1]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[1]/block[1]/@bpd"/>
- <eval expected="cell1" xpath="//flow/block[2]/block[1]/block[1]/lineArea"/>
- <!-- cell 2 -->
- <true xpath="//flow/block[2]/block[2]/@is-reference-area"/>
- <eval expected="149000" xpath="//flow/block[2]/block[2]/@left-offset"/>
- <true xpath="not(boolean(//flow/block[2]/block[2]/@top-offset)) or (//flow/block[3]/block[2]/@top-offset = 0)"/>
- <eval expected="144000" xpath="//flow/block[2]/block[2]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[2]/@bpd"/>
- <eval expected="144000" xpath="//flow/block[2]/block[2]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[2]/block[1]/@bpd"/>
- <eval expected="cell2" xpath="//flow/block[2]/block[2]/block[1]/lineArea"/>
- <eval expected="color=#ffff00" xpath="//flow/block[2]/block[2]/@background"/>
- <!-- cell 3 -->
- <true xpath="//flow/block[2]/block[3]/@is-reference-area"/>
- <eval expected="5000" xpath="//flow/block[2]/block[3]/@left-offset"/>
- <eval expected="14400" xpath="//flow/block[2]/block[3]/@top-offset"/>
- <eval expected="144000" xpath="//flow/block[2]/block[3]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[3]/@bpd"/>
- <eval expected="144000" xpath="//flow/block[2]/block[3]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[3]/block[1]/@bpd"/>
- <eval expected="cell3" xpath="//flow/block[2]/block[3]/block[1]/lineArea"/>
- <eval expected="color=#ffa500" xpath="//flow/block[2]/block[3]/@background"/>
- <!-- cell 4 -->
- <true xpath="//flow/block[2]/block[4]/@is-reference-area"/>
- <eval expected="149000" xpath="//flow/block[2]/block[4]/@left-offset"/>
- <eval expected="14400" xpath="//flow/block[2]/block[4]/@top-offset"/>
- <eval expected="144000" xpath="//flow/block[2]/block[4]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[4]/@bpd"/>
- <eval expected="144000" xpath="//flow/block[2]/block[4]/block[1]/@ipd"/>
- <eval expected="14400" xpath="//flow/block[2]/block[4]/block[1]/@bpd"/>
- <eval expected="cell4" xpath="//flow/block[2]/block[4]/block[1]/lineArea"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table_padding_percentages.xml b/test/layoutengine/testcases/table_padding_percentages.xml
deleted file mode 100644
index 73345c44a..000000000
--- a/test/layoutengine/testcases/table_padding_percentages.xml
+++ /dev/null
@@ -1,74 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks relative padding on a fo:table.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table margin="0pt" padding="5%" background-color="yellow" border-collapse="separate">
- <fo:table-column column-number="1" />
- <fo:table-column column-number="2" />
- <fo:table-column column-number="3" />
- <fo:table-header>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>Header Col 1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Header Col 2</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Header Col 3</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-header>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>Row 1 Col 1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Row 1 Col 2</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>Row 1 Col 3</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block>Table on yellow background with 5% padding</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="18000" xpath="//flow/block/@start-indent"/>
- <eval expected="18000" xpath="//flow/block/@end-indent"/>
- <eval expected="color=#ffff00" xpath="//flow/block/@background"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table_space-before_space-after_1.xml b/test/layoutengine/testcases/table_space-before_space-after_1.xml
deleted file mode 100644
index 430d8689a..000000000
--- a/test/layoutengine/testcases/table_space-before_space-after_1.xml
+++ /dev/null
@@ -1,203 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks space properties on table.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="1.8in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" id="retain">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed" width="100%" border-collapse="separate" space-before="20pt" space-before.conditionality="retain" space-after="10pt" space-after.conditionality="retain">
- <fo:table-column column-width="proportional-column-width(1)"/>
- <fo:table-column column-width="proportional-column-width(9)"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block text-align="justify">
-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.
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block space-before.optimum="10pt" space-before.conditionality="retain" space-after="20pt" space-after.conditionality="retain">
-Two blocks, testing conditionality="retain".
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- <fo:page-sequence master-reference="normal" id="discard">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed" width="100%" border-collapse="separate" space-before="20pt" space-before.conditionality="discard" space-after="10pt" space-after.conditionality="discard">
- <fo:table-column column-width="proportional-column-width(1)"/>
- <fo:table-column column-width="proportional-column-width(9)"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block text-align="justify">
-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.
- </fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block space-before="10pt" space-before.conditionality="discard" space-after="20pt" space-after.conditionality="discard">
-Two blocks, testing conditionality="discard".
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker" id="retain">
- <box w="0"/> <!-- Helper box bearing the SpaceHandlingPosition and making sure the glue gets processed -->
- <penalty w="0" p="INF"/>
- <glue w="20000"/>
-
- <box w="0"/>
-
- <penalty w="0" p="INF"/>
- <glue w="10000"/>
- <penalty w="14400"/> <!-- p is not of interest here -->
- <glue w="-30000"/>
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="20000"/>
-
- <box w="28800"/>
-
- <penalty w="0" p="INF"/>
- <glue w="10000"/>
- <penalty w="0" p="0"/>
- <glue w="-30000"/>
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="20000"/>
-
- <box w="14400"/>
-
- <!-- skip three more lines -->
- <skip>8</skip>
- <skip>8</skip>
- <skip>8</skip>
- <skip>8</skip>
- <skip>8</skip>
-
- <penalty w="0" p="INF"/>
- <glue w="10000"/>
- <penalty w="0" p="0"/>
- <glue w="-30000"/>
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="20000"/>
-
- <box w="28800"/> <!-- end of table -->
-
- <penalty w="0" p="INF" aux="true"/>
- <glue w="10000"/>
- <penalty w="0" p="0"/>
- <glue w="-10000"/>
-
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="10000"/>
-
- <box w="14400"/> <!-- second block -->
-
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="20000"/>
-
- <box w="0"/> <!-- This is used to make sure the preceding glue is not cut off -->
-
- <skip>3</skip>
- </element-list>
- <element-list category="breaker" id="discard">
- <box w="0"/> <!-- Helper box used to notify the LM for the addAreas stage about the discarded spaces -->
- <box w="0"/>
- <penalty w="14400"/> <!-- p is not of interest here -->
- <box w="28800"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="28800"/>
- <penalty w="0" p="0"/>
- <glue w="10000"/>
-
- <box w="14400"/> <!-- second block -->
-
- <box w="0"/> <!-- SpaceHandlingPosition-bearing helper box -->
-
- <skip>3</skip>
- </element-list>
-
- <eval expected="4" xpath="count(//pageViewport)"/>
-
- <!-- 1: retain -->
- <eval expected="20000" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before"/>
- <eval expected="10000" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-after"/>
- <eval expected="20000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before"/>
- <!-- the following space is eliminated/collapsed through space resolution -->
- <true xpath="not(boolean(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-after))"/>
- <eval expected="10000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/@space-before"/>
- <eval expected="20000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/@space-after"/>
-
- <!-- 2: discard -->
- <true xpath="not(boolean(//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before))"/>
- <true xpath="not(boolean(//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before))"/>
- <true xpath="not(boolean(//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before))"/>
- <true xpath="not(boolean(//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-after))"/>
- <eval expected="10000" xpath="//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/@space-before"/>
- <true xpath="not(boolean(//pageViewport[@nr=4]/page/regionViewport/regionBody/mainReference/span/flow/block[2]/@space-after))"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table_space-before_space-after_2.xml b/test/layoutengine/testcases/table_space-before_space-after_2.xml
deleted file mode 100644
index 310c1135a..000000000
--- a/test/layoutengine/testcases/table_space-before_space-after_2.xml
+++ /dev/null
@@ -1,104 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks space properties on table. Demonstrates that spaces are repeated on every generated area.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="30pt">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body" line-height="10pt" font-size="9pt">
- <fo:table table-layout="fixed" width="100%" border-collapse="separate" space-before="5pt" space-before.conditionality="retain" background-color="yellow">
- <fo:table-column column-width="proportional-column-width(1)"/>
- <fo:table-column column-width="proportional-column-width(9)"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>line 1</fo:block>
- <fo:block>line 2</fo:block>
- <fo:block>line 3</fo:block>
- <fo:block>line 4</fo:block>
- <fo:block>line 5</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <element-list category="breaker">
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="5000"/>
- <box w="10000"/>
- <penalty w="0" p="0"/>
- <glue w="-5000"/>
-
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="5000"/>
- <box w="10000"/>
- <penalty w="0" p="0"/>
- <glue w="-5000"/>
-
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="5000"/>
- <box w="10000"/>
- <penalty w="0" p="0"/>
- <glue w="-5000"/>
-
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="5000"/>
- <box w="10000"/>
- <penalty w="0" p="0"/>
- <glue w="-5000"/>
-
- <box w="0"/>
- <penalty w="0" p="INF"/>
- <glue w="5000"/>
- <box w="10000"/>
-
- <skip>3</skip>
- </element-list>
- <eval expected="3" xpath="count(//pageViewport)"/>
- <eval expected="5000" xpath="//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before"/>
- <eval expected="5000" xpath="//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before"/>
- <eval expected="5000" xpath="//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/@space-before"/>
- <eval expected="1" xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block)"/>
- <eval expected="1" xpath="count(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block)"/>
- <eval expected="1" xpath="count(//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block)"/>
- <eval expected="2" xpath="count(//pageViewport[@nr=1]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[2]/block)"/>
- <eval expected="2" xpath="count(//pageViewport[@nr=2]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block)"/>
- <eval expected="1" xpath="count(//pageViewport[@nr=3]/page/regionViewport/regionBody/mainReference/span/flow/block[1]/block[1]/block)"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table_table-layout_fixed_1.xml b/test/layoutengine/testcases/table_table-layout_fixed_1.xml
deleted file mode 100644
index 7d1ebbaad..000000000
--- a/test/layoutengine/testcases/table_table-layout_fixed_1.xml
+++ /dev/null
@@ -1,109 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks tables with table-layout="fixed".
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="20pt">
- <fo:region-body margin="0pt" background-color="lightgray"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed" width="100%" border-collapse="separate" border="solid 5pt">
- <fo:table-column column-width="100pt"/>
- <fo:table-column/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="yellow">
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell background-color="orange">
- <fo:block>cell3</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell4</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:table table-layout="fixed" width="300pt" space-before="10pt" border-collapse="separate" border="solid 5pt">
- <fo:table-column column-width="100pt"/>
- <fo:table-column column-width="proportional-column-width(0.5)"/>
- <fo:table-column/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="yellow">
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell3</fo:block>
- </fo:table-cell>
- </fo:table-row>
- <fo:table-row>
- <fo:table-cell background-color="orange">
- <fo:block>cell4</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell5</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="orange">
- <fo:block>cell6</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- table 1 -->
- <eval expected="330000" xpath="//flow/block[1]/@ipda"/>
- <eval expected="320000" xpath="//flow/block[1]/@ipd"/>
- <eval expected="100000" xpath="//flow/block[1]/block[1]/@ipda"/>
- <eval expected="100000" xpath="//flow/block[1]/block[1]/@ipd"/>
- <eval expected="220000" xpath="//flow/block[1]/block[2]/@ipda"/>
- <eval expected="220000" xpath="//flow/block[1]/block[2]/@ipd"/>
-
- <eval expected="10000" xpath="//flow/block[2]/@space-before"/>
-
- <!-- table 2 -->
- <eval expected="310000" xpath="//flow/block[2]/@ipda"/>
- <eval expected="300000" xpath="//flow/block[2]/@ipd"/>
- <eval expected="100000" xpath="//flow/block[2]/block[1]/@ipda"/>
- <eval expected="100000" xpath="//flow/block[2]/block[1]/@ipd"/>
- <eval expected="66666" xpath="//flow/block[2]/block[2]/@ipda"/>
- <eval expected="66666" xpath="//flow/block[2]/block[2]/@ipd"/>
- <eval expected="133333" xpath="//flow/block[2]/block[3]/@ipda"/>
- <eval expected="133333" xpath="//flow/block[2]/block[3]/@ipd"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table_table-layout_fixed_2.xml b/test/layoutengine/testcases/table_table-layout_fixed_2.xml
deleted file mode 100644
index 0f9674608..000000000
--- a/test/layoutengine/testcases/table_table-layout_fixed_2.xml
+++ /dev/null
@@ -1,65 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks tables with table-layout="fixed" with no table-columns specified.
- </p>
- <p>
- Not yet implemented. Please see the comment in ColumnSetup.createColumnsFromFirstRow().
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in" margin="20pt">
- <fo:region-body margin="0pt" background-color="lightgray"/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:table table-layout="fixed" width="300pt" border="solid 5pt">
- <fo:table-body>
- <fo:table-cell width="100pt">
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="yellow">
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- <fo:table-cell starts-row="true" background-color="orange">
- <fo:block>cell3</fo:block>
- </fo:table-cell>
- <fo:table-cell>
- <fo:block>cell4</fo:block>
- </fo:table-cell>
- </fo:table-body>
- </fo:table>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- table 1 -->
- <eval expected="310000" xpath="//flow/block[1]/@ipda"/>
- <eval expected="300000" xpath="//flow/block[1]/@ipd"/>
- <eval expected="100000" xpath="//flow/block[1]/block[1]/@ipda"/>
- <eval expected="100000" xpath="//flow/block[1]/block[1]/@ipd"/>
- <eval expected="200000" xpath="//flow/block[1]/block[2]/@ipda"/>
- <eval expected="200000" xpath="//flow/block[1]/block[2]/@ipd"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/table_width.xml b/test/layoutengine/testcases/table_width.xml
deleted file mode 100644
index 8897ab5a1..000000000
--- a/test/layoutengine/testcases/table_width.xml
+++ /dev/null
@@ -1,97 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks table width in certain situations.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block-container width="100%" height="10pt" background-color="lightgray">
- <fo:block/>
- </fo:block-container>
- <fo:table table-layout="fixed" width="100%" border-collapse="separate">
- <fo:table-column column-width="proportional-column-width(3)"/>
- <fo:table-column column-width="proportional-column-width(2)"/>
- <fo:table-body>
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="yellow">
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- <fo:block start-indent="1in" end-indent="1in">
- <fo:block-container width="100%" height="10pt" background-color="lightgray">
- <fo:block/>
- </fo:block-container>
- <fo:table table-layout="fixed" width="100%" border-collapse="separate" background-color="gray">
- <fo:table-column column-width="proportional-column-width(3)"/>
- <fo:table-column column-width="proportional-column-width(2)"/>
- <fo:table-body start-indent="0cm" end-indent="0cm">
- <fo:table-row>
- <fo:table-cell>
- <fo:block>cell1</fo:block>
- </fo:table-cell>
- <fo:table-cell background-color="yellow">
- <fo:block>cell2</fo:block>
- </fo:table-cell>
- </fo:table-row>
- </fo:table-body>
- </fo:table>
- </fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- width of the first block-container -->
- <eval expected="360000" xpath="//flow/block[1]/@ipd"/>
-
- <!-- width of the first table -->
- <eval expected="360000" xpath="//flow/block[2]/@ipd"/>
- <eval expected="216000" xpath="//flow/block[2]/block[1]/@ipd"/>
- <eval expected="144000" xpath="//flow/block[2]/block[2]/@ipd"/>
-
- <!-- width of the enclosing block establishing the indents -->
- <eval expected="216000" xpath="//flow/block[3]/@ipd"/>
- <eval expected="72000" xpath="//flow/block[3]/@start-indent"/>
- <eval expected="72000" xpath="//flow/block[3]/@end-indent"/>
-
- <!-- width of the second block-container -->
- <eval expected="216000" xpath="//flow/block[3]/block[1]/@ipd"/>
- <eval expected="72000" xpath="//flow/block[3]/block[1]/@start-indent"/>
- <eval expected="72000" xpath="//flow/block[3]/block[1]/@end-indent"/>
-
- <!-- width of the second table -->
- <eval expected="216000" xpath="//flow/block[3]/block[2]/@ipd"/>
- <eval expected="129600" xpath="//flow/block[3]/block[2]/block[1]/@ipd"/>
- <eval expected="86400" xpath="//flow/block[3]/block[2]/block[2]/@ipd"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/text-decoration_1.xml b/test/layoutengine/testcases/text-decoration_1.xml
deleted file mode 100644
index 74c6240bf..000000000
--- a/test/layoutengine/testcases/text-decoration_1.xml
+++ /dev/null
@@ -1,104 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks text-decoration.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <!-- single text-decoration value -->
- <fo:block id="someid">underline: normal <fo:inline text-decoration="underline">underline</fo:inline> normal</fo:block>
- <fo:block>overline: normal <fo:inline text-decoration="overline">overline</fo:inline> normal</fo:block>
- <fo:block>line-through: normal <fo:inline text-decoration="line-through">line-through</fo:inline> normal</fo:block>
- <fo:block>blink: normal <fo:inline text-decoration="blink">blink</fo:inline> normal</fo:block>
- <!-- combinations -->
- <fo:block>overline/underline: normal <fo:inline text-decoration="overline underline">over/under</fo:inline> normal</fo:block>
- <fo:block>overline/underline/line-through: normal <fo:inline text-decoration="overline underline line-through">over/under/through</fo:inline> normal</fo:block>
- <!-- on different elements -->
- <fo:block text-decoration="underline">full block underlined</fo:block>
- <fo:block>underlining a single character: <fo:character character="x" text-decoration="underline"/></fo:block>
- <fo:block>page-number and citation: <fo:page-number text-decoration="underline"/> <fo:page-number-citation ref-id="someid" text-decoration="underline"/></fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- *** Single text-decoration value *** -->
- <true xpath="not(//flow/block[1]/lineArea/text/@underline-score)"/>
- <true xpath="//flow/block[1]/lineArea/inlineparent[1]/text/@underline-score"/>
- <true xpath="not(//flow/block[1]/lineArea/inlineparent[1]/text/@overline-score)"/>
- <true xpath="not(//flow/block[1]/lineArea/inlineparent[1]/text/@overline-score-color)"/>
- <true xpath="not(//flow/block[1]/lineArea/inlineparent[1]/text/@through-score)"/>
- <true xpath="not(//flow/block[1]/lineArea/inlineparent[1]/text/@through-score-color)"/>
- <eval expected="#000000" xpath="//flow/block[1]/lineArea/inlineparent[1]/text/@underline-score-color"/>
- <eval expected="underline" xpath="//flow/block[1]/lineArea/inlineparent[1]"/>
-
- <true xpath="//flow/block[2]/lineArea/inlineparent[1]/text/@overline-score"/>
- <eval expected="#000000" xpath="//flow/block[2]/lineArea/inlineparent[1]/text/@overline-score-color"/>
- <eval expected="overline" xpath="//flow/block[2]/lineArea/inlineparent[1]"/>
-
- <true xpath="//flow/block[3]/lineArea/inlineparent[1]/text/@through-score"/>
- <eval expected="#000000" xpath="//flow/block[3]/lineArea/inlineparent[1]/text/@through-score-color"/>
- <eval expected="line-through" xpath="//flow/block[3]/lineArea/inlineparent[1]"/>
-
- <true xpath="//flow/block[4]/lineArea/inlineparent[1]/text/@blink"/>
- <eval expected="blink" xpath="//flow/block[4]/lineArea/inlineparent[1]/text"/>
-
-
- <!-- *** combinations *** -->
- <true xpath="//flow/block[5]/lineArea/inlineparent[1]/text/@underline-score"/>
- <true xpath="//flow/block[5]/lineArea/inlineparent[1]/text/@overline-score"/>
- <true xpath="not(//flow/block[5]/lineArea/inlineparent[1]/text/@through-score)"/>
- <eval expected="#000000" xpath="//flow/block[5]/lineArea/inlineparent[1]/text/@underline-score-color"/>
- <eval expected="#000000" xpath="//flow/block[5]/lineArea/inlineparent[1]/text/@overline-score-color"/>
- <eval expected="over/under" xpath="//flow/block[5]/lineArea/inlineparent[1]"/>
-
- <true xpath="//flow/block[6]/lineArea/inlineparent[1]/text/@underline-score"/>
- <true xpath="//flow/block[6]/lineArea/inlineparent[1]/text/@overline-score"/>
- <true xpath="//flow/block[6]/lineArea/inlineparent[1]/text/@through-score"/>
- <eval expected="#000000" xpath="//flow/block[6]/lineArea/inlineparent[1]/text/@underline-score-color"/>
- <eval expected="#000000" xpath="//flow/block[6]/lineArea/inlineparent[1]/text/@overline-score-color"/>
- <eval expected="#000000" xpath="//flow/block[6]/lineArea/inlineparent[1]/text/@through-score-color"/>
- <eval expected="over/under/through" xpath="//flow/block[6]/lineArea/inlineparent[1]"/>
-
- <!-- *** on different elements *** -->
- <true xpath="//flow/block[7]/lineArea/text/@underline-score"/>
- <eval expected="#000000" xpath="//flow/block[7]/lineArea/text/@underline-score-color"/>
-
- <true xpath="not(//flow/block[8]/lineArea/text/@underline-score)"/>
- <true xpath="//flow/block[8]/lineArea/char/@underline-score"/>
- <eval expected="#000000" xpath="//flow/block[8]/lineArea/char/@underline-score-color"/>
-
- <true xpath="not(//flow/block[9]/lineArea/text[1]/@underline-score)"/>
- <true xpath="//flow/block[9]/lineArea/text[2]/@underline-score"/>
- <true xpath="not(//flow/block[9]/lineArea/text[3]/@underline-score)"/>
- <true xpath="//flow/block[9]/lineArea/text[4]/@underline-score"/>
- <eval expected="#000000" xpath="//flow/block[9]/lineArea/text[2]/@underline-score-color"/>
- <eval expected="#000000" xpath="//flow/block[9]/lineArea/text[4]/@underline-score-color"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/text-decoration_2.xml b/test/layoutengine/testcases/text-decoration_2.xml
deleted file mode 100644
index 07f565b39..000000000
--- a/test/layoutengine/testcases/text-decoration_2.xml
+++ /dev/null
@@ -1,88 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks text-decoration (inheritance and color).
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <!-- nested inlines -->
- <fo:block>normal <fo:inline color="blue" text-decoration="underline">under <fo:inline color="red" text-decoration="line-through">through</fo:inline> <fo:inline text-decoration="none">none</fo:inline> under</fo:inline> normal</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- *** nested inlines *** -->
- <true xpath="not(//flow/block[1]/lineArea/*[1]/@underline-score)"/> <!-- normal -->
- <true xpath="not(//flow/block[1]/lineArea/*[1]/@through-score)"/>
- <eval xpath="name(//flow/block[1]/lineArea/*[1])" expected="text"/>
- <eval xpath="//flow/block[1]/lineArea/*[1]/@color" expected="#000000"/>
-
- <eval xpath="name(//flow/block[1]/lineArea/*[2])" expected="inlineparent"/>
-
- <eval xpath="name(//flow/block[1]/lineArea/*[2]/*[1])" expected="text"/> <!-- under -->
- <eval xpath="//flow/block[1]/lineArea/*[2]/*[1]/@color" expected="#0000ff"/>
- <true xpath="//flow/block[1]/lineArea/*[2]/*[1]/@underline-score"/>
- <eval xpath="//flow/block[1]/lineArea/*[2]/*[1]/@underline-score-color" expected="#0000ff"/>
- <true xpath="not(//flow/block[1]/lineArea/*[2]/*[1]/*[1]/@through-score)"/>
-
- <eval xpath="name(//flow/block[1]/lineArea/*[2]/*[2])" expected="inlineparent"/>
-
- <eval xpath="name(//flow/block[1]/lineArea/*[2]/*[2]/*[1])" expected="text"/> <!--through -->
- <eval xpath="//flow/block[1]/lineArea/*[2]/*[2]/*[1]/@color" expected="#ff0000"/>
- <true xpath="//flow/block[1]/lineArea/*[2]/*[2]/*[1]/@underline-score"/>
- <eval xpath="//flow/block[1]/lineArea/*[2]/*[2]/*[1]/@underline-score-color" expected="#0000ff"/>
- <true xpath="//flow/block[1]/lineArea/*[2]/*[2]/*[1]/@through-score"/>
- <eval xpath="//flow/block[1]/lineArea/*[2]/*[2]/*[1]/@through-score-color" expected="#ff0000"/>
-
- <eval xpath="name(//flow/block[1]/lineArea/*[2]/*[3])" expected="text"/> <!-- a space -->
- <eval xpath="//flow/block[1]/lineArea/*[2]/*[3]/@color" expected="#0000ff"/>
- <true xpath="//flow/block[1]/lineArea/*[2]/*[3]/@underline-score"/>
- <eval xpath="//flow/block[1]/lineArea/*[2]/*[3]/@underline-score-color" expected="#0000ff"/>
- <true xpath="not(//flow/block[1]/lineArea/*[2]/*[3]/*[1]/@through-score)"/>
-
- <eval xpath="name(//flow/block[1]/lineArea/*[2]/*[4])" expected="inlineparent"/>
-
- <eval xpath="name(//flow/block[1]/lineArea/*[2]/*[4]/*[1])" expected="text"/> <!-- none -->
- <eval xpath="//flow/block[1]/lineArea/*[2]/*[4]/*[1]/@color" expected="#0000ff"/>
- <true xpath="not(//flow/block[1]/lineArea/*[2]/*[4]/*[1]/@underline-score)"/>
- <true xpath="not(//flow/block[1]/lineArea/*[2]/*[4]/*[1]/@through-score)"/>
-
- <eval xpath="name(//flow/block[1]/lineArea/*[2]/*[5])" expected="text"/> <!-- under -->
- <eval xpath="//flow/block[1]/lineArea/*[2]/*[5]/@color" expected="#0000ff"/>
- <true xpath="//flow/block[1]/lineArea/*[2]/*[5]/@underline-score"/>
- <eval xpath="//flow/block[1]/lineArea/*[2]/*[5]/@underline-score-color" expected="#0000ff"/>
- <true xpath="not(//flow/block[1]/lineArea/*[2]/*[5]/*[1]/@through-score)"/>
-
- <true xpath="not(//flow/block[1]/lineArea/*[3]/@underline-score)"/> <!-- normal -->
- <true xpath="not(//flow/block[1]/lineArea/*[3]/@through-score)"/>
- <eval xpath="name(//flow/block[1]/lineArea/*[3])" expected="text"/>
- <eval xpath="//flow/block[1]/lineArea/*[3]/@color" expected="#000000"/>
-
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/wrapper_block.xml b/test/layoutengine/testcases/wrapper_block.xml
deleted file mode 100644
index 689fba616..000000000
--- a/test/layoutengine/testcases/wrapper_block.xml
+++ /dev/null
@@ -1,58 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks fo:wrapper with block-level content.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>block content <fo:wrapper color="red">inline<fo:block>a block inside the wrapper</fo:block>inline</fo:wrapper> wrapper is finished.</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <!-- Just check if this really results in 3 lines. -->
- <element-list category="breaker">
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <penalty w="0" p="0"/>
- <box w="14400"/>
- <skip>3</skip>
- </element-list>
- <eval expected="3" xpath="count(//lineArea)"/>
- <eval expected="2" xpath="count(//flow/block/*[1]/text)"/>
- <eval expected="1" xpath="count(//flow/block/*[2]/lineArea/text)"/>
- <eval expected="2" xpath="count(//flow/block/*[3]/text)"/>
- <eval expected="#000000" xpath="//flow/block/lineArea[1]/text[1]/@color"/>
- <eval expected="#ff0000" xpath="//flow/block/lineArea[1]/text[2]/@color"/>
- <eval expected="#ff0000" xpath="//flow/block/block[1]/lineArea/text[1]/@color"/>
- <eval expected="#ff0000" xpath="//flow/block/lineArea[2]/text[1]/@color"/>
- <eval expected="#000000" xpath="//flow/block/lineArea[2]/text[2]/@color"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/wrapper_inline.xml b/test/layoutengine/testcases/wrapper_inline.xml
deleted file mode 100644
index 2fdfd9837..000000000
--- a/test/layoutengine/testcases/wrapper_inline.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks fo:wrapper.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>block content <fo:wrapper font-style="italic" color="red">inline-level stuff inside wrapper on page <fo:page-number/></fo:wrapper> wrapper is finished.</fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="2" xpath="count(//flow/block/lineArea)"/>
- <eval expected="4" xpath="count(//flow/block/lineArea[1]/text)"/>
- <eval expected="14400" xpath="//flow/block/lineArea[1]/@bpda"/>
- <eval expected="#000000" xpath="//flow/block/lineArea[1]/text[1]/@color"/>
- <eval expected="#ff0000" xpath="//flow/block/lineArea[1]/text[2]/@color"/>
- <eval expected="#ff0000" xpath="//flow/block/lineArea[1]/text[3]/@color"/>
- <eval expected="#000000" xpath="//flow/block/lineArea[1]/text[4]/@color"/>
- <eval expected="1" xpath="//flow/block/lineArea[1]/text[3]"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/wrapper_text-transform_1.xml b/test/layoutengine/testcases/wrapper_text-transform_1.xml
deleted file mode 100644
index 827113678..000000000
--- a/test/layoutengine/testcases/wrapper_text-transform_1.xml
+++ /dev/null
@@ -1,48 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks text-transform.
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>none: <fo:wrapper text-transform="none">This tExT is left as-IS.</fo:wrapper></fo:block>
- <fo:block>capitalize: <fo:wrapper text-transform="capitalize">This tExT is capitalized.</fo:wrapper></fo:block>
- <fo:block>uppercase: <fo:wrapper text-transform="uppercase">This tExT is converted to uppercase. Liberté, Égalité, Fraternité und Käse.</fo:wrapper></fo:block>
- <fo:block>lowercase: <fo:wrapper text-transform="lowercase">This tExT is CONVERTED to lowercase. LibertÉ, Égalité, Fraternité und KÄSE.</fo:wrapper></fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="none: This tExT is left as-IS." xpath="//flow/block[1]"/>
- <eval expected="capitalize: This TExT Is Capitalized." xpath="//flow/block[2]"/>
- <!-- spaces are discarded when around a line break -->
- <eval expected="uppercase: THIS TEXT IS CONVERTED TO UPPERCASE.LIBERTÉ, ÉGALITÉ, FRATERNITÉ UND KÄSE." xpath="//flow/block[3]"/>
- <eval expected="lowercase: this text is converted to lowercase. liberté, égalité,fraternité und käse." xpath="//flow/block[4]"/>
- </checks>
-</testcase>
diff --git a/test/layoutengine/testcases/wrapper_text-transform_2.xml b/test/layoutengine/testcases/wrapper_text-transform_2.xml
deleted file mode 100644
index cb82e3f8f..000000000
--- a/test/layoutengine/testcases/wrapper_text-transform_2.xml
+++ /dev/null
@@ -1,47 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!--
- Copyright 2005 The Apache Software Foundation
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--->
-<!-- $Id$ -->
-<testcase>
- <info>
- <p>
- This test checks text-transform (especially some mean cases for capitalize).
- </p>
- <p>
- The second block may cause rised eyebrows. An explanation can be found at
- <a href="http://marc.theaimsgroup.com/?t=111718934800001&amp;r=1&amp;w=2">http://marc.theaimsgroup.com/?t=111718934800001&amp;r=1&amp;w=2</a>
- </p>
- </info>
- <fo>
- <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xmlns:svg="http://www.w3.org/2000/svg">
- <fo:layout-master-set>
- <fo:simple-page-master master-name="normal" page-width="5in" page-height="5in">
- <fo:region-body/>
- </fo:simple-page-master>
- </fo:layout-master-set>
- <fo:page-sequence master-reference="normal" white-space-collapse="true">
- <fo:flow flow-name="xsl-region-body">
- <fo:block>1: <fo:wrapper text-transform="capitalize">This tExT is capitalized.</fo:wrapper></fo:block>
- <fo:block>2: <fo:wrapper text-transform="capitalize">This tExT is ca<fo:wrapper color="red">pit</fo:wrapper>A<fo:inline color="blue">liZ</fo:inline>ed.</fo:wrapper></fo:block>
- </fo:flow>
- </fo:page-sequence>
- </fo:root>
- </fo>
- <checks>
- <eval expected="1: This TExT Is Capitalized." xpath="//flow/block[1]"/>
- <eval expected="2: This TExT Is CapitAliZed." xpath="//flow/block[2]"/>
- </checks>
-</testcase>