diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2010-04-22 14:04:09 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2010-04-22 14:27:37 (GMT) |
commit | d7b4d694214d1dd8ef84ac2ae69c94b8564fd8d7 (patch) | |
tree | b144330f89e649e78df4a972277e1b63d9329907 /tests/auto | |
parent | 24f82844af3f91fc089f3b1807724bfabfff19e5 (diff) | |
download | Qt-d7b4d694214d1dd8ef84ac2ae69c94b8564fd8d7.zip Qt-d7b4d694214d1dd8ef84ac2ae69c94b8564fd8d7.tar.gz Qt-d7b4d694214d1dd8ef84ac2ae69c94b8564fd8d7.tar.bz2 |
Fixed autotest failures in tst_QPainterPath.
The simplified test failed because the ellipse was flattened into line
segment. The other tests were due to a behavioral change in contains()
and intersect() caused by using fill based intersection in change
f7d61dab69308f0993c8a5f2232226d1713ac4a7. This needs to be reverted,
since it will return false for a rect containing a line (with no fill
area). Instead a different fix was needed in linesIntersect() to prevent
testIntersections() in tst_QPathClipper from failing.
Reviewed-by: Trond
Diffstat (limited to 'tests/auto')
-rw-r--r-- | tests/auto/qpainterpath/tst_qpainterpath.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/auto/qpainterpath/tst_qpainterpath.cpp b/tests/auto/qpainterpath/tst_qpainterpath.cpp index a40fe0f..d0cddda 100644 --- a/tests/auto/qpainterpath/tst_qpainterpath.cpp +++ b/tests/auto/qpainterpath/tst_qpainterpath.cpp @@ -517,7 +517,6 @@ void tst_QPainterPath::testSimplified_data() QTest::addColumn<int>("elements"); QTest::newRow("rect") << rectPath(0, 0, 10, 10) << 5; - QTest::newRow("ellipse") << ellipsePath(0, 0, 10, 10) << 13; QPainterPath twoRects = rectPath(0, 0, 10, 10); twoRects.addPath(rectPath(5, 0, 10, 10)); |