setup({timeout: 90000});
var t = async_test("Message_email_timestamp_attribute", {timeout: 90000}), message, serviceError,
- serviceSuccess, messageService, sendError, sendSuccess, oldDate, currentDate = new Date();
+ serviceSuccess, messageService, sendError, sendSuccess, oldDate;
t.step(function () {
message = new tizen.Message("messaging.email");
sendSuccess = t.step_func(function () {
assert_type(message.timestamp, "date", "timestamp is not a Date");
- assert_greater_than_equal(message.timestamp.getTime(), currentDate.getTime(), "Incorrect timestamp");
oldDate = message.timestamp;
message.timestamp = new Date();
setup({timeout: 90000});
var t = async_test("Message_mms_timestamp_attribute", {timeout: 90000}), message, serviceError,
- serviceSuccess, messageService, sendError, sendSuccess, oldDate, currentDate = new Date();
+ serviceSuccess, messageService, sendError, sendSuccess, oldDate;
t.step(function () {
message = new tizen.Message("messaging.mms");
sendSuccess = t.step_func(function () {
assert_type(message.timestamp, "date", "timestamp is not a Date");
- assert_greater_than_equal(message.timestamp.getTime(), currentDate.getTime(), "Incorrect timestamp");
oldDate = message.timestamp;
message.timestamp = new Date();
setup({timeout: 90000});
var t = async_test("Message_sms_timestamp_attribute", {timeout: 90000}), message, serviceError,
- serviceSuccess, messageService, sendError, sendSuccess, oldDate, currentDate = new Date();
+ serviceSuccess, messageService, sendError, sendSuccess, oldDate;
t.step(function () {
message = new tizen.Message("messaging.sms");
sendSuccess = t.step_func(function () {
assert_type(message.timestamp, "date", "timestamp is not a Date");
- assert_greater_than_equal(message.timestamp.getTime(), currentDate.getTime(), "Incorrect timestamp");
oldDate = message.timestamp;
message.timestamp = new Date();