diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-07-16 19:59:35 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-07-16 20:00:05 -0400 |
commit | b50953df9829ef13601b98ae217102b123affcd0 (patch) | |
tree | 1d5a0bd887752b815beb039fa1a3a46782d96fb9 | |
parent | 2202bda95c76127dffcc9c7460e462a877344b9c (diff) |
fdo#81445: Write test for this.
Change-Id: I7d94e780b12a947a2861f82f1b8a3c14b5489ac2
-rw-r--r-- | sc/qa/unit/subsequent_export-test.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/qa/unit/subsequent_export-test.cxx b/sc/qa/unit/subsequent_export-test.cxx index 103b96257045..270c7dc2965d 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(); } |