summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicswidget
diff options
context:
space:
mode:
authorJan-Arve Sæther <jan-arve.saether@nokia.com>2009-09-09 14:10:42 (GMT)
committerJan-Arve Sæther <jan-arve.saether@nokia.com>2009-09-09 14:13:59 (GMT)
commit33a07e0afd9f98fedd22f4dc2c555cf634ef2b35 (patch)
tree235086e31e530d3f44636edd113d49a9c6c24acf /tests/auto/qgraphicswidget
parent8973cff35c30908b049f9c79b3ccffe15b56ef23 (diff)
downloadQt-33a07e0afd9f98fedd22f4dc2c555cf634ef2b35.zip
Qt-33a07e0afd9f98fedd22f4dc2c555cf634ef2b35.tar.gz
Qt-33a07e0afd9f98fedd22f4dc2c555cf634ef2b35.tar.bz2
Do not run the respectHFW autotest on all platforms.
It fails on some platforms because of a bug in the autotest. There might be more platforms also, but these are the ones that currently report the problem. Reviewed-by: paul
Diffstat (limited to 'tests/auto/qgraphicswidget')
-rw-r--r--tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp b/tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp
index 3ca1181..20803a5 100644
--- a/tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp
+++ b/tests/auto/qgraphicswidget/tst_qgraphicswidget.cpp
@@ -2589,6 +2589,9 @@ protected:
void tst_QGraphicsWidget::respectHFW()
{
+#if defined(Q_OS_WINCE) || defined(Q_OS_MAC) || defined(Q_WS_QWS)
+ qDebug("This test is platform dependent, it fails on wince, mac and qws. Please fix.");
+#else
QGraphicsScene scene;
HFWWidget *window = new HFWWidget;
scene.addItem(window);
@@ -2620,6 +2623,7 @@ void tst_QGraphicsWidget::respectHFW()
const QSizeF winSize = window->size();
qreal minHFW = window->effectiveSizeHint(Qt::MinimumSize, QSizeF(winSize.width(), -1)).height();
QVERIFY(qAbs(minHFW - winSize.height()) < 1);
+#endif
}
QTEST_MAIN(tst_QGraphicsWidget)