From: Junghyuk Park Date: Thu, 24 Oct 2013 06:47:00 +0000 (+0900) Subject: [Notification] Fix TTX-2086 X-Git-Tag: 2.2.1_release~27^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=048017c23e64c17bff6183ad6460e247bc711710;p=test%2Ftct%2Fweb%2Fapi.git [Notification] Fix TTX-2086 Change-Id: I608a7a22719a620229817efee63c4dd5d176ddde --- diff --git a/tct-notification-tizen-tests/notification/NotificationManager_post_ONGOING.html b/tct-notification-tizen-tests/notification/NotificationManager_post_ONGOING.html index 9e80202be..a6b61d01c 100644 --- a/tct-notification-tizen-tests/notification/NotificationManager_post_ONGOING.html +++ b/tct-notification-tizen-tests/notification/NotificationManager_post_ONGOING.html @@ -50,7 +50,6 @@ test(function () { assert_equals(statusNotification.statusType, "ONGOING", "statusType must be ONGOING"); assert_true(statusNotification.postedTime instanceof Date, "Incorrect type for StatusNotification.postedTime attribute."); - checkDate(statusNotification.postedTime); } finally { tizen.notification.removeAll(); } diff --git a/tct-notification-tizen-tests/notification/NotificationManager_post_PROGRESS.html b/tct-notification-tizen-tests/notification/NotificationManager_post_PROGRESS.html index d5cbe6f63..26b3ce93e 100644 --- a/tct-notification-tizen-tests/notification/NotificationManager_post_PROGRESS.html +++ b/tct-notification-tizen-tests/notification/NotificationManager_post_PROGRESS.html @@ -50,7 +50,6 @@ test(function () { assert_equals(statusNotification.statusType, "PROGRESS", "statusType must be PROGRESS"); assert_true(statusNotification.postedTime instanceof Date, "Incorrect type for StatusNotification.postedTime attribute."); - checkDate(statusNotification.postedTime); } finally { tizen.notification.removeAll(); } diff --git a/tct-notification-tizen-tests/notification/NotificationManager_post_SIMPLE.html b/tct-notification-tizen-tests/notification/NotificationManager_post_SIMPLE.html index 7f31d152d..93e82f9c5 100644 --- a/tct-notification-tizen-tests/notification/NotificationManager_post_SIMPLE.html +++ b/tct-notification-tizen-tests/notification/NotificationManager_post_SIMPLE.html @@ -50,7 +50,6 @@ test(function () { assert_equals(statusNotification.statusType, "SIMPLE", "statusType must be SIMPLE"); assert_true(statusNotification.postedTime instanceof Date, "Incorrect type for StatusNotification.postedTime attribute."); - checkDate(statusNotification.postedTime); } finally { tizen.notification.removeAll(); } diff --git a/tct-notification-tizen-tests/notification/NotificationManager_post_THUMBNAIL.html b/tct-notification-tizen-tests/notification/NotificationManager_post_THUMBNAIL.html index 105910307..723b3a9d5 100644 --- a/tct-notification-tizen-tests/notification/NotificationManager_post_THUMBNAIL.html +++ b/tct-notification-tizen-tests/notification/NotificationManager_post_THUMBNAIL.html @@ -50,7 +50,6 @@ test(function () { assert_equals(statusNotification.statusType, "THUMBNAIL", "statusType must be THUMBNAIL"); assert_true(statusNotification.postedTime instanceof Date, "Incorrect type for StatusNotification.postedTime attribute."); - checkDate(statusNotification.postedTime); } finally { tizen.notification.removeAll(); } diff --git a/tct-notification-tizen-tests/notification/Notification_postedTime_attribute.html b/tct-notification-tizen-tests/notification/Notification_postedTime_attribute.html index 0331f02d2..2149ddb2f 100644 --- a/tct-notification-tizen-tests/notification/Notification_postedTime_attribute.html +++ b/tct-notification-tizen-tests/notification/Notification_postedTime_attribute.html @@ -46,7 +46,7 @@ test(function () { statusNotification = new tizen.StatusNotification("ONGOING", titleToSet, notificationDict); assert_own_property(statusNotification, "postedTime", "StatusNotification doesn't own postedTime property."); - check_readonly(statusNotification, "postedTime", null, "object", new Date()); + check_readonly(statusNotification, "postedTime", undefined, "undefined", new Date()); tizen.notification.post(statusNotification); assert_type(statusNotification.postedTime, "date", "date check"); } finally { diff --git a/tct-notification-tizen-tests/notification/StatusNotification_constructor_minargs.html b/tct-notification-tizen-tests/notification/StatusNotification_constructor_minargs.html index 1ddefdfe7..11ccce58b 100644 --- a/tct-notification-tizen-tests/notification/StatusNotification_constructor_minargs.html +++ b/tct-notification-tizen-tests/notification/StatusNotification_constructor_minargs.html @@ -45,7 +45,7 @@ test(function () { assert_true(statusNotification instanceof tizen.StatusNotification, "StatusNotification instanceOf."); - check_readonly(statusNotification, "postedTime", null, "object", new Date()); + check_readonly(statusNotification, "postedTime", undefined, "undefined", new Date()); assert_equals(statusNotification.title, titleToSet, "title attribute."); assert_equals(statusNotification.content, null, "content attribute."); assert_equals(statusNotification.statusType, statusNotificationType, "statusType attribute."); diff --git a/tct-notification-tizen-tests/notification/StatusNotification_constructor_notificationInitDict_partial.html b/tct-notification-tizen-tests/notification/StatusNotification_constructor_notificationInitDict_partial.html index fc258be1e..2499883ce 100644 --- a/tct-notification-tizen-tests/notification/StatusNotification_constructor_notificationInitDict_partial.html +++ b/tct-notification-tizen-tests/notification/StatusNotification_constructor_notificationInitDict_partial.html @@ -54,7 +54,7 @@ test(function () { assert_true(statusNotification instanceof tizen.StatusNotification, "StatusNotification instanceOf."); check_readonly(statusNotification, "type", "STATUS", "string", "dummyType"); - check_readonly(statusNotification, "postedTime", null, "object", new Date()); + check_readonly(statusNotification, "postedTime", undefined, "undefined", new Date()); assert_equals(statusNotification.title, titleToSet, "title attribute."); assert_equals(statusNotification.content, contentToSet, "content attribute."); assert_equals(statusNotification.statusType, statusNotificationType, "statusType attribute."); diff --git a/tct-notification-tizen-tests/notification/StatusNotification_constructor_notificationInitDict_partial_extra.html b/tct-notification-tizen-tests/notification/StatusNotification_constructor_notificationInitDict_partial_extra.html index aa3f49792..86c3966f1 100644 --- a/tct-notification-tizen-tests/notification/StatusNotification_constructor_notificationInitDict_partial_extra.html +++ b/tct-notification-tizen-tests/notification/StatusNotification_constructor_notificationInitDict_partial_extra.html @@ -58,7 +58,7 @@ test(function () { assert_true(statusNotification instanceof tizen.StatusNotification, "StatusNotification instanceOf."); check_readonly(statusNotification, "type", "STATUS", "string", "dummyType"); - check_readonly(statusNotification, "postedTime", null, "object", new Date()); + check_readonly(statusNotification, "postedTime", undefined, "undefined", new Date()); assert_equals(statusNotification.title, titleToSet, "title attribute."); assert_equals(statusNotification.content, null, "content attribute."); assert_equals(statusNotification.statusType, statusNotificationType, "statusType attribute."); diff --git a/tct-notification-tizen-tests/notification/support/notification_common.js b/tct-notification-tizen-tests/notification/support/notification_common.js index 597f81bb2..78cf64bf4 100644 --- a/tct-notification-tizen-tests/notification/support/notification_common.js +++ b/tct-notification-tizen-tests/notification/support/notification_common.js @@ -119,7 +119,7 @@ function testStatusNotificationConstructor(statusNotificationType, progessTypeTo assert_true(statusNotification instanceof tizen.StatusNotification, "Created object is not of proper interface."); - check_readonly(statusNotification, "postedTime", null, 'object', new Date()); + check_readonly(statusNotification, "postedTime", undefined, 'undefined', new Date()); assert_equals(statusNotification.title, titleToSet, "title attribute."); assert_equals(statusNotification.content, contentToSet, "content attribute."); assert_equals(statusNotification.statusType, statusNotificationType, "statusType attribute."); @@ -156,10 +156,3 @@ function testStatusNotificationConstructor(statusNotificationType, progessTypeTo check_readonly(statusNotification, "id", undefined, "undefined", "dummyId"); assert_array_equals(statusNotification.thumbnails, thumbnailsToSet, "thumbnails attribute."); } - - -function checkDate(date) { - var maxDiffrence = 3000, currentDate = new Date(); - assert_true(date.getTime() + maxDiffrence >= currentDate.getTime(), - "Incorrect date. CurrentDate = " + currentDate.getTime() + " date = " + date.getTime()); -}