From: Rohan McGovern Date: Mon, 5 Mar 2012 23:48:59 +0000 (+1000) Subject: Stabilize tst_QAccessibility::actionTest X-Git-Tag: qt-v5.0.0-alpha1~571 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=961c3f958f2cd4c993fc384c6e50e25e080c7585;p=profile%2Fivi%2Fqtbase.git Stabilize tst_QAccessibility::actionTest show() on a window is asynchronous. Wait for it to complete before continuing with the test. Change-Id: Icd0daa0c0e8f287171c57708bb2fce0b6cf0906a Reviewed-by: Toby Tomkins Reviewed-by: Kalle Lehtonen --- diff --git a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp index b2a4b1c..4c370be 100644 --- a/tests/auto/other/qaccessibility/tst_qaccessibility.cpp +++ b/tests/auto/other/qaccessibility/tst_qaccessibility.cpp @@ -777,6 +777,7 @@ void tst_QAccessibility::actionTest() { QPushButton *button = new QPushButton; button->show(); + QTest::qWaitForWindowShown(button); button->clearFocus(); QCOMPARE(button->hasFocus(), false); QAccessibleInterface *interface = QAccessible::queryAccessibleInterface(button);