tst_qdialog: Wait for exposed instead of active
This makes the test pass on Wayland. Task-number: QTBUG-62188 Change-Id: Ib67cf8913055bbe753f71791095aff035342c18d Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
This commit is contained in:
parent
c5e9d7e504
commit
ee4a604a2e
@ -222,7 +222,7 @@ void tst_QDialog::defaultButtons()
|
||||
|
||||
testWidget.show();
|
||||
QApplication::setActiveWindow(&testWidget);
|
||||
QVERIFY(QTest::qWaitForWindowActive(&testWidget));
|
||||
QVERIFY(QTest::qWaitForWindowExposed(&testWidget));
|
||||
|
||||
push->setDefault(true);
|
||||
QVERIFY(push->isDefault());
|
||||
|
Loading…
Reference in New Issue
Block a user