Commit b70402be authored by Martin Flöser's avatar Martin Flöser
Browse files

[autotest] Further try to make TestWaylandOutputDevice more robust

Following the idea from f99492a6
to add more done signal spies instead of changed.
parent ffb91b03
......@@ -482,7 +482,7 @@ void TestWaylandOutputDevice::testEdid()
QCOMPARE(output.edid(), QByteArray());
QSignalSpy outputChanged(&output, &KWayland::Client::OutputDevice::changed);
QSignalSpy outputChanged(&output, &KWayland::Client::OutputDevice::done);
QVERIFY(outputChanged.isValid());
output.setup(registry.bindOutputDevice(announced.first().first().value<quint32>(), announced.first().last().value<quint32>()));
wl_display_flush(m_connection->display());
......@@ -501,7 +501,7 @@ void TestWaylandOutputDevice::testId()
QVERIFY(announced.wait());
KWayland::Client::OutputDevice output;
QSignalSpy outputChanged(&output, &KWayland::Client::OutputDevice::changed);
QSignalSpy outputChanged(&output, &KWayland::Client::OutputDevice::done);
QVERIFY(outputChanged.isValid());
output.setup(registry.bindOutputDevice(announced.first().first().value<quint32>(), announced.first().last().value<quint32>()));
wl_display_flush(m_connection->display());
......
Supports Markdown
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