From 9e32e5e8839bd5ebfa7a97b6d452ea771367791e Mon Sep 17 00:00:00 2001 From: Joerg Pietschmann Date: Sun, 20 Nov 2005 22:22:10 +0000 Subject: [PATCH] Added license header to disabled testcases XML file. Removed obsolete files and code. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@345785 13f79535-47bb-0310-9956-ffa450edef68 --- test/fotree/disabled-testcases.txt | 1 - test/fotree/disabled-testcases.xml | 16 +++++++ .../layoutengine/LayoutEngineTestSuite.java | 12 ----- test/layoutengine/disabled-testcases.dtd | 16 +++++++ test/layoutengine/disabled-testcases.txt | 45 ------------------- test/layoutengine/disabled-testcases.xml | 18 +++++++- 6 files changed, 49 insertions(+), 59 deletions(-) delete mode 100644 test/fotree/disabled-testcases.txt delete mode 100644 test/layoutengine/disabled-testcases.txt diff --git a/test/fotree/disabled-testcases.txt b/test/fotree/disabled-testcases.txt deleted file mode 100644 index 59cd3c9c0..000000000 --- a/test/fotree/disabled-testcases.txt +++ /dev/null @@ -1 +0,0 @@ -demo-test-failure.fo diff --git a/test/fotree/disabled-testcases.xml b/test/fotree/disabled-testcases.xml index 0b13bb1df..2b7ae2ad6 100755 --- a/test/fotree/disabled-testcases.xml +++ b/test/fotree/disabled-testcases.xml @@ -1,4 +1,20 @@ + + demo test failure diff --git a/test/java/org/apache/fop/layoutengine/LayoutEngineTestSuite.java b/test/java/org/apache/fop/layoutengine/LayoutEngineTestSuite.java index f09b84971..f90d9f8e7 100644 --- a/test/java/org/apache/fop/layoutengine/LayoutEngineTestSuite.java +++ b/test/java/org/apache/fop/layoutengine/LayoutEngineTestSuite.java @@ -63,17 +63,6 @@ public class LayoutEngineTestSuite { DebugHelper.registerStandardElementListObservers(); } - public static String[] readLinesFromFile(File f) throws IOException { - List lines = new java.util.ArrayList(); - Reader reader = new FileReader(f); - BufferedReader br = new BufferedReader(reader); - String line; - while ((line = br.readLine()) != null) { - lines.add(line); - } - return (String[])lines.toArray(new String[lines.size()]); - } - public static String[] readDisabledTestcases(File f) throws IOException { List lines = new java.util.ArrayList(); Source stylesheet = new StreamSource( @@ -133,7 +122,6 @@ public class LayoutEngineTestSuite { String disabled = System.getProperty("fop.layoutengine.disabled"); if (disabled != null && disabled.length() > 0) { filter = new AndFileFilter(new NotFileFilter( -// new NameFileFilter(readLinesFromFile(new File(disabled)))), new NameFileFilter(readDisabledTestcases(new File(disabled)))), filter); } diff --git a/test/layoutengine/disabled-testcases.dtd b/test/layoutengine/disabled-testcases.dtd index f99198169..d3db57974 100755 --- a/test/layoutengine/disabled-testcases.dtd +++ b/test/layoutengine/disabled-testcases.dtd @@ -1,3 +1,19 @@ + + diff --git a/test/layoutengine/disabled-testcases.txt b/test/layoutengine/disabled-testcases.txt deleted file mode 100644 index 8bb23ac87..000000000 --- a/test/layoutengine/disabled-testcases.txt +++ /dev/null @@ -1,45 +0,0 @@ -block-container_reference-orientation_bug36391.xml -block-container_space-before_space-after_3.xml -block_font-stretch.xml -block_linefeed-treatment.xml -block_padding_2.xml -block_space-before_space-after_8.xml -block_white-space-collapse_2.xml -block_white-space-treatment_1.xml -block_white-space-treatment_2.xml -block_word-spacing.xml -block_word-spacing_text-align_justify.xml -external-graphic_oversized.xml -footnote_space-resolution.xml -inline-block_keep-together.xml -inline_block_nested_3.xml -inline-container_block_nested.xml -inline-container_border_padding.xml -inline_letter-spacing.xml -inline_word-spacing.xml -inline_word-spacing_text-align_justify.xml -leader-alignment.xml -leader_leader-pattern_use-content_bug.xml -list-block_keep-with-previous.xml -list-item_block_keep-with-previous.xml -marker_bug.xml -page-breaking_4.xml -page-breaking_6.xml -page-height_indefinite_simple.xml -page-number-citation_background-image.xml -page-number-citation_complex_1.xml -page-number-citation_complex_2.xml -page-number_initial-page-number_2.xml -region-body_column-count_footnote.xml -region-body_column-count_bug36356.xml -table-body_background-image.xml -table_border-collapse_collapse_1.xml -table_border-collapse_collapse_2.xml -table_border_padding.xml -table-cell_block_keep-with-previous.xml -table-cell_border_padding_conditionality.xml -table-column_first-row-width.xml -table-header_background-image.xml -table-row_keep-with-previous.xml -table_table-layout_fixed_2.xml -table_border-width_conditionality.xml diff --git a/test/layoutengine/disabled-testcases.xml b/test/layoutengine/disabled-testcases.xml index b1debef39..1089827d9 100755 --- a/test/layoutengine/disabled-testcases.xml +++ b/test/layoutengine/disabled-testcases.xml @@ -1,5 +1,21 @@ - + + + block-container reference-orientation bug36391 -- 2.39.5