QNX: Fix QWizard autotest

In "task177022_setFixedSize" show was replaced with showNormal because on QNX
and some other platforms show translates to a showFullScreen.
For BlackBerry the test is skipped because the first top level window
is always forced into fullscreen mode.

Change-Id: I9df37c6bc47b47cbad4a1623b3eafa723abc6714
Reviewed-by: Bernd Weimer <bweimer@blackberry.com>
Reviewed-by: Sergio Ahumada <sahumada@blackberry.com>
bb10
Fabian Bumberger 2014-04-10 11:48:47 +02:00 committed by The Qt Project
parent bfb25c0352
commit 9cae7b5ee2
1 changed files with 4 additions and 1 deletions

View File

@ -2605,6 +2605,9 @@ void tst_QWizard::task161658_alignments()
void tst_QWizard::task177022_setFixedSize()
{
#ifdef Q_OS_BLACKBERRY
QSKIP("Window is forced fullscreen");
#endif
int width = 300;
int height = 200;
QWizard wiz;
@ -2622,7 +2625,7 @@ void tst_QWizard::task177022_setFixedSize()
QCOMPARE(wiz.maximumWidth(), width);
QCOMPARE(wiz.maximumHeight(), height);
wiz.show();
wiz.showNormal();
QVERIFY(QTest::qWaitForWindowExposed(&wiz));
QCOMPARE(wiz.size(), QSize(width, height));