[Messaging] Fix messaging creating sequence
authorAndrzej Krolikowski <a.krolikowsk@samsung.com>
Thu, 24 Oct 2013 15:04:26 +0000 (17:04 +0200)
committerJunghyuk Park <junghyuk.park@samsung.com>
Fri, 25 Oct 2013 01:22:19 +0000 (10:22 +0900)
Change-Id: I99e39e06b93f48516eebcf7bfba172c302c10c07

29 files changed:
tct-messaging-email-tizen-tests/messaging/MessageBody_email_extend.html
tct-messaging-email-tizen-tests/messaging/MessageBody_email_htmlBody_attribute.html
tct-messaging-email-tizen-tests/messaging/MessageBody_email_inlineAttachments_attribute.html
tct-messaging-email-tizen-tests/messaging/MessageBody_email_loaded_attribute.html
tct-messaging-email-tizen-tests/messaging/MessageBody_email_messageId_attribute.html
tct-messaging-email-tizen-tests/messaging/MessageBody_email_plainBody_attribute.html
tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html
tct-messaging-email-tizen-tests/messaging/Message_attachments_exist.html
tct-messaging-email-tizen-tests/messaging/Message_email_bcc_attribute.html
tct-messaging-email-tizen-tests/messaging/Message_email_cc_attribute.html
tct-messaging-email-tizen-tests/messaging/Message_email_constructor_minargs.html
tct-messaging-email-tizen-tests/messaging/Message_email_conversationId_attribute.html
tct-messaging-email-tizen-tests/messaging/Message_email_extend.html
tct-messaging-email-tizen-tests/messaging/Message_email_folderId_attribute.html
tct-messaging-email-tizen-tests/messaging/Message_email_from_attribute.html
tct-messaging-email-tizen-tests/messaging/Message_email_hasAttachment_attribute.html
tct-messaging-email-tizen-tests/messaging/Message_email_id_attribute.html
tct-messaging-email-tizen-tests/messaging/Message_email_inResponseTo_attribute.html
tct-messaging-email-tizen-tests/messaging/Message_email_isHighPriority_attribute.html
tct-messaging-email-tizen-tests/messaging/Message_email_isRead_attribute.html
tct-messaging-email-tizen-tests/messaging/Message_email_messageStatus_attribute.html
tct-messaging-email-tizen-tests/messaging/Message_email_subject_attribute.html
tct-messaging-email-tizen-tests/messaging/Message_email_timestamp_attribute.html
tct-messaging-email-tizen-tests/messaging/Message_email_to_attribute.html
tct-messaging-email-tizen-tests/messaging/Message_email_type_attribute.html
tct-messaging-email-tizen-tests/messaging/Message_hasAttachment_exist.html
tct-messaging-email-tizen-tests/messaging/support/messaging_common.js
tct-messaging-email-tizen-tests/tests.full.xml
tct-messaging-email-tizen-tests/tests.xml

index b243cd621943153152a0637727369cf9cad090a5..5dce2b737caaf8fa0b5758ae9f9f7ab0ee59e6cd 100644 (file)
@@ -24,6 +24,7 @@ Authors:
 <title>MessageBody_email_extend</title>
 <meta charset="utf-8"/>
 <script type="text/javascript" src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
 <body>
@@ -32,19 +33,32 @@ Authors:
 //==== TEST: MessageBody_email_extend
 //==== PRIORITY P3
 //==== LABEL Check if instance of interface MessageBody (email) can be extended with new property
+//==== ONLOAD_DELAY 300
+//==== TIMEOUT 300
 //==== SPEC Tizen Web API:Communication:Messaging:MessageBody:MessageBody U
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA OBX
+setup({timeout: 300000});
 
-test(function () {
-    var message, messageBody;
+var t = async_test(document.title, {timeout: 300000}),
+    serviceSuccess, serviceError, message, messageBody;
 
-    message = new tizen.Message("messaging.email");
-    messageBody = message.body;
+t.step(function () {
+    serviceSuccess = t.step_func(function (service) {
+        message = new tizen.Message("messaging.email");
+        messageBody = message.body;
 
-    check_extensibility(messageBody);
+        check_extensibility(messageBody);
 
-}, document.title);
+        t.done();
+    });
+
+    serviceError = t.step_func(function (error) {
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
+    });
+
+    getEmailService(t, serviceSuccess, serviceError);
+});
 
 </script>
 </body>
index d74796134ea4dd157ed4da1cad9602a701ee2ad1..438bafa20c0f9bc4cdb6f17d944716dd395b7054 100644 (file)
@@ -24,6 +24,7 @@ Authors:
 <title>MessageBody_email_htmlBody_attribute</title>
 <meta charset="utf-8"/>
 <script type="text/javascript" src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
 <body>
@@ -31,23 +32,36 @@ Authors:
 <script>
 //==== TEST: MessageBody_email_htmlBody_attribute
 //==== LABEL Check if attribute htmlBody of MessageBody (email) exists, has type DOMString
+//==== ONLOAD_DELAY 300
+//==== TIMEOUT 300
 //==== SPEC Tizen Web API:Communication:Messaging:MessageBody:htmlBody A
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA AE AN ADV AT ASG
+setup({timeout: 300000});
 
-test(function () {
-    var message, messageBody;
+var t = async_test(document.title, {timeout: 300000}),
+    serviceSuccess, serviceError, message, messageBody;
 
-    message = new tizen.Message("messaging.email");
-    messageBody = message.body;
+t.step(function () {
+    serviceSuccess = t.step_func(function (service) {
+        message = new tizen.Message("messaging.email");
+        messageBody = message.body;
 
-    assert_own_property(messageBody, "htmlBody", "MessageBody does not own htmlBody property.");
-    check_attribute(messageBody, "htmlBody", "", "string", "sampleValue");
+        assert_own_property(messageBody, "htmlBody", "MessageBody does not own htmlBody property.");
+        check_attribute(messageBody, "htmlBody", "", "string", "sampleValue");
 
-    messageBody.htmlBody = null;
-    assert_equals(messageBody.htmlBody, "null", "htmlBody should not accept null as value");
+        messageBody.htmlBody = null;
+        assert_equals(messageBody.htmlBody, "null", "htmlBody should not accept null as value");
 
-}, document.title);
+        t.done();
+    });
+
+    serviceError = t.step_func(function (error) {
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
+    });
+
+    getEmailService(t, serviceSuccess, serviceError);
+});
 
 </script>
 </body>
index 0ac9e2886bf1271a5dd776e56e3d443ae9c9fc65..769d6d297574dca008bfa76eaa06da4973d56827 100644 (file)
@@ -41,23 +41,8 @@ setup({timeout: 300000});
 
 var t = async_test(document.title, {timeout: 300000}), message, messageBody, oldValue,
     serviceError, serviceSuccess, messageService, messageStorage, addDraftError, addDraftSuccess;
