summaryrefslogtreecommitdiff
path: root/sc/qa
diff options
context:
space:
mode:
Diffstat (limited to 'sc/qa')
-rw-r--r--sc/qa/unit/ucalc.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index ffb2c4725f46..d123a6ca9a17 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -1653,8 +1653,13 @@ void Test::testCellBroadcaster()
// While column A is still empty, move column A down 2 cells. This should
// move the broadcaster from A1 to A3.
m_pDoc->InsertRow(0, 0, 0, 0, 0, 2);
- pBC = m_pDoc->GetBroadcaster(ScAddress(0,2,0));
- CPPUNIT_ASSERT_MESSAGE("Broadcaster should exist in A3.", pBC);
+ CPPUNIT_ASSERT_MESSAGE("Broadcaster relocation failed.",
+ broadcasterShifted(*m_pDoc, ScAddress(0,0,0), ScAddress(0,2,0)));
+
+ // Move it back while column A is still empty.
+ m_pDoc->DeleteRow(0, 0, 0, 0, 0, 2);
+ CPPUNIT_ASSERT_MESSAGE("Broadcaster relocation failed.",
+ broadcasterShifted(*m_pDoc, ScAddress(0,2,0), ScAddress(0,0,0)));
m_pDoc->DeleteTab(0);
}