on xenial help sign in
Fix tests
4d0c785Andrea Cimitan
tests/qmltests/Dash/Previews/tst_PreviewSharing.qml+3−3
@@ -39,18 +39,18 @@ Rectangle {
39 PreviewSharing {
39 PreviewSharing {
40 id: previewSharing
40 id: previewSharing
41 anchors { left: parent.left; bottom: parent.bottom; }
41 anchors { left: parent.left; bottom: parent.bottom; }
42− shareUris: shareUris
42+ shareUris: root.shareUris
43 }
43 }
44
44
45 UT.UnityTestCase {
45 UT.UnityTestCase {
46 name: "PreviewSharingTest"
46 name: "PreviewSharingTest"
47 when: windowShown
47 when: windowShown
48
48
49− property Item peerPicker: findChild(previewSharing, "peerPicker")
49+ property Item peerPicker: findChild(previewSharing.rootItem, "peerPicker")
50
50
51 function cleanup() {
51 function cleanup() {
52 peerPicker.visible = false;
52 peerPicker.visible = false;
53− previewSharing.shareUris = shareUris;
53+ previewSharing.shareUris = root.shareUris;
54 }
54 }
55
55
56 function test_visible() {
56 function test_visible() {