Kaydet (Commit) cd87cd92 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

fdo#77806: Write test for this.

Change-Id: Ic05b6fec2bfc89688cb1670a163f27caccc7f213
üst ad26e7b2
...@@ -5176,6 +5176,15 @@ void Test::testNoteBasic() ...@@ -5176,6 +5176,15 @@ void Test::testNoteBasic()
{ {
m_pDoc->InsertTab(0, "PostIts"); 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 ScAddress aAddr(2, 2, 0); // cell C3
ScPostIt *pNote = m_pDoc->GetOrCreateNote(aAddr); ScPostIt *pNote = m_pDoc->GetOrCreateNote(aAddr);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment