diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2011-01-04 13:00:21 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2011-01-04 13:00:21 (GMT) |
commit | f8696912869c702ddc5ac664659346554e96addf (patch) | |
tree | 9fb756251cfb1b0d80d90f7ff7ecc9879e28586c /tests/auto | |
parent | 6b43d484c52c05a8404ef3e13084149b98bd794e (diff) | |
parent | 177f2a2f17251c22f57944e9dd100ec8515b891a (diff) | |
download | Qt-f8696912869c702ddc5ac664659346554e96addf.zip Qt-f8696912869c702ddc5ac664659346554e96addf.tar.gz Qt-f8696912869c702ddc5ac664659346554e96addf.tar.bz2 |
Merge branch '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2 into 4.7-integration
* '4.7' of scm.dev.nokia.troll.no:qt/oslo-staging-2:
QMeeGoGraphicsSystemHelper::setSwapBehavior implementation.
Support for swap modes in QGLWindowSurface.
Pre-create the GL share widget before window surface creation.
QMeeGoSwitchEvent exported and static.
Fixed first element being a LineToElement in QPainterPath::connectPath()
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qpainterpath/tst_qpainterpath.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/auto/qpainterpath/tst_qpainterpath.cpp b/tests/auto/qpainterpath/tst_qpainterpath.cpp index d0cddda..66e6d10 100644 --- a/tests/auto/qpainterpath/tst_qpainterpath.cpp +++ b/tests/auto/qpainterpath/tst_qpainterpath.cpp @@ -107,6 +107,7 @@ private slots: void operators(); void connectPathDuplicatePoint(); + void connectPathMoveTo(); void translate(); }; @@ -1169,6 +1170,31 @@ void tst_QPainterPath::connectPathDuplicatePoint() QCOMPARE(c, a); } +void tst_QPainterPath::connectPathMoveTo() +{ + QPainterPath path1; + QPainterPath path2; + QPainterPath path3; + QPainterPath path4; + + path1.moveTo(1,1); + + path2.moveTo(4,4); + path2.lineTo(5,6); + path2.lineTo(6,7); + + path3.connectPath(path2); + + path4.lineTo(5,5); + + path1.connectPath(path2); + + QVERIFY(path1.elementAt(0).type == QPainterPath::MoveToElement); + QVERIFY(path2.elementAt(0).type == QPainterPath::MoveToElement); + QVERIFY(path3.elementAt(0).type == QPainterPath::MoveToElement); + QVERIFY(path4.elementAt(0).type == QPainterPath::MoveToElement); +} + void tst_QPainterPath::translate() { QPainterPath path; |