summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@collabora.co.uk>2015-01-10 13:38:01 +0100
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-01-10 13:47:12 +0100
commit29a5692bcf22f27a87959b87065e6c65b59ae886 (patch)
tree72cb378a0126b4ad0b3e5471b3433540d780cb60 /sc
parent8449e43255c0929af9c9a205e60db2bb0f4fbde8 (diff)
add test for fdo#88200
Change-Id: Icb6d782a4a3aa91e05c6466edb3d84c5dfc08f08
Diffstat (limited to 'sc')
-rw-r--r--sc/qa/unit/ucalc.cxx17
-rw-r--r--sc/qa/unit/ucalc.hxx2
2 files changed, 19 insertions, 0 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index 093ec5304b73..e5cb0508a546 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -6241,6 +6241,23 @@ void Test::testMixData()
m_pDoc->DeleteTab(0);
}
+void Test::testSetStringAndNote()
+{
+ m_pDoc->InsertTab(0, "Test");
+
+ //note on A1
+ ScAddress aAdrA1 (0, 0, 0);
+ ScPostIt* pNote = m_pDoc->GetOrCreateNote(aAdrA1);
+ pNote->SetText(aAdrA1, "Hello world in A1");
+
+ m_pDoc->SetString(0, 0, 0, "");
+
+ pNote = m_pDoc->GetNote(aAdrA1);
+ CPPUNIT_ASSERT(pNote);
+
+ m_pDoc->DeleteTab(0);
+}
+
ScDocShell* Test::findLoadedDocShellByName(const OUString& rName)
{
TypeId aType(TYPE(ScDocShell));
diff --git a/sc/qa/unit/ucalc.hxx b/sc/qa/unit/ucalc.hxx
index 013ac2691882..6f6af6b729cb 100644
--- a/sc/qa/unit/ucalc.hxx
+++ b/sc/qa/unit/ucalc.hxx
@@ -420,6 +420,7 @@ public:
void testFormulaToValue2();
void testColumnFindEditCells();
+ void testSetStringAndNote();
CPPUNIT_TEST_SUITE(Test);
#if CALC_TEST_PERF
@@ -621,6 +622,7 @@ public:
CPPUNIT_TEST(testFormulaToValue);
CPPUNIT_TEST(testFormulaToValue2);
CPPUNIT_TEST(testColumnFindEditCells);
+ CPPUNIT_TEST(testSetStringAndNote);
CPPUNIT_TEST_SUITE_END();
private: