diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-12-10 12:32:16 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-12-10 12:32:16 +0000 |
commit | c64ac5f98059914475f070c9c2fd68533176bd5a (patch) | |
tree | 9e01d9b4abd319f8842892dec05f73a3973aa7de /starmath/qa/cppunit/test_starmath.cxx | |
parent | f1c8c2da336c3aca06b4bf555cf269f41c25b10a (diff) |
cppunit: equivalent cppunit test for ViewShowAll
Diffstat (limited to 'starmath/qa/cppunit/test_starmath.cxx')
-rw-r--r-- | starmath/qa/cppunit/test_starmath.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/starmath/qa/cppunit/test_starmath.cxx b/starmath/qa/cppunit/test_starmath.cxx index 28df9450ebaa..0d7bbd4d64b6 100644 --- a/starmath/qa/cppunit/test_starmath.cxx +++ b/starmath/qa/cppunit/test_starmath.cxx @@ -407,6 +407,14 @@ void Test::tViewZoom() nFinalZoom = rGraphicWindow.GetZoom(); CPPUNIT_ASSERT_MESSAGE("Should be Clipped to 800%", nFinalZoom == 800); } + + { + SfxRequest aZoom(SID_ADJUST, SFX_CALLMODE_SYNCHRON, m_pViewShell->GetPool()); + m_pViewShell->Execute(aZoom); + nFinalZoom = rGraphicWindow.GetZoom(); + CPPUNIT_ASSERT_MESSAGE("Should be the same as optimal", nOptimalZoom == nFinalZoom); + } + } CPPUNIT_TEST_SUITE_REGISTRATION(Test); |