summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2009-09-01 08:37:56 (GMT)
committerThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2009-09-01 09:55:17 (GMT)
commit150c14bc50d28d2e6c768ff00654f527cb226812 (patch)
treedccb45f1edd46cdd6e987373a77940eebd53b24a /tests
parent22ac5bb9aac73b0c7d319f2cdc42dd5bcd59f2b4 (diff)
downloadQt-150c14bc50d28d2e6c768ff00654f527cb226812.zip
Qt-150c14bc50d28d2e6c768ff00654f527cb226812.tar.gz
Qt-150c14bc50d28d2e6c768ff00654f527cb226812.tar.bz2
Fixed QPainterPath::toFillPolygons autotest
Now it verifies that there are two non-intersecting polygons. Reviewed-by: Gunnar Sletta <gunnar@trolltech.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/qpainterpath/tst_qpainterpath.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/qpainterpath/tst_qpainterpath.cpp b/tests/auto/qpainterpath/tst_qpainterpath.cpp
index 26c1f9b..9c4cbc4 100644
--- a/tests/auto/qpainterpath/tst_qpainterpath.cpp
+++ b/tests/auto/qpainterpath/tst_qpainterpath.cpp
@@ -1145,8 +1145,9 @@ void tst_QPainterPath::testToFillPolygons()
path.lineTo(QPointF(70, 100));
path.lineTo(QPointF(40, 100));
- QPolygonF polygon = path.toFillPolygons(QMatrix()).first();
- QCOMPARE(polygon.count(QPointF(70, 50)), 2);
+ const QList<QPolygonF> polygons = path.toFillPolygons();
+ QCOMPARE(polygons.size(), 2);
+ QCOMPARE(polygons.first().count(QPointF(70, 50)), 0);
}
void tst_QPainterPath::connectPathDuplicatePoint()