~laney/ubuntu-ui-toolkit/crossfadeimage

« back to all changes in this revision

Viewing changes to tests/unit/tst_components/tst_CrossFadeImage.qml

  • Committer: Iain Lane
  • Date: 2013-07-08 13:44:33 UTC
  • Revision ID: iain.lane@canonical.com-20130708134433-ddu79v0wy321c04j
Update duration in tests too

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
    property alias status: crossFadeImage.status
25
25
    property alias source: crossFadeImage.source
26
26
    property alias running: crossFadeImage.running
27
 
    property alias duration: crossFadeImage.duration
 
27
    property alias fadeDuration: crossFadeImage.fadeDuration
28
28
 
29
29
    CrossFadeImage {
30
30
        id: crossFadeImage
72
72
    }
73
73
 
74
74
    function cleanupTest() {
75
 
        duration = UbuntuAnimation.FastDuration ; // default
 
75
        fadeDuration = UbuntuAnimation.FastDuration ; // default
76
76
        compare(running, false, "Animation is running after testcase");
77
77
    }
78
78
 
84
84
        cleanupTest();
85
85
    }
86
86
 
87
 
    function test_fadeduration() {
88
 
        duration = UbuntuAnimation.SleepyDuration;
 
87
    function test_fadeDuration() {
 
88
        fadeDuration = UbuntuAnimation.SleepyDuration;
89
89
        loadImage("../../../examples/ubuntu-ui-toolkit-gallery/demo_image.jpg");
90
90
        loadImage("../../../examples/ubuntu-ui-toolkit-gallery/map_icon.png");
91
91
        sleep(UbuntuAnimation.SleepyDuration / 2); // < fadeDuration