[Libreoffice-commits] core.git: Branch 'feature/calc-group-interpreter' - sc/qa
Kohei Yoshida
kohei.yoshida at gmail.com
Thu Aug 8 10:41:23 PDT 2013
sc/qa/unit/subsequent_filters-test.cxx | 37 ---------------------------------
1 file changed, 37 deletions(-)
New commits:
commit eb0e143df6e9bcd391fa277de695f849e1e9974f
Author: Kohei Yoshida <kohei.yoshida at gmail.com>
Date: Thu Aug 8 13:41:51 2013 -0400
Remove this test from this branch.
On master it's been moved to the normal filters test.
Change-Id: Id7cc4d49ce50695d47bd14f26403682b5dcd636e
diff --git a/sc/qa/unit/subsequent_filters-test.cxx b/sc/qa/unit/subsequent_filters-test.cxx
index 504fc4f..35c26b7 100644
--- a/sc/qa/unit/subsequent_filters-test.cxx
+++ b/sc/qa/unit/subsequent_filters-test.cxx
@@ -112,7 +112,6 @@ public:
void testNewCondFormatXLSX();
//change this test file only in excel and not in calc
- void testSharedFormulaXLSX();
void testCellValueXLSX();
//misc tests unrelated to the import filters
@@ -162,7 +161,6 @@ public:
CPPUNIT_TEST(testRepeatedColumnsODS);
CPPUNIT_TEST(testDataValidityODS);
CPPUNIT_TEST(testBrokenQuotesCSV);
- CPPUNIT_TEST(testSharedFormulaXLSX);
CPPUNIT_TEST(testCellValueXLSX);
CPPUNIT_TEST(testControlImport);
CPPUNIT_TEST(testChartImportODS);
@@ -1165,41 +1163,6 @@ void ScFiltersTest::testBrokenQuotesCSV()
xDocSh->DoClose();
}
-void ScFiltersTest::testSharedFormulaXLSX()
-{
- const OUString aFileNameBase("shared-formula.");
- OUString aFileExtension(aFileFormats[XLSX].pName, strlen(aFileFormats[XLSX].pName), RTL_TEXTENCODING_UTF8 );
- OUString aFilterName(aFileFormats[XLSX].pFilterName, strlen(aFileFormats[XLSX].pFilterName), RTL_TEXTENCODING_UTF8) ;
- OUString aFileName;
- createFileURL(aFileNameBase, aFileExtension, aFileName);
- OUString aFilterType(aFileFormats[XLSX].pTypeName, strlen(aFileFormats[XLSX].pTypeName), RTL_TEXTENCODING_UTF8);
- std::cout << aFileFormats[XLSX].pName << " Test" << std::endl;
-
- unsigned int nFormatType = aFileFormats[XLSX].nFormatType;
- unsigned int nClipboardId = nFormatType ? SFX_FILTER_IMPORT | SFX_FILTER_USESOPTIONS : 0;
- ScDocShellRef xDocSh = ScBootstrapFixture::load(aFileName, aFilterName, OUString(), aFilterType,
- nFormatType, nClipboardId, SOFFICE_FILEFORMAT_CURRENT);
-
- xDocSh->DoHardRecalc(true);
-
- CPPUNIT_ASSERT_MESSAGE("Failed to load shared-formula.xlsx", xDocSh.Is());
- ScDocument* pDoc = xDocSh->GetDocument();
- CPPUNIT_ASSERT_MESSAGE("No Document", pDoc); //remove with first test
-
- OUString aCSVPath;
- createCSVPath( aFileNameBase, aCSVPath );
- testFile( aCSVPath, pDoc, 0 );
-
- //test some additional properties
- ScRangeName* pName = pDoc->GetRangeName();
- for (ScRangeName::iterator itr = pName->begin(); itr != pName->end(); ++itr)
- {
- CPPUNIT_ASSERT(itr->second->GetType() & RT_SHARED);
- }
-
- xDocSh->DoClose();
-}
-
void ScFiltersTest::testCellValueXLSX()
{
const OUString aFileNameBase("cell-value.");
More information about the Libreoffice-commits
mailing list