diff options
author | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2014-12-15 23:44:27 +0100 |
---|---|---|
committer | Michal Klocek <michal.klocek@qt.io> | 2019-11-25 12:01:39 +0100 |
commit | 5406099863d5dfcf91a9ae23b217441d9058687f (patch) | |
tree | 09ecd34fe54ed1d9f87bd3fbe78d05545301be38 /tests | |
parent | eb91828f3d6f34e6f1b38001b435670ad333d8dc (diff) |
Keep reading until all pages are available
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/pdf/qpdfdocument/tst_qpdfdocument.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/auto/pdf/qpdfdocument/tst_qpdfdocument.cpp b/tests/auto/pdf/qpdfdocument/tst_qpdfdocument.cpp index c0fe93cef..306591208 100644 --- a/tests/auto/pdf/qpdfdocument/tst_qpdfdocument.cpp +++ b/tests/auto/pdf/qpdfdocument/tst_qpdfdocument.cpp @@ -79,11 +79,13 @@ void tst_QPdfDocument::loadAsync() QScopedPointer<QNetworkReply> reply(nam.get(QNetworkRequest(url))); QPdfDocument doc; - QSignalSpy readySpy(&doc, SIGNAL(documentReady())); + QSignalSpy startedSpy(&doc, SIGNAL(documentLoadStarted())); + QSignalSpy finishedSpy(&doc, SIGNAL(documentLoadFinished())); doc.loadAsynchronously(reply.data()); - QCOMPARE(readySpy.count(), 1); + QCOMPARE(startedSpy.count(), 1); + QCOMPARE(finishedSpy.count(), 1); QCOMPARE(doc.pageCount(), 2); } |