Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/effects/scripts/animationTestMulti.js
1 | effects.windowAdded.connect(function(w) { | 1 | effects.windowAdded.connect(function(w) { | ||
---|---|---|---|---|---|
2 | w.anim1 = animate({ | 2 | w.anim1 = animate({ | ||
3 | window: w, | 3 | window: w, | ||
4 | duration: 100, | 4 | duration: 100, | ||
5 | animations: [{ | 5 | animations: [{ | ||
6 | type: Effect.Scale, | 6 | type: Effect.Scale, | ||
7 | to: 1.4, | 7 | to: 1.4, | ||
8 | curve: QEasingCurve.OutQuad | 8 | curve: QEasingCurve.OutCubic | ||
9 | }, { | 9 | }, { | ||
10 | type: Effect.Opacity, | 10 | type: Effect.Opacity, | ||
11 | curve: QEasingCurve.OutQuad, | 11 | curve: QEasingCurve.OutCubic, | ||
12 | to: 0.0 | 12 | to: 0.0 | ||
13 | }] | 13 | }] | ||
14 | }); | 14 | }); | ||
15 | sendTestResponse(typeof(w.anim1) == "object" && Array.isArray(w.anim1)); | 15 | sendTestResponse(typeof(w.anim1) == "object" && Array.isArray(w.anim1)); | ||
16 | }); | 16 | }); | ||
17 | 17 | | |||
18 | effects.windowUnminimized.connect(function(w) { | 18 | effects.windowUnminimized.connect(function(w) { | ||
19 | cancel(w.anim1); | 19 | cancel(w.anim1); | ||
20 | }); | 20 | }); | ||
21 | 21 | | |||
22 | effects.windowMinimized.connect(function(w) { | 22 | effects.windowMinimized.connect(function(w) { | ||
23 | retarget(w.anim1, 1.5, 200); | 23 | retarget(w.anim1, 1.5, 200); | ||
24 | }); | 24 | }); |