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

Xisco Fauli (via logerrit) logerrit at kemper.freedesktop.org
Fri Apr 3 10:14:21 UTC 2020


 dev/null                     |binary
 sc/qa/unit/uicalc/uicalc.cxx |    4 +++-
 2 files changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 9edd1b74edc222650d19b9feff6e40c3cfbfa477
Author:     Xisco Fauli <xiscofauli at libreoffice.org>
AuthorDate: Fri Apr 3 11:03:05 2020 +0200
Commit:     Xisco Faulí <xiscofauli at libreoffice.org>
CommitDate: Fri Apr 3 12:13:42 2020 +0200

    uicalc: no need to use an empty document
    
    Change-Id: Id1c42b7c4f0f406d2979334d7b71fc20d7ff8620
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/91615
    Tested-by: Jenkins
    Reviewed-by: Xisco Faulí <xiscofauli at libreoffice.org>

diff --git a/sc/qa/unit/uicalc/data/empty.ods b/sc/qa/unit/uicalc/data/empty.ods
deleted file mode 100644
index 0c797725af28..000000000000
Binary files a/sc/qa/unit/uicalc/data/empty.ods and /dev/null differ
diff --git a/sc/qa/unit/uicalc/uicalc.cxx b/sc/qa/unit/uicalc/uicalc.cxx
index 222849673095..694644b77df3 100644
--- a/sc/qa/unit/uicalc/uicalc.cxx
+++ b/sc/qa/unit/uicalc/uicalc.cxx
@@ -151,7 +151,9 @@ CPPUNIT_TEST_FIXTURE(ScUiCalcTest, testTdf124815)
 
 CPPUNIT_TEST_FIXTURE(ScUiCalcTest, testTdf83901)
 {
-    ScModelObj* pModelObj = createDoc("empty.ods");
+    mxComponent = loadFromDesktop("private:factory/scalc");
+    ScModelObj* pModelObj = dynamic_cast<ScModelObj*>(mxComponent.get());
+    CPPUNIT_ASSERT(pModelObj);
     ScDocument* pDoc = pModelObj->GetDocument();
     CPPUNIT_ASSERT(pDoc);
 


More information about the Libreoffice-commits mailing list