diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-04-26 14:47:37 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-04-26 16:36:35 +0200 |
commit | 53695ce10253f5d029063e6c7afffdf1799ceec4 (patch) | |
tree | 21b97dae65dd923f25327162c69d06cb26f6cd12 /svtools | |
parent | 415dd9825f45f412b4d547113ede77f07eac448e (diff) |
fix make screenshot breakage
Change-Id: Ieb2a4ee7475de2f3f0b6de6c1f3a5c305805131f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92932
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/qa/unit/svtools-dialogs-test.cxx | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/svtools/qa/unit/svtools-dialogs-test.cxx b/svtools/qa/unit/svtools-dialogs-test.cxx index f710217ea7fd..be79168bb051 100644 --- a/svtools/qa/unit/svtools-dialogs-test.cxx +++ b/svtools/qa/unit/svtools-dialogs-test.cxx @@ -12,7 +12,6 @@ #include <vcl/abstdlg.hxx> #include <vcl/scheduler.hxx> #include <vcl/wrkwin.hxx> -#include <uitest/uiobject.hxx> #include <svtools/valueset.hxx> using namespace ::com::sun::star; @@ -34,11 +33,9 @@ public: // try to open a dialog void openAnyDialog(); - void testValueSetControl(); CPPUNIT_TEST_SUITE(SvtoolsDialogsTest); CPPUNIT_TEST(openAnyDialog); - CPPUNIT_TEST(testValueSetControl); CPPUNIT_TEST_SUITE_END(); }; @@ -62,35 +59,6 @@ void SvtoolsDialogsTest::openAnyDialog() processDialogBatchFile("svtools/qa/unit/data/svtools-dialogs-test.txt"); } -void SvtoolsDialogsTest::testValueSetControl() -{ - VclPtr<WorkWindow> pWorkWindow = VclPtr<WorkWindow>::Create(nullptr, WB_APP | WB_STDWORK); - VclPtr<ValueSet> pValueSet = VclPtr<ValueSet>::Create(pWorkWindow, WB_ITEMBORDER); - pValueSet->InsertItem(100, 0); - pValueSet->InsertItem(200, 1); - pValueSet->InsertItem(300, 2); - pValueSet->Show(); - pWorkWindow->Show(); - Scheduler::ProcessEventsToIdle(); - - CPPUNIT_ASSERT(pValueSet->IsEnabled()); - CPPUNIT_ASSERT(pValueSet->IsReallyVisible()); - CPPUNIT_ASSERT_EQUAL(false, pValueSet->IsItemSelected(300)); - { - std::unique_ptr<UIObject> pUIObject = pValueSet->GetUITestFactory()(pValueSet.get()); - CPPUNIT_ASSERT(pUIObject); - - StringMap aMap; - aMap["POS"] = "300"; - - pUIObject->execute("SELECT", aMap); - } - CPPUNIT_ASSERT_EQUAL(true, pValueSet->IsItemSelected(300)); - - pValueSet->disposeOnce(); - pWorkWindow->disposeOnce(); -} - CPPUNIT_TEST_SUITE_REGISTRATION(SvtoolsDialogsTest); CPPUNIT_PLUGIN_IMPLEMENT(); |