diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-05-19 08:15:19 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-05-19 08:20:01 (GMT) |
commit | 4bcc39e50b68d69f6b94b1095b35f678c42c5aad (patch) | |
tree | 805d5f75e981e2a864ffcbd1223506dac27c36eb /tests/auto/qimage | |
parent | aef98360bfa5a5f3013c8fb29ed589545bb7a3cf (diff) | |
download | Qt-4bcc39e50b68d69f6b94b1095b35f678c42c5aad.zip Qt-4bcc39e50b68d69f6b94b1095b35f678c42c5aad.tar.gz Qt-4bcc39e50b68d69f6b94b1095b35f678c42c5aad.tar.bz2 |
Fixed autotest failure in tst_QImage::smoothScale3()
Some optimized smooth scaling functions were introduced in 4.5, so
increase the tolerance level a small bit.
Reviewed-by: Trond
Diffstat (limited to 'tests/auto/qimage')
-rw-r--r-- | tests/auto/qimage/tst_qimage.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qimage/tst_qimage.cpp b/tests/auto/qimage/tst_qimage.cpp index ee4ece2..88bbb50 100644 --- a/tests/auto/qimage/tst_qimage.cpp +++ b/tests/auto/qimage/tst_qimage.cpp @@ -1454,9 +1454,9 @@ void tst_QImage::smoothScale3() QRgb cb = b.pixel(x, y); // tolerate a little bit of rounding errors - QVERIFY(compare(qRed(ca), qRed(cb), 2)); - QVERIFY(compare(qGreen(ca), qGreen(cb), 2)); - QVERIFY(compare(qBlue(ca), qBlue(cb), 2)); + QVERIFY(compare(qRed(ca), qRed(cb), 3)); + QVERIFY(compare(qGreen(ca), qGreen(cb), 3)); + QVERIFY(compare(qBlue(ca), qBlue(cb), 3)); } } } |