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:
Friedemann Kleint 2012-07-30 22:54:08 +02:00 committed by Qt by Nokia
parent 7b655eef48
commit be4f8393e4

View File

@ -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));
}