[Libreoffice-commits] core.git: svtools/qa

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Sun Apr 26 14:37:09 UTC 2020


 svtools/qa/unit/svtools-dialogs-test.cxx |   32 -------------------------------
 1 file changed, 32 deletions(-)

New commits:
commit 53695ce10253f5d029063e6c7afffdf1799ceec4
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sun Apr 26 14:47:37 2020 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Sun Apr 26 16:36:35 2020 +0200

    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 at redhat.com>

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();


More information about the Libreoffice-commits mailing list