From c29a136804f5952c0b4c15920f3ab4032c21573c Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Tue, 13 Aug 2019 11:01:03 +0200 Subject: [PATCH] Fix tst_QImageReader::saveColorSpace After comparing colorspaces was remove from QImage equality, the test was no longer testing what it was supposed to. Change-Id: Ie7ee8ac2f488ea4254086cbb91a2662dc729e80b Reviewed-by: Eirik Aavitsland --- tests/auto/gui/image/qimagereader/tst_qimagereader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/auto/gui/image/qimagereader/tst_qimagereader.cpp b/tests/auto/gui/image/qimagereader/tst_qimagereader.cpp index 8b42b139a3..866a41c3d1 100644 --- a/tests/auto/gui/image/qimagereader/tst_qimagereader.cpp +++ b/tests/auto/gui/image/qimagereader/tst_qimagereader.cpp @@ -1913,6 +1913,7 @@ void tst_QImageReader::saveColorSpace() QImage stored = QImage::fromData(buf.buffer(), "png"); QCOMPARE(stored, orig); + QCOMPARE(stored.colorSpace(), orig.colorSpace()); } void tst_QImageReader::readText_data()