diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-05-09 11:44:28 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-05-09 11:46:05 -0400 |
commit | cd87cd92b95861e5cacb111dc33a809a9db884e3 (patch) | |
tree | 25d4d7c57eb41bc2a119a86e959f6c0843b02ff8 /sc | |
parent | ad26e7b2edd66df8f02bb8458c4c76251abf2d06 (diff) |
fdo#77806: Write test for this.
Change-Id: Ic05b6fec2bfc89688cb1670a163f27caccc7f213
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/unit/ucalc.cxx | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx index d764673ebba5..1ca19b8f5457 100644 --- a/sc/qa/unit/ucalc.cxx +++ b/sc/qa/unit/ucalc.cxx @@ -5176,6 +5176,15 @@ void Test::testNoteBasic() { m_pDoc->InsertTab(0, "PostIts"); + CPPUNIT_ASSERT(!m_pDoc->HasNotes()); + + // Check for note's presence in all tables before inserting any notes. + for (SCTAB i = 0; i <= MAXTAB; ++i) + { + bool bHasNotes = m_pDoc->HasTabNotes(i); + CPPUNIT_ASSERT(!bHasNotes); + } + ScAddress aAddr(2, 2, 0); // cell C3 ScPostIt *pNote = m_pDoc->GetOrCreateNote(aAddr); |