summaryrefslogtreecommitdiffstats
path: root/tests/auto/qimage
diff options
context:
space:
mode:
authorBenjamin Poulain <benjamin.poulain@nokia.com>2009-05-20 08:21:11 (GMT)
committerBenjamin Poulain <benjamin.poulain@nokia.com>2009-05-20 08:25:07 (GMT)
commitba71f22dbee3e5bd4e0db0054b8ba57bde89d224 (patch)
treed4eb04d06ead8951e537bd7f0414944b20ece1c1 /tests/auto/qimage
parentc51204359b7c9c2e63e4101f771d07774b921fee (diff)
downloadQt-ba71f22dbee3e5bd4e0db0054b8ba57bde89d224.zip
Qt-ba71f22dbee3e5bd4e0db0054b8ba57bde89d224.tar.gz
Qt-ba71f22dbee3e5bd4e0db0054b8ba57bde89d224.tar.bz2
Refactor the qimagereader autotest to work with shadow build
Refactor the test of QImageReader to work with shadow build. Add two tests for the TIFF format Fix an error of the test of QImageWriter that prevented the cleaning of the created files after the test. Reviewed-by: Olivier
Diffstat (limited to 'tests/auto/qimage')
-rw-r--r--tests/auto/qimage/images/image.tifbin0 -> 2242 bytes
-rw-r--r--tests/auto/qimage/tst_qimage.cpp3
2 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qimage/images/image.tif b/tests/auto/qimage/images/image.tif
new file mode 100644
index 0000000..ee0637c
--- /dev/null
+++ b/tests/auto/qimage/images/image.tif
Binary files differ
diff --git a/tests/auto/qimage/tst_qimage.cpp b/tests/auto/qimage/tst_qimage.cpp
index 88bbb50..c6b0560 100644
--- a/tests/auto/qimage/tst_qimage.cpp
+++ b/tests/auto/qimage/tst_qimage.cpp
@@ -274,6 +274,9 @@ void tst_QImage::formatHandlersInput_data()
QTest::newRow("PPM") << "PPM" << prefix + "image.ppm";
QTest::newRow("XBM") << "XBM" << prefix + "image.xbm";
QTest::newRow("XPM") << "XPM" << prefix + "image.xpm";
+#if defined QTEST_HAVE_TIFF
+ QTest::newRow("TIFF") << "TIFF" << prefix + "image.tif";
+#endif
}
void tst_QImage::formatHandlersInput()