summaryrefslogtreecommitdiffstats
path: root/tests/auto/qpainter
diff options
context:
space:
mode:
authorGunnar Sletta <gunnar@trolltech.com>2010-08-17 05:27:50 (GMT)
committerGunnar Sletta <gunnar@trolltech.com>2010-08-17 05:27:50 (GMT)
commit50a53d2f7a7e12cd597dc72a08ad62b79fee4554 (patch)
treef6caba9cee42971f2a13e8ac55768e28a1362e5c /tests/auto/qpainter
parent69fc9e594e6d5da87bff42707973683f84b67c93 (diff)
downloadQt-50a53d2f7a7e12cd597dc72a08ad62b79fee4554.zip
Qt-50a53d2f7a7e12cd597dc72a08ad62b79fee4554.tar.gz
Qt-50a53d2f7a7e12cd597dc72a08ad62b79fee4554.tar.bz2
fix breakages in qpainter autotests.
Diffstat (limited to 'tests/auto/qpainter')
-rw-r--r--tests/auto/qpainter/tst_qpainter.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qpainter/tst_qpainter.cpp b/tests/auto/qpainter/tst_qpainter.cpp
index 9ed212f..11ff319 100644
--- a/tests/auto/qpainter/tst_qpainter.cpp
+++ b/tests/auto/qpainter/tst_qpainter.cpp
@@ -1300,7 +1300,7 @@ void tst_QPainter::drawRect2()
p.end();
QRect stroke = getPaintedSize(image, Qt::white);
- QCOMPARE(stroke.adjusted(1, 1, 0, 0), fill.adjusted(0, 0, 1, 1));
+ QCOMPARE(stroke, fill.adjusted(0, 0, 1, 1));
}
}
@@ -1397,13 +1397,13 @@ void tst_QPainter::drawPath_data()
{
QPainterPath p;
p.addRect(2.25, 2.25, 10, 10);
- QTest::newRow("non-aligned rect") << p << QRect(3, 3, 10, 10) << 10 * 10;
+ QTest::newRow("non-aligned rect") << p << QRect(2, 2, 10, 10) << 10 * 10;
}
{
QPainterPath p;
p.addRect(2.25, 2.25, 10.5, 10.5);
- QTest::newRow("non-aligned rect 2") << p << QRect(3, 3, 10, 10) << 10 * 10;
+ QTest::newRow("non-aligned rect 2") << p << QRect(2, 2, 11, 11) << 11 * 11;
}
{