diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-04-24 21:21:46 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-04-25 00:58:13 -0400 |
commit | 485dddac7048aa9a877d205b25bf0c98c4887160 (patch) | |
tree | fd3a5bb4e833d36ec3ca552a523523f00bb1e46b | |
parent | da8aa9385153893d8da666b490825aecb6fe87dc (diff) |
fdo#77728: Write test for this.
Change-Id: I42d0cb7f99dce62e0ac5aa471b190ee7d3cf1efe
-rw-r--r-- | sc/qa/unit/ucalc_sharedformula.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sc/qa/unit/ucalc_sharedformula.cxx b/sc/qa/unit/ucalc_sharedformula.cxx index d482216e4fbf..a3b9049c5a15 100644 --- a/sc/qa/unit/ucalc_sharedformula.cxx +++ b/sc/qa/unit/ucalc_sharedformula.cxx @@ -1295,6 +1295,12 @@ void Test::testSharedFormulaUpdateOnNamedRangeChange() CPPUNIT_ASSERT_EQUAL(8.0, m_pDoc->GetValue(ScAddress(1,7,0))); CPPUNIT_ASSERT_EQUAL(2.5, m_pDoc->GetValue(ScAddress(2,0,0))); + // Change the value of A4 and make sure the value change gets propagated. + m_pDoc->SetValue(ScAddress(0,3,0), 0.0); + CPPUNIT_ASSERT_EQUAL(6.0, m_pDoc->GetValue(ScAddress(1,0,0))); + CPPUNIT_ASSERT_EQUAL(6.0, m_pDoc->GetValue(ScAddress(1,1,0))); + CPPUNIT_ASSERT_EQUAL(6.0, m_pDoc->GetValue(ScAddress(1,2,0))); + m_pDoc->DeleteTab(0); } |