From cfeb85e87787ca2b2786481ee17a164211a1f1c3 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Tue, 1 Oct 2024 11:58:40 +0200 Subject: [PATCH] Correct BGR888 tests Was accidently using RGB888 Change-Id: I4afaf7a96e6fb7a696f0ce4f35a94babd79d3d07 Reviewed-by: Eirik Aavitsland (cherry picked from commit fc0d9b2033d4914c35fa9350dde641d76e581903) Reviewed-by: Qt Cherry-pick Bot --- tests/auto/gui/image/qimage/tst_qimage.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/auto/gui/image/qimage/tst_qimage.cpp b/tests/auto/gui/image/qimage/tst_qimage.cpp index 5b208948313..dfe28796991 100644 --- a/tests/auto/gui/image/qimage/tst_qimage.cpp +++ b/tests/auto/gui/image/qimage/tst_qimage.cpp @@ -871,11 +871,11 @@ void tst_QImage::convertToFormat_data() QTest::newRow("blue rgb888 -> argb32") << int(QImage::Format_RGB888) << 0xff0000ff << int(QImage::Format_ARGB32) << 0xff0000ff; - QTest::newRow("red bgr888 -> argb32") << int(QImage::Format_RGB888) << 0xffff0000 + QTest::newRow("red bgr888 -> argb32") << int(QImage::Format_BGR888) << 0xffff0000 << int(QImage::Format_ARGB32) << 0xffff0000; - QTest::newRow("green bgr888 -> argb32") << int(QImage::Format_RGB888) << 0xff00ff00 + QTest::newRow("green bgr888 -> argb32") << int(QImage::Format_BGR888) << 0xff00ff00 << int(QImage::Format_ARGB32) << 0xff00ff00; - QTest::newRow("blue bgr888 -> argb32") << int(QImage::Format_RGB888) << 0xff0000ff + QTest::newRow("blue bgr888 -> argb32") << int(QImage::Format_BGR888) << 0xff0000ff << int(QImage::Format_ARGB32) << 0xff0000ff; QTest::newRow("red rgb888 -> rgbx8888") << int(QImage::Format_RGB888) << 0xffff0000