on xenial help sign in
Removed the commented/unused timer from the test.
commit10fcc11b19c7a0dc06977bdcf2b674eb265019d5 authorMirco Müller <mirco.mueller@ubuntu.com> dateWed 3 Jul 2013, 11:10 (13 years ago) parent6f63296
1 file changed−35
tests/qmltests/Notifications/tst_Notifications.qml−35
tests/qmltests/Notifications/tst_Notifications.qml−35
@@ -305,39 +305,6 @@ Row {
305305 actionSpy.clear()
306306 }
307307
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−
341308 function test_NotificationRenderer(data) {
342309 // populate model with some mock notifications
343310 mockModel.append(data)
@@ -404,8 +371,6 @@ Row {
404371 waitForRendering(notification)
405372 actionSpy.clear()
406373 
407− //timerTestNotificationRenderer.start()
408−
409374 // test the additional buttons
410375 for (var i = 2; i < data.actions.length; i++) {
411376 waitForRendering(notification)