-t.step(function () {
-
-    message = new tizen.Message("messaging.email");
-
-    messageBody = message.body;
-
-    assert_own_property(messageBody, "inlineAttachments", "MessageBody does not own inlineAttachments property.");
-
-    assert_type(messageBody.inlineAttachments, "array", "Not an array");
-    assert_equals(messageBody.inlineAttachments.length, 0, "Incorrrect length");
-
-    oldValue = messageBody.inlineAttachments;
-    messageBody.inlineAttachments = null;
-    assert_array_equals(messageBody.inlineAttachments, oldValue, "inlineAttachments should not accept null as value");
-
-    check_invalid_array_assignments(messageBody, "inlineAttachments", false);
 
+t.step(function () {
     addDraftSuccess = t.step_func(function () {
         assert_type(messageBody.inlineAttachments[0].id, "string", "id is not a string");
         assert_not_equals(messageBody.inlineAttachments[0].id, "", "id is empty");
@@ -70,11 +55,25 @@ t.step(function () {
         assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
+    serviceSuccess = t.step_func(function (service) {
+        messageService = service;
         messageStorage = messageService.messageStorage;
 
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
+
+        messageBody = message.body;
+
+        assert_own_property(messageBody, "inlineAttachments", "MessageBody does not own inlineAttachments property.");
+
+        assert_type(messageBody.inlineAttachments, "array", "Not an array");
+        assert_equals(messageBody.inlineAttachments.length, 0, "Incorrrect length");
+
+        oldValue = messageBody.inlineAttachments;
+        messageBody.inlineAttachments = null;
+        assert_array_equals(messageBody.inlineAttachments, oldValue, "inlineAttachments should not accept null as value");
+
+        check_invalid_array_assignments(messageBody, "inlineAttachments", false);
+
         messageBody.inlineAttachments = [new tizen.MessageAttachment(MESSAGE_ATTACHMENT_IMAGE_PATH, "image/jpg")];
         assert_type(messageBody.inlineAttachments, "array", "Not an array");
         assert_equals(messageBody.inlineAttachments.length, 1, "Incorrrect length");
@@ -94,10 +93,10 @@ t.step(function () {
     });
 
     serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
+    getEmailService(t, serviceSuccess, serviceError);
 });
 
 </script>
index 09a22655ea73ba18bbdbab21b52a7aa38ec6821c..2c2e6638aab65639d1105f33671ceabc2089494f 100644 (file)
@@ -24,6 +24,7 @@ Authors:
 <title>MessageBody_email_loaded_attribute</title>
 <meta charset="utf-8"/>
 <script type="text/javascript" src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
 <body>
@@ -31,24 +32,37 @@ Authors:
 <script>
 //==== TEST: MessageBody_email_loaded_attribute
 //==== LABEL Check if attribute loaded of MessageBody (email) exists, has type Boolean and is readonly
+//==== ONLOAD_DELAY 300
+//==== TIMEOUT 300
 //==== SPEC Tizen Web API:Communication:Messaging:MessageBody:loaded A
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA AE AT ARO ADV
+setup({timeout: 300000});
 
-test(function () {
-    var message, messageBody, oldValue;
+var t = async_test(document.title, {timeout: 300000}),
+    serviceSuccess, serviceError, message, messageBody, oldValue;
 
-    message = new tizen.Message("messaging.email");
-    messageBody = message.body;
+t.step(function () {
+    serviceSuccess = t.step_func(function (service) {
+        message = new tizen.Message("messaging.email");
+        messageBody = message.body;
 
-    assert_own_property(messageBody, "loaded", "MessageBody does not own loaded property.");
-    check_readonly(messageBody, "loaded", false, "boolean", true);
+        assert_own_property(messageBody, "loaded", "MessageBody does not own loaded property.");
+        check_readonly(messageBody, "loaded", false, "boolean", true);
 
-    oldValue = messageBody.loaded;
-    messageBody.loaded = null;
-    assert_equals(messageBody.loaded, oldValue, "loaded attribute shuld not accept null as value");
+        oldValue = messageBody.loaded;
+        messageBody.loaded = null;
+        assert_equals(messageBody.loaded, oldValue, "loaded attribute shuld not accept null as value");
 
-}, document.title);
+        t.done();
+    });
+
+    serviceError = t.step_func(function (error) {
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
+    });
+
+    getEmailService(t, serviceSuccess, serviceError);
+});
 
 </script>
 </body>
index ed09cfa2b73475a0cb882890a6418ea443774657..3285e65efe75c4fbe32459c5dc1756c99a7c09c8 100644 (file)
@@ -24,6 +24,7 @@ Authors:
 <title>MessageBody_email_messageId_attribute</title>
 <meta charset="utf-8"/>
 <script type="text/javascript" src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
 <body>
@@ -39,14 +40,9 @@ Authors:
 setup({timeout: 300000});
 
 var t = async_test(document.title, {timeout: 300000}), message, messageBody,
-    serviceError, serviceSuccess, messageService, messageStorage, addDraftError, addDraftSuccess;
-t.step(function () {
-
-    message = new tizen.Message("messaging.email");
-    messageBody = message.body;
-
-    assert_own_property(messageBody, "messageId", "MessageBody does not own messageId property.");
+    serviceError, serviceSuccess, addDraftError, addDraftSuccess;
 
+t.step(function () {
     addDraftSuccess = t.step_func(function () {
         check_readonly(messageBody, "messageId", message.id, "string", "54321");
 
@@ -57,19 +53,20 @@ t.step(function () {
         assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
-        messageStorage = messageService.messageStorage;
+    serviceSuccess = t.step_func(function (service) {
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
+        messageBody = message.body;
+
+        assert_own_property(messageBody, "messageId", "MessageBody does not own messageId property.");
 
-        messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
+        service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
     });
 
     serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
+    getEmailService(t, serviceSuccess, serviceError);
 });
 
 </script>
index 075c16e85869a343cef733fca239bdb761862ef0..6c3b840357d3c55afa1626f2748082feb6df230e 100644 (file)
@@ -24,6 +24,7 @@ Authors:
 <title>MessageBody_email_plainBody_attribute</title>
 <meta charset="utf-8"/>
 <script type="text/javascript" src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
 <body>
@@ -31,23 +32,36 @@ Authors:
 <script>
 //==== TEST: MessageBody_email_plainBody_attribute
 //==== LABEL Check if attribute plainBody of MessageBody (email) exists, has type DOMString
+//==== ONLOAD_DELAY 300
+//==== TIMEOUT 300
 //==== SPEC Tizen Web API:Communication:Messaging:MessageBody:plainBody A
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA AE AT AN ASG
+setup({timeout: 300000});
 
-test(function () {
-    var message, messageBody;
+var t = async_test(document.title, {timeout: 300000}),
+    serviceSuccess, serviceError, message, messageBody;
 
-    message = new tizen.Message("messaging.email");
-    messageBody = message.body;
+t.step(function () {
+    serviceSuccess = t.step_func(function (service) {
+        message = new tizen.Message("messaging.email");
+        messageBody = message.body;
 
-    assert_own_property(messageBody, "plainBody", "MessageBody does not own plainBody property.");
-    check_attribute(messageBody, "plainBody", "", "string", "sampleValue");
+        assert_own_property(messageBody, "plainBody", "MessageBody does not own plainBody property.");
+        check_attribute(messageBody, "plainBody", "", "string", "sampleValue");
 
-    messageBody.plainBody = null;
-    assert_equals(messageBody.plainBody, "null", "Incorrect plainBody after null assignment");
+        messageBody.plainBody = null;
+        assert_equals(messageBody.plainBody, "null", "Incorrect plainBody after null assignment");
 
-}, document.title);
+        t.done();
+    });
+
+    serviceError = t.step_func(function (error) {
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
+    });
+
+    getEmailService(t, serviceSuccess, serviceError);
+});
 
 </script>
 </body>
index 3ad3e224daff104f29904407b05096f39eb9335f..1972ad82660b8841e70aae4aec74e449890717ab 100644 (file)
@@ -35,11 +35,12 @@ Authors:
 //==== PRIORITY: P2
 //==== SPEC Tizen Web API:Communication:Messaging:MessageStorage:addConversationsChangeListener M
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
-//==== ONLOAD_DELAY 90
+//==== ONLOAD_DELAY 300
+//==== TIMEOUT 300
 //==== TEST_CRITERIA MC
-setup({timeout: 90000});
+setup({timeout: 300000});
 
-var t = async_test(document.title, {timeout: 90000}), serviceSuccess, serviceError, messageService, messageStorage,
+var t = async_test(document.title, {timeout: 300000}), serviceSuccess, serviceError, messageService, messageStorage,
     incorrectChangeListener, exceptionName, i, conversionTable;
 t.step(function () {
 
index 4697e59c70fc3ad3a807192f7dc7c4e1cd2d3357..5f5bd4b35dc1b7b6ca08dd0d58e0bfe6af52adc9 100644 (file)
@@ -47,15 +47,29 @@ Authors:
 
 //==== TEST: Message_attachments_exist
 //==== LABEL Check if the attribute attachments in Message
+//==== ONLOAD_DELAY 300
+//==== TIMEOUT 300
 //==== SPEC Tizen Web API:Communication:Messaging:Message:attachments A
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA AE
+setup({timeout: 300000});
 
-test(function () {
-    var msg;
-    msg = new tizen.Message("messaging.email");
-    assert_true("attachments" in msg, "attachments attribute not found");
-}, document.title);
+var t = async_test(document.title, {timeout: 300000}),
+    serviceSuccess, serviceError, message;
+
+t.step(function () {
+    serviceSuccess = t.step_func(function (service) {
+        message = new tizen.Message("messaging.email");
+        assert_true("attachments" in message, "attachments attribute not found");
+        t.done();
+    });
+
+    serviceError = t.step_func(function (error) {
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
+    });
+
+    getEmailService(t, serviceSuccess, serviceError);
+});
 
 </script>
 </body>
index e9ec21c3ed9782371ac0d86638fc131e91bb47f2..43d925aaa6b32af1d9665ac8d9fbd68ef800b5aa 100644 (file)
@@ -34,25 +34,40 @@ Authors:
 
 //==== TEST: Message_email_bcc_attribute
 //==== LABEL Check if attribute bcc of Message (email) exists, has type Array
+//==== ONLOAD_DELAY 300
+//==== TIMEOUT 300
 //==== SPEC Tizen Web API:Communication:Messaging:Message:bcc A
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA AE AT AN ASG
+setup({timeout: 300000});
 
-test(function () {
-    var message = new tizen.Message("messaging.email");
+var t = async_test(document.title, {timeout: 300000}),
+    serviceSuccess, serviceError, message;
 
-    assert_true("bcc" in message, "No 'bcc' attribute in message");
-    assert_type(message.bcc, "array", "'bcc' should be an array");
-    assert_array_equals(message.bcc, [], "'bcc' should be [] by default");
+t.step(function () {
+    serviceSuccess = t.step_func(function (service) {
+        message = new tizen.Message("messaging.email");
 
-    message.bcc = null;
-    assert_array_equals(message.bcc, [], "'bcc' should not accept null as value");
+        assert_true("bcc" in message, "No 'bcc' attribute in message");
+        assert_type(message.bcc, "array", "'bcc' should be an array");
+        assert_array_equals(message.bcc, [], "'bcc' should be [] by default");
 
-    message.bcc = [TEST_EMAIL_RECIPIENT_1];
-    assert_array_equals(message.bcc, [TEST_EMAIL_RECIPIENT_1], "'bcc' should accept a valid value");
+        message.bcc = null;
+        assert_array_equals(message.bcc, [], "'bcc' should not accept null as value");
 
-    check_invalid_array_assignments(message, "bcc", false);
-}, document.title);
+        message.bcc = [TEST_EMAIL_RECIPIENT_1];
+        assert_array_equals(message.bcc, [TEST_EMAIL_RECIPIENT_1], "'bcc' should accept a valid value");
+
+        check_invalid_array_assignments(message, "bcc", false);
+        t.done();
+    });
+
+    serviceError = t.step_func(function (error) {
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
+    });
+
+    getEmailService(t, serviceSuccess, serviceError);
+});
 
 </script>
 </body>
index 21100c44da3319c5c820bab041b9dbfcd6545882..8cb60d42caa73a77b2cd337ef8a1c6990389c12e 100644 (file)
@@ -33,25 +33,41 @@ Authors:
 <script type="text/javascript">
 //==== TEST: Message_email_cc_attribute
 //==== LABEL Check if attribute cc of Message (email) exists, has type Array
+//==== ONLOAD_DELAY 300
+//==== TIMEOUT 300
 //==== SPEC Tizen Web API:Communication:Messaging:Message:cc A
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA AE AT AN ASG
+setup({timeout: 300000});
 
-test(function () {
-    var message = new tizen.Message("messaging.email");
+var t = async_test(document.title, {timeout: 300000}),
+    serviceSuccess, serviceError, message;
 
-    assert_true("cc" in message, "No 'cc' attribute in message");
-    assert_type(message.cc, "array", "'cc' should be an array");
-    assert_array_equals(message.cc, [], "'cc' should be [] by default");
+t.step(function () {
+    serviceSuccess = t.step_func(function (service) {
+        message = new tizen.Message("messaging.email");
 
-    message.cc = null;
-    assert_array_equals(message.cc, [], "'cc' should not accept null as value");
+        assert_true("cc" in message, "No 'cc' attribute in message");
+        assert_type(message.cc, "array", "'cc' should be an array");
+        assert_array_equals(message.cc, [], "'cc' should be [] by default");
 
-    message.cc = [TEST_EMAIL_RECIPIENT_1];
-    assert_array_equals(message.cc, [TEST_EMAIL_RECIPIENT_1], "'cc' should accept a valid value");
+        message.cc = null;
+        assert_array_equals(message.cc, [], "'cc' should not accept null as value");
 
-    check_invalid_array_assignments(message, "cc", false);
-}, document.title);
+        message.cc = [TEST_EMAIL_RECIPIENT_1];
+        assert_array_equals(message.cc, [TEST_EMAIL_RECIPIENT_1], "'cc' should accept a valid value");
+
+        check_invalid_array_assignments(message, "cc", false);
+
+        t.done();
+    });
+
+    serviceError = t.step_func(function (error) {
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
+    });
+
+    getEmailService(t, serviceSuccess, serviceError);
+});
 
 </script>
 </body>
index fc997a905dea256d6bc30f5ef94ef85373126b85..60e0ddb3924a690cac5fb39db4e98913feb934b8 100644 (file)
@@ -35,37 +35,53 @@ Authors:
 
 //==== TEST: Message_email_constructor_minargs
 //==== LABEL Check if Message's constructor works properly with minimum arguments (email)
+//==== ONLOAD_DELAY 300
+//==== TIMEOUT 300
 //==== SPEC Tizen Web API:Communication:Messaging:Message:constructor C
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA CONSTRM CONSTRA
+setup({timeout: 300000});
 
-test(function () {
-    var message = new tizen.Message("messaging.email");
-
-    assert_true(message instanceof tizen.Message, "InstanceOf.");
-
-    assert_array_equals(message.attachments, [], "'attachments' should be [] by default");
-    assert_array_equals(message.bcc, [], "'bcc' should be [] by default");
-    assert_equals(message.body.messageId, message.id, "body.messageId should be equal to message.id");
-    assert_equals(message.body.loaded, false, "'body.loaded' should be false by default");
-    assert_equals(message.body.plainBody, "", "'body.plainBody' should be \"\" by default");
-    assert_equals(message.body.htmlBody, "", "'body.htmlBody' should be \"\" by default");
-    assert_array_equals(message.body.inlineAttachments, [], "'body.inlineAttachments' should be [] by default");
-    assert_array_equals(message.cc, [], "'cc' should be [] by default");
-    assert_equals(message.conversationId, null, "message.conversationId default value should be null");
-    assert_equals(message.folderId, null, "message.folderId default value should be null");
-    assert_equals(message.from, null, "'from' should be null");
-    assert_equals(message.hasAttachment, false, "'hasAttachment' should be false by default");
-    assert_equals(message.id, null, "message.id should be null before processing by the platform");
-    assert_equals(message.inResponseTo, null, "'inResponseTo' should be null by default");
-    assert_equals(message.isHighPriority, false, "'isHighPriority' default value should be false");
-    assert_equals(message.isRead, false, "'isRead' default value should be false");
-    assert_equals(message.messageStatus, "", "Default value should be \"\"");
-    assert_equals(message.subject, "", "'subject' default value should be \"\" by default");
-    assert_equals(message.timestamp, null, "Timestamp should be null for messages not sent nor received");
-    assert_array_equals(message.to, [], "'to' should be [] by default");
-    assert_equals(message.type, "messaging.email", "'type' should be 'messaging.email'");
-}, document.title);
+var t = async_test(document.title, {timeout: 300000}),
+    serviceSuccess, serviceError, message;
+
+t.step(function () {
+    serviceSuccess = t.step_func(function (service) {
+        message = new tizen.Message("messaging.email");
+
+        assert_true(message instanceof tizen.Message, "InstanceOf.");
+
+        assert_array_equals(message.attachments, [], "'attachments' should be [] by default");
+        assert_array_equals(message.bcc, [], "'bcc' should be [] by default");
+        assert_equals(message.body.messageId, message.id, "body.messageId should be equal to message.id");
+        assert_equals(message.body.loaded, false, "'body.loaded' should be false by default");
+        assert_equals(message.body.plainBody, "", "'body.plainBody' should be \"\" by default");
+        assert_equals(message.body.htmlBody, "", "'body.htmlBody' should be \"\" by default");
+        assert_array_equals(message.body.inlineAttachments, [], "'body.inlineAttachments' should be [] by default");
+        assert_array_equals(message.cc, [], "'cc' should be [] by default");
+        assert_equals(message.conversationId, null, "message.conversationId default value should be null");
+        assert_equals(message.folderId, null, "message.folderId default value should be null");
+        assert_equals(message.from, null, "'from' should be null");
+        assert_equals(message.hasAttachment, false, "'hasAttachment' should be false by default");
+        assert_equals(message.id, null, "message.id should be null before processing by the platform");
+        assert_equals(message.inResponseTo, null, "'inResponseTo' should be null by default");
+        assert_equals(message.isHighPriority, false, "'isHighPriority' default value should be false");
+        assert_equals(message.isRead, false, "'isRead' default value should be false");
+        assert_equals(message.messageStatus, "", "Default value should be \"\"");
+        assert_equals(message.subject, "", "'subject' default value should be \"\" by default");
+        assert_equals(message.timestamp, null, "Timestamp should be null for messages not sent nor received");
+        assert_array_equals(message.to, [], "'to' should be [] by default");
+        assert_equals(message.type, "messaging.email", "'type' should be 'messaging.email'");
+
+        t.done();
+    });
+
+    serviceError = t.step_func(function (error) {
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
+    });
+
+    getEmailService(t, serviceSuccess, serviceError);
+});
 
 </script>
 </body>
index 6a6baa626bcf13bc241857c7b1d7608b30a4936a..7b663e9e9a2b74cad97129a57677a675b2ab8238 100644 (file)
@@ -44,13 +44,6 @@ var t = async_test(document.title, {timeout: 300000}), message,
     serviceSuccess, serviceError, addDraftSuccess, addDraftError;
 
 t.step(function () {
-
-    message = new tizen.Message("messaging.email");
-
-    assert_true("conversationId" in message, "No 'conversationId' attribute in message");
-    assert_equals(message.conversationId, null, "message.conversationId default value should be null");
-    check_readonly(message, "conversationId", null, "object", "12345");
-
     addDraftSuccess = t.step_func(function () {
         assert_type(message.conversationId, "string", "ConversationId is not a string");
         assert_not_equals(message.conversationId, "", "ConversationId is empty");
@@ -63,6 +56,12 @@ t.step(function () {
     });
 
     serviceSuccess = t.step_func(function (service) {
+        message = new tizen.Message("messaging.email");
+
+        assert_true("conversationId" in message, "No 'conversationId' attribute in message");
+        assert_equals(message.conversationId, null, "message.conversationId default value should be null");
+        check_readonly(message, "conversationId", null, "object", "12345");
+
         message.subject = generateSubject();
         message.to = [TEST_EMAIL_RECIPIENT_2];
         message.plainBody = MESSAGE_BODY_PLAIN;
index e8113016b3d480d6984948e90a9b81c14448782c..0c1d12c7ecc6e2cf87948742a8e5627c372a4847 100644 (file)
@@ -24,6 +24,7 @@ Authors:
 <title>Message_email_extend</title>
 <meta charset="utf-8"/>
 <script type="text/javascript" src="support/unitcommon.js"></script>
+<script type="text/javascript" src="support/messaging_common.js"></script>
 </head>
 
 <body>
@@ -32,16 +33,31 @@ Authors:
 //==== TEST: Message_email_extend
 //==== PRIORITY P3
 //==== LABEL Check if instance of interface Message (email) can be extended with new property
+//==== ONLOAD_DELAY 300
+//==== TIMEOUT 300
 //==== SPEC Tizen Web API:Communication:Messaging:Message:Message U
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA OBX
+setup({timeout: 300000});
 
-test(function () {
-    var message = new tizen.Message("messaging.email");
+var t = async_test(document.title, {timeout: 300000}),
+    serviceSuccess, serviceError, message;
 
-    check_extensibility(message);
-}, document.title);
+t.step(function () {
+    serviceSuccess = t.step_func(function (service) {
+        message = new tizen.Message("messaging.email");
 
+        check_extensibility(message);
+
+        t.done();
+    });
+
+    serviceError = t.step_func(function (error) {
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
+    });
+
+    getEmailService(t, serviceSuccess, serviceError);
+});
 </script>
 </body>
 </html>
index 244c1c6684cfc71ff770e83abf6b60314341baab..32adfded244e016bd6fbd97f448b4710b220fef6 100644 (file)
@@ -45,12 +45,6 @@ var t = async_test(document.title, {timeout: 300000}), message,
     serviceError, serviceSuccess, messageService, addDraftError, addDraftSuccess;
 
 t.step(function () {
-
-    message = new tizen.Message("messaging.email");
-
-    assert_true("folderId" in message, "No 'folderId' attribute in message");
-    check_readonly(message, "folderId", null, "object", "12345");
-
     addDraftSuccess = t.step_func(function () {
         assert_type(message.folderId, "string", "folderId is not a string");
         assert_not_equals(message.folderId, "", "folderId is empty");
@@ -64,22 +58,22 @@ t.step(function () {
         assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
+    serviceSuccess = t.step_func(function (service) {
+        messageService = service;
+
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
 
-        message.subject = generateSubject();
-        message.to = [TEST_EMAIL_RECIPIENT_2];
-        message.plainBody = MESSAGE_BODY_PLAIN;
+        assert_true("folderId" in message, "No 'folderId' attribute in message");
+        check_readonly(message, "folderId", null, "object", "12345");
 
         messageService.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
     });
 
     serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
+    getEmailService(t, serviceSuccess, serviceError);
 });
 
 </script>
index d7d4fdb10d1968b5374f0349a22654644d145c3a..9563eb2e6172c893d38844ae7085f9bf12225b12 100644 (file)
@@ -47,13 +47,6 @@ var t = async_test(document.title, {timeout: 300000}),
     findMessageError, findMessageSuccess, foundMessage, inboxFolder;
 
 t.step(function () {
-
-    message = new tizen.Message("messaging.email");
-
-    assert_true("from" in message, "No 'from' attribute in message");
-    assert_equals(message.from, null, "'from' should be null by default");
-    check_readonly(message, "from", null, "object", message.from + "dummyValue");
-
     findMessageSuccess = t.step_func(function (messages) {
         if (messages.length > 0) {
             assert_inbox_message_equals(t, messages, message, inboxFolder);
@@ -101,9 +94,11 @@ t.step(function () {
     serviceSuccess = t.step_func(function (emailService) {
         service = emailService;
 
-        message.subject = generateSubject();
-        message.to = [TEST_EMAIL_RECIPIENT_1];
-        message.plainBody = MESSAGE_BODY_PLAIN;
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_1);
+
+        assert_true("from" in message, "No 'from' attribute in message");
+        assert_equals(message.from, null, "'from' should be null by default");
+        check_readonly(message, "from", null, "object", message.from + "dummyValue");
 
         sendMessage(t, service, message, sendSuccess, sendError);
     });
index 3014b140c493cec0d06be9f812b255109f96eb56..d1d3aaffbd8d46171ad44d0f2c68d62fff9a0288 100644 (file)
@@ -34,17 +34,33 @@ Authors:
 
 //==== TEST: Message_email_hasAttachment_attribute
 //==== LABEL Check if attribute hasAttachment of Message (email) exists, has type Boolean and is readonly
+//==== ONLOAD_DELAY 300
+//==== TIMEOUT 300
 //==== SPEC Tizen Web API:Communication:Messaging:Message:hasAttachment A
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA AE AT ARO
+setup({timeout: 300000});
 
-test(function () {
-    var message = new tizen.Message("messaging.email");
+var t = async_test(document.title, {timeout: 300000}),
+    serviceSuccess, serviceError, message;
 
-    assert_true("hasAttachment" in message, "No 'hasAttachment' attribute in message");
-    assert_equals(message.hasAttachment, false, "'hasAttachment' should be false by default");
-    check_readonly(message, "hasAttachment", message.hasAttachment, "boolean", !message.hasAttachment);
-}, document.title);
+t.step(function () {
+    serviceSuccess = t.step_func(function (service) {
+        message = new tizen.Message("messaging.email");
+
+        assert_true("hasAttachment" in message, "No 'hasAttachment' attribute in message");
+        assert_equals(message.hasAttachment, false, "'hasAttachment' should be false by default");
+        check_readonly(message, "hasAttachment", message.hasAttachment, "boolean", !message.hasAttachment);
+
+        t.done();
+    });
+
+    serviceError = t.step_func(function (error) {
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
+    });
+
+    getEmailService(t, serviceSuccess, serviceError);
+});
 
 </script>
 </body>
index e70b2a1a683088d610f6e893d135bce907b1f29e..6d13a4f87af77852d85a84a3623ae094bf212dcf 100644 (file)
@@ -41,21 +41,13 @@ Authors:
 //==== TEST_CRITERIA AE ADV ARO AT
 setup({timeout: 300000});
 
-var t = async_test(document.title, {timeout: 300000}), message, service,
-    serviceError, serviceSuccess, addDraftSuccess, addDraftError;
+var t = async_test(document.title, {timeout: 300000}),
+    message, serviceError, serviceSuccess, addDraftSuccess, addDraftError;
 
 t.step(function () {
-
-    message = new tizen.Message("messaging.email");
-
-    assert_own_property(message, "id", "No 'id' attribute in message");
-    assert_equals(message.id, null, "message.id should be null before processing by the platform");
-    check_readonly(message, "id", null, "object", "12345");
-
     addDraftSuccess = t.step_func(function () {
         assert_type(message.id, "string", "Id is not a string");
         assert_not_equals(message.id, "", "Id is empty");
-
         check_readonly(message, "id", message.id, "string", "54321");
 
         t.done();
@@ -65,12 +57,12 @@ t.step(function () {
         assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-    serviceSuccess = t.step_func(function (emailService) {
-        service = emailService;
+    serviceSuccess = t.step_func(function (service) {
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
 
-        message.subject = generateSubject();
-        message.to = [TEST_EMAIL_RECIPIENT_2];
-        message.plainBody = MESSAGE_BODY_PLAIN;
+        assert_own_property(message, "id", "No 'id' attribute in message");
+        assert_equals(message.id, null, "message.id should be null before processing by the platform");
+        check_readonly(message, "id", null, "object", "12345");
 
         service.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
     });
index 253899516ef78860b054863c46fa355f7a2d3225..15c970617359b233a3bec9746380b33ec30607cf 100644 (file)
@@ -34,19 +34,34 @@ Authors:
 
 //==== TEST: Message_email_inResponseTo_attribute
 //==== LABEL Check if attribute inResponseTo of Message (email) exists, has type MessageId
+//==== ONLOAD_DELAY 300
+//==== TIMEOUT 300
 //==== SPEC Tizen Web API:Communication:Messaging:Message:inResponseTo A
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA AE ADV ARO
+setup({timeout: 300000});
 
-test(function () {
-    var message = new tizen.Message("messaging.email");
+var t = async_test(document.title, {timeout: 300000}),
+    serviceSuccess, serviceError, message;
 
-    assert_true("inResponseTo" in message, "No 'inResponseTo' attribute in message");
-    assert_equals(message.inResponseTo, null, "'inResponseTo' should be null by default");
+t.step(function () {
+    serviceSuccess = t.step_func(function (service) {
+        message = new tizen.Message("messaging.email");
 
-    check_readonly(message, "inResponseTo", message.inResponseTo, "string", message.inResponseTo + "dummyValue");
+        assert_true("inResponseTo" in message, "No 'inResponseTo' attribute in message");
+        assert_equals(message.inResponseTo, null, "'inResponseTo' should be null by default");
 
-}, document.title);
+        check_readonly(message, "inResponseTo", message.inResponseTo, "string", message.inResponseTo + "dummyValue");
+
+        t.done();
+    });
+
+    serviceError = t.step_func(function (error) {
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
+    });
+
+    getEmailService(t, serviceSuccess, serviceError);
+});
 
 </script>
 </body>
index 308e51fb988723e60ccb2641402faf8dafd31776..82f73d169ce6f7245d7f1dd18ff8479e92bad5bf 100644 (file)
@@ -34,24 +34,40 @@ Authors:
 
 //==== TEST: Message_email_isHighPriority_attribute
 //==== LABEL Check if attribute isHighPriority of Message (email) exists, has type Boolean
+//==== ONLOAD_DELAY 300
+//==== TIMEOUT 300
 //==== SPEC Tizen Web API:Communication:Messaging:Message:isHighPriority A
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA AE AT ASG AN
+setup({timeout: 300000});
 
-test(function () {
-    var message = new tizen.Message("messaging.email");
+var t = async_test(document.title, {timeout: 300000}),
+    serviceSuccess, serviceError, message;
 
-    assert_true("isHighPriority" in message, "No 'isHighPriority' attribute in message");
+t.step(function () {
+    serviceSuccess = t.step_func(function (service) {
+        message = new tizen.Message("messaging.email");
 
-    assert_type(message.isHighPriority, "boolean", "'isHighPriority' type should be boolean");
-    assert_equals(message.isHighPriority, false, "'isHighPriority' default value should be false");
+        assert_true("isHighPriority" in message, "No 'isHighPriority' attribute in message");
 
-    message.isHighPriority = true;
-    assert_equals(message.isHighPriority, true, "'isHighPriority' should accept a valid value");
+        assert_type(message.isHighPriority, "boolean", "'isHighPriority' type should be boolean");
+        assert_equals(message.isHighPriority, false, "'isHighPriority' default value should be false");
 
-    message.isHighPriority = null;
-    assert_equals(message.isHighPriority, false, "null should be converted to false");
-}, document.title);
+        message.isHighPriority = true;
+        assert_equals(message.isHighPriority, true, "'isHighPriority' should accept a valid value");
+
+        message.isHighPriority = null;
+        assert_equals(message.isHighPriority, false, "null should be converted to false");
+
+        t.done();
+    });
+
+    serviceError = t.step_func(function (error) {
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
+    });
+
+    getEmailService(t, serviceSuccess, serviceError);
+});
 
 </script>
 </body>
index 9b0a9e520ef4c5801c0e66ac01ae7a6db036c287..65107c49e9f30d15bff4c5104af9d352c68e7b6f 100644 (file)
@@ -34,23 +34,39 @@ Authors:
 
 //==== TEST: Message_email_isRead_attribute
 //==== LABEL Check if attribute isRead of Message (email) exists, has type Boolean
+//==== ONLOAD_DELAY 300
+//==== TIMEOUT 300
 //==== SPEC Tizen Web API:Communication:Messaging:Message:isRead A
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA AE AT ASG AN
+setup({timeout: 300000});
 
-test(function () {
-    var message = new tizen.Message("messaging.email");
+var t = async_test(document.title, {timeout: 300000}),
+    serviceSuccess, serviceError, message;
 
-    assert_true("isRead" in message, "No 'isRead' attribute in message");
-    assert_type(message.isRead, "boolean", "'isRead' type should be boolean");
-    assert_equals(message.isRead, false, "'isRead' default value should be false");
+t.step(function () {
+    serviceSuccess = t.step_func(function (service) {
+        message = new tizen.Message("messaging.email");
 
-    message.isRead = true;
-    assert_equals(message.isRead, true, "'isRead' should accept a valid value");
+        assert_true("isRead" in message, "No 'isRead' attribute in message");
+        assert_type(message.isRead, "boolean", "'isRead' type should be boolean");
+        assert_equals(message.isRead, false, "'isRead' default value should be false");
 
-    message.isRead = null;
-    assert_equals(message.isRead, false, "null should be converted to false");
-}, document.title);
+        message.isRead = true;
+        assert_equals(message.isRead, true, "'isRead' should accept a valid value");
+
+        message.isRead = null;
+        assert_equals(message.isRead, false, "null should be converted to false");
+
+        t.done();
+    });
+
+    serviceError = t.step_func(function (error) {
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
+    });
+
+    getEmailService(t, serviceSuccess, serviceError);
+});
 
 </script>
 </body>
index 2eb2caa993a938411fc5ce4c36f949632783dff3..73d30a3470fcdbb852b85eb793cbc353943f4052 100644 (file)
@@ -34,17 +34,33 @@ Authors:
 
 //==== TEST: Message_email_messageStatus_attribute
 //==== LABEL Check if attribute messageStatus of Message (email) exists, has type DOMString and is readonly
+//==== ONLOAD_DELAY 300
+//==== TIMEOUT 300
 //==== SPEC Tizen Web API:Communication:Messaging:Message:messageStatus A
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA AE ARO ADV AT
+setup({timeout: 300000});
 
-test(function () {
-    var message = new tizen.Message("messaging.email");
+var t = async_test(document.title, {timeout: 300000}),
+    serviceSuccess, serviceError, message;
 
-    assert_true("messageStatus" in message, "No 'messageStatus' attribute in message");
-    check_readonly(message, "messageStatus", message.messageStatus, "string", message.messageStatus + "dummyValue");
-    assert_equals(message.messageStatus, "", "Default value should be \"\"");
-}, document.title);
+t.step(function () {
+    serviceSuccess = t.step_func(function (service) {
+        message = new tizen.Message("messaging.email");
+
+        assert_true("messageStatus" in message, "No 'messageStatus' attribute in message");
+        check_readonly(message, "messageStatus", message.messageStatus, "string", message.messageStatus + "dummyValue");
+        assert_equals(message.messageStatus, "", "Default value should be \"\"");
+
+        t.done();
+    });
+
+    serviceError = t.step_func(function (error) {
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
+    });
+
+    getEmailService(t, serviceSuccess, serviceError);
+});
 
 </script>
 </body>
index a0edad8ae896f57528a37ceaed20f70a2d2e6a63..81463efd6ec303529683d0dc524d13d503809fb6 100644 (file)
@@ -34,23 +34,39 @@ Authors:
 
 //==== TEST: Message_email_subject_attribute
 //==== LABEL Check if attribute subject of Message (email) exists, has type DOMString
+//==== ONLOAD_DELAY 300
+//==== TIMEOUT 300
 //==== SPEC Tizen Web API:Communication:Messaging:Message:subject A
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA AE AT ASG AN
+setup({timeout: 300000});
 
-test(function () {
-    var message = new tizen.Message("messaging.email");
+var t = async_test(document.title, {timeout: 300000}),
+    serviceSuccess, serviceError, message;
 
-    assert_true("subject" in message, "No 'subject' attribute in message");
-    assert_type(message.subject, "string", "'subject' type should be string");
-    assert_equals(message.subject, "", "'subject' default value should be \"\"");
+t.step(function () {
+    serviceSuccess = t.step_func(function (service) {
+        message = new tizen.Message("messaging.email");
 
-    message.subject = null;
-    assert_equals(message.subject, "null", "null should be converted to string 'null'");
+        assert_true("subject" in message, "No 'subject' attribute in message");
+        assert_type(message.subject, "string", "'subject' type should be string");
+        assert_equals(message.subject, "", "'subject' default value should be \"\"");
 
-    message.subject = "sampleValue";
-    assert_equals(message.subject, "sampleValue", "'subject' should accept a valid value");
-}, document.title);
+        message.subject = null;
+        assert_equals(message.subject, "null", "null should be converted to string 'null'");
+
+        message.subject = "sampleValue";
+        assert_equals(message.subject, "sampleValue", "'subject' should accept a valid value");
+
+        t.done();
+    });
+
+    serviceError = t.step_func(function (error) {
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
+    });
+
+    getEmailService(t, serviceSuccess, serviceError);
+});
 
 </script>
 </body>
index cf0067ae6ba6b593b7a2a75c27849986710c31a3..94a205c5d7f19a988bd69d00249592f162c78f92 100644 (file)
@@ -45,12 +45,6 @@ var t = async_test(document.title, {timeout: 300000}), message, serviceError,
     serviceSuccess, messageService, addDraftError, addDraftSuccess, oldDate;
 
 t.step(function () {
-    message = new tizen.Message("messaging.email");
-
-    assert_true("timestamp" in message, "No 'timestamp' attribute in message");
-    assert_equals(message.timestamp, null, "Timestamp should be null for messages not sent nor received");
-    check_readonly(message, "timestamp", null, "object", new Date());
-
     addDraftSuccess = t.step_func(function () {
         assert_type(message.timestamp, "date", "timestamp is not a Date");
 
@@ -65,22 +59,23 @@ t.step(function () {
         assert_unreached("addDraftMessage() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-    serviceSuccess = t.step_func(function (services) {
-        assert_greater_than(services.length, 0, "Received empty services array");
-        messageService = services[0];
+    serviceSuccess = t.step_func(function (service) {
+        messageService = service;
+
+        message = createSimpleMessageTo(TEST_EMAIL_RECIPIENT_2);
 
-        message.subject = generateSubject();
-        message.to = [TEST_EMAIL_RECIPIENT_2];
-        message.plainBody = MESSAGE_BODY_PLAIN;
+        assert_true("timestamp" in message, "No 'timestamp' attribute in message");
+        assert_equals(message.timestamp, null, "Timestamp should be null for messages not sent nor received");
+        check_readonly(message, "timestamp", null, "object", new Date());
 
         messageService.messageStorage.addDraftMessage(message, addDraftSuccess, addDraftError);
     });
 
     serviceError = t.step_func(function (error) {
-        assert_unreached("getMessageServices() error callback: name:" + error.name + ", msg:" + error.message);
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
     });
 
-    tizen.messaging.getMessageServices("messaging.email", serviceSuccess, serviceError);
+    getEmailService(t, serviceSuccess, serviceError);
 });
 
 </script>
index 4de32d744cd5a6a366ffeed282eb13ab4c7f7706..c52a98574fd10b3a6c3056dd25d1ae99584cdaf7 100644 (file)
@@ -34,29 +34,45 @@ Authors:
 
 //==== TEST: Message_email_to_attribute
 //==== LABEL Check if attribute to of Message (email) exists, has type Array
+//==== ONLOAD_DELAY 300
+//==== TIMEOUT 300
 //==== SPEC Tizen Web API:Communication:Messaging:Message:to A
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA AE AT ASG AN
+setup({timeout: 300000});
 
-test(function () {
-    var message = new tizen.Message("messaging.email");
+var t = async_test(document.title, {timeout: 300000}),
+    serviceSuccess, serviceError, message;
 
-    assert_true("to" in message, "No 'to' attribute in message");
-    assert_type(message.to, "array", "'to' should be an array");
-    assert_array_equals(message.to, [], "'to' should be [] by default");
+t.step(function () {
+    serviceSuccess = t.step_func(function (service) {
+        message = new tizen.Message("messaging.email");
 
-    message.to = null;
-    assert_array_equals(message.to, [], "'to' should not accept null as value");
+        assert_true("to" in message, "No 'to' attribute in message");
+        assert_type(message.to, "array", "'to' should be an array");
+        assert_array_equals(message.to, [], "'to' should be [] by default");
 
-    message.to = [TEST_EMAIL_RECIPIENT_1];
-    assert_type(message.to, "array", "'to' should be an array");
-    assert_array_equals(message.to, [TEST_EMAIL_RECIPIENT_1], "'to' should accept a valid value");
+        message.to = null;
+        assert_array_equals(message.to, [], "'to' should not accept null as value");
 
-    message.to = null;
-    assert_array_equals(message.to, [TEST_EMAIL_RECIPIENT_1], "'to' should not accept null as value");
+        message.to = [TEST_EMAIL_RECIPIENT_1];
+        assert_type(message.to, "array", "'to' should be an array");
+        assert_array_equals(message.to, [TEST_EMAIL_RECIPIENT_1], "'to' should accept a valid value");
 
-    check_invalid_array_assignments(message, "to", false);
-}, document.title);
+        message.to = null;
+        assert_array_equals(message.to, [TEST_EMAIL_RECIPIENT_1], "'to' should not accept null as value");
+
+        check_invalid_array_assignments(message, "to", false);
+
+        t.done();
+    });
+
+    serviceError = t.step_func(function (error) {
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
+    });
+
+    getEmailService(t, serviceSuccess, serviceError);
+});
 
 </script>
 </body>
index 7ed53927ab798e43aaa43508fac8884979cf1b20..44b76558e33cd27e57fe367518177d7ca588e80b 100644 (file)
@@ -34,17 +34,33 @@ Authors:
 
 //==== TEST: Message_email_type_attribute
 //==== LABEL Check if attribute type of Message (email) exists, has type MessageServiceTag and is readonly
+//==== ONLOAD_DELAY 300
+//==== TIMEOUT 300
 //==== SPEC Tizen Web API:Communication:Messaging:Message:type A
 //==== SPEC_URL https://developer.tizen.org/help/topic/org.tizen.web.device.apireference/tizen/messaging.html
 //==== TEST_CRITERIA AE AT ARO
+setup({timeout: 300000});
 
-test(function () {
-    var message = new tizen.Message("messaging.email");
+var t = async_test(document.title, {timeout: 300000}),
+    serviceSuccess, serviceError, message;
 
-    assert_true("type" in message, "No 'type' attribute in message");
-    assert_equals(message.type, "messaging.email", "'type' should be 'messaging.email'");
-    check_readonly(message, "type", message.type, "string", message.type + "dummyValue");
-}, document.title);
+t.step(function () {
+    serviceSuccess = t.step_func(function (service) {
+        message = new tizen.Message("messaging.email");
+
+        assert_true("type" in message, "No 'type' attribute in message");
+        assert_equals(message.type, "messaging.email", "'type' should be 'messaging.email'");
+        check_readonly(message, "type", message.type, "string", message.type + "dummyValue");
+
+        t.done();
+    });
+
+    serviceError = t.step_func(function (error) {
+        assert_unreached("getEmailService() error callback: name:" + error.name + ", msg:" + error.message);
+    });
+
+    getEmailService(t, serviceSuccess, serviceError);
+});
 
 </script>
 </body>
index 3a42120799c32130527ef3b8a2cb21e446ed7b89..7d492af908d1c5353c6a110a22f762e71d44bd09 100644 (file)
@@ -50,7 +50,8 @@ Authors:
 //==== TEST_CRITERIA AE
 setup({timeout: 300000});
 
-var t = async_test(document.title, {timeout: 300000}), serviceSuccess, serviceError, msg;
+var t = async_test(document.title, {timeout: 300000}),
+    serviceSuccess, serviceError, message;
 
 t.step(function () {
     serviceError = t.step_func(function (error) {
@@ -58,8 +59,8 @@ t.step(function () {
     });
 
     serviceSuccess = t.step_func(function (services) {
-        msg = new tizen.Message("messaging.email");
-        assert_true("hasAttachment" in msg, "hasAttachment attribute not found");
+        message = new tizen.Message("messaging.email");
+        assert_true("hasAttachment" in message, "hasAttachment attribute not found");
         t.done();
     });
 
index c701fbe184ce11c3958d0aaaa66d09ceaa79ec3f..8320ff96ee7e60d1881a705106c430be216609d7 100644 (file)
@@ -24,10 +24,6 @@ Authors:
 var TEST_EMAIL_RECIPIENT_1 = ""; // this variable MUST be set before executing tests
 var TEST_EMAIL_RECIPIENT_2 = ""; // this variable MUST be set before executing tests
 
-// change TEST_EMAIL_RECIPIENT_1 and TEST_EMAIL_RECIPIENT_2
-document.write('<script src="../testkit/web/jquery-1.10.2.min.js"></script>');
-document.write('<script src="support/getJsonConf.js"></script>');
-
 var EMAIL_SYNC_INTERVAL = 30000;
 var EMAIL_RESEND_LIMIT = 30;
 var EMAIL_RESYNC_LIMIT = 30;
@@ -246,3 +242,7 @@ function assert_inbox_message_equals(t, messages, message, folder) {
         assert_equals(messages[0].folderId, folder.id, "Incorrect folderId.");
     });
 }
+
+// change TEST_EMAIL_RECIPIENT_1 and TEST_EMAIL_RECIPIENT_2
+document.write('<script src="../testkit/web/jquery-1.10.2.min.js"></script>');
+document.write('<script src="support/getJsonConf.js"></script>');
index 4a76baf2f70eef8f923f10eaa0dd156703b63661..a357161e4a6a954d248120a7948892cb8d9634fe 100644 (file)
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if instance of interface MessageBody (email) can be extended with new property" type="compliance" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_email_extend">
+      <testcase purpose="Check if instance of interface MessageBody (email) can be extended with new property" type="compliance" onload_delay="300" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P3" id="MessageBody_email_extend">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_extend.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_extend.html</test_script_entry>
         </description>
         <specs>
           <spec>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if attribute htmlBody of MessageBody (email) exists, has type DOMString" type="compliance" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_htmlBody_attribute">
+      <testcase purpose="Check if attribute htmlBody of MessageBody (email) exists, has type DOMString" type="compliance" onload_delay="300" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_htmlBody_attribute">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_htmlBody_attribute.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_htmlBody_attribute.html</test_script_entry>
         </description>
         <specs>
           <spec>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if attribute loaded of MessageBody (email) exists, has type Boolean and is readonly" type="compliance" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_loaded_attribute">
+      <testcase purpose="Check if attribute loaded of MessageBody (email) exists, has type Boolean and is readonly" type="compliance" onload_delay="300" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_loaded_attribute">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_loaded_attribute.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_loaded_attribute.html</test_script_entry>
         </description>
         <specs>
           <spec>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if attribute plainBody of MessageBody (email) exists, has type DOMString" type="compliance" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_plainBody_attribute">
+      <testcase purpose="Check if attribute plainBody of MessageBody (email) exists, has type DOMString" type="compliance" onload_delay="300" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="MessageBody_email_plainBody_attribute">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_plainBody_attribute.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_plainBody_attribute.html</test_script_entry>
         </description>
         <specs>
           <spec>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if the attribute attachments in Message" type="compliance" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_attachments_exist">
+      <testcase purpose="Check if the attribute attachments in Message" type="compliance" onload_delay="300" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_attachments_exist">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_attachments_exist.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_attachments_exist.html</test_script_entry>
         </description>
         <specs>
           <spec>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if attribute bcc of Message (email) exists, has type Array" type="compliance" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_bcc_attribute">
+      <testcase purpose="Check if attribute bcc of Message (email) exists, has type Array" type="compliance" onload_delay="300" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_bcc_attribute">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_bcc_attribute.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_bcc_attribute.html</test_script_entry>
         </description>
         <specs>
           <spec>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if attribute cc of Message (email) exists, has type Array" type="compliance" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_cc_attribute">
+      <testcase purpose="Check if attribute cc of Message (email) exists, has type Array" type="compliance" onload_delay="300" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_cc_attribute">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_cc_attribute.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_cc_attribute.html</test_script_entry>
         </description>
         <specs>
           <spec>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if Message's constructor works properly with minimum arguments (email)" type="compliance" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor_minargs">
+      <testcase purpose="Check if Message's constructor works properly with minimum arguments (email)" type="compliance" onload_delay="300" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_constructor_minargs">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_minargs.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_minargs.html</test_script_entry>
         </description>
         <specs>
           <spec>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if instance of interface Message (email) can be extended with new property" type="compliance" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P3" id="Message_email_extend">
+      <testcase purpose="Check if instance of interface Message (email) can be extended with new property" type="compliance" onload_delay="300" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P3" id="Message_email_extend">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_extend.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_extend.html</test_script_entry>
         </description>
         <specs>
           <spec>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if attribute hasAttachment of Message (email) exists, has type Boolean and is readonly" type="compliance" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_hasAttachment_attribute">
+      <testcase purpose="Check if attribute hasAttachment of Message (email) exists, has type Boolean and is readonly" type="compliance" onload_delay="300" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_hasAttachment_attribute">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_hasAttachment_attribute.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_hasAttachment_attribute.html</test_script_entry>
         </description>
         <specs>
           <spec>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if attribute inResponseTo of Message (email) exists, has type MessageId" type="compliance" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_inResponseTo_attribute">
+      <testcase purpose="Check if attribute inResponseTo of Message (email) exists, has type MessageId" type="compliance" onload_delay="300" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_inResponseTo_attribute">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_inResponseTo_attribute.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_inResponseTo_attribute.html</test_script_entry>
         </description>
         <specs>
           <spec>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if attribute isHighPriority of Message (email) exists, has type Boolean" type="compliance" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_isHighPriority_attribute">
+      <testcase purpose="Check if attribute isHighPriority of Message (email) exists, has type Boolean" type="compliance" onload_delay="300" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_isHighPriority_attribute">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_isHighPriority_attribute.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_isHighPriority_attribute.html</test_script_entry>
         </description>
         <specs>
           <spec>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if attribute isRead of Message (email) exists, has type Boolean" type="compliance" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_isRead_attribute">
+      <testcase purpose="Check if attribute isRead of Message (email) exists, has type Boolean" type="compliance" onload_delay="300" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_isRead_attribute">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_isRead_attribute.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_isRead_attribute.html</test_script_entry>
         </description>
         <specs>
           <spec>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if attribute messageStatus of Message (email) exists, has type DOMString and is readonly" type="compliance" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_messageStatus_attribute">
+      <testcase purpose="Check if attribute messageStatus of Message (email) exists, has type DOMString and is readonly" type="compliance" onload_delay="300" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_messageStatus_attribute">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_messageStatus_attribute.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_messageStatus_attribute.html</test_script_entry>
         </description>
         <specs>
           <spec>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if attribute subject of Message (email) exists, has type DOMString" type="compliance" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_subject_attribute">
+      <testcase purpose="Check if attribute subject of Message (email) exists, has type DOMString" type="compliance" onload_delay="300" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_subject_attribute">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_subject_attribute.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_subject_attribute.html</test_script_entry>
         </description>
         <specs>
           <spec>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if attribute to of Message (email) exists, has type Array" type="compliance" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_to_attribute">
+      <testcase purpose="Check if attribute to of Message (email) exists, has type Array" type="compliance" onload_delay="300" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_to_attribute">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_to_attribute.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_to_attribute.html</test_script_entry>
         </description>
         <specs>
           <spec>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check if attribute type of Message (email) exists, has type MessageServiceTag and is readonly" type="compliance" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_type_attribute">
+      <testcase purpose="Check if attribute type of Message (email) exists, has type MessageServiceTag and is readonly" type="compliance" onload_delay="300" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P1" id="Message_email_type_attribute">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_type_attribute.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_type_attribute.html</test_script_entry>
         </description>
         <specs>
           <spec>
           </spec>
         </specs>
       </testcase>
-      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (email)" type="compliance" onload_delay="90" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (email)" type="compliance" onload_delay="300" status="approved" component="TizenAPI/Communication/Messaging" execution_type="auto" priority="P2" id="MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
         </description>
         <specs>
           <spec>
index d1f29455836bfed5c8f2256772808f9f6e5ef1a6..d58c1410179fbb186d388a7df5fc4a56ee30b1fd 100644 (file)
           <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/MessageBodySuccessCallback_onsuccess.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if instance of interface MessageBody (email) can be extended with new property" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageBody_email_extend">
+      <testcase purpose="Check if instance of interface MessageBody (email) can be extended with new property" onload_delay="300" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageBody_email_extend">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_extend.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_extend.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if attribute htmlBody of MessageBody (email) exists, has type DOMString" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageBody_email_htmlBody_attribute">
+      <testcase purpose="Check if attribute htmlBody of MessageBody (email) exists, has type DOMString" onload_delay="300" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageBody_email_htmlBody_attribute">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_htmlBody_attribute.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_htmlBody_attribute.html</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="Check if attribute inlineAttachments of MessageBody (email) exists, has type Array" onload_delay="300" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageBody_email_inlineAttachments_attribute">
@@ -93,9 +93,9 @@
           <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_inlineAttachments_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if attribute loaded of MessageBody (email) exists, has type Boolean and is readonly" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageBody_email_loaded_attribute">
+      <testcase purpose="Check if attribute loaded of MessageBody (email) exists, has type Boolean and is readonly" onload_delay="300" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageBody_email_loaded_attribute">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_loaded_attribute.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_loaded_attribute.html</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="Check if attribute messageId of MessageBody (email) exists, has type MessageId and is readonly" onload_delay="300" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageBody_email_messageId_attribute">
           <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_messageId_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if attribute plainBody of MessageBody (email) exists, has type DOMString" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageBody_email_plainBody_attribute">
+      <testcase purpose="Check if attribute plainBody of MessageBody (email) exists, has type DOMString" onload_delay="300" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageBody_email_plainBody_attribute">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_plainBody_attribute.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/MessageBody_email_plainBody_attribute.html</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="Check if interface MessageBody exists, it should not." component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageBody_notexist">
           <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_addUpdateRemove.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if the attribute attachments in Message" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_attachments_exist">
+      <testcase purpose="Check if the attribute attachments in Message" onload_delay="300" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_attachments_exist">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_attachments_exist.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_attachments_exist.html</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="Check if attribute attachments of Message (email) exists, has type Array" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_attachments_attribute">
           <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_attachments_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if attribute bcc of Message (email) exists, has type Array" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_bcc_attribute">
+      <testcase purpose="Check if attribute bcc of Message (email) exists, has type Array" onload_delay="300" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_bcc_attribute">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_bcc_attribute.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_bcc_attribute.html</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="Check if attribute body of Message (email) exists, has type MessageBody" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_body_attribute">
           <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_body_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if attribute cc of Message (email) exists, has type Array" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_cc_attribute">
+      <testcase purpose="Check if attribute cc of Message (email) exists, has type Array" onload_delay="300" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_cc_attribute">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_cc_attribute.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_cc_attribute.html</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="Check if Message's constructor works properly (email)" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_constructor">
           <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_messageInitDict_object.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if Message's constructor works properly with minimum arguments (email)" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_constructor_minargs">
+      <testcase purpose="Check if Message's constructor works properly with minimum arguments (email)" onload_delay="300" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_constructor_minargs">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_minargs.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_constructor_minargs.html</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="Check if attribute conversationId of Message (email) exists, has type MessageConvId and is readonly" onload_delay="300" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_conversationId_attribute">
           <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_conversationId_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if instance of interface Message (email) can be extended with new property" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_extend">
+      <testcase purpose="Check if instance of interface Message (email) can be extended with new property" onload_delay="300" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_extend">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_extend.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_extend.html</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="Check if attribute from of Message (email) exists, has type DOMString and is readonly" onload_delay="300" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_from_attribute">
           <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_from_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if attribute hasAttachment of Message (email) exists, has type Boolean and is readonly" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_hasAttachment_attribute">
+      <testcase purpose="Check if attribute hasAttachment of Message (email) exists, has type Boolean and is readonly" onload_delay="300" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_hasAttachment_attribute">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_hasAttachment_attribute.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_hasAttachment_attribute.html</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="Check if attribute id of Message (email) exists, has type MessageId and is readonly" onload_delay="300" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_id_attribute">
           <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_id_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if attribute inResponseTo of Message (email) exists, has type MessageId" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_inResponseTo_attribute">
+      <testcase purpose="Check if attribute inResponseTo of Message (email) exists, has type MessageId" onload_delay="300" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_inResponseTo_attribute">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_inResponseTo_attribute.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_inResponseTo_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if attribute isHighPriority of Message (email) exists, has type Boolean" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_isHighPriority_attribute">
+      <testcase purpose="Check if attribute isHighPriority of Message (email) exists, has type Boolean" onload_delay="300" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_isHighPriority_attribute">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_isHighPriority_attribute.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_isHighPriority_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if attribute isRead of Message (email) exists, has type Boolean" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_isRead_attribute">
+      <testcase purpose="Check if attribute isRead of Message (email) exists, has type Boolean" onload_delay="300" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_isRead_attribute">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_isRead_attribute.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_isRead_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if attribute messageStatus of Message (email) exists, has type DOMString and is readonly" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_messageStatus_attribute">
+      <testcase purpose="Check if attribute messageStatus of Message (email) exists, has type DOMString and is readonly" onload_delay="300" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_messageStatus_attribute">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_messageStatus_attribute.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_messageStatus_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if attribute subject of Message (email) exists, has type DOMString" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_subject_attribute">
+      <testcase purpose="Check if attribute subject of Message (email) exists, has type DOMString" onload_delay="300" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_subject_attribute">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_subject_attribute.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_subject_attribute.html</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="Check if attribute timestamp of Message (email) exists, has type Date and is readonly" onload_delay="300" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_timestamp_attribute">
           <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_timestamp_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if attribute to of Message (email) exists, has type Array" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_to_attribute">
+      <testcase purpose="Check if attribute to of Message (email) exists, has type Array" onload_delay="300" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_to_attribute">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_to_attribute.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_to_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check if attribute type of Message (email) exists, has type MessageServiceTag and is readonly" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_type_attribute">
+      <testcase purpose="Check if attribute type of Message (email) exists, has type MessageServiceTag and is readonly" onload_delay="300" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_email_type_attribute">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/Message_email_type_attribute.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_type_attribute.html</test_script_entry>
         </description>
       </testcase>
       <testcase purpose="Check if Message exists" component="TizenAPI/Communication/Messaging" execution_type="auto" id="Message_exist">
           <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/Message_email_folderId_attribute.html</test_script_entry>
         </description>
       </testcase>
-      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (email)" onload_delay="90" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
+      <testcase purpose="Check type conversions for conversationsChangeCallback argument of MessageStorage.addConversationsChangeListener method (email)" onload_delay="300" component="TizenAPI/Communication/Messaging" execution_type="auto" id="MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch">
         <description>
-          <test_script_entry>/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
+          <test_script_entry timeout="300">/opt/tct-messaging-email-tizen-tests/messaging/MessageStorage_email_addConversationsChangeListener_conversationsChangeCallback_TypeMismatch.html</test_script_entry>
         </description>
       </testcase>
     </set>