diff options
Diffstat (limited to 'dbaccess/qa/extras/empty-stdlib-save.cxx')
-rw-r--r-- | dbaccess/qa/extras/empty-stdlib-save.cxx | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/dbaccess/qa/extras/empty-stdlib-save.cxx b/dbaccess/qa/extras/empty-stdlib-save.cxx index 648ffb29a1ef..86f381cf8519 100644 --- a/dbaccess/qa/extras/empty-stdlib-save.cxx +++ b/dbaccess/qa/extras/empty-stdlib-save.cxx @@ -72,17 +72,13 @@ void DialogSaveTest::test() uno::Reference< lang::XComponent > xComponent = loadFromDesktop(aFileName); CPPUNIT_ASSERT(xComponent.is()); uno::Reference< frame::XStorable > xDocStorable(xComponent, UNO_QUERY_THROW); - CPPUNIT_ASSERT(xDocStorable.is()); uno::Reference< document::XEmbeddedScripts > xDocScr(xComponent, UNO_QUERY_THROW); - CPPUNIT_ASSERT(xDocScr.is()); uno::Reference< script::XStorageBasedLibraryContainer > xStorBasLib(xDocScr->getBasicLibraries()); CPPUNIT_ASSERT(xStorBasLib.is()); uno::Reference< script::XLibraryContainer > xBasLib(xStorBasLib, UNO_QUERY_THROW); - CPPUNIT_ASSERT(xBasLib.is()); uno::Reference< script::XStorageBasedLibraryContainer > xStorDlgLib(xDocScr->getDialogLibraries()); CPPUNIT_ASSERT(xStorDlgLib.is()); uno::Reference< script::XLibraryContainer > xDlgLib(xStorDlgLib, UNO_QUERY_THROW); - CPPUNIT_ASSERT(xDlgLib.is()); xBasLib->loadLibrary(sStandard); xDlgLib->loadLibrary(sStandard); CPPUNIT_ASSERT(xBasLib->isLibraryLoaded(sStandard)); @@ -102,15 +98,12 @@ void DialogSaveTest::test() xI->removeByName("Dialog1"); // uno::Reference< util::XModifiable > xDlgMod(xDlgLib, UNO_QUERY_THROW); - // CPPUNIT_ASSERT(xDlgMod.is()); // xDlgMod->setModified(sal_True); // uno::Reference< util::XModifiable > xScrMod(xDocScr, UNO_QUERY_THROW); - // CPPUNIT_ASSERT(xScrMod.is()); // xScrMod->setModified(sal_True); // uno::Reference< util::XModifiable > xDocMod(xComponent, UNO_QUERY_THROW); - // CPPUNIT_ASSERT(xDocMod.is()); // std::cerr << "** Modified: " << static_cast<bool>(xDocMod->isModified()) << std::endl; // xDocMod->setModified(sal_True); // std::cerr << "** Modified: " << static_cast<bool>(xDocMod->isModified()) << std::endl; @@ -122,7 +115,6 @@ void DialogSaveTest::test() // close uno::Reference< util::XCloseable > xDocCloseable(xComponent, UNO_QUERY_THROW); - CPPUNIT_ASSERT(xDocCloseable.is()); xDocCloseable->close(false); // All our uno::References are (should?) be invalid now -> let them go out of scope @@ -131,7 +123,6 @@ void DialogSaveTest::test() uno::Sequence<uno::Any> args(1); args[0] <<= aFileName; Reference<container::XHierarchicalNameAccess> xHNA(getMultiServiceFactory()->createInstanceWithArguments("com.sun.star.packages.Package", args), UNO_QUERY_THROW); - CPPUNIT_ASSERT(xHNA.is()); CPPUNIT_ASSERT(!xHNA->hasByHierarchicalName("Basic/Standard")); CPPUNIT_ASSERT(!xHNA->hasByHierarchicalName("Dialogs/Standard")); } |