equal
deleted
inserted
replaced
155 void tiffCompression(); |
155 void tiffCompression(); |
156 void tiffEndianness(); |
156 void tiffEndianness(); |
157 |
157 |
158 void tiffOrientation_data(); |
158 void tiffOrientation_data(); |
159 void tiffOrientation(); |
159 void tiffOrientation(); |
|
160 |
|
161 void tiffGrayscale(); |
160 #endif |
162 #endif |
161 |
163 |
162 void autoDetectImageFormat(); |
164 void autoDetectImageFormat(); |
163 void fileNameProbing(); |
165 void fileNameProbing(); |
164 |
166 |
1374 QImage expectedImage(prefix + expected); |
1376 QImage expectedImage(prefix + expected); |
1375 QImage orientedImage(prefix + oriented); |
1377 QImage orientedImage(prefix + oriented); |
1376 QCOMPARE(expectedImage, orientedImage); |
1378 QCOMPARE(expectedImage, orientedImage); |
1377 } |
1379 } |
1378 |
1380 |
|
1381 void tst_QImageReader::tiffGrayscale() |
|
1382 { |
|
1383 QImage actualImage(prefix + "grayscale.tif"); |
|
1384 QImage expectedImage(prefix + "grayscale-ref.tif"); |
|
1385 |
|
1386 QCOMPARE(expectedImage, actualImage.convertToFormat(expectedImage.format())); |
|
1387 } |
1379 #endif |
1388 #endif |
1380 |
1389 |
1381 void tst_QImageReader::dotsPerMeter_data() |
1390 void tst_QImageReader::dotsPerMeter_data() |
1382 { |
1391 { |
1383 QTest::addColumn<QString>("fileName"); |
1392 QTest::addColumn<QString>("fileName"); |