diff options
author | Trond Kjernåsen <trond@trolltech.com> | 2010-02-02 14:05:54 (GMT) |
---|---|---|
committer | Trond Kjernåsen <trond@trolltech.com> | 2010-02-02 14:05:54 (GMT) |
commit | 94b3918fb52858064811c4993dac6392d0043b24 (patch) | |
tree | 12beafe91c6c00b302f2de7d9887ef87b46bcd8a /tests/auto/qimagereader/tst_qimagereader.cpp | |
parent | 88c4000c21be7af37bc490a2edd9d1f481b3a862 (diff) | |
download | Qt-94b3918fb52858064811c4993dac6392d0043b24.zip Qt-94b3918fb52858064811c4993dac6392d0043b24.tar.gz Qt-94b3918fb52858064811c4993dac6392d0043b24.tar.bz2 |
Implemented QGifHandler::imageCount().
Task-number: QTBUG-7514
Reviewed-by: Kim
Diffstat (limited to 'tests/auto/qimagereader/tst_qimagereader.cpp')
-rw-r--r-- | tests/auto/qimagereader/tst_qimagereader.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/qimagereader/tst_qimagereader.cpp b/tests/auto/qimagereader/tst_qimagereader.cpp index b1a5d26..debc090 100644 --- a/tests/auto/qimagereader/tst_qimagereader.cpp +++ b/tests/auto/qimagereader/tst_qimagereader.cpp @@ -765,6 +765,8 @@ void tst_QImageReader::gifImageCount() QVERIFY(io.canRead()); QImage greenFrame = io.read(); + QVERIFY(io.imageCount() == 4); + QVERIFY(io.canRead()); QImage blueFrame = io.read(); @@ -876,6 +878,10 @@ void tst_QImageReader::gifImageCount() QCOMPARE(blueFrame.size(), QSize(64,64)); QVERIFY(emptyFrame.isNull()); } + { + QImageReader io(":images/trolltech.gif"); + QVERIFY(io.imageCount() == 34); + } } #endif |