summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThorsten Behrens <thorsten.behrens@allotropia.de>2022-06-27 00:58:24 +0200
committerThorsten Behrens <thorsten.behrens@allotropia.de>2022-06-27 00:58:24 +0200
commit26125ed92058abc419db7db453073e2bcb0b7f30 (patch)
treedd33f3de19971db7ba590ee4976e5951c6784430
parentDon't bother shrinking row height when changing just one row interactively (diff)
downloadcore-26125ed92058abc419db7db453073e2bcb0b7f30.tar.gz
core-26125ed92058abc419db7db453073e2bcb0b7f30.zip
Revert unit test from tdf#148706 fix
This reverts the test from commit 5b58b8a4c3d6473deb91ed8cb1a33f87ba4d5de9 - needs more tweaks on the old branch. Change-Id: Id2bbc7138680c2751968a25ed2a769be8f2dea2f
-rw-r--r--vcl/qa/cppunit/pdfexport/pdfexport.cxx37
1 files changed, 0 insertions, 37 deletions
diff --git a/vcl/qa/cppunit/pdfexport/pdfexport.cxx b/vcl/qa/cppunit/pdfexport/pdfexport.cxx
index 645e4487a149..344a74f87521 100644
--- a/vcl/qa/cppunit/pdfexport/pdfexport.cxx
+++ b/vcl/qa/cppunit/pdfexport/pdfexport.cxx
@@ -110,7 +110,6 @@ public:
void testSofthyphenPos();
void testTdf107013();
void testTdf107018();
- void testTdf148706();
void testTdf107089();
void testTdf99680();
void testTdf99680_2();
@@ -156,7 +155,6 @@ public:
CPPUNIT_TEST(testSofthyphenPos);
CPPUNIT_TEST(testTdf107013);
CPPUNIT_TEST(testTdf107018);
- CPPUNIT_TEST(testTdf148706);
CPPUNIT_TEST(testTdf107089);
CPPUNIT_TEST(testTdf99680);
CPPUNIT_TEST(testTdf99680_2);
@@ -751,41 +749,6 @@ void PdfExportTest::testTdf107018()
CPPUNIT_ASSERT_EQUAL(OString("Pages"), pName->GetValue());
}
-void PdfExportTest::testTdf148706()
-{
- // Import the bugdoc and export as PDF.
- aMediaDescriptor["FilterName"] <<= OUString("writer_pdf_Export");
- saveAsPDF(u"tdf148706.odt");
-
- // Parse the export result with pdfium.
- std::unique_ptr<vcl::pdf::PDFiumDocument> pPdfDocument = parseExport();
- CPPUNIT_ASSERT(pPdfDocument);
-
- // The document has one page.
- CPPUNIT_ASSERT_EQUAL(1, pPdfDocument->getPageCount());
- std::unique_ptr<vcl::pdf::PDFiumPage> pPdfPage = pPdfDocument->openPage(/*nIndex=*/0);
- CPPUNIT_ASSERT(pPdfPage);
-
- // The page has one annotation.
- CPPUNIT_ASSERT_EQUAL(1, pPdfPage->getAnnotationCount());
- std::unique_ptr<vcl::pdf::PDFiumAnnotation> pAnnot = pPdfPage->getAnnotation(0);
-
- CPPUNIT_ASSERT(pAnnot->hasKey("V"));
- CPPUNIT_ASSERT_EQUAL(vcl::pdf::PDFObjectType::String, pAnnot->getValueType("V"));
- OUString aV = pAnnot->getString("V");
-
- // Without the fix in place, this test would have failed with
- // - Expected: 1821.84
- // - Actual :
- CPPUNIT_ASSERT_EQUAL(OUString("1821.84"), aV);
-
- CPPUNIT_ASSERT(pAnnot->hasKey("DV"));
- CPPUNIT_ASSERT_EQUAL(vcl::pdf::PDFObjectType::String, pAnnot->getValueType("DV"));
- OUString aDV = pAnnot->getString("DV");
-
- CPPUNIT_ASSERT_EQUAL(OUString("1821.84"), aDV);
-}
-
void PdfExportTest::testTdf107089()
{
vcl::filter::PDFDocument aDocument;