on xenial help sign in
Removed the commented/unused timer from the test.
10fcc11Mirco Müller
tests/qmltests/Notifications/tst_Notifications.qml−35
@@ -305,39 +305,6 @@ Row {
305 actionSpy.clear()
305 actionSpy.clear()
306 }
306 }
307
307
308− /*Timer {
309− id: timerTestNotificationRenderer
310−
311− interval: 100
312− repeat: true
313− running: true
314− property int hsecond: 0
315− property bool testPass: false
316−  onTriggered: {
317−
318− try {
319− var heightAfterExpand = notification.height
320−
321− if(initialHeight < heightAfterExpand) {
322− testPass: true
323− verify(testPass = true, "height of expanded snap-decision is not the greater than its initial height")
324− stop()
325− }
326− }
327− catch(err) {
328− // do nothing
329− }
330−
331− // wait 2 seconds
332− if(hsecond > 20) {
333− verify(testPass = true, "height of expanded snap-decision is not the greater than its initial height")
334− stop()
335− }
336−
337− hsecond++
338− }
339− }*/
340−
341 function test_NotificationRenderer(data) {
308 function test_NotificationRenderer(data) {
342 // populate model with some mock notifications
309 // populate model with some mock notifications
343 mockModel.append(data)
310 mockModel.append(data)
@@ -404,8 +371,6 @@ Row {
404 waitForRendering(notification)
371 waitForRendering(notification)
405 actionSpy.clear()
372 actionSpy.clear()
406 
373 
407− //timerTestNotificationRenderer.start()
408−
409 // test the additional buttons
374 // test the additional buttons
410 for (var i = 2; i < data.actions.length; i++) {
375 for (var i = 2; i < data.actions.length; i++) {
411 waitForRendering(notification)
376 waitForRendering(notification)