[Libreoffice-commits] .: starmath/qa
Caolán McNamara
caolan at kemper.freedesktop.org
Fri Dec 10 04:32:25 PST 2010
starmath/qa/cppunit/test_starmath.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit 5d112908349eeb7e03ed6174225ff3b53739774b
Author: Caolán McNamara <caolanm at redhat.com>
Date: Fri Dec 10 12:32:16 2010 +0000
cppunit: equivalent cppunit test for ViewShowAll
diff --git a/starmath/qa/cppunit/test_starmath.cxx b/starmath/qa/cppunit/test_starmath.cxx
index 28df945..0d7bbd4 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);
More information about the Libreoffice-commits
mailing list