Prospective fix to stabilize tst_QMdiArea::subWindowActivated2()/xcb.
Ensure that the window is active (as otherwise QMdiArea::activeSubWindow() returns 0) and add a QTRY_COMPARE. Change-Id: I7edb01d43fd2635864266614ef9a0e844f76edbf Reviewed-by: Frederik Gladhorn <frederik.gladhorn@theqtcompany.com>
This commit is contained in:
parent
78ad8f208d
commit
5d2068b912
@ -497,9 +497,10 @@ void tst_QMdiArea::subWindowActivated2()
|
||||
spy.clear();
|
||||
|
||||
mdiArea.show();
|
||||
QVERIFY(QTest::qWaitForWindowExposed(&mdiArea));
|
||||
QVERIFY(QTest::qWaitForWindowActive(&mdiArea));
|
||||
QTRY_COMPARE(spy.count(), 1);
|
||||
QCOMPARE(mdiArea.activeSubWindow(), activeSubWindow);
|
||||
QVERIFY(mdiArea.currentSubWindow());
|
||||
QTRY_COMPARE(mdiArea.activeSubWindow(), activeSubWindow);
|
||||
spy.clear();
|
||||
|
||||
if (qGuiApp->styleHints()->showIsFullScreen())
|
||||
|
Loading…
Reference in New Issue
Block a user