equal
deleted
inserted
replaced
1 /**************************************************************************** |
1 /**************************************************************************** |
2 ** |
2 ** |
3 ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies). |
3 ** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
4 ** All rights reserved. |
4 ** All rights reserved. |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
5 ** Contact: Nokia Corporation (qt-info@nokia.com) |
6 ** |
6 ** |
7 ** This file is part of the test suite of the Qt Toolkit. |
7 ** This file is part of the test suite of the Qt Toolkit. |
8 ** |
8 ** |
97 |
97 |
98 private slots: |
98 private slots: |
99 void changeDirectionWhileRunning(); |
99 void changeDirectionWhileRunning(); |
100 void noTimerUpdates_data(); |
100 void noTimerUpdates_data(); |
101 void noTimerUpdates(); |
101 void noTimerUpdates(); |
102 void mulitplePauseAnimations(); |
102 void multiplePauseAnimations(); |
103 void pauseAndPropertyAnimations(); |
103 void pauseAndPropertyAnimations(); |
104 void pauseResume(); |
104 void pauseResume(); |
105 void sequentialPauseGroup(); |
105 void sequentialPauseGroup(); |
106 void sequentialGroupWithPause(); |
106 void sequentialGroupWithPause(); |
107 void multipleSequentialGroups(); |
107 void multipleSequentialGroups(); |
167 |
167 |
168 QVERIFY(animation.state() == QAbstractAnimation::Stopped); |
168 QVERIFY(animation.state() == QAbstractAnimation::Stopped); |
169 QCOMPARE(animation.m_updateCurrentTimeCount, 1 + loopCount); |
169 QCOMPARE(animation.m_updateCurrentTimeCount, 1 + loopCount); |
170 } |
170 } |
171 |
171 |
172 void tst_QPauseAnimation::mulitplePauseAnimations() |
172 void tst_QPauseAnimation::multiplePauseAnimations() |
173 { |
173 { |
174 EnableConsistentTiming enabled; |
174 EnableConsistentTiming enabled; |
175 |
175 |
176 TestablePauseAnimation animation; |
176 TestablePauseAnimation animation; |
177 animation.setDuration(200); |
177 animation.setDuration(200); |