tests/auto/qgraphicsscene/tst_qgraphicsscene.cpp
changeset 30 5dc02b23752f
parent 19 fcece45ef507
child 33 3e2da88830cd
--- a/tests/auto/qgraphicsscene/tst_qgraphicsscene.cpp	Wed Jun 23 19:07:03 2010 +0300
+++ b/tests/auto/qgraphicsscene/tst_qgraphicsscene.cpp	Tue Jul 06 15:10:48 2010 +0300
@@ -50,6 +50,7 @@
 #include <private/qgraphicssceneindex_p.h>
 #include <math.h>
 #include "../../shared/util.h"
+#include "../qpathclipper/pathcompare.h"
 
 #if defined(Q_OS_WIN) && !defined(Q_OS_WINCE)
 #include <windows.h>
@@ -3597,7 +3598,7 @@
 
     QPainterPath path;
     path.addRect(-25, -25, 50, 50);
-    QCOMPARE(rect->clipPath(), path);
+    QVERIFY(QPathCompare::comparePaths(rect->clipPath().simplified(), path));
 
     QCOMPARE(scene.items(QRectF(320, 240, 5, 5)).size(), 2);
     rect->rotate(45);