on xenial help sign in
make sure the Placeholder is created

this for some reason fails under Xenial which makes the tests fail in turn on Vivid/CI

commite82ae4e90f3fe879a1b230b5b0ec3958a491dd3b authorLukáš Tinkl <lukas.tinkl@canonical.com> dateTue 12 Apr 2016, 19:47 (11 years ago) parent301ff91
1 file changed+15−15
tests/qmltests/Notifications/tst_Notifications.qml+15−15
tests/qmltests/Notifications/tst_Notifications.qml+15−15
@@ -31,26 +31,26 @@ Item {
3131 height: notificationsRect.height
3232 property int index: 0
3333
34+ // add the default/PlaceHolder notification to the model
35+ Component.onCompleted: {
36+ var component = Qt.createComponent("Notification.qml")
37+ var n = component.createObject("notification", {"nid": index++,
38+ "type": Notification.PlaceHolder,
39+ "hints": {},
40+ "summary": "",
41+ "body": "",
42+ "icon": "",
43+ "secondaryIcon": "",
44+ "rawActions": []})
45+ n.completed.connect(mockModel.onCompleted)
46+ mockModel.append(n)
47+ }
48+
3449 Row {
3550 id: rootRow
3651
3752 NotificationModel {
3853 id: mockModel
39−
40− // add the default/PlaceHolder notification to the model
41− Component.onCompleted: {
42− var component = Qt.createComponent("Notification.qml")
43− var n = component.createObject("notification", {"nid": index++,
44− "type": Notification.PlaceHolder,
45− "hints": {},
46− "summary": "",
47− "body": "",
48− "icon": "",
49− "secondaryIcon": "",
50− "rawActions": []})
51− n.completed.connect(mockModel.onCompleted)
52− append(n)
53− }
5454 }
5555
5656 function add2over1SnapDecisionNotification() {