From 0b475c50d25da02a3765fdb2a845dc9de5cda91d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Tue, 16 Aug 2016 14:32:27 +0200 Subject: [PATCH] [autotests/integration] Some more changes to try to make InternalWindowTest pass again --- autotests/integration/internal_window.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/autotests/integration/internal_window.cpp b/autotests/integration/internal_window.cpp index 729eaab175..7d9f224bad 100644 --- a/autotests/integration/internal_window.cpp +++ b/autotests/integration/internal_window.cpp @@ -338,6 +338,7 @@ void InternalWindowTest::testKeyboard() auto c = Test::renderAndWaitForShown(surface.data(), QSize(100, 50), Qt::blue); QVERIFY(c); QVERIFY(c->isActive()); + QVERIFY(!c->isInternal()); if (enteredSpy.isEmpty()) { QVERIFY(enteredSpy.wait()); @@ -347,10 +348,7 @@ void InternalWindowTest::testKeyboard() QSignalSpy windowShownSpy(internalClient, &ShellClient::windowShown); QVERIFY(windowShownSpy.isValid()); win.show(); - if (windowShownSpy.isEmpty()) { - QVERIFY(windowShownSpy.wait()); - } - QCOMPARE(windowShownSpy.count(), 1); + QTRY_COMPARE(windowShownSpy.count(), 1); QVERIFY(leftSpy.isEmpty()); QVERIFY(!leftSpy.wait(100));