[Messaging-email][Messaging-mms][Messaging-sms] removed asserts for timestamp.
authorAndrzej Krolikowski <a.krolikowsk@samsung.com>
Wed, 21 Aug 2013 08:45:38 +0000 (10:45 +0200)
committerAndrzej Krolikowski <a.krolikowsk@samsung.com>
Wed, 21 Aug 2013 08:45:38 +0000 (10:45 +0200)
Change-Id: If805402300a50496536b6d7689055960de12317c

tct-messaging-email-tizen-tests/messaging/Message_email_timestamp_attribute.html
tct-messaging-mms-tizen-tests/messaging/Message_mms_timestamp_attribute.html
tct-messaging-sms-tizen-tests/messaging/Message_sms_timestamp_attribute.html

index 455262572db4405b2deb1d7cd80bb3b3d2472444..3e823ea9ece1898d283038906af1ffa3980e86ea 100644 (file)
@@ -41,7 +41,7 @@ Authors:
 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");
 
@@ -51,7 +51,6 @@ t.step(function () {
 
     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();
index 871b8543dd2f59370ad739c34cfa34a8360604a7..6c276663eeab38546039307eeb58a958b7ea4abf 100644 (file)
@@ -40,7 +40,7 @@ Authors:
 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");
 
@@ -50,7 +50,6 @@ t.step(function () {
 
     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();
index 1b7b45949e9dfa2fb79b695f5320749d29f47e17..ebcf8a580351230123b7b56d496a0a30a47102eb 100644 (file)
@@ -40,7 +40,7 @@ Authors:
 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");
 
@@ -50,7 +50,6 @@ t.step(function () {
 
     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();