summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorRohan McGovern <rohan.mcgovern@nokia.com>2011-08-17 15:43:36 +1000
committerQt by Nokia <qt-info@nokia.com>2011-08-17 17:46:37 +0200
commit8455b13feeb1441bc1b9d615ca8c67d8831c2d8c (patch)
treef8e9869fd135e51e7332d377863867192e74c7c4 /tests
parent7a16085a0f04a632cc4e6b6f08d674bcf25d6e60 (diff)
test: fixed failure of tst_qgridlayout on small screens for non-QWS
This test will fail if the window manager doesn't give the widget the geometry it requested. The test was verifying this precondition, but only on QWS. It doesn't make sense to limit this check to QWS, as other platforms can have small screens too. Change-Id: I3fec905c28ac2f85ebfd621f84f2269a673e318e Reviewed-on: http://codereview.qt.nokia.com/3061 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Kalle Lehtonen <kalle.ju.lehtonen@nokia.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qgridlayout/tst_qgridlayout.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/auto/qgridlayout/tst_qgridlayout.cpp b/tests/auto/qgridlayout/tst_qgridlayout.cpp
index 6753f49fed..921168da8e 100644
--- a/tests/auto/qgridlayout/tst_qgridlayout.cpp
+++ b/tests/auto/qgridlayout/tst_qgridlayout.cpp
@@ -721,10 +721,8 @@ void tst_QGridLayout::spacingsAndMargins()
QSize topsize = toplevel.size();
QSize minimumsize = vbox.totalMinimumSize();
-#if defined(Q_WS_QWS)
if (topsize.width() < minimumsize.width() || topsize.height() < minimumsize.height())
QSKIP("The screen is too small to run this test case", SkipSingle);
-#endif
// We are relying on the order here...
for (int pi = 0; pi < sizehinters.count(); ++pi) {