logsui/logsapp/tsrc/ut_logsapp/src/ut_logseffecthandler.cpp
changeset 11 64a47b97e1e1
parent 0 4a5361db8937
child 15 76d2cf7a585e
equal deleted inserted replaced
10:b04270301d3b 11:64a47b97e1e1
    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 );