From 1eac18a8fd2860a5583f1ea0652f4fd040d40b03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 16 Aug 2016 12:43:29 +0200 Subject: [PATCH] [autotests/integration] More changes in InternalWindowTest::testKeyboard Test is still failing on build.kde.org. Adding more test conditions to better understand what works and what doesn't. --- autotests/integration/internal_window.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/autotests/integration/internal_window.cpp b/autotests/integration/internal_window.cpp index 571c8b2ed7..729eaab175 100644 --- a/autotests/integration/internal_window.cpp +++ b/autotests/integration/internal_window.cpp @@ -303,6 +303,7 @@ void InternalWindowTest::testKeyboard() auto internalClient = clientAddedSpy.first().first().value(); QVERIFY(internalClient); QVERIFY(internalClient->isInternal()); + QVERIFY(internalClient->readyForPainting()); quint32 timestamp = 1; QFETCH(QPoint, cursorPos); @@ -316,7 +317,11 @@ void InternalWindowTest::testKeyboard() QCOMPARE(pressSpy.count(), 1); // let's hide the window again and create a "real" window + QSignalSpy internalClientUnmappedSpy(internalClient, &ShellClient::windowHidden); + QVERIFY(internalClientUnmappedSpy.isValid()); win.hide(); + QVERIFY(internalClientUnmappedSpy.wait()); + QCOMPARE(internalClientUnmappedSpy.count(), 1); clientAddedSpy.clear(); QScopedPointer keyboard(Test::waylandSeat()->createKeyboard());