diff options
author | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-11 20:46:45 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@gmail.com> | 2012-04-11 20:46:45 -0400 |
commit | 8b216a7aa3c88a6b18f62079757567a2d4e4d737 (patch) | |
tree | 52da0c2e9b803dd7aa9c3548d078139c627209f3 /editeng/qa/unit | |
parent | ddfa209fc0422c544292ad23413851d1b654de7c (diff) |
Set default items to the item pool, do this and that, and now the test passes.
Diffstat (limited to 'editeng/qa/unit')
-rw-r--r-- | editeng/qa/unit/core-test.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/editeng/qa/unit/core-test.cxx b/editeng/qa/unit/core-test.cxx index d631923c6237..27af952758a1 100644 --- a/editeng/qa/unit/core-test.cxx +++ b/editeng/qa/unit/core-test.cxx @@ -35,6 +35,8 @@ #include <cppunit/extensions/HelperMacros.h> #include "svl/itempool.hxx" +#include "editeng/eerdll.hxx" +#include "editeng/eerdll2.hxx" #include "editeng/editeng.hxx" #include "editeng/eeitem.hxx" #include "editeng/editids.hrc" @@ -99,7 +101,11 @@ const SfxItemInfo aItemInfos[] = { class TestPool : public SfxItemPool { public: - TestPool() : SfxItemPool("TestPool", EE_ITEMS_START, EE_ITEMS_END, aItemInfos, NULL, true) {} + TestPool() : SfxItemPool("TestPool", EE_ITEMS_START, EE_ITEMS_END, aItemInfos, NULL, true) + { + SfxPoolItem** ppDefItems = EditDLL::Get().GetGlobalData()->GetDefItems(); + SetDefaults(ppDefItems); + } virtual ~TestPool() {} }; @@ -122,7 +128,7 @@ void Test::testConstruction() TestPool aPool; // TODO: fix me -// EditEngine aEngine(&aPool); + EditEngine aEngine(&aPool); } CPPUNIT_TEST_SUITE_REGISTRATION(Test); |