diff options
author | Dominik Holland <dominik.holland@nokia.com> | 2010-07-23 07:21:38 (GMT) |
---|---|---|
committer | Harald Fernengel <harald.fernengel@nokia.com> | 2010-11-02 14:26:00 (GMT) |
commit | 8b68c73d1fe916fafa1e0aa0c59ba3131ebd77cc (patch) | |
tree | 599865e63bc2c8264fd963e270081532dd224271 | |
parent | 46115a0b8d3de85170a2600b5abb81458dc263bf (diff) | |
download | Qt-8b68c73d1fe916fafa1e0aa0c59ba3131ebd77cc.zip Qt-8b68c73d1fe916fafa1e0aa0c59ba3131ebd77cc.tar.gz Qt-8b68c73d1fe916fafa1e0aa0c59ba3131ebd77cc.tar.bz2 |
Fixed QMainWindow autotests, to skip an test, that makes no sense
on maemo
-rw-r--r-- | tests/auto/qmainwindow/tst_qmainwindow.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qmainwindow/tst_qmainwindow.cpp b/tests/auto/qmainwindow/tst_qmainwindow.cpp index c82c566..e3122c4 100644 --- a/tests/auto/qmainwindow/tst_qmainwindow.cpp +++ b/tests/auto/qmainwindow/tst_qmainwindow.cpp @@ -55,6 +55,7 @@ #include <qtextedit.h> #include <private/qmainwindowlayout_p.h> #include <private/qdockarealayout_p.h> +#include "../platformquirks.h" //TESTED_FILES= @@ -1679,6 +1680,9 @@ void tst_QMainWindow::addToolbarAfterShow() void tst_QMainWindow::centralWidgetSize() { + if(PlatformQuirks::isAutoMaximizing()) + QSKIP("The platform is auto maximizing, so the test makes no sense", SkipAll);; + QMainWindow mainWindow; mainWindow.menuBar()->addMenu("menu"); |