Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/effects/scripts/completeTest.js
- This file was added.
1 | effects.windowAdded.connect(function (window) { | ||||
---|---|---|---|---|---|
2 | window.animation = set({ | ||||
3 | window: window, | ||||
4 | curve: QEasingCurve.Linear, | ||||
5 | duration: animationTime(1000), | ||||
6 | type: Effect.Opacity, | ||||
7 | from: 0, | ||||
8 | to: 1, | ||||
9 | keepAlive: false | ||||
10 | }); | ||||
11 | }); | ||||
12 | | ||||
13 | effects.windowMinimized.connect(function (window) { | ||||
14 | if (complete(window.animation)) { | ||||
15 | sendTestResponse('ok'); | ||||
16 | } else { | ||||
17 | sendTestResponse('fail'); | ||||
18 | } | ||||
19 | }); |