summaryrefslogtreecommitdiff
path: root/starmath/qa
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-12-08 14:40:10 +0000
committerCaolán McNamara <caolanm@redhat.com>2010-12-08 14:40:10 +0000
commit11af030d9bf5c4ebcb1d507c89e5a4e777f594d1 (patch)
treec65c45fb7a6de8ec4cea65ec6593e4d0e89ce6c4 /starmath/qa
parentd69e5470aca43943bd3d540240ba40a01ebc74c5 (diff)
cppunit: more zoom tests with standard view mode
Diffstat (limited to 'starmath/qa')
-rw-r--r--starmath/qa/cppunit/test_starmath.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/starmath/qa/cppunit/test_starmath.cxx b/starmath/qa/cppunit/test_starmath.cxx
index 46b1296fdeb6..28df9450ebaa 100644
--- a/starmath/qa/cppunit/test_starmath.cxx
+++ b/starmath/qa/cppunit/test_starmath.cxx
@@ -80,6 +80,9 @@ private:
};
Test::Test()
+ : m_pDispatcher(NULL)
+ , m_pSmCmdBoxWindow(NULL)
+ , m_pEditWindow(NULL)
{
m_xContext = cppu::defaultBootstrap_InitialComponentContext();
m_xFactory = m_xContext->getServiceManager();
@@ -99,7 +102,7 @@ Test::Test()
void Test::setUp()
{
m_xDocShRef = new SmDocShell(
- SFXMODEL_EMBEDDED_OBJECT |
+ SFXMODEL_STANDARD |
SFXMODEL_DISABLE_EMBEDDED_SCRIPTS |
SFXMODEL_DISABLE_DOCUMENT_RECOVERY);
m_xDocShRef->DoInitNew(0);
@@ -345,8 +348,6 @@ void Test::tViewZoom()
CPPUNIT_ASSERT_MESSAGE("Should be optimal zoom", nFinalZoom == nOptimalZoom);
}
-#if 0
- //TO-DO: switch from embedded to normal to get these meaningfull
{
SfxRequest aZoomOut(SID_ZOOMOUT, SFX_CALLMODE_SYNCHRON, m_pViewShell->GetPool());
m_pViewShell->Execute(aZoomOut);
@@ -374,7 +375,6 @@ void Test::tViewZoom()
nFinalZoom = rGraphicWindow.GetZoom();
CPPUNIT_ASSERT_MESSAGE("Should be same as optimal zoom", nFinalZoom == nOptimalZoom);
}
-#endif
{
SfxRequest aZoomOut(SID_ZOOMOUT, SFX_CALLMODE_SYNCHRON, m_pViewShell->GetPool());