summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXisco Fauli <xiscofauli@libreoffice.org>2022-02-23 11:59:14 +0100
committerXisco Fauli <xiscofauli@libreoffice.org>2022-02-23 14:59:50 +0100
commitebd508e1664fc13c8305ead62346f9fdf3a2b37e (patch)
tree1e703f49c1a5728ed2e9521dc92858052b0516b1
parentaff280d2304688673efa974eab35d8de4c83e9c1 (diff)
sc: qa: no need to have an empty file, just create it
Change-Id: I7586f1a196f057681e53173bd7d7dd3d57883abe Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130425 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
-rw-r--r--sc/qa/unit/data/ods/empty.odsbin6873 -> 0 bytes
-rw-r--r--sc/qa/unit/subsequent_export_test.cxx6
-rw-r--r--sc/qa/unit/subsequent_export_test2.cxx2
3 files changed, 5 insertions, 3 deletions
diff --git a/sc/qa/unit/data/ods/empty.ods b/sc/qa/unit/data/ods/empty.ods
deleted file mode 100644
index 14b4232189f5..000000000000
--- a/sc/qa/unit/data/ods/empty.ods
+++ /dev/null
Binary files differ
diff --git a/sc/qa/unit/subsequent_export_test.cxx b/sc/qa/unit/subsequent_export_test.cxx
index e92db37038a6..93250fe199a2 100644
--- a/sc/qa/unit/subsequent_export_test.cxx
+++ b/sc/qa/unit/subsequent_export_test.cxx
@@ -2077,7 +2077,8 @@ void ScExportTest::testRichTextExportODS()
// Start with an empty document, put one edit text cell, and make sure it
// survives the save and reload.
- ScDocShellRef xOrigDocSh = loadDoc(u"empty.", FORMAT_ODS, true);
+ ScDocShellRef xOrigDocSh = loadEmptyDocument();
+ CPPUNIT_ASSERT(xOrigDocSh);
const EditTextObject* pEditText;
{
ScDocument& rDoc = xOrigDocSh->GetDocument();
@@ -2278,7 +2279,8 @@ void ScExportTest::testFormulaRefSheetNameODS()
void ScExportTest::testCellValuesExportODS()
{
// Start with an empty document
- ScDocShellRef xOrigDocSh = loadDoc(u"empty.", FORMAT_ODS);
+ ScDocShellRef xOrigDocSh = loadEmptyDocument();
+ CPPUNIT_ASSERT(xOrigDocSh);
{
ScDocument& rDoc = xOrigDocSh->GetDocument();
CPPUNIT_ASSERT_MESSAGE("This document should at least have one sheet.",
diff --git a/sc/qa/unit/subsequent_export_test2.cxx b/sc/qa/unit/subsequent_export_test2.cxx
index 8450d82d3ba8..eff1f3b07963 100644
--- a/sc/qa/unit/subsequent_export_test2.cxx
+++ b/sc/qa/unit/subsequent_export_test2.cxx
@@ -1033,7 +1033,7 @@ void ScExportTest2::testExtendedLCIDXLSX()
void ScExportTest2::testHiddenRepeatedRowsODS()
{
- ScDocShellRef xDocSh = loadDoc(u"empty.", FORMAT_ODS);
+ ScDocShellRef xDocSh = loadEmptyDocument();
CPPUNIT_ASSERT(xDocSh.is());
{