Kaydet (Commit) 8f525d1a authored tarafından Miklos Vajna's avatar Miklos Vajna

CppunitTest_sw_rtfimport: use CPPUNIT_TEST_FIXTURE()

In the single case where the usual DECLARE_... macro is not used.

Change-Id: I3c47976a0d78294e345569f28d264f752851d5e6
Reviewed-on: https://gerrit.libreoffice.org/70211
Tested-by: Jenkins
Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.com>
üst db02265e
...@@ -772,38 +772,23 @@ DECLARE_RTFIMPORT_TEST(testFdo68291, "fdo68291.odt") ...@@ -772,38 +772,23 @@ DECLARE_RTFIMPORT_TEST(testFdo68291, "fdo68291.odt")
->getPropertyValue("PageDescName")); ->getPropertyValue("PageDescName"));
} }
class testTdf105511 : public Test CPPUNIT_TEST_FIXTURE(Test, testTdf105511)
{ {
protected: struct DefaultLocale : public comphelper::ConfigurationProperty<DefaultLocale, OUString>
virtual OUString getTestName() override { return OUString("testTdf105511"); }
public:
CPPUNIT_TEST_SUITE(testTdf105511);
CPPUNIT_TEST(Import);
CPPUNIT_TEST_SUITE_END();
void Import()
{ {
struct DefaultLocale : public comphelper::ConfigurationProperty<DefaultLocale, OUString> static OUString path()
{ {
static OUString path() return OUString("/org.openoffice.Office.Linguistic/General/DefaultLocale");
{ }
return OUString("/org.openoffice.Office.Linguistic/General/DefaultLocale"); ~DefaultLocale() = delete;
} };
~DefaultLocale() = delete; auto batch = comphelper::ConfigurationChanges::create();
}; DefaultLocale::set("ru-RU", batch);
auto batch = comphelper::ConfigurationChanges::create(); batch->commit();
DefaultLocale::set("ru-RU", batch); load(mpTestDocumentPath, "tdf105511.rtf");
batch->commit(); OUString aExpected(u"\u0418\u043C\u044F");
executeImportTest("tdf105511.rtf", nullptr); getParagraph(1, aExpected);
} }
virtual void verify() override
{
OUString aExpected(u"\u0418\u043C\u044F");
getParagraph(1, aExpected);
}
};
CPPUNIT_TEST_SUITE_REGISTRATION(testTdf105511);
DECLARE_RTFIMPORT_TEST(testContSectionPageBreak, "cont-section-pagebreak.rtf") DECLARE_RTFIMPORT_TEST(testContSectionPageBreak, "cont-section-pagebreak.rtf")
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment