diff options
author | osnola <alonso@loria.fr> | 2016-08-10 13:26:58 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2016-08-11 08:13:27 +0200 |
commit | f471c55378290fb8dc3571c74cc6abe90d81c46c (patch) | |
tree | 5270be418f0bab492c7b04fd0d63723144468aaf /writerperfect | |
parent | 1faae1f37521df7734462443936e1469820fd489 (diff) |
add test files for libstaroffice
Change-Id: Iabb5965eb09e9128f2cfc720bf69e97f6a96fa22
Diffstat (limited to 'writerperfect')
-rw-r--r-- | writerperfect/qa/unit/WpftCalcFilterTest.cxx | 1 | ||||
-rw-r--r-- | writerperfect/qa/unit/WpftDrawFilterTest.cxx | 5 | ||||
-rw-r--r-- | writerperfect/qa/unit/WpftImportTestBase.hxx | 3 | ||||
-rw-r--r-- | writerperfect/qa/unit/WpftWriterFilterTest.cxx | 5 | ||||
-rw-r--r-- | writerperfect/qa/unit/data/calc/libstaroffice/fail/.gitignore | 0 | ||||
-rw-r--r-- | writerperfect/qa/unit/data/calc/libstaroffice/indeterminate/.gitignore | 0 | ||||
-rw-r--r-- | writerperfect/qa/unit/data/calc/libstaroffice/pass/Calc_3.1.sdc | bin | 0 -> 11776 bytes | |||
-rw-r--r-- | writerperfect/qa/unit/data/draw/libstaroffice/fail/.gitignore | 0 | ||||
-rw-r--r-- | writerperfect/qa/unit/data/draw/libstaroffice/indeterminate/.gitignore | 0 | ||||
-rw-r--r-- | writerperfect/qa/unit/data/draw/libstaroffice/pass/Draw_3.1.sda | bin | 0 -> 23040 bytes | |||
-rw-r--r-- | writerperfect/qa/unit/data/writer/libstaroffice/fail/.gitignore | 0 | ||||
-rw-r--r-- | writerperfect/qa/unit/data/writer/libstaroffice/indeterminate/.gitignore | 0 | ||||
-rw-r--r-- | writerperfect/qa/unit/data/writer/libstaroffice/pass/Writer_3.1.sdw | bin | 0 -> 10752 bytes |
13 files changed, 14 insertions, 0 deletions
diff --git a/writerperfect/qa/unit/WpftCalcFilterTest.cxx b/writerperfect/qa/unit/WpftCalcFilterTest.cxx index 848f7e218f32..98c43024a821 100644 --- a/writerperfect/qa/unit/WpftCalcFilterTest.cxx +++ b/writerperfect/qa/unit/WpftCalcFilterTest.cxx @@ -39,6 +39,7 @@ void WpftCalcFilterTest::test() doTest("com.sun.star.comp.Calc.MWAWCalcImportFilter", "/writerperfect/qa/unit/data/calc/libmwaw/"); doTest("com.sun.star.comp.Calc.MSWorksCalcImportFilter", "/writerperfect/qa/unit/data/calc/libwps/"); doTest("org.libreoffice.comp.Calc.NumbersImportFilter", "/writerperfect/qa/unit/data/calc/libetonyek/", aEtonyekOptional); + doTest("org.libreoffice.comp.Calc.StarOfficeCalcImportFilter", "/writerperfect/qa/unit/data/calc/libstaroffice/"); } CPPUNIT_TEST_SUITE_REGISTRATION(WpftCalcFilterTest); diff --git a/writerperfect/qa/unit/WpftDrawFilterTest.cxx b/writerperfect/qa/unit/WpftDrawFilterTest.cxx index c5288eedf20b..b2c9bb823b6d 100644 --- a/writerperfect/qa/unit/WpftDrawFilterTest.cxx +++ b/writerperfect/qa/unit/WpftDrawFilterTest.cxx @@ -45,6 +45,10 @@ void WpftDrawFilterTest::test() {"MacDraw_II.hqx", REQUIRE_MWAW_VERSION(0, 3, 3)}, {"MacDraw_Pro_1.0.hqx", REQUIRE_MWAW_VERSION(0, 3, 4)}, }; + const writerperfect::test::WpftOptionalMap_t aStarOfficeOptional + { + {"Draw_3.1.sda", REQUIRE_STAROFFICE_VERSION(0, 0, 1)}, + }; doTest("com.sun.star.comp.Draw.CDRImportFilter", "/writerperfect/qa/unit/data/draw/libcdr/"); doTest("com.sun.star.comp.Draw.CMXImportFilter", "/writerperfect/qa/unit/data/draw/libcdr-cmx/"); @@ -54,6 +58,7 @@ void WpftDrawFilterTest::test() doTest("com.sun.star.comp.Draw.VisioImportFilter", "/writerperfect/qa/unit/data/draw/libvisio/"); doTest("com.sun.star.comp.Draw.WPGImportFilter", "/writerperfect/qa/unit/data/draw/libwpg/"); doTest("org.libreoffice.comp.Draw.PageMakerImportFilter", "/writerperfect/qa/unit/data/draw/libpagemaker/"); + doTest("org.libreoffice.comp.Draw.StarOfficeDrawImportFilter", "/writerperfect/qa/unit/data/draw/libstaroffice/", aStarOfficeOptional); doTest("org.libreoffice.comp.Draw.ZMFImportFilter", "/writerperfect/qa/unit/data/draw/libzmf/"); } diff --git a/writerperfect/qa/unit/WpftImportTestBase.hxx b/writerperfect/qa/unit/WpftImportTestBase.hxx index ce7017240a70..a3baec93a3e7 100644 --- a/writerperfect/qa/unit/WpftImportTestBase.hxx +++ b/writerperfect/qa/unit/WpftImportTestBase.hxx @@ -38,6 +38,9 @@ #define REQUIRE_MWAW_VERSION(major, minor, micro) \ REQUIRE_VERSION(MWAW_VERSION_MAJOR, MWAW_VERSION_MINOR, MWAW_VERSION_MICRO, major, minor, micro) +#define REQUIRE_STAROFFICE_VERSION(major, minor, micro) \ + REQUIRE_VERSION(STAROFFICE_VERSION_MAJOR, STAROFFICE_VERSION_MINOR, STAROFFICE_VERSION_MICRO, major, minor, micro) + #define REQUIRE_WPS_VERSION(major, minor, micro) \ REQUIRE_VERSION(WPS_VERSION_MAJOR, WPS_VERSION_MINOR, WPS_VERSION_MICRO, major, minor, micro) diff --git a/writerperfect/qa/unit/WpftWriterFilterTest.cxx b/writerperfect/qa/unit/WpftWriterFilterTest.cxx index bf97854b9076..3e9c6bad9105 100644 --- a/writerperfect/qa/unit/WpftWriterFilterTest.cxx +++ b/writerperfect/qa/unit/WpftWriterFilterTest.cxx @@ -47,6 +47,10 @@ void WpftWriterFilterTest::test() {"RagTime_3.2.hqx", REQUIRE_MWAW_VERSION(0, 3, 2)}, {"RagTime_5.5.rag", REQUIRE_MWAW_VERSION(0, 3, 6)}, }; + const writerperfect::test::WpftOptionalMap_t aStarOfficeOptional + { + {"Writer_3.1.sdw", REQUIRE_STAROFFICE_VERSION(0, 0, 2)}, + }; const writerperfect::test::WpftOptionalMap_t aWpsOptional { {"Word_5.0_DOS.doc", REQUIRE_WPS_VERSION(0, 4, 3)}, @@ -58,6 +62,7 @@ void WpftWriterFilterTest::test() doTest("com.sun.star.comp.Writer.MSWorksImportFilter", "/writerperfect/qa/unit/data/writer/libwps/", aWpsOptional); doTest("com.sun.star.comp.Writer.MWAWImportFilter", "/writerperfect/qa/unit/data/writer/libmwaw/", aMWAWOptional); doTest("org.libreoffice.comp.Writer.PagesImportFilter", "/writerperfect/qa/unit/data/writer/libetonyek/", aEtonyekOptional); + doTest("org.libreoffice.comp.Writer.StarOfficeWriterImportFilter", "/writerperfect/qa/unit/data/writer/libstaroffice/", aStarOfficeOptional); doTest("com.sun.star.comp.Writer.WordPerfectImportFilter", "/writerperfect/qa/unit/data/writer/libwpd/"); } diff --git a/writerperfect/qa/unit/data/calc/libstaroffice/fail/.gitignore b/writerperfect/qa/unit/data/calc/libstaroffice/fail/.gitignore new file mode 100644 index 000000000000..e69de29bb2d1 --- /dev/null +++ b/writerperfect/qa/unit/data/calc/libstaroffice/fail/.gitignore diff --git a/writerperfect/qa/unit/data/calc/libstaroffice/indeterminate/.gitignore b/writerperfect/qa/unit/data/calc/libstaroffice/indeterminate/.gitignore new file mode 100644 index 000000000000..e69de29bb2d1 --- /dev/null +++ b/writerperfect/qa/unit/data/calc/libstaroffice/indeterminate/.gitignore diff --git a/writerperfect/qa/unit/data/calc/libstaroffice/pass/Calc_3.1.sdc b/writerperfect/qa/unit/data/calc/libstaroffice/pass/Calc_3.1.sdc Binary files differnew file mode 100644 index 000000000000..683d1a85cc5f --- /dev/null +++ b/writerperfect/qa/unit/data/calc/libstaroffice/pass/Calc_3.1.sdc diff --git a/writerperfect/qa/unit/data/draw/libstaroffice/fail/.gitignore b/writerperfect/qa/unit/data/draw/libstaroffice/fail/.gitignore new file mode 100644 index 000000000000..e69de29bb2d1 --- /dev/null +++ b/writerperfect/qa/unit/data/draw/libstaroffice/fail/.gitignore diff --git a/writerperfect/qa/unit/data/draw/libstaroffice/indeterminate/.gitignore b/writerperfect/qa/unit/data/draw/libstaroffice/indeterminate/.gitignore new file mode 100644 index 000000000000..e69de29bb2d1 --- /dev/null +++ b/writerperfect/qa/unit/data/draw/libstaroffice/indeterminate/.gitignore diff --git a/writerperfect/qa/unit/data/draw/libstaroffice/pass/Draw_3.1.sda b/writerperfect/qa/unit/data/draw/libstaroffice/pass/Draw_3.1.sda Binary files differnew file mode 100644 index 000000000000..bd03aa7c176e --- /dev/null +++ b/writerperfect/qa/unit/data/draw/libstaroffice/pass/Draw_3.1.sda diff --git a/writerperfect/qa/unit/data/writer/libstaroffice/fail/.gitignore b/writerperfect/qa/unit/data/writer/libstaroffice/fail/.gitignore new file mode 100644 index 000000000000..e69de29bb2d1 --- /dev/null +++ b/writerperfect/qa/unit/data/writer/libstaroffice/fail/.gitignore diff --git a/writerperfect/qa/unit/data/writer/libstaroffice/indeterminate/.gitignore b/writerperfect/qa/unit/data/writer/libstaroffice/indeterminate/.gitignore new file mode 100644 index 000000000000..e69de29bb2d1 --- /dev/null +++ b/writerperfect/qa/unit/data/writer/libstaroffice/indeterminate/.gitignore diff --git a/writerperfect/qa/unit/data/writer/libstaroffice/pass/Writer_3.1.sdw b/writerperfect/qa/unit/data/writer/libstaroffice/pass/Writer_3.1.sdw Binary files differnew file mode 100644 index 000000000000..0884942a4c86 --- /dev/null +++ b/writerperfect/qa/unit/data/writer/libstaroffice/pass/Writer_3.1.sdw |