From 4ef47641ede4e3567293eb821aa5e3f93b9def03 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Fri, 11 Sep 2020 11:31:47 +0300 Subject: [PATCH] autotests: Fix TestInputMethodInterface If the underlying wl_surface object has been removed, the input panel surface will be still alive. Unfortunately, in order to make the test pass, the input panel surface interface must have a destructor request. So, the code that tests the destruction of an input panel surface had been removed. --- src/wayland/autotests/server/test_inputmethod_interface.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/wayland/autotests/server/test_inputmethod_interface.cpp b/src/wayland/autotests/server/test_inputmethod_interface.cpp index 6b3bb87781..b0416827c0 100644 --- a/src/wayland/autotests/server/test_inputmethod_interface.cpp +++ b/src/wayland/autotests/server/test_inputmethod_interface.cpp @@ -209,10 +209,6 @@ void TestInputMethodInterface::testAdd() QSignalSpy panelTopLevelSpy(panelSurfaceIface, &InputPanelSurfaceV1Interface::topLevel); panelSurface->set_toplevel(*m_output, InputPanelSurface::position_center_bottom); QVERIFY(panelTopLevelSpy.wait()); - - QSignalSpy panelDeleteSpy(panelSurfaceIface, &QObject::destroyed); - delete surface; - QVERIFY(panelDeleteSpy.wait()); }