diff options
author | Andras Timar <andras.timar@collabora.com> | 2023-03-08 22:00:08 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2023-03-08 22:01:58 +0100 |
commit | 0b689354e2a5d0b227cb6ea214f8d01a3d7826f7 (patch) | |
tree | 52678b8478807cdb298c0a9860a7e13eb1937950 /sc | |
parent | 777fdb0378d135499962ac7ba6b2ae4fc37db068 (diff) |
Revert "sc: qa: add single line paragraph unit test"
This reverts commit d3aca6535793a3621bb1983e5bc754076a25ace1.
Reason for revert: regression and change of behaviour of LO
Change-Id: I142a73de893effea9775c1800a05c068b70a00ae
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/extras/scpdfexport.cxx | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/sc/qa/extras/scpdfexport.cxx b/sc/qa/extras/scpdfexport.cxx index ee845b9312dd..8af237856260 100644 --- a/sc/qa/extras/scpdfexport.cxx +++ b/sc/qa/extras/scpdfexport.cxx @@ -73,7 +73,6 @@ public: void testTdf84012(); void testTdf78897(); void testForcepoint97(); - void testSingleLineAttribs(); CPPUNIT_TEST_SUITE(ScPDFExportTest); CPPUNIT_TEST(testExportRange_Tdf120161); @@ -84,7 +83,6 @@ public: CPPUNIT_TEST(testTdf84012); CPPUNIT_TEST(testTdf78897); CPPUNIT_TEST(testForcepoint97); - CPPUNIT_TEST(testSingleLineAttribs); CPPUNIT_TEST_SUITE_END(); }; @@ -604,38 +602,6 @@ void ScPDFExportTest::testForcepoint97() std::shared_ptr<utl::TempFile> pPDFFile = exportToPDF(xModel, range1); } -void ScPDFExportTest::testSingleLineAttribs() -{ - // create test document - uno::Reference<frame::XModel> xModel(mxComponent, uno::UNO_QUERY); - uno::Reference<sheet::XSpreadsheetDocument> xDoc(xModel, uno::UNO_QUERY_THROW); - uno::Reference<sheet::XSpreadsheets> xSheets(xDoc->getSheets(), UNO_SET_THROW); - xSheets->insertNewByName("Test Sheet", 0); - - { - SfxObjectShell* pDocShell = SfxObjectShell::GetShellFromComponent(mxComponent); - CPPUNIT_ASSERT(pDocShell); - ScDocShellRef xDocSh = dynamic_cast<ScDocShell*>(pDocShell); - CPPUNIT_ASSERT(xDocSh); - - ScDocument& rDoc = xDocSh->GetDocument(); - ScFieldEditEngine& rEditEngine = rDoc.GetEditEngine(); - - rEditEngine.Clear(); - rEditEngine.SetTextCurrentDefaults("Bolivia.\nSucre"); - setFont(rEditEngine, 9, 5, "DejaVuSans"); - rDoc.SetEditText(ScAddress(0, 0, 0), rEditEngine.CreateTextObject()); - } - - { - ScRange range1(0, 0, 0, 1, 0, 0); - std::shared_ptr<utl::TempFile> pPDFFile = exportToPDF(xModel, range1); - bool bFound = false; - CPPUNIT_ASSERT(hasTextInPdf(pPDFFile, "DejaVuSans", bFound)); - CPPUNIT_ASSERT_EQUAL(true, bFound); - } -} - CPPUNIT_TEST_SUITE_REGISTRATION(ScPDFExportTest); CPPUNIT_PLUGIN_IMPLEMENT(); |