summaryrefslogtreecommitdiffstats
path: root/tests/auto/qgraphicsitem
diff options
context:
space:
mode:
authorGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2009-09-04 09:44:03 (GMT)
committerGabriel de Dietrich <gabriel.dietrich-de@nokia.com>2009-09-04 10:11:12 (GMT)
commit39fe2d324fd72d003ec5ac5779bc1b2c2c1cf45c (patch)
treef2e58950e5b1908a844b295643be93180aa8fc78 /tests/auto/qgraphicsitem
parent19a65fca4af242269b354f82212556f88eb03eaa (diff)
downloadQt-39fe2d324fd72d003ec5ac5779bc1b2c2c1cf45c.zip
Qt-39fe2d324fd72d003ec5ac5779bc1b2c2c1cf45c.tar.gz
Qt-39fe2d324fd72d003ec5ac5779bc1b2c2c1cf45c.tar.bz2
Fixed once-in-a-while failing tst_QGraphicsItem::selected test.
Added event information in QTest::mouse* warning message. Reviewed-by: Olivier
Diffstat (limited to 'tests/auto/qgraphicsitem')
-rw-r--r--tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
index aa1f2b8..408decc 100644
--- a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
+++ b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
@@ -1239,6 +1239,7 @@ void tst_QGraphicsItem::selected()
QVERIFY(!item->isSelected());
// Click inside and check that it's selected
+ QTest::mouseMove(view.viewport());
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, view.mapFromScene(item->scenePos()));
QCOMPARE(item->values.size(), 11);
QCOMPARE(item->values.last(), true);
@@ -1246,7 +1247,6 @@ void tst_QGraphicsItem::selected()
// Click outside and check that it's not selected
QTest::mouseClick(view.viewport(), Qt::LeftButton, 0, view.mapFromScene(item->scenePos() + QPointF(item->boundingRect().width(), item->boundingRect().height())));
-
QCOMPARE(item->values.size(), 12);
QCOMPARE(item->values.last(), false);
QVERIFY(!item->isSelected());