diff options
author | David Tardon <dtardon@redhat.com> | 2017-03-21 10:18:52 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2017-03-21 10:25:38 +0100 |
commit | 01946cc7ae7f10e84a2c0eebeb44ee847e6d95b4 (patch) | |
tree | c49ae26f72be19a08a95cf706129e6da01df4456 /writerperfect/qa/unit | |
parent | afabc7d2f2fcf8fcd39ff5002f09c32e8f03d4bb (diff) |
fix and enable test
Change-Id: I309b74c19ea076157d1c0b9c0c817ab4055512c3
Diffstat (limited to 'writerperfect/qa/unit')
-rw-r--r-- | writerperfect/qa/unit/SpreadsheetImportTest.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
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); |