equal
deleted
inserted
replaced
278 QCOMPARE(animation2.m_updateCurrentTimeCount, 1); |
278 QCOMPARE(animation2.m_updateCurrentTimeCount, 1); |
279 QCOMPARE(animation3.m_updateCurrentTimeCount, 0); |
279 QCOMPARE(animation3.m_updateCurrentTimeCount, 0); |
280 |
280 |
281 QVERIFY(group.state() == QAbstractAnimation::Running); |
281 QVERIFY(group.state() == QAbstractAnimation::Running); |
282 QVERIFY(animation1.state() == QAbstractAnimation::Stopped); |
282 QVERIFY(animation1.state() == QAbstractAnimation::Stopped); |
283 QCOMPARE(&animation2, group.currentAnimation()); |
283 QCOMPARE((QAbstractAnimation*)&animation2, group.currentAnimation()); |
284 QVERIFY(animation2.state() == QAbstractAnimation::Running); |
284 QVERIFY(animation2.state() == QAbstractAnimation::Running); |
285 QVERIFY(animation3.state() == QAbstractAnimation::Stopped); |
285 QVERIFY(animation3.state() == QAbstractAnimation::Stopped); |
286 |
286 |
287 group.setCurrentTime(500); |
287 group.setCurrentTime(500); |
288 QCOMPARE(animation1.m_updateCurrentTimeCount, 2); |
288 QCOMPARE(animation1.m_updateCurrentTimeCount, 2); |
290 QCOMPARE(animation3.m_updateCurrentTimeCount, 1); |
290 QCOMPARE(animation3.m_updateCurrentTimeCount, 1); |
291 |
291 |
292 QVERIFY(group.state() == QAbstractAnimation::Running); |
292 QVERIFY(group.state() == QAbstractAnimation::Running); |
293 QVERIFY(animation1.state() == QAbstractAnimation::Stopped); |
293 QVERIFY(animation1.state() == QAbstractAnimation::Stopped); |
294 QVERIFY(animation2.state() == QAbstractAnimation::Stopped); |
294 QVERIFY(animation2.state() == QAbstractAnimation::Stopped); |
295 QCOMPARE(&animation3, group.currentAnimation()); |
295 QCOMPARE((QAbstractAnimation*)&animation3, group.currentAnimation()); |
296 QVERIFY(animation3.state() == QAbstractAnimation::Running); |
296 QVERIFY(animation3.state() == QAbstractAnimation::Running); |
297 |
297 |
298 group.setCurrentTime(750); |
298 group.setCurrentTime(750); |
299 |
299 |
300 QVERIFY(group.state() == QAbstractAnimation::Stopped); |
300 QVERIFY(group.state() == QAbstractAnimation::Stopped); |
327 |
327 |
328 group.setCurrentTime(300); |
328 group.setCurrentTime(300); |
329 |
329 |
330 QVERIFY(group.state() == QAbstractAnimation::Running); |
330 QVERIFY(group.state() == QAbstractAnimation::Running); |
331 QVERIFY(animation.state() == QAbstractAnimation::Stopped); |
331 QVERIFY(animation.state() == QAbstractAnimation::Stopped); |
332 QCOMPARE(&pause, group.currentAnimation()); |
332 QCOMPARE((QAbstractAnimation*)&pause, group.currentAnimation()); |
333 QVERIFY(pause.state() == QAbstractAnimation::Running); |
333 QVERIFY(pause.state() == QAbstractAnimation::Running); |
334 |
334 |
335 group.setCurrentTime(600); |
335 group.setCurrentTime(600); |
336 |
336 |
337 QVERIFY(group.state() == QAbstractAnimation::Stopped); |
337 QVERIFY(group.state() == QAbstractAnimation::Stopped); |