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

[autotests/integration] Some more changes to try to make InternalWindowTest pass again

parent 6af0cc6e
......@@ -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));
......
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