equal
deleted
inserted
replaced
75 } |
75 } |
76 |
76 |
77 void UT_LogsEffectHandler::testStartDissappearAppearByMovingEffect() |
77 void UT_LogsEffectHandler::testStartDissappearAppearByMovingEffect() |
78 { |
78 { |
79 QVERIFY( mEffect->mMoveGroup->state() == QAbstractAnimation::Stopped ); |
79 QVERIFY( mEffect->mMoveGroup->state() == QAbstractAnimation::Stopped ); |
80 mEffect->startDissappearAppearByMovingEffect(*mLabel, *mLabel2, false, 0); |
80 mEffect->startDissappearAppearByMovingEffect(*mLabel, *mLabel2, false, 0, 0); |
81 QVERIFY( mEffect->mMoveGroup->state() == QAbstractAnimation::Running ); |
81 QVERIFY( mEffect->mMoveGroup->state() == QAbstractAnimation::Running ); |
82 QVERIFY( mEffect->mMoveGroup2->state() == QAbstractAnimation::Running ); |
82 QVERIFY( mEffect->mMoveGroup2->state() == QAbstractAnimation::Running ); |
83 |
83 |
84 // Simulate animation progess, when dissappearing has completed effecthandler |
84 // Simulate animation progess, when dissappearing has completed effecthandler |
85 // sends signal, other progress in anim does not cause signal to be sent |
85 // sends signal, other progress in anim does not cause signal to be sent |
88 QVERIFY(spy.count() == 1 ); |
88 QVERIFY(spy.count() == 1 ); |
89 mEffect->moveAnimationChanged(0); |
89 mEffect->moveAnimationChanged(0); |
90 QVERIFY(spy.count() == 1 ); |
90 QVERIFY(spy.count() == 1 ); |
91 |
91 |
92 // When effect is running and new effect is requested, previous effect is stopped |
92 // When effect is running and new effect is requested, previous effect is stopped |
93 mEffect->startDissappearAppearByMovingEffect(*mLabel, *mLabel2, true, 0); |
93 mEffect->startDissappearAppearByMovingEffect(*mLabel, *mLabel2, true, 0, 0); |
94 } |
94 } |
95 |
95 |
96 void UT_LogsEffectHandler::testStartMoveNotPossibleEffect() |
96 void UT_LogsEffectHandler::testStartMoveNotPossibleEffect() |
97 { |
97 { |
98 QVERIFY( mEffect->mMoveNotPossibleGroup->state() == QAbstractAnimation::Stopped ); |
98 QVERIFY( mEffect->mMoveNotPossibleGroup->state() == QAbstractAnimation::Stopped ); |