~unity-team/unity8/trunk

« back to all changes in this revision

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

  • Committer: CI bot
  • Author(s): Michael Zanetti, Michał Sawicz, Albert Astals
  • Date: 2014-03-14 15:44:32 UTC
  • mfrom: (734.3.21 fix-5.2-tests)
  • Revision ID: ps-jenkins@lists.canonical.com-20140314154432-16415v664pofnsq2
Fix tests under Qt 5.2. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
30
30
    }
31
31
 
32
32
    property var widgetData1: {
33
 
        "source": "../../graphics/phone_background.jpg",
 
33
        "source": Qt.resolvedUrl("../artwork/checkers.png"),
34
34
        "zoomable": false
35
35
    }
36
36
 
37
37
    PreviewZoomableImage {
38
38
        id: zoomableImage
39
39
        width: parent.width
40
 
        widgetData: widgetData1
41
40
    }
42
41
 
43
42
    UT.UnityTestCase {
48
47
            var image = findChild(zoomableImage, "image");
49
48
 
50
49
            zoomableImage.widgetData = widgetData0;
51
 
            tryCompare(image.state, "default");
 
50
            tryCompare(image, "state", "default");
52
51
 
53
52
            zoomableImage.widgetData = widgetData1;
54
 
            tryCompare(image.state, "ready");
 
53
            tryCompare(image, "state", "ready");
55
54
        }
56
55
    }
57
56
}