diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-11-25 14:51:03 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-11-25 14:51:48 (GMT) |
commit | 41a8700c18b805d862c10847d29d30fd2d28911e (patch) | |
tree | 9f751c6a9bd4f9336296267576d22f68de27f515 /tests | |
parent | c5eea852c73bab203541a08757be2c3cf9a18c1c (diff) | |
download | Qt-41a8700c18b805d862c10847d29d30fd2d28911e.zip Qt-41a8700c18b805d862c10847d29d30fd2d28911e.tar.gz Qt-41a8700c18b805d862c10847d29d30fd2d28911e.tar.bz2 |
autotest fix: mac shows sizegrip when window is maximized
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/qstatusbar/tst_qstatusbar.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/auto/qstatusbar/tst_qstatusbar.cpp b/tests/auto/qstatusbar/tst_qstatusbar.cpp index 92d9185..03d8ca8 100644 --- a/tests/auto/qstatusbar/tst_qstatusbar.cpp +++ b/tests/auto/qstatusbar/tst_qstatusbar.cpp @@ -266,10 +266,15 @@ void tst_QStatusBar::QTBUG4334_hiddenOnMaximizedWindow() main.setStatusBar(&statusbar); main.showMaximized(); QTest::qWaitForWindowShown(&main); +#ifndef Q_WS_MAC QVERIFY(!statusbar.findChild<QSizeGrip*>()->isVisible()); +#endif main.showNormal(); QTest::qWaitForWindowShown(&main); QVERIFY(statusbar.findChild<QSizeGrip*>()->isVisible()); + main.showFullScreen(); + QTest::qWaitForWindowShown(&main); + QVERIFY(!statusbar.findChild<QSizeGrip*>()->isVisible()); } QTEST_MAIN(tst_QStatusBar) |