Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit d39fea1b authored by Martin Flöser's avatar Martin Flöser

[autotests] Try to make SceneQPainterTest::testX11Window more robust

It fails on build.kde.org which might be a side effect.
parent 54ca2bba
......@@ -332,6 +332,13 @@ void SceneQPainterTest::testX11Window()
QVERIFY(client);
QCOMPARE(client->window(), w);
QCOMPARE(client->clientSize(), QSize(100, 200));
if (!client->surface()) {
// wait for surface
QSignalSpy surfaceChangedSpy(client, &Toplevel::surfaceChanged);
QVERIFY(surfaceChangedSpy.isValid());
QVERIFY(surfaceChangedSpy.wait());
}
QVERIFY(client->surface());
// enough time for rendering the window
QTest::qWait(100);
......
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