[Libreoffice-commits] core.git: sc/qa

Gizem Ozgun (via logerrit) logerrit at kemper.freedesktop.org
Wed Jun 2 13:07:18 UTC 2021


 sc/qa/unit/data/ods/tdf113646.ods     |binary
 sc/qa/unit/subsequent_export-test.cxx |   17 ++++++++++++++++-
 2 files changed, 16 insertions(+), 1 deletion(-)

New commits:
commit c10df6edb8a48b4a57f73ccb6155d051a8cfb5d0
Author:     Gizem Ozgun <gizemozguun at gmail.com>
AuthorDate: Sun May 30 14:50:50 2021 +0300
Commit:     Gülşah Köse <gulsah.kose at collabora.com>
CommitDate: Wed Jun 2 15:06:34 2021 +0200

    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 at collabora.com>

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
Binary files /dev/null and b/sc/qa/unit/data/ods/tdf113646.ods 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();


More information about the Libreoffice-commits mailing list