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.
This commit is contained in:
Vlad Zahorodnii 2020-09-11 11:31:47 +03:00
parent f8b9ea5680
commit 4ef47641ed

View file

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