sd/qa/unit/export-tests.cxx | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-)
New commits: commit 61d907f808702850fe169de8eaf7421bb3951169 Author: Xisco Fauli <[email protected]> AuthorDate: Mon Oct 31 13:10:09 2022 +0100 Commit: Xisco Fauli <[email protected]> CommitDate: Mon Oct 31 15:43:27 2022 +0100 CppunitTest_sd_export_tests: fix build 6f32f1a12be06c4da92b807d8a35cb079984e26a "tdf#72238 xmloff,sd: Import of <style:table-cell-properties>" and c66def668e43bb40eee54fe91e752ba1330cb911 "CppunitTest_sd_export_tests: inherit from UnoApiTest" were merged at the same time, breaking the build Change-Id: If856edab62c2ef31a2dbfe6c5315f51fde0bd031 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142072 Tested-by: Jenkins Reviewed-by: Xisco Fauli <[email protected]> diff --git a/sd/qa/unit/export-tests.cxx b/sd/qa/unit/export-tests.cxx index 916bca2f3d93..61cfab3288bd 100644 --- a/sd/qa/unit/export-tests.cxx +++ b/sd/qa/unit/export-tests.cxx @@ -1819,12 +1819,10 @@ void SdExportTest::testTdf112126() void SdExportTest::testCellProperties() { - auto xDocShRef - = loadURL(m_directories.getURLFromSrc(u"sd/qa/unit/data/odg/tablestyles.fodg"), FODG); - utl::TempFileNamed tempFile; - xDocShRef = saveAndReload(xDocShRef.get(), ODG, &tempFile); + loadFromURL(u"odg/tablestyles.fodg"); + saveAndReload("draw8"); - const SdrPage* pPage = GetPage(1, xDocShRef); + const SdrPage* pPage = GetPage(1); auto pTableObj = dynamic_cast<sdr::table::SdrTableObj*>(pPage->GetObj(0)); CPPUNIT_ASSERT(pTableObj != nullptr); uno::Reference<beans::XPropertySet> xCell(pTableObj->getTable()->getCellByPosition(0, 0), @@ -1844,9 +1842,6 @@ void SdExportTest::testCellProperties() CPPUNIT_ASSERT_EQUAL(sal_Int32(300), nPadding); xCell->getPropertyValue("TextVerticalAdjust") >>= aTextAdjust; CPPUNIT_ASSERT_EQUAL(drawing::TextVerticalAdjust::TextVerticalAdjust_CENTER, aTextAdjust); - - xDocShRef->DoClose(); - tempFile.EnableKillingFile(); } CPPUNIT_TEST_SUITE_REGISTRATION(SdExportTest);
