diff options
Diffstat (limited to 'tests/auto/qmltest/pixel/tst_pixel.qml')
-rw-r--r-- | tests/auto/qmltest/pixel/tst_pixel.qml | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/auto/qmltest/pixel/tst_pixel.qml b/tests/auto/qmltest/pixel/tst_pixel.qml index d36bce21ab..f2a9d5fdb8 100644 --- a/tests/auto/qmltest/pixel/tst_pixel.qml +++ b/tests/auto/qmltest/pixel/tst_pixel.qml @@ -59,6 +59,10 @@ Rectangle { compare(img.blue(1,1), 0); compare(img.alpha(1,1), 255); + fuzzyCompare(img.red(1,1), 254, 2); + fuzzyCompare(img.pixel(1,1), Qt.rgba(254, 0, 0, 254), 2); + fuzzyCompare(img.pixel(1,1), "#FF0201", 2); + rect.color = "blue"; wait(200); img = grabImage(rect); |