summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorGizem Ozgun <gizemozguun@gmail.com>2021-05-30 14:50:50 +0300
committerGülşah Köse <gulsah.kose@collabora.com>2021-06-02 15:06:34 +0200
commitc10df6edb8a48b4a57f73ccb6155d051a8cfb5d0 (patch)
treea58f055c68788d504819c8a09d2cc1217e849744 /sc
parente4e24a2f996989c3e7969aab71a9db78f1b41889 (diff)
tdf#113646 Add missing test for exporting conditional format font size.
Change-Id: I46b5ccd032fbf292c6e4dd19ec8a6a153b6c892e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116571 Tested-by: Jenkins Reviewed-by: Gülşah Köse <gulsah.kose@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/unit/data/ods/tdf113646.odsbin0 -> 9220 bytes
-rw-r--r--sc/qa/unit/subsequent_export-test.cxx17
2 files changed, 16 insertions, 1 deletions
diff --git a/sc/qa/unit/data/ods/tdf113646.ods b/sc/qa/unit/data/ods/tdf113646.ods
new file mode 100644
index 000000000000..0c9596fc085f
--- /dev/null
+++ b/sc/qa/unit/data/ods/tdf113646.ods
Binary files differ
diff --git a/sc/qa/unit/subsequent_export-test.cxx b/sc/qa/unit/subsequent_export-test.cxx
index 2ef429e30a4f..439143d0153d 100644
--- a/sc/qa/unit/subsequent_export-test.cxx
+++ b/sc/qa/unit/subsequent_export-test.cxx
@@ -297,6 +297,7 @@ public:
void testTdf136721_paper_size();
void testTdf139258_rotated_image();
void testTdf126541_SheetVisibilityImportXlsx();
+ void testTdf113646();
CPPUNIT_TEST_SUITE(ScExportTest);
CPPUNIT_TEST(test);
@@ -489,7 +490,7 @@ public:
CPPUNIT_TEST(testTdf136721_paper_size);
CPPUNIT_TEST(testTdf139258_rotated_image);
CPPUNIT_TEST(testTdf126541_SheetVisibilityImportXlsx);
-
+ CPPUNIT_TEST(testTdf113646);
CPPUNIT_TEST_SUITE_END();
private:
@@ -6173,6 +6174,20 @@ void ScExportTest::testTdf126541_SheetVisibilityImportXlsx()
CPPUNIT_ASSERT(xShell->GetDocument().GetViewOptions().GetOption(VOPT_GRID));
}
+void ScExportTest::testTdf113646()
+{
+ ScDocShellRef xShell = loadDoc(u"tdf113646.", FORMAT_ODS);
+ CPPUNIT_ASSERT(xShell.is());
+
+ auto pXPathFile = ScBootstrapFixture::exportTo(&(*xShell), FORMAT_XLSX);
+ xmlDocUniquePtr pSheet = XPathHelper::parseExport(pXPathFile, m_xSFactory, "xl/styles.xml");
+ CPPUNIT_ASSERT(pSheet);
+
+ assertXPath(pSheet, "/x:styleSheet/x:dxfs/x:dxf/x:font/x:sz", "val", "36");
+
+ xShell->DoClose();
+}
+
CPPUNIT_TEST_SUITE_REGISTRATION(ScExportTest);
CPPUNIT_PLUGIN_IMPLEMENT();