summaryrefslogtreecommitdiffstats
path: root/tests/auto/qmenubar
diff options
context:
space:
mode:
authorDominik Holland <dominik.holland@nokia.com>2010-07-28 10:24:18 +0200
committerHarald Fernengel <harald.fernengel@nokia.com>2010-11-02 15:29:41 +0100
commit09800d84d99c51941df8b15c2979af79ac750ee3 (patch)
treec65e9e43b148b010c4ead00a4603278030db9fe0 /tests/auto/qmenubar
parent4dabd36fe0cd52dc297d2fa56c50917314c385a2 (diff)
Fixed QMenuBar autotest. Added mainwindow activation
Diffstat (limited to 'tests/auto/qmenubar')
-rw-r--r--tests/auto/qmenubar/tst_qmenubar.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/auto/qmenubar/tst_qmenubar.cpp b/tests/auto/qmenubar/tst_qmenubar.cpp
index cc9fb0c41e..392a4a08ff 100644
--- a/tests/auto/qmenubar/tst_qmenubar.cpp
+++ b/tests/auto/qmenubar/tst_qmenubar.cpp
@@ -338,6 +338,8 @@ void tst_QMenuBar::initTestCase_noQt3()
initSimpleMenubar_noQt3();
mw->show();
+ QTest::qWaitForWindowShown(mw);
+ mw->activateWindow();
menu1 = new QtTestSlot( mw );
menu2 = new QtTestSlot( mw );