diff options
author | Trond Kjernaasen <trond@trolltech.com> | 2009-09-16 11:08:51 (GMT) |
---|---|---|
committer | Trond Kjernaasen <trond@trolltech.com> | 2009-09-16 11:10:21 (GMT) |
commit | d851010a10c9a75fd8fb165bc239d5d3b805c0b8 (patch) | |
tree | b39dbb934f0efdc7906855b7de03ed6d3e3ddad1 /tests/auto/qimagereader | |
parent | 6a0ccd3477b0ddb0a550b56bdc41e8ae1cf740a6 (diff) | |
download | Qt-d851010a10c9a75fd8fb165bc239d5d3b805c0b8.zip Qt-d851010a10c9a75fd8fb165bc239d5d3b805c0b8.tar.gz Qt-d851010a10c9a75fd8fb165bc239d5d3b805c0b8.tar.bz2 |
Fixed QImageReader autotests.
Reviewed-by: Kim
Diffstat (limited to 'tests/auto/qimagereader')
-rw-r--r-- | tests/auto/qimagereader/tst_qimagereader.cpp | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/tests/auto/qimagereader/tst_qimagereader.cpp b/tests/auto/qimagereader/tst_qimagereader.cpp index 8d5cd34..fdc9c86 100644 --- a/tests/auto/qimagereader/tst_qimagereader.cpp +++ b/tests/auto/qimagereader/tst_qimagereader.cpp @@ -642,7 +642,7 @@ void tst_QImageReader::imageFormatBeforeRead() void tst_QImageReader::gifHandlerBugs() { { - QImageReader io("images/trolltech.gif"); + QImageReader io(":images/trolltech.gif"); QVERIFY(io.loopCount() != 1); int count=0; for (; io.canRead(); io.read(), ++count) ; @@ -651,8 +651,8 @@ void tst_QImageReader::gifHandlerBugs() // Task 95166 { - QImageReader io1("images/bat1.gif"); - QImageReader io2("images/bat2.gif"); + QImageReader io1(":images/bat1.gif"); + QImageReader io2(":images/bat2.gif"); QVERIFY(io1.canRead()); QVERIFY(io2.canRead()); QImage im1 = io1.read(); @@ -664,8 +664,8 @@ void tst_QImageReader::gifHandlerBugs() // Task 9994 { - QImageReader io1("images/noclearcode.gif"); - QImageReader io2("images/noclearcode.bmp"); + QImageReader io1(":images/noclearcode.gif"); + QImageReader io2(":images/noclearcode.bmp"); QVERIFY(io1.canRead()); QVERIFY(io2.canRead()); QImage im1 = io1.read(); QImage im2 = io2.read(); QVERIFY(!im1.isNull()); QVERIFY(!im2.isNull()); @@ -675,13 +675,14 @@ void tst_QImageReader::gifHandlerBugs() void tst_QImageReader::animatedGif() { - QImageReader io(prefix + "qt.gif"); - QImage image= io.read(); - int i=0; + QImageReader io(":images/qt.gif"); + QImage image = io.read(); + QVERIFY(!image.isNull()); + int i = 0; while(!image.isNull()){ - QString frameName = QString(prefix + "qt%1.gif").arg(++i); + QString frameName = QString(":images/qt%1.gif").arg(++i); QCOMPARE(image, QImage(frameName)); - image=io.read(); + image = io.read(); } } #endif |