on xenial help sign in
fix indentation to make whitespace test happy
commitc69e7e7990fe2455876e2632f86d52898ff2fb84 authorMichael Zanetti <michael.zanetti@canonical.com> dateMon 13 Oct 2014, 17:15 (12 years ago) parentec888f3
1 file changed+36−36
tests/qmltests/tst_Shell.qml+36−36
tests/qmltests/tst_Shell.qml+36−36
@@ -73,31 +73,31 @@ Row {
7373 }
7474 }
7575
76− Component {
77− id: mockNotification
76+ Component {
77+ id: mockNotification
7878
79− QtObject {
80− function invokeAction(actionId) {
81− mockNotificationsModel.actionInvoked(actionId)
82− }
79+ QtObject {
80+ function invokeAction(actionId) {
81+ mockNotificationsModel.actionInvoked(actionId)
8382 }
8483 }
84+ }
8585
86− ListModel {
87− id: mockNotificationsModel
86+ ListModel {
87+ id: mockNotificationsModel
8888
89− signal actionInvoked(string actionId)
89+ signal actionInvoked(string actionId)
9090
91− function getRaw(id) {
92− return mockNotification.createObject(mockNotificationsModel)
93− }
91+ function getRaw(id) {
92+ return mockNotification.createObject(mockNotificationsModel)
93+ }
9494
95− onActionInvoked: {
96− if(actionId == "ok_id") {
97− mockNotificationsModel.clear()
98− }
95+ onActionInvoked: {
96+ if(actionId == "ok_id") {
97+ mockNotificationsModel.clear()
9998 }
10099 }
100+ }
101101
102102 Rectangle {
103103 color: "white"
@@ -141,10 +141,10 @@ Row {
141141 signalName: "unlockingAllModems"
142142 }
143143
144− SignalSpy {
145− id: notificationActionSpy
146− target: mockNotificationsModel
147− signalName: "actionInvoked"
144+ SignalSpy {
145+ id: notificationActionSpy
146+ target: mockNotificationsModel
147+ signalName: "actionInvoked"
148148 }
149149
150150 Telephony.CallEntry {
@@ -241,22 +241,22 @@ Row {
241241 }
242242
243243 function addSnapDecisionNotification() {
244− var n = {
245− type: Notification.SnapDecision,
246− hints: {"x-canonical-private-affirmative-tint": "true"},
247− summary: "Tom Ato",
248− body: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.",
249− icon: "../graphics/avatars/funky.png",
250− secondaryIcon: "../graphics/applicationIcons/facebook.png",
251− actions: [{ id: "ok_id", label: "Ok"},
252− { id: "cancel_id", label: "Cancel"},
253− { id: "notreally_id", label: "Not really"},
254− { id: "noway_id", label: "messages:No way"},
255− { id: "nada_id", label: "messages:Nada"}]
256− }
257−
258− mockNotificationsModel.append(n)
259− }
244+ var n = {
245+ type: Notification.SnapDecision,
246+ hints: {"x-canonical-private-affirmative-tint": "true"},
247+ summary: "Tom Ato",
248+ body: "Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.",
249+ icon: "../graphics/avatars/funky.png",
250+ secondaryIcon: "../graphics/applicationIcons/facebook.png",
251+ actions: [{ id: "ok_id", label: "Ok"},
252+ { id: "cancel_id", label: "Cancel"},
253+ { id: "notreally_id", label: "Not really"},
254+ { id: "noway_id", label: "messages:No way"},
255+ { id: "nada_id", label: "messages:Nada"}]
256+ }
257+
258+ mockNotificationsModel.append(n)
259+ }
260260
261261 function test_leftEdgeDrag_data() {
262262 return [