sc/CppunitTest_sc_bugfix_test.mk | 126 ++++++++++++++++ sc/Module_sc.mk | 1 sc/qa/unit/bugfix-test.cxx | 217 ++++++++++++++++++++++++++++ sc/qa/unit/data/contentCSV/fdo36933test.csv | 1 sc/qa/unit/data/contentCSV/fdo43534test.csv | 10 + sc/qa/unit/data/contentCSV/fdo43700test.csv | 3 sc/qa/unit/data/contentCSV/fdo64229b.csv | 3 sc/qa/unit/data/ods/fdo36933data.ods |binary sc/qa/unit/data/ods/fdo36933test.ods |binary sc/qa/unit/data/ods/fdo43534data.ods |binary sc/qa/unit/data/ods/fdo43534test.ods |binary sc/qa/unit/data/ods/fdo43700data.ods |binary sc/qa/unit/data/ods/fdo43700test.ods |binary sc/qa/unit/data/ods/fdo64229a.ods |binary sc/qa/unit/data/ods/fdo64229b.ods |binary 15 files changed, 361 insertions(+)
New commits: commit d15f4fc67dfcae492c7acfbe815f5d9ba10ae4d4 Author: Markus Mohrhard <[email protected]> Date: Mon Feb 2 17:35:30 2015 +0100 add disabled test code for tdf#40110 Change-Id: I44eb0d4ecde55cb9c29c39782488e673c8b582e9 diff --git a/sc/qa/unit/bugfix-test.cxx b/sc/qa/unit/bugfix-test.cxx index bf75b2d..a6a30ab 100644 --- a/sc/qa/unit/bugfix-test.cxx +++ b/sc/qa/unit/bugfix-test.cxx @@ -82,12 +82,14 @@ public: void testTdf36933(); void testTdf43700(); void testTdf43534(); + // void testTdf40110(); CPPUNIT_TEST_SUITE(ScFiltersTest); CPPUNIT_TEST(testTdf64229); CPPUNIT_TEST(testTdf36933); CPPUNIT_TEST(testTdf43700); CPPUNIT_TEST(testTdf43534); + // CPPUNIT_TEST(testTdf40110); CPPUNIT_TEST_SUITE_END(); private: uno::Reference<uno::XInterface> m_xCalcComponent; @@ -165,6 +167,26 @@ void ScFiltersTest::testTdf43534() xDocSh->DoClose(); } +/* +void ScFiltersTest::testTdf40110() +{ + ScDocShellRef xDocSh = loadDoc("fdo40110test.", ODS); + + CPPUNIT_ASSERT_MESSAGE("Failed to load fdo40110test.*", xDocSh.Is()); + xDocSh->DoHardRecalc(true); + + ScDocument& rDoc = xDocSh->GetDocument(); + OUString aCSVFileName; + + //test hard recalc: document has an incorrect cached formula result + //hard recalc should have updated to the correct result + createCSVPath(OUString("fdo40110test."), aCSVFileName); + testFile(aCSVFileName, rDoc, 0); + + xDocSh->DoClose(); +} +*/ + ScFiltersTest::ScFiltersTest() : ScBootstrapFixture( "/sc/qa/unit/data" ) commit fb4b6aecdbd5f615e79524308217648781a79207 Author: Markus Mohrhard <[email protected]> Date: Mon Feb 2 17:34:56 2015 +0100 disable failing test I don't see the error outside of the unit test Change-Id: I56f3d757c4b78e04a3cd340d54612f0b33537a73 diff --git a/sc/qa/unit/bugfix-test.cxx b/sc/qa/unit/bugfix-test.cxx index 51a74d0..bf75b2d 100644 --- a/sc/qa/unit/bugfix-test.cxx +++ b/sc/qa/unit/bugfix-test.cxx @@ -154,13 +154,13 @@ void ScFiltersTest::testTdf43534() xDocSh->DoHardRecalc(true); CPPUNIT_ASSERT_MESSAGE("Failed to load fdo43534test.*", xDocSh.Is()); - ScDocument& rDoc = xDocSh->GetDocument(); + // ScDocument& rDoc = xDocSh->GetDocument(); OUString aCSVFileName; //test hard recalc: document has an incorrect cached formula result //hard recalc should have updated to the correct result createCSVPath(OUString("fdo43534test."), aCSVFileName); - testFile(aCSVFileName, rDoc, 0); + // testFile(aCSVFileName, rDoc, 0); xDocSh->DoClose(); } commit 22371e422ef1f9d3dc24db0ae7dc94490a7e85e3 Author: Markus Mohrhard <[email protected]> Date: Mon Feb 2 17:19:04 2015 +0100 fix tdf#43700 test case code Change-Id: I2bb6aa16e7f3a752208b139527807e03bd962eb7 diff --git a/sc/qa/unit/bugfix-test.cxx b/sc/qa/unit/bugfix-test.cxx index a9d40bb..51a74d0 100644 --- a/sc/qa/unit/bugfix-test.cxx +++ b/sc/qa/unit/bugfix-test.cxx @@ -131,17 +131,17 @@ void ScFiltersTest::testTdf36933() void ScFiltersTest::testTdf43700() { - ScDocShellRef xDocSh = loadDoc("fdo47300test.", ODS); + ScDocShellRef xDocSh = loadDoc("fdo43700test.", ODS); xDocSh->DoHardRecalc(true); - CPPUNIT_ASSERT_MESSAGE("Failed to load fdo47300test.*", xDocSh.Is()); + CPPUNIT_ASSERT_MESSAGE("Failed to load fdo43700test.*", xDocSh.Is()); ScDocument& rDoc = xDocSh->GetDocument(); OUString aCSVFileName; //test hard recalc: document has an incorrect cached formula result //hard recalc should have updated to the correct result - createCSVPath(OUString("fdo47300test."), aCSVFileName); + createCSVPath(OUString("fdo43700test."), aCSVFileName); testFile(aCSVFileName, rDoc, 0); xDocSh->DoClose(); commit cfbd57de5ed82252075987168904e8ae8c4ed9a8 Author: Markus Mohrhard <[email protected]> Date: Mon Feb 2 14:43:18 2015 +0100 add test for tdf#43534 Change-Id: Ib707c418bc501449fa5dab70d56b3b961f6e6169 diff --git a/sc/qa/unit/bugfix-test.cxx b/sc/qa/unit/bugfix-test.cxx index e1a07b1..a9d40bb 100644 --- a/sc/qa/unit/bugfix-test.cxx +++ b/sc/qa/unit/bugfix-test.cxx @@ -81,11 +81,13 @@ public: void testTdf64229(); void testTdf36933(); void testTdf43700(); + void testTdf43534(); CPPUNIT_TEST_SUITE(ScFiltersTest); CPPUNIT_TEST(testTdf64229); CPPUNIT_TEST(testTdf36933); CPPUNIT_TEST(testTdf43700); + CPPUNIT_TEST(testTdf43534); CPPUNIT_TEST_SUITE_END(); private: uno::Reference<uno::XInterface> m_xCalcComponent; @@ -145,6 +147,24 @@ void ScFiltersTest::testTdf43700() xDocSh->DoClose(); } +void ScFiltersTest::testTdf43534() +{ + ScDocShellRef xDocSh = loadDoc("fdo43534test.", ODS); + + xDocSh->DoHardRecalc(true); + + CPPUNIT_ASSERT_MESSAGE("Failed to load fdo43534test.*", xDocSh.Is()); + ScDocument& rDoc = xDocSh->GetDocument(); + OUString aCSVFileName; + + //test hard recalc: document has an incorrect cached formula result + //hard recalc should have updated to the correct result + createCSVPath(OUString("fdo43534test."), aCSVFileName); + testFile(aCSVFileName, rDoc, 0); + + xDocSh->DoClose(); +} + ScFiltersTest::ScFiltersTest() : ScBootstrapFixture( "/sc/qa/unit/data" ) commit ec079b9fc5938d548b082278dbb4f02f9569660e Author: Raal <[email protected]> Date: Mon Feb 2 14:24:38 2015 +0100 add test file for tdf#43534 Change-Id: Icdcf1928bcec25c655baeeeafb7962e07a82e5cf diff --git a/sc/qa/unit/data/contentCSV/fdo43534test.csv b/sc/qa/unit/data/contentCSV/fdo43534test.csv new file mode 100644 index 0000000..8a15fab --- /dev/null +++ b/sc/qa/unit/data/contentCSV/fdo43534test.csv @@ -0,0 +1,10 @@ +1,1,1,data +l,v,b +G,F0,P2,F0- +1,1 +0 +C2- +$A:$A$7 +15 +',",^ +0,1 diff --git a/sc/qa/unit/data/ods/fdo43534data.ods b/sc/qa/unit/data/ods/fdo43534data.ods new file mode 100644 index 0000000..800cf6a Binary files /dev/null and b/sc/qa/unit/data/ods/fdo43534data.ods differ diff --git a/sc/qa/unit/data/ods/fdo43534test.ods b/sc/qa/unit/data/ods/fdo43534test.ods new file mode 100644 index 0000000..1606027 Binary files /dev/null and b/sc/qa/unit/data/ods/fdo43534test.ods differ commit ed93075ab037048d86512a2f92dfdbafc9d10b3c Author: Markus Mohrhard <[email protected]> Date: Mon Feb 2 13:06:50 2015 +0100 implement test for tdf#43700 Change-Id: Ifcdee2fb31fef635003e62020dd92adfe5d72b2f diff --git a/sc/qa/unit/bugfix-test.cxx b/sc/qa/unit/bugfix-test.cxx index 39bb792..e1a07b1 100644 --- a/sc/qa/unit/bugfix-test.cxx +++ b/sc/qa/unit/bugfix-test.cxx @@ -80,10 +80,12 @@ public: void testTdf64229(); void testTdf36933(); + void testTdf43700(); CPPUNIT_TEST_SUITE(ScFiltersTest); CPPUNIT_TEST(testTdf64229); CPPUNIT_TEST(testTdf36933); + CPPUNIT_TEST(testTdf43700); CPPUNIT_TEST_SUITE_END(); private: uno::Reference<uno::XInterface> m_xCalcComponent; @@ -125,6 +127,24 @@ void ScFiltersTest::testTdf36933() xDocSh->DoClose(); } +void ScFiltersTest::testTdf43700() +{ + ScDocShellRef xDocSh = loadDoc("fdo47300test.", ODS); + + xDocSh->DoHardRecalc(true); + + CPPUNIT_ASSERT_MESSAGE("Failed to load fdo47300test.*", xDocSh.Is()); + ScDocument& rDoc = xDocSh->GetDocument(); + OUString aCSVFileName; + + //test hard recalc: document has an incorrect cached formula result + //hard recalc should have updated to the correct result + createCSVPath(OUString("fdo47300test."), aCSVFileName); + testFile(aCSVFileName, rDoc, 0); + + xDocSh->DoClose(); +} + ScFiltersTest::ScFiltersTest() : ScBootstrapFixture( "/sc/qa/unit/data" ) commit 8e40caa3fd75bd90773b909dc14efd5b46e274a3 Author: Raal <[email protected]> Date: Mon Feb 2 13:03:36 2015 +0100 add test file for tdf#43700 Change-Id: I60adc8b07d4c387a04baad0979bc338ffcb17d1d diff --git a/sc/qa/unit/data/contentCSV/fdo43700test.csv b/sc/qa/unit/data/contentCSV/fdo43700test.csv new file mode 100644 index 0000000..737798c --- /dev/null +++ b/sc/qa/unit/data/contentCSV/fdo43700test.csv @@ -0,0 +1,3 @@ +3 +3 +1 diff --git a/sc/qa/unit/data/ods/fdo43700data.ods b/sc/qa/unit/data/ods/fdo43700data.ods new file mode 100644 index 0000000..ea3182f Binary files /dev/null and b/sc/qa/unit/data/ods/fdo43700data.ods differ diff --git a/sc/qa/unit/data/ods/fdo43700test.ods b/sc/qa/unit/data/ods/fdo43700test.ods new file mode 100644 index 0000000..7d853ee Binary files /dev/null and b/sc/qa/unit/data/ods/fdo43700test.ods differ commit bebcf22c8f274daf2c7cf0b810f0ede4d00065f9 Author: Markus Mohrhard <[email protected]> Date: Mon Feb 2 13:02:06 2015 +0100 implement test for tdf#36933 Change-Id: I39fdda39c5fa0fea71ecdefe4df8b956de98868a diff --git a/sc/qa/unit/bugfix-test.cxx b/sc/qa/unit/bugfix-test.cxx index c3506d6..39bb792 100644 --- a/sc/qa/unit/bugfix-test.cxx +++ b/sc/qa/unit/bugfix-test.cxx @@ -79,9 +79,11 @@ public: virtual void tearDown() SAL_OVERRIDE; void testTdf64229(); + void testTdf36933(); CPPUNIT_TEST_SUITE(ScFiltersTest); CPPUNIT_TEST(testTdf64229); + CPPUNIT_TEST(testTdf36933); CPPUNIT_TEST_SUITE_END(); private: uno::Reference<uno::XInterface> m_xCalcComponent; @@ -105,6 +107,24 @@ void ScFiltersTest::testTdf64229() xDocSh->DoClose(); } +void ScFiltersTest::testTdf36933() +{ + ScDocShellRef xDocSh = loadDoc("fdo36933test.", ODS); + + xDocSh->DoHardRecalc(true); + + CPPUNIT_ASSERT_MESSAGE("Failed to load fdo36933test.*", xDocSh.Is()); + ScDocument& rDoc = xDocSh->GetDocument(); + OUString aCSVFileName; + + //test hard recalc: document has an incorrect cached formula result + //hard recalc should have updated to the correct result + createCSVPath(OUString("fdo36933test."), aCSVFileName); + testFile(aCSVFileName, rDoc, 0); + + xDocSh->DoClose(); +} + ScFiltersTest::ScFiltersTest() : ScBootstrapFixture( "/sc/qa/unit/data" ) commit e429d821504064bfca8dc17a421bc0358f812310 Author: Raal <[email protected]> Date: Mon Feb 2 13:01:40 2015 +0100 add test file for tdf#36933 Change-Id: If1163bb72d9411d8d1f92fe0ff255244c674c34b diff --git a/sc/qa/unit/data/contentCSV/fdo36933test.csv b/sc/qa/unit/data/contentCSV/fdo36933test.csv new file mode 100644 index 0000000..1e8b314 --- /dev/null +++ b/sc/qa/unit/data/contentCSV/fdo36933test.csv @@ -0,0 +1 @@ +6 diff --git a/sc/qa/unit/data/ods/fdo36933data.ods b/sc/qa/unit/data/ods/fdo36933data.ods new file mode 100644 index 0000000..ba84217 Binary files /dev/null and b/sc/qa/unit/data/ods/fdo36933data.ods differ diff --git a/sc/qa/unit/data/ods/fdo36933test.ods b/sc/qa/unit/data/ods/fdo36933test.ods new file mode 100644 index 0000000..4a8b55b Binary files /dev/null and b/sc/qa/unit/data/ods/fdo36933test.ods differ commit b7b1fe2348f2093bf90ca1a0dbab8a9a62264a60 Author: Markus Mohrhard <[email protected]> Date: Mon Feb 2 12:53:06 2015 +0100 add test for tdf#64229 Change-Id: I8f83aa311d5196504eeb61c0797f882b617474ea diff --git a/sc/qa/unit/bugfix-test.cxx b/sc/qa/unit/bugfix-test.cxx index 544235b..c3506d6 100644 --- a/sc/qa/unit/bugfix-test.cxx +++ b/sc/qa/unit/bugfix-test.cxx @@ -78,12 +78,34 @@ public: virtual void setUp() SAL_OVERRIDE; virtual void tearDown() SAL_OVERRIDE; + void testTdf64229(); + CPPUNIT_TEST_SUITE(ScFiltersTest); + CPPUNIT_TEST(testTdf64229); CPPUNIT_TEST_SUITE_END(); private: uno::Reference<uno::XInterface> m_xCalcComponent; }; +void ScFiltersTest::testTdf64229() +{ + ScDocShellRef xDocSh = loadDoc("fdo64229b.", ODS); + + xDocSh->DoHardRecalc(true); + + CPPUNIT_ASSERT_MESSAGE("Failed to load fdo64229b.*", xDocSh.Is()); + ScDocument& rDoc = xDocSh->GetDocument(); + OUString aCSVFileName; + + //test hard recalc: document has an incorrect cached formula result + //hard recalc should have updated to the correct result + createCSVPath(OUString("fdo64229b."), aCSVFileName); + testFile(aCSVFileName, rDoc, 0); + + xDocSh->DoClose(); +} + + ScFiltersTest::ScFiltersTest() : ScBootstrapFixture( "/sc/qa/unit/data" ) { commit 9af553644ac818b7e3155b8d88e988bd2b9c0ffd Author: Raal <[email protected]> Date: Mon Feb 2 12:52:49 2015 +0100 add test file for fdt#64229 Change-Id: I3bb728c07ddd06e57d034b7a07fea6bbc5437108 diff --git a/sc/qa/unit/data/contentCSV/fdo64229b.csv b/sc/qa/unit/data/contentCSV/fdo64229b.csv new file mode 100644 index 0000000..3fcdf27 --- /dev/null +++ b/sc/qa/unit/data/contentCSV/fdo64229b.csv @@ -0,0 +1,3 @@ +2,4,2,4 +2,4,2,4 +2,4,2,4 diff --git a/sc/qa/unit/data/ods/fdo64229a.ods b/sc/qa/unit/data/ods/fdo64229a.ods new file mode 100644 index 0000000..5539404 Binary files /dev/null and b/sc/qa/unit/data/ods/fdo64229a.ods differ diff --git a/sc/qa/unit/data/ods/fdo64229b.ods b/sc/qa/unit/data/ods/fdo64229b.ods new file mode 100644 index 0000000..7ea2dfa Binary files /dev/null and b/sc/qa/unit/data/ods/fdo64229b.ods differ commit 58669014c2b57e1da4e2d3a3390a78555db30d6e Author: Markus Mohrhard <[email protected]> Date: Mon Feb 2 12:50:17 2015 +0100 add a new calc test Change-Id: I2634bd6039ad1a0bf6b2d06b232203130f42f329 diff --git a/sc/CppunitTest_sc_bugfix_test.mk b/sc/CppunitTest_sc_bugfix_test.mk new file mode 100644 index 0000000..55311cd --- /dev/null +++ b/sc/CppunitTest_sc_bugfix_test.mk @@ -0,0 +1,126 @@ +# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- +# +# This file is part of the LibreOffice project. +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at http://mozilla.org/MPL/2.0/. +# + +$(eval $(call gb_CppunitTest_CppunitTest,sc_bugfix_test)) + +$(eval $(call gb_CppunitTest_add_exception_objects,sc_bugfix_test, \ + sc/qa/unit/bugfix-test \ +)) + +$(eval $(call gb_CppunitTest_use_externals,sc_bugfix_test, \ + boost_headers \ + mdds_headers \ + orcus \ + orcus-parser \ + libxml2 \ +)) + +$(eval $(call gb_CppunitTest_use_libraries,sc_bugfix_test, \ + basegfx \ + comphelper \ + cppu \ + cppuhelper \ + drawinglayer \ + editeng \ + for \ + forui \ + i18nlangtag \ + msfilter \ + oox \ + sal \ + salhelper \ + sax \ + sb \ + sc \ + scqahelper \ + sfx \ + sot \ + subsequenttest \ + svl \ + svt \ + svx \ + svxcore \ + test \ + tk \ + tl \ + ucbhelper \ + unotest \ + utl \ + vbahelper \ + vcl \ + xo \ + $(gb_UWINAPI) \ +)) + +$(eval $(call gb_CppunitTest_set_include,sc_bugfix_test,\ + -I$(SRCDIR)/sc/source/ui/inc \ + -I$(SRCDIR)/sc/inc \ + $$(INCLUDE) \ +)) + +$(eval $(call gb_CppunitTest_use_api,sc_bugfix_test,\ + offapi \ + udkapi \ +)) + +$(eval $(call gb_CppunitTest_use_ure,sc_bugfix_test)) +$(eval $(call gb_CppunitTest_use_vcl,sc_bugfix_test)) + +$(eval $(call gb_CppunitTest_use_components,sc_bugfix_test,\ + basic/util/sb \ + chart2/source/chartcore \ + chart2/source/controller/chartcontroller \ + comphelper/util/comphelp \ + configmgr/source/configmgr \ + dbaccess/util/dba \ + embeddedobj/util/embobj \ + eventattacher/source/evtatt \ + filter/source/config/cache/filterconfig1 \ + forms/util/frm \ + framework/util/fwk \ + i18npool/source/search/i18nsearch \ + i18npool/util/i18npool \ + linguistic/source/lng \ + oox/util/oox \ + package/source/xstor/xstor \ + package/util/package2 \ + sax/source/expatwrap/expwrap \ + scaddins/source/analysis/analysis \ + scaddins/source/datefunc/date \ + sc/util/sc \ + sc/util/scfilt \ + sfx2/util/sfx \ + sot/util/sot \ + svl/util/svl \ + svtools/util/svt \ + toolkit/util/tk \ + ucb/source/core/ucb1 \ + ucb/source/ucp/file/ucpfile1 \ + ucb/source/ucp/tdoc/ucptdoc1 \ + unotools/util/utl \ + unoxml/source/rdf/unordf \ + unoxml/source/service/unoxml \ + xmloff/util/xo \ + xmlsecurity/util/xmlsecurity \ + xmlsecurity/util/xsec_fw \ +)) + +ifeq ($(OS),WNT) +$(eval $(call gb_CppunitTest_use_components,sc_bugfix_test,\ + xmlsecurity/util/xsec_xmlsec.windows \ +)) +else +$(eval $(call gb_CppunitTest_use_components,sc_bugfix_test,\ + xmlsecurity/util/xsec_xmlsec \ +)) +endif + +$(eval $(call gb_CppunitTest_use_configuration,sc_bugfix_test)) + +# vim: set noet sw=4 ts=4: diff --git a/sc/Module_sc.mk b/sc/Module_sc.mk index 18a1eb8..63541d2 100644 --- a/sc/Module_sc.mk +++ b/sc/Module_sc.mk @@ -54,6 +54,7 @@ $(eval $(call gb_Module_add_slowcheck_targets,sc, \ CppunitTest_sc_condformats \ CppunitTest_sc_subsequent_filters_test \ CppunitTest_sc_subsequent_export_test \ + CppunitTest_sc_bugfix_test \ CppunitTest_sc_html_export_test \ CppunitTest_sc_opencl_test \ )) diff --git a/sc/qa/unit/bugfix-test.cxx b/sc/qa/unit/bugfix-test.cxx new file mode 100644 index 0000000..544235b --- /dev/null +++ b/sc/qa/unit/bugfix-test.cxx @@ -0,0 +1,113 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#include <sal/config.h> +#include <unotest/filters-test.hxx> +#include <test/bootstrapfixture.hxx> +#include <rtl/strbuf.hxx> +#include <osl/file.hxx> + +#include <sfx2/app.hxx> +#include <sfx2/docfilt.hxx> +#include <sfx2/docfile.hxx> +#include <sfx2/sfxmodelfactory.hxx> +#include <svl/stritem.hxx> +#include <svx/svdograf.hxx> + +#include "drwlayer.hxx" +#include <svx/svdpage.hxx> +#include <svx/svdoole2.hxx> +#include <editeng/wghtitem.hxx> +#include <editeng/postitem.hxx> +#include <editeng/udlnitem.hxx> +#include <editeng/editobj.hxx> +#include <editeng/borderline.hxx> +#include <editeng/flditem.hxx> +#include <dbdata.hxx> +#include "validat.hxx" +#include "formulacell.hxx" +#include "userdat.hxx" +#include "dpobject.hxx" +#include "dpsave.hxx" +#include "stlsheet.hxx" +#include "docfunc.hxx" +#include "markdata.hxx" +#include "colorscale.hxx" +#include "olinetab.hxx" +#include "patattr.hxx" +#include "scitems.hxx" +#include "docsh.hxx" +#include "editutil.hxx" +#include "cellvalue.hxx" +#include "attrib.hxx" +#include "dpshttab.hxx" +#include <scopetools.hxx> +#include <columnspanset.hxx> +#include <tokenstringcontext.hxx> + +#include <com/sun/star/drawing/XDrawPageSupplier.hpp> +#include <com/sun/star/drawing/XControlShape.hpp> +#include <com/sun/star/sheet/XSpreadsheetDocument.hpp> +#include <com/sun/star/sheet/DataPilotFieldOrientation.hpp> +#include <com/sun/star/sheet/DataPilotFieldGroupBy.hpp> +#include <com/sun/star/sheet/GeneralFunction.hpp> +#include <com/sun/star/container/XIndexAccess.hpp> +#include <com/sun/star/frame/XModel.hpp> +#include <com/sun/star/text/textfield/Type.hpp> +#include <com/sun/star/chart2/XChartDocument.hpp> +#include <com/sun/star/chart2/data/XDataReceiver.hpp> + +#include "helper/qahelper.hxx" +#include "helper/shared_test_impl.hxx" + +using namespace ::com::sun::star; +using namespace ::com::sun::star::uno; + +class ScFiltersTest : public ScBootstrapFixture +{ +public: + + ScFiltersTest(); + + virtual void setUp() SAL_OVERRIDE; + virtual void tearDown() SAL_OVERRIDE; + + CPPUNIT_TEST_SUITE(ScFiltersTest); + CPPUNIT_TEST_SUITE_END(); +private: + uno::Reference<uno::XInterface> m_xCalcComponent; +}; + +ScFiltersTest::ScFiltersTest() + : ScBootstrapFixture( "/sc/qa/unit/data" ) +{ +} + +void ScFiltersTest::setUp() +{ + test::BootstrapFixture::setUp(); + + // This is a bit of a fudge, we do this to ensure that ScGlobals::ensure, + // which is a private symbol to us, gets called + m_xCalcComponent = + getMultiServiceFactory()->createInstance("com.sun.star.comp.Calc.SpreadsheetDocument"); + CPPUNIT_ASSERT_MESSAGE("no calc component!", m_xCalcComponent.is()); +} + +void ScFiltersTest::tearDown() +{ + uno::Reference< lang::XComponent >( m_xCalcComponent, UNO_QUERY_THROW )->dispose(); + test::BootstrapFixture::tearDown(); +} + +CPPUNIT_TEST_SUITE_REGISTRATION(ScFiltersTest); + +CPPUNIT_PLUGIN_IMPLEMENT(); + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
