gwenview: adjust document test case

note the comment at:
https://github.com/fluxer/kde-extraapps/blob/master/gwenview/lib/document/animateddocumentloadedimpl.cpp#L66

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2022-05-19 04:24:44 +03:00
parent 42e3ab6a4d
commit 48fa074955

View file

@ -289,10 +289,10 @@ void DocumentTest::testLoadAnimated()
doc->waitUntilLoaded();
QVERIFY(doc->isAnimated());
// Test we receive only one imageRectUpdated() until animation is started
// Test we do not receive imageRectUpdated() until animation is started
// (the imageRectUpdated() is triggered by the loading of the first image)
QTest::qWait(1000);
QCOMPARE(spy.count(), 1);
QCOMPARE(spy.count(), 0);
// Test we now receive some imageRectUpdated()
doc->startAnimation();