summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2017-06-26 16:00:39 +0200
committerJ-P Nurmi <jpnurmi@qt.io>2017-07-03 12:18:45 +0000
commit85ed63f825da57103c68f73af5adeebf67db0da9 (patch)
treeb0514153d225c8b18d21d62eb4330d5b1af7fd78 /tests
parent2454fdd917c469913ed5064966bdc707e771771b (diff)
Fix QWebpHandler::canRead() to take animation frame count into account
Task-number: QTBUG-61641 Change-Id: I24a139cc75141a588f2ed2558da85cd2f8391af9 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/webp/tst_qwebp.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/webp/tst_qwebp.cpp b/tests/auto/webp/tst_qwebp.cpp
index d1d30db..ad4a376 100644
--- a/tests/auto/webp/tst_qwebp.cpp
+++ b/tests/auto/webp/tst_qwebp.cpp
@@ -127,6 +127,7 @@ void tst_qwebp::readAnimation()
}
QVERIFY(reader.read().isNull());
+ QCOMPARE(reader.canRead(), !reader.supportsAnimation());
}
void tst_qwebp::writeImage_data()