[Libreoffice-commits] core.git: writerperfect/qa
David Tardon
dtardon at redhat.com
Tue Mar 21 09:26:11 UTC 2017
writerperfect/qa/unit/SpreadsheetImportTest.cxx | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
New commits:
commit 01946cc7ae7f10e84a2c0eebeb44ee847e6d95b4
Author: David Tardon <dtardon at redhat.com>
Date: Tue Mar 21 10:18:52 2017 +0100
fix and enable test
Change-Id: I309b74c19ea076157d1c0b9c0c817ab4055512c3
diff --git a/writerperfect/qa/unit/SpreadsheetImportTest.cxx b/writerperfect/qa/unit/SpreadsheetImportTest.cxx
index db787029019c..379f57ae1fd5 100644
--- a/writerperfect/qa/unit/SpreadsheetImportTest.cxx
+++ b/writerperfect/qa/unit/SpreadsheetImportTest.cxx
@@ -84,9 +84,11 @@ void SpreadsheetImportFilter::generate(librevenge::RVNGSpreadsheetInterface &rDo
rDocument.openSheet(RVNGPropertyList());
rDocument.openSheetRow(RVNGPropertyList());
rDocument.openSheetCell(RVNGPropertyList());
+ rDocument.openParagraph(RVNGPropertyList());
rDocument.openSpan(RVNGPropertyList());
rDocument.insertText("My hovercraft is full of eels.");
rDocument.closeSpan();
+ rDocument.closeParagraph();
rDocument.closeSheetCell();
rDocument.closeSheetRow();
rDocument.closeSheet();
@@ -124,10 +126,8 @@ void SpreadsheetImportTest::test()
CPPUNIT_ASSERT(xSheet.is());
uno::Reference<table::XCell> xCell = xSheet->getCellByPosition(0, 0);
CPPUNIT_ASSERT(xCell.is());
-#if 0 // broken by commit 8154953add163554c00935486a1cf5677cef2609
CPPUNIT_ASSERT_EQUAL(table::CellContentType_TEXT, xCell->getType());
- CPPUNIT_ASSERT_EQUAL(rtl::OUString("My hovercraft is full of eels"), xCell->getFormula());
-#endif
+ CPPUNIT_ASSERT_EQUAL(rtl::OUString("My hovercraft is full of eels."), xCell->getFormula());
}
CPPUNIT_TEST_SUITE_REGISTRATION(SpreadsheetImportTest);
More information about the Libreoffice-commits
mailing list