summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2009-11-03 13:41:22 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2009-11-03 13:41:22 (GMT)
commit53e486c0e8d23d535711debdd3a71c8ef2211c58 (patch)
tree261be46acbc8427a06832d13992deb0db916f005 /tests/auto
parent7b7c804723f1bbd71d436ab12f5e68a0f87c71d7 (diff)
downloadQt-53e486c0e8d23d535711debdd3a71c8ef2211c58.zip
Qt-53e486c0e8d23d535711debdd3a71c8ef2211c58.tar.gz
Qt-53e486c0e8d23d535711debdd3a71c8ef2211c58.tar.bz2
Fixed tst_qgraphicsitem::hitTestGraphicsEffectItem, caching makes
testcase invalid... Reviewed-by: Samuel
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
index 684ad4f..3bc6db5 100644
--- a/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
+++ b/tests/auto/qgraphicsitem/tst_qgraphicsitem.cpp
@@ -7676,20 +7676,6 @@ void tst_QGraphicsItem::hitTestGraphicsEffectItem()
QCOMPARE(items.size(), 1);
QCOMPARE(items.at(0), static_cast<QGraphicsItem *>(item3));
- item1->repaints = 0;
- item2->repaints = 0;
- item3->repaints = 0;
-
- view.viewport()->update(75, 75, 20, 20);
- QTest::qWait(50);
-
- // item1 is the effect source and must therefore be repainted.
- // item2 intersects with the exposed region
- // item3 is just another child outside the exposed region
- QCOMPARE(item1->repaints, 1);
- QCOMPARE(item2->repaints, 1);
- QCOMPARE(item3->repaints, 0);
-
scene.setItemIndexMethod(QGraphicsScene::NoIndex);
QTest::qWait(100);