diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-10-30 14:27:11 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-10-30 14:28:58 -0400 |
commit | 1a8b6a61447f1ba7fa7dc626a7563fae57f856d1 (patch) | |
tree | a6937fd05ebbf1089e335703c16a3f430f6d39d6 /sc/qa/unit/ucalc.cxx | |
parent | 08dee0ce8d5d49b3ff2e993bfa44cf49c0c643e0 (diff) |
Intentionally add a formula cell in column 1.
Column 1 only consisted of static values prior to this. Inserting a
formula cell will break the range-based formula sharing and dependency
tracking but it should still continue to work.
Change-Id: I5187ccf15ec1dffe4b6b10086f815b18c21e17c1
Diffstat (limited to 'sc/qa/unit/ucalc.cxx')
-rw-r--r-- | sc/qa/unit/ucalc.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx index 45d84ff43e85..74c72051f988 100644 --- a/sc/qa/unit/ucalc.cxx +++ b/sc/qa/unit/ucalc.cxx @@ -1199,6 +1199,13 @@ void Test::testFormulaDepTracking() CPPUNIT_ASSERT_MESSAGE("Unexpected formula value.", m_pDoc->GetValue(2, nRow, 0) == val*2.0); } + // Intentionally insert a formula in column 1. This will break column 1's + // uniformity of consisting only of static value cells. + m_pDoc->SetString(0, 4, 0, "=R2C3"); + CPPUNIT_ASSERT_MESSAGE("Unexpected formula value.", m_pDoc->GetValue(0, 4, 0) == 2.0); + CPPUNIT_ASSERT_MESSAGE("Unexpected formula value.", m_pDoc->GetValue(1, 4, 0) == 2.0); + CPPUNIT_ASSERT_MESSAGE("Unexpected formula value.", m_pDoc->GetValue(2, 4, 0) == 4.0); + m_pDoc->DeleteTab(0); } |