From: xy.qian Date: Tue, 17 Oct 2017 12:30:01 +0000 (+0800) Subject: [common][tct-alarm-tizen-tests][TNEXT-4102 TNEXT-3193 TNEXT-3186 TNEXT-3183 DPTIZEN... X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=583dbcbd5d35acb14c36920b32f3632557547114;p=test%2Ftct%2Fweb%2Fapi.git [common][tct-alarm-tizen-tests][TNEXT-4102 TNEXT-3193 TNEXT-3186 TNEXT-3183 DPTIZEN-2939 Modify TCs] Change-Id: I15e3d764071b3954833ab6b87810107dacd3aebd Signed-off-by: xy.qian --- diff --git a/common/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification.html b/common/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification.html index 2f2001aee..380b284b2 100644 --- a/common/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification.html +++ b/common/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification.html @@ -53,10 +53,16 @@ test(function () { alarm = new tizen.AlarmAbsolute(date); notificationDict = { content: "This is a simple notification.", - iconPath: "images/webapi-tizen-notification-test_image1.jpg", - soundPath: "music/webapi-tizen-notification-test_noise1.mp3" + images: + { + iconPath : "images/webapi-tizen-notification-test_image1.jpg" + }, + actions: + { + soundPath : "music/webapi-tizen-notification-test_noise1.mp3" + } }; - notification = new tizen.StatusNotification("SIMPLE", "Simple notification", notificationDict); + notification = new tizen.UserNotification("SIMPLE", "Simple notification", notificationDict); retVal = tizen.alarm.addAlarmNotification(alarm, notification); noti = tizen.alarm.getAlarmNotification(alarm.id); assert_type(retVal, "undefined", "method returned value"); diff --git a/common/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification_alarm_TypeMismatch.html b/common/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification_alarm_TypeMismatch.html index 26282268b..f3d0fdfad 100644 --- a/common/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification_alarm_TypeMismatch.html +++ b/common/tct-alarm-tizen-tests/alarm/AlarmManager_addAlarmNotification_alarm_TypeMismatch.html @@ -40,11 +40,17 @@ test(function () { var notificationDict, notification, i, conversionTable = getTypeConversionExceptions("object"); notificationDict = { content: "This is a simple notification.", - iconPath: "images/webapi-tizen-notification-test_image1.jpg", - soundPath: "music/webapi-tizen-notification-test_noise1.mp3" + images: + { + iconPath : "images/webapi-tizen-notification-test_image1.jpg" + }, + actions: + { + soundPath : "music/webapi-tizen-notification-test_noise1.mp3" + } }; - notification = new tizen.StatusNotification("SIMPLE", "Simple notification", notificationDict); + notification = new tizen.UserNotification("SIMPLE", "Simple notification", notificationDict); for (i = 0; i < conversionTable.length; i++) { assert_throws({name: conversionTable[i][1]}, function () { tizen.alarm.addAlarmNotification(conversionTable[i][0], notification); diff --git a/common/tct-alarm-tizen-tests/alarm/AlarmManager_getAlarmNotification.html b/common/tct-alarm-tizen-tests/alarm/AlarmManager_getAlarmNotification.html index 5e863813e..38e5c317a 100644 --- a/common/tct-alarm-tizen-tests/alarm/AlarmManager_getAlarmNotification.html +++ b/common/tct-alarm-tizen-tests/alarm/AlarmManager_getAlarmNotification.html @@ -53,13 +53,19 @@ test(function () { alarm = new tizen.AlarmAbsolute(date); notificationDict = { content: "This is a simple notification.", - iconPath: "images/webapi-tizen-notification-test_image1.jpg", - soundPath: "music/webapi-tizen-notification-test_noise1.mp3" + images: + { + iconPath : "images/webapi-tizen-notification-test_image1.jpg" + }, + actions: + { + soundPath : "music/webapi-tizen-notification-test_noise1.mp3" + } }; - notification = new tizen.StatusNotification("SIMPLE", "Simple notification", notificationDict); + notification = new tizen.UserNotification("SIMPLE", "Simple notification", notificationDict); tizen.alarm.addAlarmNotification(alarm, notification); retVal = tizen.alarm.getAlarmNotification(alarm.id); - assert_true(retVal instanceof tizen.StatusNotification, "object was not get properly"); + assert_true(retVal instanceof tizen.UserNotification, "object was not get properly"); }, document.title); diff --git a/common/tct-alarm-tizen-tests/alarm/AlarmManager_getAlarmNotification_NotFoundError.html b/common/tct-alarm-tizen-tests/alarm/AlarmManager_getAlarmNotification_NotFoundError.html index 6f6077f6f..372449dfc 100644 --- a/common/tct-alarm-tizen-tests/alarm/AlarmManager_getAlarmNotification_NotFoundError.html +++ b/common/tct-alarm-tizen-tests/alarm/AlarmManager_getAlarmNotification_NotFoundError.html @@ -45,10 +45,16 @@ test(function () { alarm = new tizen.AlarmAbsolute(date); notificationDict = { content: "This is a simple notification.", - iconPath: "images/webapi-tizen-notification-test_image1.jpg", - soundPath: "music/webapi-tizen-notification-test_noise1.mp3" + images: + { + iconPath : "images/webapi-tizen-notification-test_image1.jpg" + }, + actions: + { + soundPath : "music/webapi-tizen-notification-test_noise1.mp3" + } }; - notification = new tizen.StatusNotification("SIMPLE", "Simple notification", notificationDict); + notification = new tizen.UserNotification("SIMPLE", "Simple notification", notificationDict); tizen.alarm.addAlarmNotification(alarm, notification); tizen.alarm.remove(alarm.id); assert_throws(NOT_FOUND_EXCEPTION, function () {