diff options
Diffstat (limited to 'test/source')
-rw-r--r-- | test/source/unoapi_test.cxx | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/test/source/unoapi_test.cxx b/test/source/unoapi_test.cxx index 214ed174ec2e..256e1f377bdf 100644 --- a/test/source/unoapi_test.cxx +++ b/test/source/unoapi_test.cxx @@ -25,17 +25,13 @@ void UnoApiTest::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()); mxDesktop = com::sun::star::frame::Desktop::create( comphelper::getComponentContext(getMultiServiceFactory()) ); + CPPUNIT_ASSERT_MESSAGE("no desktop!", mxDesktop.is()); } void UnoApiTest::tearDown() { - uno::Reference< lang::XComponent >( m_xCalcComponent, UNO_QUERY_THROW )->dispose(); + uno::Reference< lang::XComponent >( mxDesktop )->dispose(); test::BootstrapFixture::tearDown(); } |