Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/effects/scripted_effects_test.cpp
Show First 20 Lines • Show All 285 Lines • ▼ Show 20 Line(s) | 285 | { | |||
---|---|---|---|---|---|
286 | const AnimationEffect::AniMap state = effect->state(); | 286 | const AnimationEffect::AniMap state = effect->state(); | ||
287 | QCOMPARE(state.count(), 1); | 287 | QCOMPARE(state.count(), 1); | ||
288 | QCOMPARE(state.firstKey(), c->effectWindow()); | 288 | QCOMPARE(state.firstKey(), c->effectWindow()); | ||
289 | const auto &animationsForWindow = state.first().first; | 289 | const auto &animationsForWindow = state.first().first; | ||
290 | QCOMPARE(animationsForWindow.count(), animationCount); | 290 | QCOMPARE(animationsForWindow.count(), animationCount); | ||
291 | QCOMPARE(animationsForWindow[0].duration, 100); | 291 | QCOMPARE(animationsForWindow[0].duration, 100); | ||
292 | QCOMPARE(animationsForWindow[0].to, FPx2(1.4)); | 292 | QCOMPARE(animationsForWindow[0].to, FPx2(1.4)); | ||
293 | QCOMPARE(animationsForWindow[0].attribute, AnimationEffect::Scale); | 293 | QCOMPARE(animationsForWindow[0].attribute, AnimationEffect::Scale); | ||
294 | QCOMPARE(animationsForWindow[0].curve.type(), QEasingCurve::OutQuad); | ||||
294 | QCOMPARE(animationsForWindow[0].keepAtTarget, false); | 295 | QCOMPARE(animationsForWindow[0].keepAtTarget, false); | ||
295 | timePassed = animationsForWindow[0].time; | 296 | timePassed = animationsForWindow[0].time; | ||
296 | if (animationCount == 2) { | 297 | if (animationCount == 2) { | ||
297 | QCOMPARE(animationsForWindow[1].duration, 100); | 298 | QCOMPARE(animationsForWindow[1].duration, 100); | ||
298 | QCOMPARE(animationsForWindow[1].to, FPx2(0.0)); | 299 | QCOMPARE(animationsForWindow[1].to, FPx2(0.0)); | ||
299 | QCOMPARE(animationsForWindow[1].attribute, AnimationEffect::Opacity); | 300 | QCOMPARE(animationsForWindow[1].attribute, AnimationEffect::Opacity); | ||
300 | QCOMPARE(animationsForWindow[1].keepAtTarget, false); | 301 | QCOMPARE(animationsForWindow[1].keepAtTarget, false); | ||
301 | } | 302 | } | ||
▲ Show 20 Lines • Show All 52 Lines • Show Last 20 Lines |