~unity-team/unity8/hotfix-launcher-on-dash

« back to all changes in this revision

Viewing changes to tests/qmltests/Dash/Previews/tst_PreviewZoomableImage.qml

  • Committer: Michael Terry
  • Date: 2014-05-05 22:07:57 UTC
  • mfrom: (881 unity8)
  • mto: (138.5.2 split-logrotate)
  • mto: This revision was merged to the branch mainline in revision 933.
  • Revision ID: michael.terry@canonical.com-20140505220757-dwz5ulj42vz1ahxv
MergeĀ fromĀ trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
    PreviewZoomableImage {
38
38
        id: zoomableImage
39
 
        width: parent.width
 
39
        anchors.fill: parent
 
40
        widgetData: widgetData1
40
41
    }
41
42
 
42
43
    UT.UnityTestCase {
47
48
            var image = findChild(zoomableImage, "image");
48
49
 
49
50
            zoomableImage.widgetData = widgetData0;
50
 
            tryCompare(image, "state", "default");
 
51
            waitForRendering(zoomableImage);
 
52
            tryCompare(image, "imageState", "default");
51
53
 
52
54
            zoomableImage.widgetData = widgetData1;
53
 
            tryCompare(image, "state", "ready");
 
55
            waitForRendering(zoomableImage);
 
56
            tryCompare(image, "imageState", "ready");
54
57
        }
55
58
    }
56
59
}