summaryrefslogtreecommitdiff
path: root/sc/qa/unit/ucalc.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@suse.com>2011-11-28 17:31:02 -0500
committerKohei Yoshida <kohei.yoshida@suse.com>2011-11-28 17:32:47 -0500
commit1dcb62fe485e8082068679c4167e263b1957d94d (patch)
tree5cbbedd792b65b0b389f69de34c730bbb7fe2ec8 /sc/qa/unit/ucalc.cxx
parentfc4ba6d66ef47747a7f6001284999e1c880e3dfc (diff)
fdo#43304: Allow empty field labels in pivot tables.
Empty field labels are replaced with the column name.
Diffstat (limited to 'sc/qa/unit/ucalc.cxx')
-rw-r--r--sc/qa/unit/ucalc.cxx11
1 files changed, 0 insertions, 11 deletions
diff --git a/sc/qa/unit/ucalc.cxx b/sc/qa/unit/ucalc.cxx
index b287486fd5f3..4ff4cd03a15a 100644
--- a/sc/qa/unit/ucalc.cxx
+++ b/sc/qa/unit/ucalc.cxx
@@ -1323,17 +1323,6 @@ void Test::testDataPilot()
CPPUNIT_ASSERT_MESSAGE("Table output check failed", bSuccess);
}
- // Now, intentionally delete one of the field header names from the source range.
- ScMarkData aMarkData;
- aMarkData.SelectOneTable(0);
- m_pDoc->DeleteArea(1, 0, 1, 0, aMarkData, IDF_CONTENTS);
- printRange(m_pDoc, ScRange(nCol1, nRow1, 0, nCol2, nRow2, 0), "Data sheet content (header removed)");
-
- // An attempt to clear the cache whose original data now has an invalid
- // field name (empty name) should not succeed.
- nErrId = pDPs->ClearCache(pDPObj2);
- CPPUNIT_ASSERT_MESSAGE("Clearing the cache while the source data is invalid should not be allowed.", nErrId != 0);
-
pDPs->FreeTable(pDPObj2);
CPPUNIT_ASSERT_MESSAGE("There shouldn't be any data pilot table stored with the document.",
pDPs->GetCount() == 0);