summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorOlivier Goffart <olivier.goffart@nokia.com>2010-08-30 14:34:52 (GMT)
committerOlivier Goffart <olivier.goffart@nokia.com>2010-08-30 14:57:27 (GMT)
commitd17a1cd32b4577a96245ac9894f678486443a516 (patch)
tree3bea6c951dd41b3fddf555c5c95b9bf153e850c8 /tests/auto
parentb247124839db0a25e6200b258e71eb5d7acc033c (diff)
downloadQt-d17a1cd32b4577a96245ac9894f678486443a516.zip
Qt-d17a1cd32b4577a96245ac9894f678486443a516.tar.gz
Qt-d17a1cd32b4577a96245ac9894f678486443a516.tar.bz2
tst_qimage: backport fix of commit 0d7e683 into 4.7
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qimage/tst_qimage.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/qimage/tst_qimage.cpp b/tests/auto/qimage/tst_qimage.cpp
index 49514dc..405eb98 100644
--- a/tests/auto/qimage/tst_qimage.cpp
+++ b/tests/auto/qimage/tst_qimage.cpp
@@ -1490,9 +1490,9 @@ void tst_QImage::smoothScale3()
QRgb cb = b.pixel(x, y);
// tolerate a little bit of rounding errors
- QVERIFY(compare(qRed(ca), qRed(cb), 3));
- QVERIFY(compare(qGreen(ca), qGreen(cb), 3));
- QVERIFY(compare(qBlue(ca), qBlue(cb), 3));
+ QVERIFY(compare(qRed(ca), qRed(cb), 16));
+ QVERIFY(compare(qGreen(ca), qGreen(cb), 16));
+ QVERIFY(compare(qBlue(ca), qBlue(cb), 16));
}
}
}