on xenial help sign in
fix indentation to make whitespace test happy
c69e7e7Michael Zanetti
tests/qmltests/tst_Shell.qml+36−36
@@ -73,31 +73,31 @@ Row {
73 }
73 }
74 }
74 }
75
75
76− Component {
76+ Component {
77− id: mockNotification
77+ id: mockNotification
78
78
79− QtObject {
79+ QtObject {
80− function invokeAction(actionId) {
80+ function invokeAction(actionId) {
81− mockNotificationsModel.actionInvoked(actionId)
81+ mockNotificationsModel.actionInvoked(actionId)
82− }
83 }
82 }
84 }
83 }
84+ }
85
85
86− ListModel {
86+ ListModel {
87− id: mockNotificationsModel
87+ id: mockNotificationsModel
88
88
89− signal actionInvoked(string actionId)
89+ signal actionInvoked(string actionId)
90
90
91− function getRaw(id) {
91+ function getRaw(id) {
92− return mockNotification.createObject(mockNotificationsModel)
92+ return mockNotification.createObject(mockNotificationsModel)
93− }
93+ }
94
94
95− onActionInvoked: {
95+ onActionInvoked: {
96− if(actionId == "ok_id") {
96+ if(actionId == "ok_id") {
97− mockNotificationsModel.clear()
97+ mockNotificationsModel.clear()
98− }
99 }
98 }
100 }
99 }
100+ }
101
101
102 Rectangle {
102 Rectangle {
103 color: "white"
103 color: "white"
@@ -141,10 +141,10 @@ Row {
141 signalName: "unlockingAllModems"
141 signalName: "unlockingAllModems"
142 }
142 }
143
143
144− SignalSpy {
144+ SignalSpy {
145− id: notificationActionSpy
145+ id: notificationActionSpy
146− target: mockNotificationsModel
146+ target: mockNotificationsModel
147− signalName: "actionInvoked"
147+ signalName: "actionInvoked"
148 }
148 }
149
149
150 Telephony.CallEntry {
150 Telephony.CallEntry {
@@ -241,22 +241,22 @@ Row {
241 }
241 }
242
242
243 function addSnapDecisionNotification() {
243 function addSnapDecisionNotification() {
244− var n = {
244+ var n = {
245− type: Notification.SnapDecision,
245+ type: Notification.SnapDecision,
246− hints: {"x-canonical-private-affirmative-tint": "true"},
246+ hints: {"x-canonical-private-affirmative-tint": "true"},
247− summary: "Tom Ato",
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.",
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",
249+ icon: "../graphics/avatars/funky.png",
250− secondaryIcon: "../graphics/applicationIcons/facebook.png",
250+ secondaryIcon: "../graphics/applicationIcons/facebook.png",
251− actions: [{ id: "ok_id", label: "Ok"},
251+ actions: [{ id: "ok_id", label: "Ok"},
252− { id: "cancel_id", label: "Cancel"},
252+ { id: "cancel_id", label: "Cancel"},
253− { id: "notreally_id", label: "Not really"},
253+ { id: "notreally_id", label: "Not really"},
254− { id: "noway_id", label: "messages:No way"},
254+ { id: "noway_id", label: "messages:No way"},
255− { id: "nada_id", label: "messages:Nada"}]
255+ { id: "nada_id", label: "messages:Nada"}]
256− }
256+ }
257−
257+
258− mockNotificationsModel.append(n)
258+ mockNotificationsModel.append(n)
259− }
259+ }
260
260
261 function test_leftEdgeDrag_data() {
261 function test_leftEdgeDrag_data() {
262 return [
262 return [