Bump version to 6.4-15
[LibreOffice.git] / writerperfect / qa / unit / WpftWriterFilterTest.cxx
blob8bc4c7cadbb365331513d1b934eb5068225a4ff0
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #include "WpftFilterTestBase.hxx"
12 namespace
14 class WpftWriterFilterTest : public writerperfect::test::WpftFilterTestBase
16 public:
17 WpftWriterFilterTest();
19 void test();
21 CPPUNIT_TEST_SUITE(WpftWriterFilterTest);
22 CPPUNIT_TEST(test);
23 CPPUNIT_TEST_SUITE_END();
26 WpftWriterFilterTest::WpftWriterFilterTest()
27 : writerperfect::test::WpftFilterTestBase("private:factory/swriter")
31 void WpftWriterFilterTest::test()
33 const writerperfect::test::WpftOptionalMap_t aEBookOptional{
34 { "FictionBook2.fb2.zip", REQUIRE_EBOOK_VERSION(0, 1, 1) },
36 const writerperfect::test::WpftOptionalMap_t aEtonyekOptional{
37 { "Pages_4.pages", REQUIRE_ETONYEK_VERSION(0, 1, 2) },
38 { "Pages_5.pages", REQUIRE_ETONYEK_VERSION(0, 1, 8) },
40 const writerperfect::test::WpftOptionalMap_t aMWAWOptional{
41 { "MaxWrite_1.hqx", REQUIRE_MWAW_VERSION(0, 3, 8) },
42 { "MouseWrite_1.hqx", REQUIRE_MWAW_VERSION(0, 3, 8) },
43 { "RagTime_2.1.hqx", REQUIRE_MWAW_VERSION(0, 3, 2) },
44 { "RagTime_3.2.hqx", REQUIRE_MWAW_VERSION(0, 3, 2) },
45 { "RagTime_5.5.rag", REQUIRE_MWAW_VERSION(0, 3, 6) },
47 const writerperfect::test::WpftOptionalMap_t aStarOfficeOptional{
48 { "Writer_3.1.sdw", REQUIRE_STAROFFICE_VERSION(0, 0, 2) },
50 const writerperfect::test::WpftOptionalMap_t aWpsOptional{
51 { "Word_5.0_DOS.doc", REQUIRE_WPS_VERSION(0, 4, 3) },
52 { "Write_3.1.wri", REQUIRE_WPS_VERSION(0, 4, 2) },
55 doTest("com.sun.star.comp.Writer.AbiWordImportFilter",
56 "/writerperfect/qa/unit/data/writer/libabw/");
57 doTest("org.libreoffice.comp.Writer.EBookImportFilter",
58 "/writerperfect/qa/unit/data/writer/libe-book/", aEBookOptional);
59 doTest("com.sun.star.comp.Writer.MSWorksImportFilter",
60 "/writerperfect/qa/unit/data/writer/libwps/", aWpsOptional);
61 doTest("com.sun.star.comp.Writer.MWAWImportFilter",
62 "/writerperfect/qa/unit/data/writer/libmwaw/", aMWAWOptional);
63 doTest("org.libreoffice.comp.Writer.PagesImportFilter",
64 "/writerperfect/qa/unit/data/writer/libetonyek/", aEtonyekOptional);
65 doTest("org.libreoffice.comp.Writer.StarOfficeWriterImportFilter",
66 "/writerperfect/qa/unit/data/writer/libstaroffice/", aStarOfficeOptional);
67 doTest("com.sun.star.comp.Writer.WordPerfectImportFilter",
68 "/writerperfect/qa/unit/data/writer/libwpd/");
71 CPPUNIT_TEST_SUITE_REGISTRATION(WpftWriterFilterTest);
74 CPPUNIT_PLUGIN_IMPLEMENT();
76 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */