diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-05-08 00:06:08 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2013-05-09 13:34:35 -0400 |
commit | cc7ec4b3066d47e632ebb0478259a060d030373a (patch) | |
tree | 0dfc51fa7c7340783d244d0f70f555f843f075d1 /sc/qa | |
parent | c929a78a453e3b06fd99b213fee8587dfdd68e3e (diff) |
The same thing applies in reverse direction.
Change-Id: I3f5863d79ad948461d63dbc9addc8ca01e1b275e
Diffstat (limited to 'sc/qa')
-rw-r--r-- | sc/qa/unit/ucalc.cxx | 9 |
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); } |