summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2022-01-29 12:11:17 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2022-01-29 19:02:24 +0100
commit5f10bae4559aa7eb6cc7988a320bfbf588b13edc (patch)
tree6082bef3d26131ec8d770aa0a26fe9f8f6cf757b /sd
parentc3d5c9a08df77f9c0d0fd2493cf299dbad1a9dff (diff)
CppunitTest_sd_layout_tests: use CPPUNIT_TEST_FIXTURE
This file is relatively new, convert it to use CPPUNIT_TEST_FIXTURE before it grows more. it's clearer and faster when writting new tests Change-Id: I15485642d64e5e3ed628155ffac4cfc70e8c3451 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/129132 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sd')
-rw-r--r--sd/qa/unit/layout-tests.cxx36
1 files changed, 7 insertions, 29 deletions
diff --git a/sd/qa/unit/layout-tests.cxx b/sd/qa/unit/layout-tests.cxx
index 4ea92807c49a..32a1d40f0191 100644
--- a/sd/qa/unit/layout-tests.cxx
+++ b/sd/qa/unit/layout-tests.cxx
@@ -10,29 +10,9 @@
class SdLayoutTest : public SdModelTestBaseXML
{
-public:
- void testTdf104722();
- void testTdf135843();
- void testTdf136949();
- void testTdf128212();
- void testColumnsLayout();
- void tdf143258_testTbRlLayout();
- void testTdf146731();
-
- CPPUNIT_TEST_SUITE(SdLayoutTest);
-
- CPPUNIT_TEST(testTdf104722);
- CPPUNIT_TEST(testTdf135843);
- CPPUNIT_TEST(testTdf136949);
- CPPUNIT_TEST(testTdf128212);
- CPPUNIT_TEST(testColumnsLayout);
- CPPUNIT_TEST(tdf143258_testTbRlLayout);
- CPPUNIT_TEST(testTdf146731);
-
- CPPUNIT_TEST_SUITE_END();
};
-void SdLayoutTest::testTdf104722()
+CPPUNIT_TEST_FIXTURE(SdLayoutTest, testTdf104722)
{
sd::DrawDocShellRef xDocShRef
= loadURL(m_directories.getURLFromSrc(u"/sd/qa/unit/data/pptx/tdf104722.pptx"), PPTX);
@@ -53,7 +33,7 @@ void SdLayoutTest::testTdf104722()
xDocShRef->DoClose();
}
-void SdLayoutTest::testTdf135843()
+CPPUNIT_TEST_FIXTURE(SdLayoutTest, testTdf135843)
{
sd::DrawDocShellRef xDocShRef
= loadURL(m_directories.getURLFromSrc(u"/sd/qa/unit/data/pptx/tdf135843.pptx"), PPTX);
@@ -76,7 +56,7 @@ void SdLayoutTest::testTdf135843()
xDocShRef->DoClose();
}
-void SdLayoutTest::testTdf136949()
+CPPUNIT_TEST_FIXTURE(SdLayoutTest, testTdf136949)
{
sd::DrawDocShellRef xDocShRef
= loadURL(m_directories.getURLFromSrc(u"/sd/qa/unit/data/odp/tdf136949.odp"), ODP);
@@ -96,7 +76,7 @@ void SdLayoutTest::testTdf136949()
xDocShRef->DoClose();
}
-void SdLayoutTest::testTdf128212()
+CPPUNIT_TEST_FIXTURE(SdLayoutTest, testTdf128212)
{
sd::DrawDocShellRef xDocShRef
= loadURL(m_directories.getURLFromSrc(u"/sd/qa/unit/data/pptx/tdf128212.pptx"), PPTX);
@@ -116,7 +96,7 @@ void SdLayoutTest::testTdf128212()
xDocShRef->DoClose();
}
-void SdLayoutTest::testColumnsLayout()
+CPPUNIT_TEST_FIXTURE(SdLayoutTest, testColumnsLayout)
{
// This tests a 2-column text box's layout
@@ -217,7 +197,7 @@ void SdLayoutTest::testColumnsLayout()
xDocShRef->DoClose();
}
-void SdLayoutTest::tdf143258_testTbRlLayout()
+CPPUNIT_TEST_FIXTURE(SdLayoutTest, tdf143258_testTbRlLayout)
{
// This tests a 1-column and a 2-column text boxes' layout
@@ -278,7 +258,7 @@ void SdLayoutTest::tdf143258_testTbRlLayout()
xDocShRef->DoClose();
}
-void SdLayoutTest::testTdf146731()
+CPPUNIT_TEST_FIXTURE(SdLayoutTest, testTdf146731)
{
sd::DrawDocShellRef xDocShRef
= loadURL(m_directories.getURLFromSrc(u"/sd/qa/unit/data/pptx/tdf146731.pptx"), PPTX);
@@ -302,8 +282,6 @@ void SdLayoutTest::testTdf146731()
xDocShRef->DoClose();
}
-CPPUNIT_TEST_SUITE_REGISTRATION(SdLayoutTest);
-
CPPUNIT_PLUGIN_IMPLEMENT();
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */