summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2019-08-13 11:01:03 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2019-08-13 17:26:15 +0200
commitc29a136804f5952c0b4c15920f3ab4032c21573c (patch)
treee34692ee912a45be00e0d288638c114e2120745b /tests
parent19b52e7c1dc2c447c1682f9438ebd37cbfc7d31d (diff)
downloadqtbase-c29a136804f5952c0b4c15920f3ab4032c21573c.tar.gz
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 <eirik.aavitsland@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/gui/image/qimagereader/tst_qimagereader.cpp1
1 files changed, 1 insertions, 0 deletions
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()