[Libreoffice-commits] core.git: sc/qa
Kohei Yoshida
kohei.yoshida at collabora.com
Wed Jul 16 17:00:34 PDT 2014
sc/qa/unit/subsequent_export-test.cxx | 9 +++++++++
1 file changed, 9 insertions(+)
New commits:
commit b50953df9829ef13601b98ae217102b123affcd0
Author: Kohei Yoshida <kohei.yoshida at collabora.com>
Date: Wed Jul 16 19:59:35 2014 -0400
fdo#81445: Write test for this.
Change-Id: I7d94e780b12a947a2861f82f1b8a3c14b5489ac2
diff --git a/sc/qa/unit/subsequent_export-test.cxx b/sc/qa/unit/subsequent_export-test.cxx
index 103b962..270c7dc 100644
--- a/sc/qa/unit/subsequent_export-test.cxx
+++ b/sc/qa/unit/subsequent_export-test.cxx
@@ -1462,6 +1462,15 @@ void ScExportTest::testTrackChangesSimpleXLS()
bGood = aTest.check(*pDoc);
CPPUNIT_ASSERT_MESSAGE("Check after reload failed.", bGood);
+ // fdo#81445 : Check the blank value string to make sure it's "<empty>".
+ ScChangeTrack* pCT = pDoc->GetChangeTrack();
+ CPPUNIT_ASSERT(pCT);
+ ScChangeAction* pAction = pCT->GetAction(1);
+ CPPUNIT_ASSERT(pAction);
+ OUString aDesc;
+ pAction->GetDescription(aDesc, pDoc);
+ CPPUNIT_ASSERT_EQUAL(OUString("Cell B2 changed from '<empty>' to '1'"), aDesc);
+
xDocSh2->DoClose();
}
More information about the Libreoffice-commits
mailing list