Stabilize QWidget-test alienwidgets on XCB.
Use QTRY_VERIFY for the mappped attribute check. Change-Id: I3cbde9122405bf7067f3702193e80636edc8c5c6 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
This commit is contained in:
parent
7b655eef48
commit
be4f8393e4
@ -7148,7 +7148,7 @@ void tst_QWidget::alienWidgets()
|
||||
child.setAttribute(Qt::WA_DontCreateNativeAncestors);
|
||||
window.show();
|
||||
QVERIFY(QTest::qWaitForWindowExposed(&window));
|
||||
QVERIFY(child.testAttribute(Qt::WA_Mapped));
|
||||
QTRY_VERIFY(child.testAttribute(Qt::WA_Mapped));
|
||||
widget.hide();
|
||||
QTRY_VERIFY(!child.testAttribute(Qt::WA_Mapped));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user