Commit 053c2de4 authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

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.
parent 3110f28b
......@@ -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());
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment