sc/qa/unit/screenshots/screenshots.cxx | 3 +++ sd/qa/unit/dialogs-test.cxx | 7 +++++++ sw/qa/unit/sw-dialogs-test.cxx | 8 ++++++++ 3 files changed, 18 insertions(+)
New commits: commit 14af38f429f84a75a9dae60d74d41c57efd709f6 Author: Stephan Bergmann <sberg...@redhat.com> Date: Fri Nov 18 17:29:20 2016 +0100 Missing XComponent.dispose calls in screenshot tests Change-Id: I5df25a16303719593d40f08d1e7c15e4636a2d02 diff --git a/sc/qa/unit/screenshots/screenshots.cxx b/sc/qa/unit/screenshots/screenshots.cxx index 870f774..0f1e5a2 100644 --- a/sc/qa/unit/screenshots/screenshots.cxx +++ b/sc/qa/unit/screenshots/screenshots.cxx @@ -282,6 +282,9 @@ void ScScreenshotTest::testOpeningModalDialogs() /// process input file containing the UXMLDescriptions of the dialogs to dump processDialogBatchFile("sc/qa/unit/screenshots/data/screenshots.txt"); + + mxComponent->dispose(); + mxComponent.clear(); } CPPUNIT_TEST_SUITE_REGISTRATION(ScScreenshotTest); diff --git a/sd/qa/unit/dialogs-test.cxx b/sd/qa/unit/dialogs-test.cxx index 37104a4..66a4fd6 100644 --- a/sd/qa/unit/dialogs-test.cxx +++ b/sd/qa/unit/dialogs-test.cxx @@ -101,6 +101,8 @@ public: virtual void setUp() override; + void tearDown() override; + // try to open a dialog void openAnyDialog(); @@ -138,6 +140,11 @@ void SdDialogsTest::setUp() CPPUNIT_ASSERT(mpImpressDocument); } +void SdDialogsTest::tearDown() +{ + mxComponent->dispose(); + ScreenshotTest::tearDown(); +} SdAbstractDialogFactory* SdDialogsTest::getSdAbstractDialogFactory() { diff --git a/sw/qa/unit/sw-dialogs-test.cxx b/sw/qa/unit/sw-dialogs-test.cxx index 1fb4f7b..a6f96d9 100644 --- a/sw/qa/unit/sw-dialogs-test.cxx +++ b/sw/qa/unit/sw-dialogs-test.cxx @@ -43,6 +43,8 @@ public: void setUp() override; + void tearDown() override; + // try to open a dialog void openAnyDialog(); @@ -78,6 +80,12 @@ void SwDialogsTest::setUp() (*fn)(); } +void SwDialogsTest::tearDown() +{ + component_->dispose(); + ScreenshotTest::tearDown(); +} + void SwDialogsTest::registerKnownDialogsByID(mapType& /*rKnownDialogs*/) { // fill map of known dialogs _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits